At present, low teaching efficiency has been the common problem of ideological and political education in colleges and universities in China. It is essential to improve the teaching efficiency and realize the intelligent information transformation of the ideological and political courses in colleges and universities. First, the relationship between ideological and political courses and the educational psychology of college students was analyzed based on the theoretical characteristics of educational psychology and college ideological and political courses. Additionally, the teaching efficiency of ideological and political courses based on deep learning (DL) was analyzed through a literature survey. Combined with online teaching modes such as the flipped classroom and Massive Open Online Courses, a comprehensive online teaching mode of college ideological and political courses was proposed via educational psychology and the Single Shot MutiBox Detector networks of DL. Then, a total of 100 research subjects were selected randomly from the freshmen and sophomores of the Southwest University of Science and Technology, and their acceptability to the online ideological and political courses was analyzed by a questionnaire survey. The results show that the adopted questionnaire had high reliability and validity, and the proportion of respondents of different genders, grades, and majors was essentially balanced. More than half of the students had a good understanding of the comprehensive ideological and political courses and made progress in their values, ideology, morals, and knowledge reserves. More than half of the students had a positive attitude to the course, and they thought that the class atmosphere of the course was active, which was conducive to a satisfactory learning effect. This indicates that the teaching strategy of ideological and political courses in colleges and universities that integrates educational psychology, DL, and online information can attract students. The contribution of this study is that the research outcome can be applied to the concrete formulation of the teaching strategies of ideological and political courses for college students.