A method and system for evaluating the quality of online education teaching
By using posture behavior and facial expression detection models in online education, combined with MTCNN and graph attention network, the problem of difficulty in identifying students' attention concentration in existing technology is solved, and a more accurate and robust evaluation of teaching quality is achieved.
Patent Information
- Application Number
- CN202410337192.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-22
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-03-22
AI Technical Summary
Existing online education teaching quality evaluation methods are difficult to accurately identify students' concentration levels in complex environments, and cannot comprehensively and objectively evaluate the quality of online classroom teaching.
By obtaining the video data from the student side, preprocessing and inputting the posture behavior detection model and facial expression detection model, an evaluation score for the degree of concentration of attention is generated, and the evaluation value of the teaching quality of the entire course is calculated. Specific steps include frame image extraction, MTCNN detection algorithm to detect faces, gestures, behaviors and expressions, and feature extraction and fusion using three-dimensional face models, Bayesian neural networks and graph attention networks.
It effectively reduces the amount of data processing, improves the accuracy of learning status judgment, can better identify students' head postures and expressions, reduces the impact of the environment on recognition, and achieves more robust student face detection and expression recognition. .
Smart Images

Figure CN118038532B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of teaching quality evaluation, and in particular to an online education teaching quality evaluation method and system. Background Art
[0002] Online education has become an emerging teaching method. This teaching method is not restricted by the venue and can be implemented as long as teachers and students have computer terminals. It is also very flexible to operate. Therefore, the development of online classes and their effectiveness have a very important impact on the field of education.
[0003] For example, a patent document with publication number CN113065757A discloses a method and device for evaluating the teaching quality of an online course, the method comprising: obtaining video data of an online course, wherein the video data includes an object to be evaluated; performing artificial intelligence processing on the video data to obtain a plurality of feature data; inputting the plurality of feature data into a pre-trained evaluation model; obtaining an evaluation result obtained by the evaluation model based on the plurality of feature data; wherein, paragraph
[0052] of the specification of the patent scheme also clearly points out that the scheme is based on the evaluation of the teacher's teaching quality; however, the evaluation of an online course should be based on the students' perspective, and whether the students learn and comprehend more content is an important indicator for evaluating the teaching quality.
[0004] At present, the degree of concentration in online classroom learning, as the main aspect of students' classroom performance, is the basic basis for the evaluation of expressive education.
[0005] The current evaluation method uses computer vision technology to obtain students' video data using the student's computer terminal, and judges the students' concentration based on the student's video data. However, this form still has the following difficulties:
[0006] First, the environment of the student computer terminal is complex, the video quality is low, and a lot of data needs to be processed, which increases the amount of data processing;
[0007] Second, it is impossible to automatically and accurately identify students' movements or expressions and the differences between them, making it difficult to accurately extract and identify the details of students' movements or expressions;
[0008] Second, there is a lack of feature identification and indicator construction for students' concentration levels in class, making it impossible to comprehensively and objectively evaluate the quality of online classroom teaching. Summary of the invention
[0009] The purpose of the embodiments of the present invention is to provide a method and system for evaluating the quality of online education teaching, aiming to solve the technical problems raised in the above-mentioned background technology.
[0010] To achieve the above object, the present invention provides the following technical solutions.
[0011] In a first aspect of the present invention, a method for evaluating the quality of online education teaching is provided, the method comprising:
[0012] Based on the student-side learning device, a total of M×N original video data of M students in N expected learning periods are obtained;
[0013] Preprocessing each original video data to obtain a first picture data set of the original video data;
[0014] Inputting the first image data set into the posture behavior detection model, generating a first detection result according to the posture behavior detection result, and removing images with negative first detection results from the first image data set to obtain a second image data set;
[0015] Inputting the second image data set into the facial expression detection model, and generating a second detection result according to the facial expression detection result;
[0016] Based on the second test result, an evaluation score is obtained to characterize the concentration level of the mth student in the nth expected learning period; and the average value A of the evaluation scores of the M students in the nth expected learning period is calculated. n , for M A n Conduct statistics, obtain the teaching quality evaluation value of the entire online course and output it.
[0017] As a further solution of the present invention, the step of preprocessing the original video data includes:
[0018] Extracting multiple frames of images from the original video data based on a preset time interval;
[0019] Detect student faces in frame images based on the MTCNN detection algorithm to obtain multiple face images;
[0020] The face image size is scaled based on the bilinear interpolation algorithm, and the frame image is normalized to a size of 640×640×3;
[0021] Among them, the conversion relationship for normalizing and scaling the frame image is as follows:
[0022] x 1 =R x × 0 (1);
[0023] y 1 =R y ×y 0 (2);
[0024] In formula (1) and formula (2): R x Indicates the scaling ratio of the image in the x direction; R y Indicates the scaling ratio of the image in the y direction; x 1 Indicates the coordinate value of the frame image in the x direction after scaling transformation, y 1 Indicates the coordinate value of the frame image in the y direction after scaling transformation; x 0 Indicates the coordinate value of the original frame image in the x direction, y 0 Indicates the coordinate value of the original frame image in the y direction.
[0025] As a further solution of the present invention, the step of detecting the student face in the frame image based on the MTCNN detection algorithm includes:
[0026] Based on the scale transformation of the frame image, a picture pyramid of the frame image is constructed;
[0027] The image pyramid is imported into the MTCNN detection algorithm model, and the full convolutional network is used to perform preliminary feature extraction and candidate box selection on the frame image. The bounding box regression method is used to perform multiple bounding box regression adjustments on the candidate boxes, and non-maximum suppression is used to merge highly overlapping candidate boxes.
[0028] As a further solution of the present invention, the detection results of detecting the student face in the frame image based on the MTCNN detection algorithm include classification detection results, regression detection results of candidate frames and regression detection results of key feature points of the face; wherein:
[0029] In the classification detection results, the cross entropy loss function is calculated for each candidate box sample i:
[0030]
[0031] In formula (3): t i It indicates the probability that the convolutional network predicts that the image sample i is a face; represents the ground-truth label,
[0032] In the regression detection results of the candidate boxes, for each candidate box, the upper left coordinate, height and width of the candidate box between it and the nearest ground-truth are predicted. The MTCNN detection algorithm model learns the regression problem of the target, and its loss function is the Euclidean distance loss function:
[0033]
[0034] In formula (4): Represents the regression coordinates predicted by the fully convolutional network; Represents the coordinates of the ground-truth, including the upper left coordinates, height, and width of the candidate box;
[0035] In the regression detection results of key facial feature points, Euclidean distance loss is used:
[0036]
[0037] In formula (5): represents the coordinates of facial feature points predicted by the network, Represents the coordinates of the ground-truth, including the 6 coordinates of the facial feature points, a total of 12 values;
[0038] Among them, there are six facial feature points, namely the left eye, right eye, nose tip, left corner of the mouth, right corner of the mouth and chin.
[0039] As a further solution of the present invention, the first image data set is input into the posture behavior detection model, and the step of generating a first detection result according to the posture behavior detection result includes:
[0040] Map and match the facial feature points with a known three-dimensional face model, and establish the translation matrix T and rotation matrix Z from the three-dimensional model to the two-dimensional face image;
[0041] Based on the one-to-one correspondence between quaternions and Euler angles, the head posture Euler angles of the face image are calculated by quaternions. The quaternion of the rotation matrix vector is expressed as: G(α, β, λ, ω); where α 2 +β 2 +λ 2 +ω 2 =1, It is expressed as the rotation angle, and C represents the rotation axis;
[0042] The calculation formula of Euler angle is:
[0043]
[0044] θ x Represents the rotation angle around the x-axis; θ y Represents the angle around the y-axis; θ z Represents the angle around the z-axis;
[0045] Using the values of the Euler angles and their mean, variance, and standard deviation, we construct the head posture Euler angle feature vector c. The expression of c is (J 1 , J 2 , J 3 , U 1 , U 2 , U 3), mean value U 1 , Variance U 2 , standard deviation U 3 The calculation method is as follows:
[0046] Mean: J 1 represents the rolling angle of the Euler angle, J 2 represents the pitch angle of the Euler angle, J 3 represents the yaw angle in Euler angles;
[0047] variance:
[0048] Standard Deviation:
[0049] The feature vector c is input into a two-layer Bayesian neural network to obtain a first detection result.
[0050] As a further solution of the present invention, before the step of mapping and matching the facial feature points with a known three-dimensional face model, the first image data set is input into the gesture behavior detection model, and the step of generating the first detection result according to the gesture behavior detection result also includes:
[0051] The facial feature points are mapped and matched with a known 3D face model to obtain the 3D coordinate position of the facial feature points in the world coordinate system; the coordinate point of the 3D coordinate position is converted from the world coordinate system to the camera coordinate system; the 3D coordinate point in the camera coordinate system is projected into the pixel coordinate system of the 2D face image.
[0052] As a further solution of the present invention, the second image data set is input into the facial expression detection model, and the step of generating a second detection result according to the facial expression detection result includes:
[0053] Use the Pytorch deep learning framework and the ResNet-50 network to build the initial network for facial expression detection;
[0054] Iteratively train the initial network for facial expression detection using the pre-trained model parameters, and save the model parameters after the training is completed;
[0055] The saved model parameters are loaded into the initial network for facial expression detection to obtain a trained facial expression detection model, the second image data set is input into the model to obtain a facial expression detection result, and a second detection result is determined based on the facial expression detection result.
[0056] As a further solution of the present invention, before inputting the second image data set into the model, the step of processing the second image data set is further included, specifically including:
[0057] Use the second image dataset to construct a topological map based on facial feature points:
[0058] W FL =(D FL , E FL );
[0059] in, is a collection of nodes, is the set of edges connecting nodes, and N is the number of nodes;
[0060] The graph attention network with two stacked graph convolution layers is used to extract features from the topological graph of the dataset;
[0061] Cascade the features of each node in the topology graph to obtain the fusion feature X F express:
[0062]
[0063] in, Indicates appearance characteristics, Represents geometric features.
[0064] As a further solution of the present invention, for M A n The way to get the teaching quality evaluation value of the entire online course is as follows:
[0065]
[0066] Where M represents the number of expected learning periods.
[0067] In a second aspect of the present invention, a system for evaluating the quality of online education teaching is provided, the system comprising:
[0068] A data processing module is used to obtain a total of M×N original video data of M students in N expected learning periods based on a student-side learning device; pre-process each original video data to obtain a first image data set of the original video data;
[0069] A first detection module is used to input the first image data set into the posture behavior detection model, generate a first detection result according to the posture behavior detection result, and remove the images with negative first detection results from the first image data set to obtain a second image data set;
[0070] A second detection module, used for inputting the second image data set into the facial expression detection model, and generating a second detection result according to the facial expression detection result;
[0071] The result evaluation module is used to obtain an evaluation score for characterizing the concentration level of the mth student in the nth expected learning period based on the second detection result; and calculate the average value A of the evaluation scores of the M students in the nth expected learning period. n , for M A n Conduct statistics, obtain the teaching quality evaluation value of the entire online course and output it.
[0072] Compared with the prior art, the online education teaching quality evaluation method and system of the present invention have the following beneficial effects:
[0073] First, the present invention divides the entire online class into multiple expected learning periods, and judges the teaching quality of the entire online course by the learning status of each student in each expected learning period, thereby effectively reducing the data processing amount of the detection network model, and reducing the data processing amount while ensuring the accuracy of the evaluation;
[0074] Second, the present invention first detects the head state of the student user through the posture behavior detection model and the facial expression detection model, and based on the head state result of the student user, further determines the learning state by judging the expression of the student user, so that the judgment of the learning state of the student user is more accurate;
[0075] Third, the present invention introduces the MTCNN detection algorithm to detect the student faces in the frame images to obtain the student face images, which are processed and provided to the posture behavior detection model and the facial expression detection model to perform head behavior detection and facial expression detection in turn; the MTCNN detection algorithm for detecting the student faces can have better robustness to the environment in which the student users are located and the changes in the deflection angle, and has good recognition ability;
[0076] Fourth, in the posture behavior detection model of the present invention, the facial feature points are mapped and matched with a known three-dimensional face model, and the translation matrix and rotation matrix of the three-dimensional model to the two-dimensional face image are established. The feature vector generated based on the calculation of the Euler angle is input into the two-layer Bayesian neural network to obtain the head posture behavior of the student user, which can better realize the head posture estimation of the student user when listening to the class;
[0077] Fifth, in the facial expression detection model of the present invention, by constructing a topological map of facial feature points, the features of multiple nodes of the topological map are cascaded to achieve the fusion of key facial feature points, and further combine appearance features and geometric features to obtain a more robust facial feature representation, and then use pre-trained model parameters to iteratively train the initial network for facial expression detection to obtain an expression detection model with optimal parameters, thereby improving the accuracy of expression recognition.
[0078] These and other aspects of the present application will be more concise and understandable in the following description of the embodiments. It should be understood that the above general description and the following detailed description are only exemplary and explanatory and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0080] Figure 1 This is a flow chart of an online education teaching quality evaluation method of the present invention;
[0081] Figure 2 This is a flow chart of preprocessing raw video data in the online education teaching quality evaluation method of the present invention;
[0082] Figure 3 This is a flow chart of face image detection in the online education teaching quality evaluation method of the present invention;
[0083] Figure 4 It is a flow chart of head posture behavior detection in the online education teaching quality evaluation method of the present invention;
[0084] Figure 5 It is a schematic diagram of Euler angle deflection in the head posture behavior detection process of the present invention;
[0085] Figure 6 A flow chart of facial expression detection in the online education teaching quality evaluation method of the present invention;
[0086] Figure 7 This is a result block diagram of an online education teaching quality evaluation system of the present invention. DETAILED DESCRIPTION
[0087] Below, the present application is further described in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.
[0088] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0089] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are intended to distinguish two non-identical entities or non-identical parameters with the same name. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, other steps or units inherent to a process, method, system, product or device that includes a series of steps or units.
[0090] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0091] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0092] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0093] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments.
[0094] like Figure 1 As shown, an online education teaching quality evaluation method provided by an embodiment of the present invention includes:
[0095] Step S1: obtaining a total of M×N original video data of M students in N expected learning periods based on a student-side learning device; preprocessing each original video data to obtain a first image data set of the original video data;
[0096] Among them, the expected learning period is used to divide the entire process of the current online class. The division of the expected learning period is based on the expected learning start signal and the expected learning end signal input by the teacher and obtained by the computer device on the teacher side. The expected learning start signal indicates that the current class has entered the stage where students need to listen carefully, and the expected learning end signal indicates that the students in the current class can take a proper rest. The present invention can greatly reduce the amount of data processing by only processing the student-side video data in the expected learning period.
[0097] Step S2: inputting the first image data set into the posture behavior detection model, generating a first detection result according to the posture behavior detection result, and removing images with negative first detection results from the first image data set to obtain a second image data set;
[0098] In step S2 of the embodiment of the present invention, a negative detection result means that the posture behavior detection model is used to detect that the posture of the student at the student end does not conform to the posture of serious study; for example: the action of not looking directly at the display screen of the learning device at the student end, and the pictures containing negative actions are eliminated, and what are retained are multiple pictures whose posture behaviors meet the requirements, and the multiple pictures form a second picture data set.
[0099] For further information, please refer to Figure 1 In an embodiment of the present invention, the online education teaching quality evaluation method of the present invention further includes:
[0100] Step S3: inputting the second image data set into the facial expression detection model, and generating a second detection result according to the facial expression detection result;
[0101] In step S3 of the present invention, the second image data set contains images of students whose learning behavior and postures are consistent with the serious learning state. However, the learning state of students cannot be simply judged by whether the students' heads are not tilted. It is also necessary to further judge the students' facial expressions. Therefore, the detection result of the face label is determined according to the students' facial expressions. The faces of students in the expected learning period are generally divided into: happy, surprised, angry, disgusted, neutral, etc.
[0102] Step S4: Based on the second detection result, obtain an evaluation score for characterizing the concentration level of the mth student in the nth expected learning period; calculate the average value A of the evaluation scores of the M students in the nth expected learning period n , for M A n Conduct statistics, obtain the teaching quality evaluation value of the entire online course and output it.
[0103] In an embodiment of the present invention, the evaluation score of the degree of concentration of the student's learning status is calculated according to four levels, and the degree of concentration is divided into level 1, level 2, level 3, and level 4, a total of four reference values representing the degree of concentration; level 1 indicates that the student is in a very inattentive state, level 2 indicates that the student is in an inattentive state, level 3 indicates that the student is in a generally focused state, and level 4 indicates that the student is in a focused state.
[0104] Among them, in the embodiment of the present invention, for M A n The way to get the teaching quality evaluation value of the entire online course is as follows:
[0105]
[0106] Where M represents the number of expected learning periods, that is, the average evaluation score A of each expected learning period n The sum is calculated, and then the mean value after the sum is used as the final teaching quality evaluation value, and the corresponding evaluation result is found through the final teaching quality evaluation value;
[0107] For example, the evaluation results can be four levels: good, excellent, medium and poor. The teaching quality evaluation value corresponding to the poor level is 1-2.5; the teaching quality evaluation value corresponding to the medium level is 2.5-5; the teaching quality evaluation value corresponding to the good level is 5-7.5; and the teaching quality evaluation value corresponding to the excellent level is 7.5-10.
[0108] like Figure 2 As shown, in this embodiment of the present invention, the step of preprocessing the original video data includes:
[0109] Step S11: extracting a plurality of frame images from the original video data based on a preset time interval;
[0110] In step S11 of the present invention, by setting a preset time interval to extract frame images, key frame images can be used as the basis for data processing, effectively reducing the amount of data processing; illustratively, the preset time interval can be 1 second, 2 seconds, 3 seconds...; this embodiment does not specifically limit it;
[0111] Step S12: Detect the student faces in the frame images based on the MTCNN detection algorithm to obtain multiple face images;
[0112] Step S13: scaling the face image size based on a bilinear interpolation algorithm, and normalizing the frame image to a size of 640×640×3;
[0113] Among them, the conversion relationship for normalizing and scaling the frame image is as follows:
[0114] x 1 =R x × 0 (1);
[0115] y 1 =R y ×y 0 (2);
[0116] In formula (1) and formula (2): R x Indicates the scaling ratio of the image in the X direction; R y Indicates the scaling ratio of the image in the y direction; x 1Indicates the coordinate value of the frame image in the x direction after scaling transformation, y 1 Indicates the coordinate value of the frame image in the y direction after scaling transformation; x 0 Indicates the coordinate value of the original frame image in the x direction, y 0 Indicates the coordinate value of the original frame image in the y direction.
[0117] like Figure 3 As shown, the steps of detecting the student face in the frame picture based on the MTCNN detection algorithm include:
[0118] Step S111: constructing a picture pyramid of the frame picture based on the scale transformation of the frame picture;
[0119] Step S112: Import the image pyramid into the MTCNN detection algorithm model, use the full convolutional network to perform preliminary feature extraction and candidate box selection on the frame image, use the Bounding box regression method to perform multiple border regression adjustments on the candidate boxes, and use non-maximum suppression to merge highly overlapping candidate boxes.
[0120] Furthermore, the detection results of the student faces in the frame images based on the MTCNN detection algorithm include classification detection results, regression detection results of candidate frames and regression detection results of key facial feature points; wherein:
[0121] In the classification detection results, the cross entropy loss function is calculated for each candidate box sample i:
[0122]
[0123] In formula (3): t i It indicates the probability that the convolutional network predicts that the image sample i is a face; represents the ground-truth label,
[0124] In the regression detection results of the candidate boxes, for each candidate box, the upper left coordinate, height and width of the candidate box between it and the nearest ground-truth are predicted. The MTCNN detection algorithm model learns the regression problem of the target, and its loss function is the Euclidean distance loss function:
[0125]
[0126] In formula (4): Represents the regression coordinates predicted by the fully convolutional network; Represents the coordinates of the ground-truth, including the upper left coordinates, height, and width of the candidate box;
[0127] In the regression detection results of key feature points of the face, Euclidean distance loss is also used:
[0128]
[0129] In formula (5): represents the coordinates of facial feature points predicted by the network, Represents the coordinates of the ground-truth, including the 6 coordinates of the facial feature points, a total of 12 values;
[0130] Among them, there are six facial feature points, namely the left eye, right eye, nose tip, left corner of the mouth, right corner of the mouth and chin.
[0131] The present invention introduces an MTCNN detection algorithm to detect student faces in frame images to obtain student face images. After processing, the face images are provided to a posture behavior detection model and a facial expression detection model to perform head behavior detection and facial expression detection in turn. The MTCNN detection algorithm for detecting student faces can have better robustness to the environment in which the student users are located and changes in deflection angles, and has good recognition ability.
[0132] like Figure 4 and Figure 5 As shown, the present invention inputs the first image data set into the posture behavior detection model, and the step of generating the first detection result according to the posture behavior detection result includes:
[0133] Step S121: mapping and matching facial feature points with a known three-dimensional face model, and establishing a translation matrix T and a rotation matrix Z from the three-dimensional model to the two-dimensional face image;
[0134] Step S122: Based on the one-to-one correspondence between quaternions and Euler angles, the head posture Euler angles of the face image are calculated by quaternions. The quaternion of the rotation matrix vector is represented as: G(α, β, λ, ω); where α 2 +β 2 +λ 2 +ω 2 =1, It is expressed as the rotation angle, and C represents the rotation axis;
[0135] The calculation formula of Euler angle is:
[0136]
[0137] θ x Represents the rotation angle around the x-axis; θ y Represents the angle around the y-axis; θ z Represents the angle around the z-axis;
[0138] Step S123: Using the values of the Euler angles and their mean, variance, and standard deviation, construct the head posture Euler angle feature vector c, where the expression of c is (J 1 , J 2 , J 3 , U 1 , U 2 , U 3 ), mean value U 1 , Variance U 2 , standard deviation U 3 The calculation method is as follows:
[0139] Mean: J 1 represents the rolling angle of the Euler angle, J 2 represents the pitch angle of the Euler angle, J 3 represents the yaw angle in Euler angles;
[0140] variance:
[0141] Standard Deviation:
[0142] Step S124: input the feature vector c into a two-layer Bayesian neural network to obtain a first detection result.
[0143] Furthermore, since the head posture refers to a range relative to the camera, if the range of the learner's head posture in the image is to be calculated, a conversion of the relevant coordinate system is required; wherein, before the step of mapping and matching the facial feature points with a known three-dimensional face model, the first image data set is input into the posture behavior detection model, and the step of generating the first detection result according to the posture behavior detection result also includes:
[0144] The facial feature points are mapped and matched with a known 3D face model to obtain the 3D coordinate position of the facial feature points in the world coordinate system; the coordinate point of the 3D coordinate position is converted from the world coordinate system to the camera coordinate system; the 3D coordinate point in the camera coordinate system is projected into the pixel coordinate system of the 2D face image.
[0145] In the facial expression detection model of the present invention, a topological map of facial feature points is constructed, and the features of multiple nodes of the topological map are cascaded to achieve the fusion of key facial feature points, and further combine appearance features and geometric features to obtain a more robust facial feature representation, and then use pre-trained model parameters to iteratively train the initial network for facial expression detection to obtain an expression detection model with optimal parameters, thereby improving the accuracy of expression recognition.
[0146] like Figure 6As shown, in the present invention, the second image data set is input into the facial expression detection model, and the step of generating the second detection result according to the facial expression detection result includes:
[0147] Step S131: Use the Pytorch deep learning framework and the ResNet-50 network to establish an initial network for facial expression detection;
[0148] Step S132: iteratively training the initial network for facial expression detection using the pre-trained model parameters, and saving the model parameters after the training is completed;
[0149] Step S133: load the saved model parameters into the facial expression detection initial network, obtain the trained facial expression detection model, input the second image data set into the model, obtain the facial expression detection result, and determine the second detection result based on the facial expression detection result.
[0150] Furthermore, in the embodiment of the present invention, before the second image data set is input into the model, a step of processing the second image data set is also included, specifically including:
[0151] Use the second image dataset to construct a topological map based on facial feature points:
[0152] W FL =(D FL , E FL );
[0153] in, is a collection of nodes, is the set of edges connecting nodes, and N is the number of nodes;
[0154] The graph attention network with two stacked graph convolution layers is used to extract features from the topological graph of the dataset;
[0155] Cascade the features of each node in the topology graph to obtain the fusion feature X F express:
[0156]
[0157] in, Indicates appearance characteristics, Represents geometric features.
[0158] Therefore, in the online education teaching quality evaluation method of the present invention, the entire online class is divided to obtain multiple expected learning periods, and the teaching quality of the entire online course is judged by the learning status of each student in each expected learning period, which effectively reduces the data processing amount of the detection network model, and reduces the data processing amount while ensuring the accuracy of the evaluation;
[0159] Through the posture behavior detection model and the facial expression detection model, the head state of the student user is first detected. Based on the head state result of the student user, the learning state is further determined by judging the expression of the student user, so that the judgment of the learning state of the student user is more accurate.
[0160] In addition, in the posture behavior detection model of the present invention, the facial feature points are mapped and matched with a known three-dimensional facial model, and the translation matrix and rotation matrix of the three-dimensional model to the two-dimensional facial image are established. The feature vector generated based on the calculation of the Euler angle is input into the two-layer Bayesian neural network to obtain the head posture behavior of the student user, which can better realize the head posture estimation of the student user when listening to the class;
[0161] like Figure 7 As shown, in a second aspect of the present invention, there is also provided an online education teaching quality evaluation system, the system comprising:
[0162] The data processing module 501 is used to obtain a total of M×N original video data of M students in N expected learning periods based on the student-side learning device; pre-process each original video data to obtain a first image data set of the original video data;
[0163] A first detection module 502 is used to input the first image data set into the gesture behavior detection model, generate a first detection result according to the gesture behavior detection result, and remove the images with negative first detection results from the first image data set to obtain a second image data set;
[0164] A second detection module 503, used for inputting the second image data set into the facial expression detection model, and generating a second detection result according to the facial expression detection result;
[0165] The result evaluation module 504 is used to obtain an evaluation score for characterizing the concentration level of the m-th student in the n-th expected learning period based on the second detection result; calculate the average value A of the evaluation scores of the M students in the n-th expected learning period n , for M A n Conduct statistics, obtain the teaching quality evaluation value of the entire online course and output it.
[0166] A third aspect of the embodiments of the present invention further provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the online education teaching quality evaluation method of any one of the above embodiments is implemented, and the online education teaching quality evaluation method includes:
[0167] Step S1: obtaining a total of M×N original video data of M students in N expected learning periods based on a student-side learning device; preprocessing each original video data to obtain a first image data set of the original video data;
[0168] Step S2: inputting the first image data set into the posture behavior detection model, generating a first detection result according to the posture behavior detection result, and removing images with negative first detection results from the first image data set to obtain a second image data set;
[0169] Step S3: inputting the second image data set into the facial expression detection model, and generating a second detection result according to the facial expression detection result;
[0170] Step S4: Based on the second detection result, obtain an evaluation score for characterizing the concentration level of the mth student in the nth expected learning period; calculate the average value A of the evaluation scores of the M students in the nth expected learning period n , for M A n Conduct statistics, obtain the teaching quality evaluation value of the entire online course and output it.
[0171] Furthermore, the computer device includes a processor and a memory, and may also include: an input system and an output system. The processor, memory, input system and output system may be connected via a bus or other means, and the input system may receive input digital or character information, and generate signal input related to the migration of online education teaching quality evaluation. The output system may include display devices such as display screens.
[0172] As a non-volatile computer-readable storage medium, the memory can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the program instructions / modules corresponding to the online education teaching quality evaluation method in the embodiment of the present application. The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of the online education teaching quality evaluation method, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the local module via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0173] The processor may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip in some embodiments. The processor is generally used to control the overall operation of the computer device. In this embodiment, the processor is used to run the program code stored in the memory or process data. The processors of multiple computer devices of the computer device of this embodiment execute various functional applications and data processing of the server by running non-volatile software programs, instructions and modules stored in the memory, that is, implementing the steps of the online education teaching quality evaluation method of the above method embodiment.
[0174] It should be understood that, in the absence of mutual conflicts, all the embodiments, features and advantages described above for the online education teaching quality evaluation method according to the present invention are also applicable to the online education teaching quality evaluation and storage medium according to the present invention.
[0175] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.
[0176] Finally, it should be noted that the computer-readable storage medium (e.g., memory) herein may be a volatile memory or a nonvolatile memory, or may include both a volatile memory and a nonvolatile memory. As an example and not by way of limitation, a nonvolatile memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. A volatile memory may include a random access memory (RAM), which may act as an external cache memory. As an example and not by way of limitation, RAM may be obtained in a variety of forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.
[0177] The various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure herein may be implemented or executed using the following components designed to perform such functions: a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but alternatively, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and / or any other such configuration.
[0178] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0179] It should be understood that, as used herein, the singular form "a" or "an" is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations of one or more of the items listed in association. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments.
[0180] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A method for evaluating the quality of online education, characterized in that: The method includes: Based on the student-side learning device, a total of M×N original video data of M students in N expected learning periods are obtained; Preprocessing each original video data to obtain a first picture data set of the original video data; Inputting the first image data set into the posture behavior detection model, generating a first detection result according to the posture behavior detection result, and removing images with negative first detection results from the first image data set to obtain a second image data set; Inputting the second image data set into the facial expression detection model, and generating a second detection result according to the facial expression detection result; Based on the second test result, an evaluation score is obtained to characterize the concentration level of the mth student in the nth expected learning period; and the average of the evaluation scores of the M students in the nth expected learning period is calculated. , for M Conduct statistics to obtain and output the teaching quality evaluation value of the entire online course; Inputting the second image data set into the facial expression detection model, and generating a second detection result according to the facial expression detection result comprises: Use the Pytorch deep learning framework and the ResNet-50 network to build the initial network for facial expression detection; Iteratively train the initial network for facial expression detection using the pre-trained model parameters, and save the model parameters after the training is completed; Loading the saved model parameters into the initial network for facial expression detection to obtain a trained facial expression detection model, inputting the second image data set into the model to obtain a facial expression detection result, and determining a second detection result based on the facial expression detection result; Before inputting the second image data set into the model, the method further includes a step of processing the second image data set, specifically including: Use the second image dataset to construct a topological map based on facial feature points: ; in, is a collection of nodes, is the set of edges connecting nodes, and N is the number of nodes; The graph attention network with two stacked graph convolution layers is used to extract features from the topological graph of the dataset; Cascade the features of each node in the topology graph to obtain the fusion feature express: ; in, Indicates appearance characteristics, Represent geometric features; For M The way to get the teaching quality evaluation value of the entire online course is as follows: ; Where M represents the number of expected learning periods.
2. The online education teaching quality evaluation method according to claim 1 is characterized in that: The steps of preprocessing the raw video data include: Extracting multiple frames of images from the original video data based on a preset time interval; Detect student faces in frame images based on the MTCNN detection algorithm to obtain multiple face images; The face image size is scaled based on the bilinear interpolation algorithm, and the frame image is normalized to a size of 640×640×3; Among them, the conversion relationship for normalizing and scaling the frame image is as follows: (1); (2); In formula (1) and formula (2): Indicates the scaling ratio of the image in the x direction; Indicates the scaling ratio of the image in the y direction; Indicates the coordinate value of the frame image in the x direction after scaling transformation. Indicates the coordinate value of the frame image in the y direction after scaling transformation; Indicates the coordinate value of the original frame image in the x direction. Indicates the coordinate value of the original frame image in the y direction.
3. The online education teaching quality evaluation method according to claim 2 is characterized in that: The steps of detecting the student face in the frame image based on the MTCNN detection algorithm include: Based on the scale transformation of the frame image, a picture pyramid of the frame image is constructed; The image pyramid is imported into the MTCNN detection algorithm model, and the full convolutional network is used to perform preliminary feature extraction and candidate box selection on the frame image. The bounding box regression method is used to perform multiple bounding box regression adjustments on the candidate boxes, and non-maximum suppression is used to merge highly overlapping candidate boxes.
4. The online education teaching quality evaluation method according to claim 3 is characterized in that: The detection results of the student faces in the frame images based on the MTCNN detection algorithm include classification detection results, regression detection results of candidate frames and regression detection results of key facial feature points; among which: In the classification detection results, the cross entropy loss function is calculated for each candidate box sample i: (3); In formula (3): It indicates the probability that the convolutional network predicts that the image sample i is a face; represents the ground-truth label, ∈[0,1]; In the regression detection results of the candidate boxes, for each candidate box, the upper left coordinate, height and width of the candidate box between it and the nearest ground-truth are predicted. The MTCNN detection algorithm model learns the regression problem of the target, and its loss function is the Euclidean distance loss function: (4); In formula (4): Represents the regression coordinates predicted by the fully convolutional network; Represents the coordinates of the ground-truth, including the upper left coordinates, height, and width of the candidate box; In the regression detection results of key feature points of the face, Euclidean distance loss is also used: (5); In formula (5): represents the coordinates of facial feature points predicted by the network, Represents the coordinates of the ground-truth, including the 6 coordinates of the facial feature points, a total of 12 values; Among them, there are six facial feature points, namely the left eye, right eye, nose tip, left corner of the mouth, right corner of the mouth and chin.
5. The online education teaching quality evaluation method according to claim 4 is characterized in that: The first image data set is input into the posture behavior detection model, and the step of generating a first detection result according to the posture behavior detection result includes: Map and match the facial feature points with a known three-dimensional face model, and establish the translation matrix T and rotation matrix Z from the three-dimensional model to the two-dimensional face image; Based on the one-to-one correspondence between quaternions and Euler angles, the head posture Euler angles of the face image are calculated by quaternions. The quaternion representation of the rotation matrix vector is: ;in, , , , , ; It is expressed as the rotation angle, and C represents the rotation axis; The calculation formula of Euler angle is: (6); Indicates the rotation angle around the x-axis; Represents the angle around the y-axis; Represents the angle around the z-axis; Using the values of the Euler angles and their mean, variance, and standard deviation, we construct the head posture Euler angle feature vector c. The expression of c is ( , , , , , ), mean ,variance , Standard Deviation The calculation method is as follows: Mean: , represents the roll angle of the Euler angle, represents the pitch angle in Euler angles, represents the yaw angle in Euler angles; variance: ; Standard Deviation: ; The feature vector c is input into a two-layer Bayesian neural network to obtain a first detection result.
6. The online education teaching quality evaluation method according to claim 5 is characterized in that: Before the step of mapping and matching the facial feature points with a known three-dimensional face model, the first image data set is input into a gesture behavior detection model, and the step of generating a first detection result according to the gesture behavior detection result further includes: The facial feature points are mapped and matched with a known 3D face model to obtain the 3D coordinate position of the facial feature points in the world coordinate system; the coordinate point of the 3D coordinate position is converted from the world coordinate system to the camera coordinate system; the 3D coordinate point in the camera coordinate system is projected into the pixel coordinate system of the 2D face image.
7. An evaluation system for implementing the online education teaching quality evaluation method as described in any one of claims 1 to 6, characterized in that: The evaluation system includes: A data processing module is used to obtain a total of M×N original video data of M students in N expected learning periods based on a student-side learning device; pre-process each original video data to obtain a first image data set of the original video data; A first detection module is used to input the first image data set into the posture behavior detection model, generate a first detection result according to the posture behavior detection result, and remove the images with negative first detection results from the first image data set to obtain a second image data set; A second detection module, used for inputting the second image data set into the facial expression detection model, and generating a second detection result according to the facial expression detection result; A result evaluation module is used to obtain an evaluation score for characterizing the concentration level of the mth student in the nth expected learning period based on the second test result; and calculate the average of the evaluation scores of the M students in the nth expected learning period. , for M Conduct statistics, obtain the teaching quality evaluation value of the entire online course and output it.
