With the continuous deepening of the new curriculum reform, in order to meet the needs of high-efficiency and high-quality teaching, colleges and universities have carried out continuous reforms and innovations in teaching forms and methods. Microcourse is one of the main innovative forms of curriculum development in colleges at this stage, and it has a great role in promoting the quality of courses and the realization of teaching goals. At the same time, as a new discipline, computer science has its own unique properties. In addition, the traditional cognitive diagnosis model ignores the connection between knowledge points in most cases, and the use of this information is insufficient, resulting in that the traditional model cannot be reasonably applied in some practical teaching scenarios. Under the background of the continuous development of modern curriculum and the continuous innovation of educational methods, cognitive diagnosis, as an important research in educational data mining, plays a pivotal role in student evaluation. Based on this, this paper mainly takes the teaching of computer courses as an example. While introducing the current situation of teaching activities, it studies the specific strategies of microlectures in computer courses, so as to better utilize the advantages of microlectures.