A method and system for automatic classification of teaching videos based on different presentation modes

Through the self-trained YOLOV4 object detection network model and the self-built convolutional neural network model, the problem of high hardware requirements and insufficient data sets of teaching video classification models is solved, and efficient automatic classification of teaching videos is realized, which improves classification accuracy and efficiency.

CN114638988BActive Publication Date: 2024-11-01HUAZHONG NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210249839.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-14
Publication Date
2024-11-01
Estimated Expiration
2042-03-14

AI Technical Summary

Technical Problem

The existing teaching video classification model is difficult to apply to teaching videos in different presentation forms, and it also has high requirements for computer hardware and insufficient training data sets, resulting in unsatisfactory classification results.

Method used

The self-trained YOLOV4 object detection network model and the self-built convolutional neural network model are adopted to realize the automated classification of teaching videos through feature extraction and classification, reducing the load on computer hardware and data set requirements.

Benefits of technology

It improves the accuracy of teaching video classification, saves manual classification time and computer performance consumption, and provides more efficient teaching video classification methods, which are suitable for teaching video quality evaluation and personalized recommendations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114638988B_ABST
    Figure CN114638988B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of artificial intelligence technology, and discloses a teaching video automatic classification method and system based on different presentation modes. With three convolutional neural network models, two self-trained YOLOV4 target detection neural network models and human key point detection technology can accurately locate the information required for the classification of teaching videos, solve the problem that the background and character features of teaching videos are not obviously changed, and increase the accuracy of feature extraction. The structure of the self-built convolutional neural network model is suitable for classifying two types of teaching videos, Interview type and Head type. The network depth is just right for several classical video classification algorithms, reducing the energy consumption of computer hardware. Other related image data sets are used as the required training set after preprocessing, breaking through the bottleneck of the teaching video data set. A new teaching video classification method is provided, which improves the accuracy and efficiency of teaching video classification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of artificial intelligence technology, and in particular relates to a method and system for automatically classifying teaching videos based on different presentation modes. Background Art

[0002] At present, with the rapid development of educational informatization, online teaching videos are particularly important in actual teaching. At the same time, more and more scholars have devoted themselves to the analysis of teaching videos, and teaching videos of different styles have been produced. Analysts' analysis shows that teaching videos with different presentation forms not only affect learners' learning motivation and participation, but also affect learners' grades; learners show different acceptance of teaching videos with different presentation forms; in psychology, the different presentation forms of teaching video information also have a significant impact on learners' cognitive load and social presence. The presentation form of teaching videos is as important as the content to be expressed. According to the inventor's analysis of teaching videos with different presentation forms, teaching videos mainly appear in six different presentation forms: simple PPT type, PPT+teacher image type, studio recording type, classroom recording type, Interview type and Head type. Automatically classifying teaching videos with different presentation forms can not only help learners quickly find their preferred videos and improve learning efficiency, but also facilitate the production of teaching videos in a targeted manner.

[0003] At present, the classic neural network models used for video classification in the field of computer vision include VGG, GoogLeNet, Residual Network, etc. These models are mainly composed of convolutional layers, pooling layers, and fully connected layers. The function of the convolutional layer is to extract the features of the image. The pooling layer compresses the feature map and has a dimensionality reduction effect. The fully connected layer generally appears at the end of the convolutional neural network, so that the convolutional neural network finally outputs a one-dimensional feature vector. The convolutional layer is convolved by the convolution kernel, and the convolutional layer increases the nonlinearity of the output through the activation function; the pooling layer is generally connected after the convolutional layer to accelerate the calculation and make some detected features more stable. VGG19 contains 16 convolutional layers and 3 fully connected layers; GoogLeNet contains 22 layers and adopts the Inception structure, that is, each node is a small network; Residual Network introduces residual blocks. Taking 34-layer as an example, it means that there are 34 layers with trainable parameters, and the pooling layer does not contain trainable parameters.

[0004] These models all have common characteristics: the network model is deep and has high requirements for computer hardware. If you want to produce good results, you need a large data set to train. However, there is currently no public data set for teaching videos, and it is also difficult to collect a large number of teaching video data sets. It is difficult to achieve ideal experimental results by directly using these classification models. Analysis shows that many existing classification neural network models are classified according to scene changes or drastic changes in character actions. This is not applicable to teaching videos with different presentation forms. The shooting method of teaching videos usually does not change much. For the characters that appear in teaching videos, they generally refer to teachers. In a teaching video, the behavior of the teacher's lecture does not change significantly. If you want to use existing technology to directly classify teaching videos in different presentation methods, the results are not ideal.

[0005] Through the above analysis, the problems and defects of the prior art are as follows:

[0006] (1) Currently, teaching videos on major teaching platforms are appearing in large numbers with different styles. Manual classification of teaching videos based on different presentation forms is a very time-consuming process.

[0007] (2) The existing teaching video classification method has high requirements for computer hardware and requires a large amount of data sets for training. Therefore, based on the actual situation, the experimental results obtained by directly using the existing method are poor;

[0008] (3) According to the characteristics of teaching videos, the existing video classification network model is not suitable for teaching videos with different presentation forms.

[0009] The difficulty in solving the above problems and defects is that there are many data sets for analyzing video classification, but there are not many data sets for different presentation forms of teaching videos, which makes the teaching video training process difficult;

[0010] There are many analyses on video automatic classification, but teaching videos are obviously different from other scene classification videos: the scene is single, the character action changes are not obvious, and the camera transitions are not obvious. Therefore, it is difficult to successfully classify teaching videos directly with existing technologies.

[0011] The significance of solving the above problems and defects is:

[0012] The method proposed in the present invention has been experimentally proven to be a reasonable application of target detection technology and deep learning in the field of video classification. It can realize automatic classification of teaching videos based on different presentation forms, thereby reducing the workload of manual teaching video classification and improving the efficiency of teaching video classification;

[0013] A new convolutional neural network model is provided for the video and image classification field. This model has an appropriate depth and does not require a large training data set, which can save computer performance and achieve a good effect.

[0014] After the teaching videos are effectively and automatically classified using the method of the present invention, new inspiration and ideas can be provided to analysts in the fields of teaching video analysis, such as teaching video quality evaluation, personalized teaching video recommendation, etc., psychological analysis, such as the impact of different presentation forms of teaching videos on learners' recognition, etc., as well as other related fields. Summary of the invention

[0015] In view of the problems existing in the prior art, the present invention provides a method and system for automatically classifying teaching videos based on different presentation modes.

[0016] The present invention is implemented in this way. There are many standards for the classification of teaching videos based on different presentation modes at present, but there is no analysis of the automatic classification method of teaching videos based on different presentation modes. The method provided by the present invention solves this problem and provides great assistance for the subsequent teaching video analysis based on different presentation modes. Secondly, the present method is not to classify six kinds of teaching videos directly, but to classify six kinds of teaching videos into two or separate classifications according to the characteristics of teaching video images: classroom recording and simple PPT are classified separately, PPT plus teacher image type and studio recording type, interview type head type are classified in two, and this classification method greatly improves the accuracy of teaching video classification. Once again, the present method provides the data set of classroom scenes with the artificial marking features after the data set is provided to the self-trained YOLOV4 target detection network model 1 for use, and this method of switching to other similar image data sets for training solves the defect of insufficient data sets in the field of teaching video analysis based on different presentation modes. Finally, the present method provides a convolutional neural network model, which not only improves the accuracy of teaching video classification, but also reduces computer hardware energy consumption.

[0017] Specifically, the present invention provides a method for automatic classification of teaching videos based on different presentation modes, including:

[0018] Step 1: Use the self-trained YOLOV4 target detection network model 1 to extract classroom features in the key frames of the video, and determine whether the video is a classroom recording based on the output classroom features;

[0019] Step 2: Determine whether it is a pure PPT type through the information output by the self-trained YOLOV4 target detection network model 2;

[0020] Step 3: distinguish the PPT plus teacher image type and the studio recording type based on the key point detection of the human body;

[0021] Step 4: Use the self-built convolutional neural network model to distinguish the two types of video features: interview type and head type.

[0022] Furthermore, the method for automatic classification of teaching videos based on different presentation modes specifically includes:

[0023] (1) Collect six types of teaching videos, classify the collected video sets according to the six types of teaching videos, and extract video key frames;

[0024] (2) After extracting the video key frames, the video key frames are preprocessed to form video folders. Each folder consists of corresponding video key frames and is used as a test set for teaching video detection;

[0025] (3) Use two self-trained YOLOV4 object detection network models to detect the key frames of the pre-processed video folder, and use the output information to determine whether the video type is pure PPT type, PPT plus teacher image type, classroom recording type, and studio recording type;

[0026] (4) Using face detection technology, the face parts of the key frames in the interview and head videos are cropped to a size of 28*28;

[0027] (5) Since the interview type and the head type have some differences in head posture features, we collect and classify public datasets of face images and head postures;

[0028] (6) Put the remaining folder key frames into the trained self-built convolutional neural network model for classification and detection operations.

[0029] Furthermore, the six types of teaching videos in step (1) are: pure PPT type, PPT plus teacher image type, classroom recording type, studio recording type, interview type and head type.

[0030] Furthermore, the preprocessing of the video key frames in step (2) includes unifying the image size to 416*416 and removing the mean value of the image.

[0031] Furthermore, in step (5), the collected public data sets are used as training sets, validation sets and test sets for distinguishing the two types of videos. The three types of data are respectively put into the self-built convolutional neural network. After obtaining the optimal weights, the video folder formed by the key frames extracted from the two videos is used as the final test set for final detection.

[0032] Another object of the present invention is to provide an automatic classification system for teaching videos based on different presentation modes, which is implemented by deep learning technology and includes the following three neural network model units:

[0033] Self-trained YOLOV4 target detection network model 1 unit: Use a large number of images with classroom features collected as a data set, mark the classroom features on each image, and use the marked labels to train and tune the YOLOV4 target detection network model so that the YOLOV4 target detection network model 1 can detect classroom features in images or videos;

[0034] The self-trained YOLOV4 target detection network model 2 unit uses the public COCO dataset to train the YOLOV4 target detection network model so that the YOLOV4 target detection network model 2 can output the person information in the image or video.

[0035] Self-built convolutional neural network model unit: use Prelu as activation function, Adabound as optimizer, add data enhancement layer to the first layer, use BatchNormalization for batch normalization in each layer. The last layer uses softmax function to classify the key frames of the teaching video.

[0036] Furthermore, the self-built convolutional neural network model unit includes 5 convolutional layers, 1 pooling layer, a Dropout layer and 2 fully connected layers connected in sequence;

[0037] Among them, the convolution kernel size of 3 convolution layers is 3*3 and the stride is 1, and the convolution kernel size of 2 convolution layers is 3*3 and the stride is 2. The convolution layers with stride 1 and stride 2 are arranged alternately.

[0038] The size of the pooling layer is 2*2, with a stride of 2, and is connected after the last convolutional layer; the size of the first fully connected layer is 256; the parameter of the Dropout layer is 0.3; the size of the second fully connected layer is the size of the classified video category; the size of the input layer is 28*28*3.

[0039] The self-built convolutional neural network model is different from other convolutional neural network models:

[0040] (1) Before using the image, the face part of the image will be detected and cropped. This preprocessing not only makes the image uniform and easy to operate, but also reduces the impact of irrelevant information such as background on the feature extraction of the self-built convolutional neural network model;

[0041] (2) The convolutional layers all use small 3*3 convolution kernels. This is because face images are relatively complex compared to ordinary images. Small convolution kernels can better extract image detail features and can extract more effective features.

[0042] (3) The first two pooling layers in the three-layer convolutional neural network were replaced with convolutional layers with a stride of 2. This is because it was found that convolutional layers with a stride of 2 can replace pooling layers to achieve good feature extraction results. The pooling layer of the third layer was not replaced because the pooling layer has a dimensionality reduction effect. After four layers of convolution, the fifth convolutional layer collects all image features. If the sixth layer is a convolutional layer directly connected to the fully connected layer, a large number of features will disappear directly. Therefore, the sixth layer is a pooling layer. Using the pooling layer to compress the convolutional features of the first five layers and then connecting it to the fully connected layer can retain more effective features while reducing feature loss, thereby improving the accuracy of teaching video classification.

[0043] Combining all the above technical solutions, the advantages and positive effects of the present invention are as follows:

[0044] The teaching video classification technology based on different presentation forms proposed by the present invention includes three convolutional neural network models. Through two self-trained YOLOV4 target detection neural network models and human key point detection technology, the information required for the classification of teaching videos can be accurately located, which solves the problem that the background and character features of the teaching videos are not obviously changed, and increases the accuracy of feature extraction. The structure of the self-built convolutional neural network model is suitable for classifying two types of teaching videos, Interview type and Head type. The network depth is just right for several classical video classification algorithms, which reduces the energy consumption of computer hardware. Using other related image data sets as the required training set after preprocessing, the bottleneck on the teaching video data set is broken through.

[0045] Compared with the classic video classification model, the present invention has achieved better results. The classic video classification model cannot be well adapted to the classification of teaching videos. This is because the six types of teaching videos do not all have obvious change characteristics, and the data set of teaching videos is not huge. The method proposed by the present invention is efficient and has high prediction accuracy. Secondly, the depth of the self-built convolutional neural network model in the method is appropriate, so the time required for model training is also less than that of several classic video classification models, which reduces computer performance consumption and saves time. Thirdly, the automatic classification of teaching videos using this method saves the time and energy required for manual classification and improves the efficiency of teaching video classification. Finally, the teaching video classification method proposed by the present invention can be applied to situations that other classic video classification methods cannot solve, and provides methods and ideas for other video classifications. At the same time, the automatic classification technology of teaching videos based on different presentation forms can help analyze the various impact issues such as the presentation form of teaching videos on student acceptance in pedagogy, and help analyze the presentation form of teaching videos on student psychology (cognitive load, social presence, etc.) in psychology. In other analyses, the method proposed by the present invention can also provide new ideas and practices for analyzing related issues such as the quality of teaching videos.

[0046] The present invention combines the object detection technology in computer vision with the video classification technology, so that the teaching video can achieve good classification results based on different presentation forms. This is a new method in the field of video classification. It also provides a self-built convolutional neural network model, which can efficiently classify teaching videos. The present invention also provides a new convolutional neural network model for video or picture classification, which is convenient for other analysts to use, reduces algorithm redundancy, saves computer computing performance, and improves classification accuracy.

[0047] The present invention is aimed at the rapid development of online teaching technology. Online teaching has broken through the bottleneck of traditional teaching, is not limited by time and space, and is increasingly accepted by the public. As a result, teaching videos have emerged in a blowout manner, and there are many types of teaching videos, which also cause many problems such as waste of resources. The teaching video classification method with different presentation forms can effectively help learners adapt to the appropriate type of teaching videos, reduce the time of manual search for teaching videos, and also improve the learning rate of learners, reduce resource waste, and have a certain influence and significance on improving the efficiency of teaching and learning. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0049] Figure 1 It is a flow chart of an automatic classification method of teaching videos based on different presentation modes provided by an embodiment of the present invention.

[0050] Figure 2 These are six examples of teaching video presentation formats provided by embodiments of the present invention.

[0051] Figure 3 These are various classification result diagrams of the teaching video classification provided by the embodiments of the present invention.

[0052] Figure 4 It is a general flow chart of teaching video classification provided by an embodiment of the present invention.

[0053] Figure 5 It is a diagram of the training process of the YOLOV4 target detection model 1 provided in an embodiment of the present invention.

[0054] Figure 6 These are two types of video training set preprocessing provided by the embodiments of the present invention.

[0055] Figure 7 It is a structural diagram of a self-built convolutional neural network model provided in an embodiment of the present invention.

[0056] Figure 8 It is a flow chart of self-built convolutional neural network model training provided by an embodiment of the present invention.

[0057] Fig. 9 It is a diagram of the self-built convolutional model image prediction training process provided by an embodiment of the present invention.

[0058] Fig.10 It is a diagram of the teaching video prediction process provided by an embodiment of the present invention.

[0059] Fig.11 This is a single teaching video classification flow chart provided by an embodiment of the present invention.

[0060] Fig.12 This is an example of post-processing of image detection provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0062] In view of the problems existing in the prior art, the present invention provides a method and system for automatically classifying teaching videos based on different presentation modes. The present invention is described in detail below in conjunction with the accompanying drawings.

[0063] 1. In order to enable those skilled in the art to fully understand how to implement the present invention, this section provides an explanatory embodiment that expands the technical solution of the claims.

[0064] Through the analysis of the characteristics of teaching videos in the early stage, it is found that teaching videos are different from videos in other classification data sets. There are 6 main presentation methods for teaching videos, and the underlying features of the 6 presentation methods are not very different, so it is difficult to classify them using classic video classification models. It is found that the extraction of teaching video features is not closely related to the time dimension, and the presentation form of the teaching video can be distinguished by one or several frames in the teaching video. Therefore, the potential and effectiveness of target detection technology in the field of video classification are discovered. A reasonable conjecture is proposed to use the target detection neural network model and the self-built convolutional neural network model to classify teaching videos based on different presentation forms. The optimal weight of the self-built convolutional neural network model is found through the collected data set and the use of deep learning methods. Finally, the self-built teaching video test set is used to test the above model, which verifies the rationality and effectiveness of the conjecture, so that the target detection neural network model and the self-built convolutional neural network have good applications in the field of teaching video classification.

[0065] The present invention first extracts key frames from existing teaching videos as video-level features. All video key frames in each folder represent a video-level feature, and the type of video is judged according to the result of folder detection. After extracting the key frames of the teaching video, the key frames are preprocessed so that each key frame size is uniform and the mean is removed. All of them are used as the final test set. In order to ensure the authenticity and robustness of the model effect, the present invention uses pictures in other public data sets to train and verify the model. First, the features such as blackboards and whiteboards in the classroom scene in the public data set LSUN are manually marked, and then the YOLOV4 target detection network model 1 is trained using artificial labels. The YOLOV4 target detection network model 2 is trained using the public data set COCO, and finally the position information of the characters is output. The images in the public data sets 300W-LP, CACD2000, etc. are classified, the images are preprocessed, the face parts are cut out, and they are input into the self-built convolutional neural network model for training. The information output by the above three models is classified for 6 types of teaching videos.

[0066] like Figure 1 As shown, the teaching video automatic classification method based on different presentation modes provided by the embodiment of the present invention includes:

[0067] S101, using the self-trained YOLOV4 target detection network model 1 to extract classroom features in the key frames of the video, and judging whether the video is a classroom recording type based on the output classroom features;

[0068] S102, judging whether it is a pure PPT type through the information output by the self-trained YOLOV4 target detection network model 2;

[0069] S103, distinguishing the PPT plus teacher image type and the studio recording type according to the key point detection of the human body;

[0070] S104, use the self-built convolutional neural network model to distinguish the two types of video features: interview type and head type.

[0071] The present invention is further described below in conjunction with embodiments.

[0072] Example:

[0073] The present invention uses a self-built teaching video dataset to demonstrate the effectiveness of the method. The teaching video dataset includes 189 teaching videos, including 33 studio recording types, 42 pure PPT types, 40 PPT+teacher image types, 32 classroom recording types, 21 Interview types, and 21 Head types. Figure 2 The following diagram shows examples of 6 types of teaching video presentation formats. Figure 3 1 is a diagram of various classification results of the teaching video classification according to an embodiment of the present invention. Figure 4 This is a general implementation flow chart of the automatic classification technology of teaching videos based on different presentation forms provided by an embodiment of the present invention. According to the flow chart, the steps of the present invention are introduced in detail as follows.

[0074] Step 1: Collect data sets: LSUN data set for scene recognition, 300W-LP data set for head posture recognition, and CACD2000 data set for face recognition. Among them, 1,000 images of the classroom scene part of the LSUN data set are randomly selected, and 12,500 images are randomly selected from the 300W-LP and CACD2000 data sets, and divided into 2 categories: Interview type and Head type. The data sets are processed as follows:

[0075] 1. The above image data are organized into three types of datasets: classroom scene image dataset, interview type image dataset, and head type image dataset. The interview type image dataset contains 6162 images, and the head type image dataset contains 6338 images.

[0076] 2. Unify all images of the above three types of data sets into 416*416 size

[0077] 3. All images of the above three types of data sets are processed by removing the mean

[0078] Step 2: Manually label all images in the classroom scene image dataset in turn to form feature labels: blackboard, whiteboard, screen

[0079] Step 3: Input the feature labels into the YOLOV4 target detection neural network model for training to obtain the optimal model YOLOV4 target detection neural network model 1. The specific training process is as follows Figure 5 As shown. The teacher feature labels that have been manually marked are divided into training set, validation set and test set in a ratio of 6:2:2. Before training the model, set monitoring to prevent the model from overfitting. Add a data enhancement layer to improve the robustness and stability of the model. The model was trained for 48 epochs with a batch size of 20. Through continuous training and optimization of the training set and validation set, the model is evaluated on the test set, and finally the optimal weight is obtained, and the optimal model is output

[0080] Step 4: Preprocess the Interview image dataset and the Head image dataset: Use face detection technology to crop the face images and unify the images into 28*28 size. Figure 6 shown.

[0081] Step 5: Build a convolutional neural network model: The specific model structure is as follows Figure 7 As shown. Input the 28*28*3 image into the model, pass through the first convolution layer, the convolution layer size is 28*28*16, the convolution kernel size is 3*3, and the step length is 1; output the result to the second convolution layer, the convolution layer size is 14*14*16, the convolution kernel size is 3*3, and the step length is 2; input the result to the third convolution layer, the convolution layer size is 14*14*32, the convolution kernel size is 3*3, and the step length is 1; as shown in the following sequence. Figure 7 Continue and finally output the prediction result through the softmax function.

[0082] Step 6: Train the self-built convolutional neural network. First, divide the preprocessed Interview image dataset and Head image dataset into three parts according to the ratio of 6:2:2: training set, validation set, and test set. Before training the model, set monitoring to prevent the model from overfitting. Use the Prelu activation function with a learning rate of 0.001, and call the Adabound optimizer to improve the generalization ability of the model. The model was trained for 48 Epochs with a BatchSize of 20. Through continuous training and optimization of the training set and validation set, the model is evaluated on the test set, and finally the optimal weight is obtained and the optimal model is output. The training flow chart is as follows: Figure 8 As shown, the training process loss rate and accuracy are as follows Fig. 9 shown.

[0083] Step 7: The overall process of teaching video testing is as follows Fig.10 As shown in the figure. Through the analysis of different presentation forms of teaching videos, teaching videos are divided into 6 categories. Teaching videos with different presentation forms are collected on online learning platforms such as MOOC.com and China University MOOC Platform, and preprocessed:

[0084] 1. Categorize all teaching videos into 6 presentation forms;

[0085] 2. Use the frame difference method to extract key frames from all teaching videos. Extract the last frame of the teaching video every second, collect all the extracted frames, and then separate the two adjacent teaching video images into a single frame. k+1 (x,y),f k (x, y) are normalized and then subtracted, where f k (x, y) represents the pixel point (x, y) of the kth frame. The absolute value of the pixel value difference between the corresponding positions of the two frames is obtained to determine whether it is greater than the threshold (T), as shown in formula (1). Finally, the part of the image with the largest difference is selected as the video key frame to form a video-level key frame dataset.

[0086] |f k+1 (x, y)-f k (x,y)|>T (1)

[0087] Step 8: The specific judgment process of the teaching video is as follows Fig.11 As shown. The video-level (all key frames in a single folder represent all the features of a teaching video) data set is sequentially input into the YOLOV4 target detection neural network model 2 trained using the COCO data set. Determine whether it is a pure PPT type based on the character information detected by the model: whether the ratio (S1 / N) of the character information S1 detected in a teaching video and the total number of key frames N in the teaching video is less than 10%. If the condition is met, it is a pure PPT type, otherwise it enters the self-trained YOLOV4 target detection neural network model 1 to continue to determine: whether the ratio (C1 / N) of the classroom information (C1) output by the model 1 and the total number of key frames N in the teaching video is greater than 80%. If the condition is met, it is a classroom recording type, otherwise human key point detection is used:

[0088] 1. Output the value Hy of the highest point height of the character in the key frame, the value By of the lowest point height and the height H of the key frame image, calculate M = ||Hy-By|| / H, and determine the value of M. If M<0.4, it is the PPT+teacher image type.

[0089] 2. If the hip or the part below the hip can be detected, it is a studio recording type.

[0090] Finally, the self-built convolutional neural network model is used to detect the remaining data and output the classification results.

[0091] According to the above steps, all teaching videos were classified based on different presentation forms, and the final test accuracy of the video data set was 97.91%. Among them, the accuracy of pure PPT type, classroom recording type, PPT + teacher image type, and Head type were all 100%, the accuracy of Interview type was 90.48%, and the accuracy of studio recording type was 96.97%. The above teaching video classification results prove the effectiveness of the method. Finally, based on the above-mentioned human key point detection and self-trained YOLOV4 target detection neural network model, the key frame detection of the teaching video is as follows: Fig.12 shown.

[0092] The automatic classification technology of teaching videos based on different presentation forms proposed by the present invention combines target detection technology with video classification technology, and classifies teaching videos based on different presentation forms through self-trained target detection neural network and self-built convolutional neural network, which is an innovative method. The method can not only provide new classification methods and ideas for analysts in the field of related video classification, but also apply this method to other fields, such as psychology, such as exploring the impact of different information presentation methods on learners' cognitive load, etc.; in education, such as the impact of different presentation forms of teaching videos on learners' acceptance, satisfaction, etc., or the analysis of the quality of teaching videos with different presentation forms, teaching video recommendations, etc. Finally, the presentation form results of teaching videos can also help learners quickly adapt to suitable teaching videos, and also help video producers to make videos in a targeted manner.

[0093] The present invention also provides an automatic classification system for teaching videos based on different presentation modes, which is implemented by deep learning technology and includes the following three neural network model units:

[0094] Self-trained YOLOV4 target detection network model 1 unit: Use a large number of images with classroom features collected as a data set, mark the classroom features on each image, and use the marked labels to train and tune the YOLOV4 target detection network model so that the YOLOV4 target detection network model 1 can detect classroom features in images or videos;

[0095] The self-trained YOLOV4 target detection network model 2 unit uses the public COCO dataset to train the YOLOV4 target detection network model so that the YOLOV4 target detection network model 2 can output the person information in the image or video.

[0096] Self-built convolutional neural network model unit: use Prelu as activation function, Adabound as optimizer, add data enhancement layer to the first layer, use BatchNormalization for batch normalization in each layer. The last layer uses softmax function to classify the key frames of the teaching video.

[0097] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. It can be understood by a person of ordinary skill in the art that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.

[0098] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.

Claims

1. A method for automatic classification of teaching videos based on different presentation modes, characterized in that: The teaching video automatic classification method based on different presentation modes includes: The self-trained YOLOV4 target detection network model 1 is used to extract classroom features in the key frames of the video, and the output classroom features are used to determine whether the video is a classroom recording; The information output by the self-trained YOLOV4 target detection network model 2 is used to determine whether it is a pure PPT type; Differentiate between PPT plus teacher image type and studio recording type based on human body key point detection; Use a self-built convolutional neural network model to distinguish the two types of video features: interview type and head type; The automatic classification system of teaching videos based on different presentation methods includes: Self-trained YOLOV4 target detection network model 1 unit: Use a large number of images with classroom features collected as a data set, mark the classroom features on each image, and use the marked labels to train and tune the YOLOV4 target detection network model so that the YOLOV4 target detection network model 1 can detect classroom features in images or videos; Self-trained YOLOV4 target detection network model 2 unit: Use the public COCO dataset to train the YOLOV4 target detection network model so that the YOLOV4 target detection network model 2 outputs the person information in the image or video; Self-built convolutional neural network model unit: using Prelu as the activation function, Adabound as the optimizer, adding a data enhancement layer to the first layer, using BatchNormalization for batch normalization in each layer, and using the softmax function in the last layer to classify the key frames of the teaching video; The self-built convolutional neural network model unit includes 5 convolutional layers, 1 pooling layer, a Dropout layer and 2 fully connected layers connected in sequence; Among them, the convolution kernel size of 3 convolution layers is 3*3 and the stride is 1, and the convolution kernel size of 2 convolution layers is 3*3 and the stride is 2. The convolution layers with stride 1 and stride 2 are arranged alternately. The size of the pooling layer is 2*2, with a stride of 2, and is connected after the last convolutional layer; the size of the first fully connected layer is 256; the parameter of the Dropout layer is 0.3; the size of the second fully connected layer is the size of the classified video category; the size of the input layer is 28*28*3.

2. The method for automatic classification of teaching videos based on different presentation modes as claimed in claim 1, characterized in that: The teaching video automatic classification method based on different presentation modes specifically includes: (1) Collect six types of teaching videos, classify the collected video sets according to the six types of teaching videos, and extract video key frames; (2) After extracting the video key frames, the video key frames are preprocessed to form video folders. Each folder consists of corresponding video key frames as a test set for teaching video detection; (3) Use two self-trained YOLOV4 object detection network models to detect the key frames of the pre-processed video folder, and use the output information to determine whether the video type is pure PPT type, PPT plus teacher image type, classroom recording type, and studio recording type; (4) Using face detection technology, the face parts of the key frames in the interview and head videos are cropped to a size of 28*28; (5) Since the interview type and the head type have some differences in head posture features, we collect and classify public datasets of face images and head postures; (6) Put the remaining folder key frames into the trained self-built convolutional neural network model for classification and detection operations.

3. The method for automatic classification of teaching videos based on different presentation modes as claimed in claim 2, characterized in that: The six types of teaching videos in step (1) are: pure PPT type, PPT plus teacher image type, classroom recording type, studio recording type, interview type and head type.

4. The method for automatic classification of teaching videos based on different presentation modes as claimed in claim 2, characterized in that: The preprocessing of the video key frames in step (2) includes unifying the image size to 416*416 and removing the mean value of the image.

5. The method for automatic classification of teaching videos based on different presentation modes as claimed in claim 2, characterized in that: In step (5), the collected public data set is used as the training set, validation set and test set for distinguishing the two types of videos. The three types of data are respectively put into the self-built convolutional neural network. After obtaining the optimal weight, the video folder formed by the key frames extracted from the two videos is used as the final test set for final detection.

6. A computer program product stored on a computer-readable medium, comprising a computer-readable program, which, when executed on an electronic device, provides a user input interface to apply the automatic classification method for teaching videos based on different presentation methods as described in any one of claims 1 to 5.

7. A computer-readable storage medium storing instructions, which, when executed on a computer, enables the computer to apply the method for automatic classification of teaching videos based on different presentation modes as described in any one of claims 1 to 5.

8. An information data processing terminal, characterized in that: The information data processing terminal is used to implement the automatic classification method of teaching videos based on different presentation modes as described in any one of claims 1 to 5.