An online learning attention assessment method and system based on eye tracking
Through the online learning attention assessment method based on eye tracking, eye movement data and convolutional neural network models are used to automatically assess learners' attention, which solves the problem of teachers' heavy burden and inability to truly record learning status, and improves the quality of online teaching.
Patent Information
- Application Number
- CN202410884307.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-07-03
AI Technical Summary
The current method of assessing learner attention in online education relies on teacher perception or wearable devices, which results in a heavy burden on teachers and the inability to truly record learning status, affecting the quality of teaching.
An online learning attention assessment method based on eye tracking is adopted. By collecting and analyzing eye movement data, the eye prediction convolutional neural network model is used to train the pitch angle and yaw angle, and the learning attention is calculated by combining blink frequency, gaze analysis and sitting posture analysis. Scoring and automated assessment.
Reduce the teaching pressure of teachers, improve the quality of online teaching, realize the assessment of learning attention in a non-inductive state, and ensure the teaching effect.
Smart Images

Figure CN118411757B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of attention assessment technology, and in particular to an online learning attention assessment method and system based on eye tracking. Background Art
[0002] With the development of computer technology, network communication technology and artificial intelligence technology, the network and intelligent transformation of education has become an issue that needs to be considered and solved urgently in current education. Guiding systematic changes in education, such as intelligent evaluation of the effect of education through intelligent perception and pattern recognition, completing personalized learning recommendations through intelligent recommendation systems, and making full use of human subjective initiative with the help of artificial intelligence technology in the application scenarios of education, so as to truly achieve teaching and learning, is a very important part of the future development of education.
[0003] How to effectively evaluate learners' learning attention in online education, further understand learners' learning status, and thus improve learners' learning efficiency is an important part of online education. Traditional online education relies too much on teachers' teaching experience and the arrangement of teaching content, and often ignores learners' learning status, resulting in low teaching quality and failure to achieve the expected teaching effect. At present, the main methods of evaluating online learning attention are: (1) relying on teachers' perception, which causes a heavy burden on teachers and is not conducive to reducing teachers' teaching pressure; (2) with the popularization of wearable devices, some online learning attention assessments rely on the signal collection and analysis of wearable devices. Learners may pay attention to the devices they wear and pretend to study hard, and it is impossible to truly record learners' learning status. Summary of the invention
[0004] The present invention solves the technical problems in the prior art of heavy burden on teachers and inability to truly record the learning status of learners by providing an online learning attention assessment method and system based on eye tracking, thereby achieving the technical effect of reducing the burden on teachers and improving the quality of online teaching.
[0005] The present invention provides an online learning attention assessment method based on eye tracking, comprising:
[0006] Collect training face images and eye data, and obtain model training pitch angles and yaw angles based on the eye data;
[0007] Inputting the face image and the model training pitch angle and yaw angle into the eye-gaze prediction convolutional neural network model for training, so that the loss is reduced to a preset convergence value, and obtaining a trained eye-gaze prediction model;
[0008] Inputting the predicted face image into the eye prediction model to obtain real-time pitch angle, yaw angle and eye closure data;
[0009] Obtaining the blink frequency through the eye closing data , through the formula Calculate the contribution of blink frequency to learning attention evaluation ; Where P is the frequency of normal people blinking;
[0010] By formula Calculate the contribution of gaze analysis to learning attention assessment ;in, is the standard deviation of the eye pitch angle during the eye opening time, is the standard deviation of the eye yaw angle during the eye opening time;
[0011] By formula Calculate the contribution of sitting posture analysis to learning attention assessment ;in, is the deviation disturbance between the eye pitch angle corresponding to the real-time sitting posture and the standard sitting posture, is the deviation disturbance between the eye yaw angle corresponding to the real-time sitting posture and the standard sitting posture;
[0012] By formula Calculate the learning attention score ; Among them, A is the scoring weight of blinking frequency, B is the scoring weight of gaze analysis, and C is the scoring weight of sitting posture analysis.
[0013] Specifically, obtaining the model training pitch angle and yaw angle based on the eye data includes:
[0014] By formula The model training pitch angle is calculated; wherein, is the inverse tangent function, is the vertical coordinate of the eye on the screen, is the vertical coordinate of the center point of the screen, is the distance from the eye to the screen;
[0015] By formula The model training yaw angle is calculated; wherein, is the horizontal coordinate of the eye on the screen, The horizontal coordinate of the center point of the screen.
[0016] Specifically, the predicted face image is input into the eye prediction model to obtain real-time pitch angle, yaw angle and eye closure data, including:
[0017] The predicted face image is input into the vision prediction model, and the predicted face image is processed through a convolution block to obtain a face feature map; the predicted face image is also processed through a face landmark detection module to obtain a landmark image, and then a landmark feature map is obtained through a convolution block network feature extraction;
[0018] Multiplying the face feature map by the marker feature map by weights to obtain a new feature map;
[0019] The new feature map is sent to the residual block network, and then the real-time pitch angle and yaw angle are output respectively through two fully connected layers and a Softmax layer;
[0020] The marker feature map is sent to an eye closure detection module to obtain the eye closure data.
[0021] Specifically, through the formula Calculated ;in, is the eye pitch angle when the eyes are open, is the average eye pitch angle when eyes are open, is the total number of eye-opening moments during online learning;
[0022] By formula Calculated ;in, is the yaw angle of vision when the eyes are open, is the mean value of the eye yaw angle when the eyes are open;
[0023] By formula Calculated ;
[0024] By formula Calculated .
[0025] Specifically, in the formula Calculate the learning attention score After that, it also includes:
[0026] Get the dataset , and build a learning model to learn the scoring weights of different behaviors, so that Minimum, get the optimal fitting weight ;
[0027] Through the scoring function Calculate the final learning attention score .
[0028] The present invention also provides an online learning attention assessment system based on eye tracking, comprising:
[0029] A training data acquisition module, used to acquire training face images and eye data, and obtain the model training pitch angle and yaw angle based on the eye data;
[0030] A model training module, used for inputting the face image and the model training pitch angle and yaw angle into the eye-gaze prediction convolutional neural network model for training, so that the loss is reduced to a preset convergence value, and a trained eye-gaze prediction model is obtained;
[0031] An eye data acquisition module, used for inputting the predicted face image into the eye prediction model to obtain real-time pitch angle, yaw angle and eye closure data;
[0032] A blink contribution calculation module is used to obtain the blink frequency through the eye closure data. , through the formula Calculate the contribution of blink frequency to learning attention evaluation ; Where P is the frequency of normal people blinking;
[0033] The gaze analysis contribution calculation module is used to calculate the Calculate the contribution of gaze analysis to learning attention assessment ;in, is the standard deviation of the eye pitch angle during the eye opening time, is the standard deviation of the eye yaw angle during the eye opening time;
[0034] Sitting posture analysis contribution calculation module is used to calculate the contribution of the posture analysis through the formula Calculate the contribution of sitting posture analysis to learning attention assessment ;in, is the deviation disturbance between the eye pitch angle corresponding to the real-time sitting posture and the standard sitting posture, is the deviation disturbance between the eye yaw angle corresponding to the real-time sitting posture and the standard sitting posture;
[0035] Learn the attention scoring module to pass the formula Calculate the learning attention score ; Among them, A is the scoring weight of blinking frequency, B is the scoring weight of gaze analysis, and C is the scoring weight of sitting posture analysis.
[0036] Specifically, the training data collection module includes:
[0037] A data acquisition unit, used for acquiring training face images and eye data;
[0038] The pitch angle calculation unit is used to calculate the pitch angle through the formula The model training pitch angle is calculated; wherein, is the inverse tangent function, is the vertical coordinate of the eye on the screen, is the vertical coordinate of the center point of the screen, is the distance from the eye to the screen;
[0039] The yaw angle calculation unit is used to calculate the yaw angle through the formula The model training yaw angle is calculated; wherein, is the horizontal coordinate of the eye on the screen, The horizontal coordinate of the center point of the screen.
[0040] Specifically, the vision data acquisition module includes:
[0041] A marker feature map extraction unit is used to input the predicted face image into the vision prediction model, and the predicted face image is passed through a convolution block to obtain a face feature map; the predicted face image is also passed through a face marker detection module to obtain a marker image, and then a convolution block network feature extraction is performed to obtain a marker feature map;
[0042] A feature map generating unit, used for performing weighted multiplication on the face feature map and the marker feature map to obtain a new feature map;
[0043] An angle output unit, used to send the new feature map into the residual block network, and then output the real-time pitch angle and yaw angle respectively through two fully connected layers and a Softmax layer;
[0044] The eye closure data acquisition unit is used to send the marker feature map to the eye closure detection module to obtain the eye closure data.
[0045] Specifically, it also includes:
[0046] The standard deviation calculation module of the eye elevation angle is used to calculate the standard deviation of the eye elevation angle through the formula Calculated ;in, is the eye pitch angle when the eyes are open, is the average eye pitch angle when eyes are open, is the total number of eye-opening moments during online learning;
[0047] The eye yaw angle standard deviation calculation module is used to calculate the standard deviation of the eye yaw angle through the formula Calculated ;in, is the yaw angle of vision when the eyes are open, is the mean value of the eye yaw angle when the eyes are open;
[0048] The eye pitch angle deviation disturbance calculation module is used to calculate the Calculated ;
[0049] The eye yaw angle deviation disturbance calculation module is used to calculate the Calculated .
[0050] Specifically, it also includes:
[0051] The module for obtaining the optimal fitting weight is used to obtain the data set , and build a learning model to learn the scoring weights of different behaviors, so that Minimum, get the optimal fitting weight ;
[0052] Finally, we learn the attention scoring module to pass the scoring function Calculate the final learning attention score .
[0053] One or more technical solutions provided in the present invention have at least the following technical effects or advantages:
[0054] 1. First collect training face images and eye data, and obtain model training pitch angle and yaw angle based on eye data; input the face images and model training pitch angle and yaw angle into the eye prediction convolutional neural network model for training, so that the loss is reduced to a preset convergence value, and a trained eye prediction model is obtained; input the predicted face images into the eye prediction model to obtain real-time pitch angle, yaw angle and closed eyes data; then analyze student behavior based on the pitch angle, yaw angle and closed eyes data to achieve online learning attention evaluation. The present invention is naturally integrated into the scene of online learning network teaching, and does not interfere with the online teaching of teachers and learners. Teachers do not need to take out extra energy to observe the learning status of students in front of the camera while teaching, which reduces the teaching pressure of teachers, and for learners, the evaluation of learning attention is completed in an unconscious state, avoiding distraction, and ensuring the quality of online teaching.
[0055] 2. When there is no labeled data of learner attention scores or in cold start scenarios, the present invention uses the contribution of predefined behaviors to online learning attention to form the final learning attention score. When there is a batch of standard data on learner attention scores, a learning model can be constructed to learn the scoring weights of different behaviors, obtain the optimal fitting weights, and then obtain the scoring function. In the online learning scenario, the three basic contribution parameters required to calculate the predefined behaviors are obtained through the vision prediction model, and then the online attention evaluation is completed based on the attention scoring function, which further improves the quality of online teaching. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 Schematic diagram of angle information corresponding to eye direction in an embodiment of the present invention;
[0057] Figure 2 A flow chart of an online learning attention assessment method based on eye tracking provided by an embodiment of the present invention;
[0058] Figure 3 A typical one-to-one online education user interface and usage scenario diagram;
[0059] Figure 4 Schematic diagram of the structure of the eye image annotation system in an embodiment of the present invention;
[0060] Figure 5 This is a working principle diagram of the vision prediction model in an embodiment of the present invention;
[0061] Figure 6 A module diagram of an online learning attention assessment system based on eye tracking provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0062] The embodiments of the present invention provide an online learning attention assessment method and system based on eye tracking, thereby solving the technical problems in the prior art of heavy burden on teachers and inability to truly record the learning status of learners, thereby achieving the technical effect of reducing the burden on teachers and improving the quality of online teaching.
[0063] The technical solution in the embodiment of the present invention is to solve the above technical problems, and the overall idea is as follows:
[0064] The processing flow of the embodiment of the present invention is roughly divided into four steps:
[0065] Step 1: Image annotation and data preparation stage; in this stage, with the help of gaze or line of sight detection tools such as eye trackers, a set of image acquisition and automatic annotation systems are designed to associate image data with the direction of gaze in the image, and complete the annotation process of image data required by the gaze prediction model.
[0066] Step 2: Image data preprocessing stage; This stage mainly performs face detection and preprocessing on the collected images, eliminates interference other than the face parts, and truly simulates the face images collected in the online education scenario. In order to intuitively reflect the direction of the eyes, the coordinates are converted into angle information, namely the pitch angle and the yaw angle. Among them, the pitch angle is relative to Figure 1 The rotation angle of the X axis. When we look up, the pitch angle is positive; when we look down, the pitch angle is negative; when we look straight, the pitch angle is 0. Its range is -90 degrees to 90 degrees. The yaw angle is relative to Figure 1The rotation angle of the Y axis; when the head is tilted to the left, the yaw angle is negative; when the head is tilted to the right, the yaw angle is positive; when the head is in the middle, the yaw angle is 0. Its range is -90 degrees to 90 degrees.
[0067] The third step: the gaze prediction model training stage; this stage mainly involves the design of the gaze prediction model and the training of the model based on the pre-processed and labeled face image data.
[0068] Step 4: Learning attention scoring stage; In this stage, based on the trained eye direction prediction model, a behavior analysis scoring model is designed to complete the online learning attention assessment and give the student's online learning attention score in real time. In the model prediction stage, in the actual online learning scenario, the face is captured by the computer camera, and the face image is passed through multiple layers of convolution blocks to obtain the feature map corresponding to the face. In order to keep the size consistent with the face feature map, a large convolution is used to convert the face marker image into a face key point feature map. Then, the face key point feature map is multiplied with the elements of the corresponding position of the face feature map to obtain the final feature map, which is then sent to the multi-layer residual block network. Then, according to the output branch, both sides pass through their own fully connected layers and output two angles respectively, so that the two direction angle information of the eye in the online scene can be obtained. At the same time, the eye closure result is obtained based on the face marker image through the eye closure detection, so that the tracking result including the eye closure direction information and the eye closure result is finally obtained.
[0069] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0070] like Figure 2 As shown, the online learning attention assessment method based on eye tracking provided by an embodiment of the present invention includes:
[0071] Step S110: collecting training face images and eye data, and obtaining model training pitch angles and yaw angles based on the eye data;
[0072] This step is specifically described to collect training face images and eye data, including:
[0073] A typical online education learning scenario is as follows: Figure 3 As shown in the figure, the screen shows a schematic diagram of an online education system. The upper left corner shows the teacher teaching, and the right side shows the student learning. Both images are transmitted in real time through the webcam. The middle of the screen shows the teaching content. During the teaching process, the teacher will switch the PPT page in real time according to the teaching content. In order to achieve accurate, comprehensive and complete evaluation of the online learning status of the students in the screen. First, the eye image annotation system was built, such as Figure 4As shown in the figure, the system consists of four main parts. 1 is the eye signal acquisition device, i.e., the eye tracker, which is used to acquire eye signals; 2 is the computer screen, which is used as the screen to be displayed for eye tracking; 3 is the image acquisition device. In order to truly simulate the current common online learning scenario, the camera and other image acquisition devices are directly placed above the screen and fixed; 4 is the test bench, where the tester can put his head on the test bench and can freely rotate his head and eyes. The distance between the test bench and the computer screen is set according to the general distance in the actual online learning scenario. Based on the annotation system, the following image data acquisition and annotation work is completed.
[0074] Step 1: Use the corresponding marking points on the computer screen to complete the calibration of the eye signal acquisition equipment.
[0075] In order to correctly detect the sight results, the eye tracker needs to calibrate the instrument parameters according to the relative position of the tester. Connect the eye tracker to the computer and start the sight detection marking software attached to the eye tracker. According to the prompts, the tester adjusts the sight of the eyes according to the marked points given on the computer screen, and ensures that the eyes are aimed at the marked points to complete the calibration of the eye tracker. The purpose of calibration is to allow the tester to obtain a compensation observation when the sight of the tester is at the center of the screen. This compensation is used to correct the influence of different testers and different test platform positions on the eye tracker's capture of sight signals. Assume that the distance between the test platform and the computer screen is C, and the width and height of the screen are W and H respectively, which are constants. Taking the lower left corner of the screen as the origin of the three-dimensional coordinate system, the position coordinates of the center of the screen are (W / 2, H / 2, 0), and the coordinate position of the camera above the screen is (W / 2, H, 0).
[0076] Step 2: Use the eye tracker to capture the gaze, and turn on the camera to collect all facial images.
[0077] When the eye tracker is turned on, the eye gaze detection and marking software of the eye tracker will record the area of the screen where the eyes touch, and the camera above the screen will start to shoot the tester's face video, so that two sets of signals on the timeline are obtained. One set is the face video V recorded by the camera, which is a continuous image signal over time, and the other set is the distribution of the position of the eye gaze on the screen over time recorded by the eye tracker. Because the sampling frequency of the eye tracker is effective, and the eye tracker cannot record the position of the eye gaze on the screen when the tester closes his eyes, the distribution of the screen position over time obtained by the eye gaze detection and marking software is a discrete signal, recorded as .
[0078] Step 3: Use the timeline to align the eye tracking device’s gaze with the facial image captured by the camera to obtain the labeled data.
[0079] Through the collection of the above signals, two groups of signals on the timeline are obtained, one group is the face video V, and the other group is the signal of the line of sight on the screen , by aligning the timeline, The picture is cut out from the video V to form , so far we have obtained the corresponding distribution of the face image and the position of the eyes on the screen: .
[0080] The model training pitch angle and yaw angle are obtained based on the eye data, including:
[0081] By formula The model training pitch angle is calculated; where: is the inverse tangent function, is the vertical coordinate of the eye on the screen, is the vertical coordinate of the center point of the screen, is the distance from the eye to the screen;
[0082] By formula The model training yaw angle yaw is calculated; where, is the horizontal coordinate of the eye on the screen, The horizontal coordinate of the center point of the screen.
[0083] In this way, the pitch angle and yaw angle are obtained in radians. The radian information is converted into angle information with degrees as the dimension, which can be directly converted into angles by the radian conversion formula: 180*radians / to convert.
[0084] It should be noted that during the data collection process, the head of the subject is placed on the test bench, and in the actual online learning scenario, there is no test bench in the picture. In order to ensure that the data set is consistent with the actual scene and avoid the interference of the test bench image part on the subsequent training model, face detection is performed on the collected images, and only the relatively compact picture information containing the face part is intercepted, and other irrelevant parts such as the test bench are discarded. For this reason, this embodiment processes the collected images as follows:
[0085] Step 1: Face detection. Use a face detection model, such as the MTCNN model, to detect the face area and obtain the coordinates of the face area. , where the coordinates of the center point are , the width and height of the face are w and h respectively;
[0086] Step 2: Face capture. Use the open source visual processing library OpenCV to crop and preprocess the original captured image. Crop the image to contain only the face .
[0087] This results in a more compact image containing only the face.
[0088] After the entire data processing process, a batch of faces and corresponding gaze direction angle label data sets for the following gaze prediction model training are obtained .
[0089] Step S120: inputting the face image and the model training pitch angle and yaw angle into the eye gaze prediction convolutional neural network model for training, so that the loss is reduced to a preset convergence value, and obtaining a trained eye gaze prediction model;
[0090] This step is explained in detail. In the model training stage, the face image and the model training pitch angle and yaw angle are divided into three non-overlapping parts, of which 80% are used as training data sets, 10% are used as validation data sets, and are used to adjust parameters such as training rounds and learning rates. The remaining 10% are used as test data sets, and the convergence value of the cross entropy loss function is set. The training rounds and training learning rates are adjusted by the error back propagation method. After multiple trainings, the loss is reduced to below the preset convergence value, and the precision and recall rate of the test set are both as expected, and the trained vision prediction model is obtained.
[0091] Step S130: inputting the predicted face image into the eye prediction model to obtain real-time pitch angle, yaw angle and eye closure data;
[0092] This step is specifically described. The predicted face image is input into the eye prediction model to obtain real-time pitch angle, yaw angle and eye closure data, including:
[0093] like Figure 5 As shown, the predicted face image is input into the eye prediction model, and the predicted face image is passed through the convolution block to obtain a face feature map; the predicted face image is also passed through the face landmark detection module to obtain a landmark image, and then the landmark feature map is obtained by extracting the network features of the convolution block;
[0094] The face feature map and the marker feature map are weighted multiplied to obtain a new feature map;
[0095] The new feature map is sent to the residual block network, and then the real-time pitch angle and yaw angle are output respectively through two fully connected layers and a Softmax layer. The last Softmax layer of each branch is followed by a fully connected layer of the corresponding angle value without parameters, converting the classification network into a network that directly outputs the regression angle. The structure of the two branches is the same, but the weights and parameters are different. It should be noted that after Softmax, the network outputs the probability value of 181 categories, where each probability value , the corresponding parameter-free angle value fully connected layer weight is The final output angle value is: In this way, the output discrete angle categories are regressed to actual angle information.
[0096] The feature map of the marker points is sent to the eye closure detection module to obtain the eye closure data.
[0097] Step S140: Obtaining blink frequency from eye closing data , through the formula Calculate the contribution of blink frequency to learning attention evaluation ; Where P is the frequency of normal people blinking;
[0098] This step is described in detail. Assume that the distribution of the eye-closing signal on the timeline is For the convenience of problem description and calculation, it is assumed that the interval between two eye closures is counted as one blink. Then the blinking frequency can be calculated by the following formula, where the blinking frequency during online learning is In general, a normal person blinks 18 times per minute on average. This embodiment defines the contribution of blinking frequency to learning attention as The faster the blinking frequency, the The larger the contribution score, The higher the blink rate, the lower the blink rate. The following is a simple quantitative analysis. When the blinking frequency is twice that of a normal person, that is, , ; When the blinking frequency is that of a normal person, that is , ; When the blinking frequency is half of that of a normal person, , .
[0099] Step S150: By formula Calculate the contribution of gaze analysis to learning attention assessment ;in, is the standard deviation of the eye pitch angle during the eye opening time, is the standard deviation of the eye yaw angle during the eye opening time;
[0100] This step is specifically described. Based on the eye tracking results, the eye direction angle information obtained when the eyes are closed is filtered out according to the tracking results of whether the eyes are closed. ,in Indicates the timeline The direction angle information of the moment when the eyes are closed, is the total number of eye-closing moments during the online learning period, and only the gaze direction results at other moments are retained. In this way, the gaze direction distribution data of the eye-opening moments during the online learning period is obtained, which is recorded as Similarly, Indicates the timeline The direction angle information of the moment when the eyes are open, is the total number of eye-opening moments during online learning. By calculating the mean and standard deviation of the angles, the statistical results of gaze analysis can be obtained. Among them, the standard deviations of the eye pitch angle and eye yaw angle during the eye-opening time are: .in, is the eye pitch angle when the eyes are open, is the average eye pitch angle when eyes are open, is the yaw angle of vision when the eyes are open, is the average value of the eye yaw angle when the eyes are open. Specifically, .
[0101] This embodiment defines the contribution of the statistical results of gaze analysis to learning attention as When you keep looking at a fixed place without moving, the pitch angle and yaw angle are both 0, and you get ; When the standard deviation of the pitch angle and yaw angle reaches 45 degrees, then .
[0102] Step S160: By formula Calculate the contribution of sitting posture analysis to learning attention assessment ;in, is the deviation disturbance between the eye pitch angle corresponding to the real-time sitting posture and the standard sitting posture, is the deviation disturbance between the eye yaw angle corresponding to the real-time sitting posture and the standard sitting posture;
[0103] This step is explained in detail. In order to analyze the sitting posture, according to the eye direction information at the time of eye opening obtained in the gaze analysis, the pitch angle and yaw angle of the correct standard sitting posture are (0,0), the mean deviation between the real-time sitting posture and the standard sitting posture is equal to the mean value of the gaze angle, and the second-order moment of the deviation is the mean deviation from the standard sitting posture: .
[0104] The deviation disturbance from the standard sitting posture is: .
[0105] This embodiment defines the contribution of the statistical results of sitting posture analysis to learning attention as When the sitting posture is kept upright, the pitch angle and yaw angle are both 0, and we get ; When the pitch and yaw angles deviate by 45 degrees from the standard sitting posture, .
[0106] Step S170: By formula Calculate the learning attention score ; Among them, A is the scoring weight of blinking frequency, B is the scoring weight of gaze analysis, and C is the scoring weight of sitting posture analysis.
[0107] The online learning attention evaluation method provided by the embodiment of the present invention is further described. Calculate the learning attention score After that, it also includes:
[0108] Get the dataset , and build a learning model to learn the scoring weights of different behaviors, so that Minimum, get the optimal fitting weight ;
[0109] Through the scoring function Calculate the final learning attention score .
[0110] like Figure 6 As shown, the online learning attention assessment system based on eye tracking provided by the embodiment of the present invention includes:
[0111] The training data collection module 100 is used to collect training face images and eye data, and obtain the model training pitch angle and yaw angle based on the eye data;
[0112] Specifically, the training data collection module 100 includes:
[0113] A data acquisition unit, used for acquiring training face images and eye data;
[0114] The pitch angle calculation unit is used to calculate the pitch angle through the formula The model training pitch angle is calculated; where: is the inverse tangent function, is the vertical coordinate of the eye on the screen, is the vertical coordinate of the center point of the screen, is the distance from the eye to the screen;
[0115] The yaw angle calculation unit is used to calculate the yaw angle through the formula The model training yaw angle yaw is calculated; where, is the horizontal coordinate of the eye on the screen, The horizontal coordinate of the center point of the screen.
[0116] The model training module 200 is used to input the face image and the model training pitch angle and yaw angle into the eye-gaze prediction convolutional neural network model for training, so that the loss is reduced to a preset convergence value, and a trained eye-gaze prediction model is obtained;
[0117] Specifically, the model training module 200 is specifically used to set the convergence value of the cross entropy loss function, input the face image and the model training pitch angle and yaw angle into the eye prediction convolutional neural network model for training, and adjust the training rounds and the training learning rate through the error back propagation method. After multiple trainings, the loss is reduced to below the preset convergence value, and the precision and recall rate of the test set are both as expected, and the trained eye prediction model is obtained.
[0118] The eye data acquisition module 300 is used to input the predicted face image into the eye prediction model to obtain real-time pitch angle, yaw angle and eye closure data;
[0119] Specifically, the vision data acquisition module 300 includes:
[0120] The marker feature map extraction unit is used to input the predicted face image into the eye prediction model, and the predicted face image is passed through the convolution block to obtain a face feature map; the predicted face image is also passed through the face marker detection module to obtain a marker image, and then the convolution block network feature extraction is performed to obtain a marker feature map;
[0121] A feature map generation unit, used for performing weighted multiplication of the face feature map and the marker feature map to obtain a new feature map;
[0122] The angle output unit is used to send the new feature map into the residual block network, and then output the real-time pitch angle and yaw angle respectively through two fully connected layers and Softmax layers. The last Softmax layer of each branch is followed by a fully connected layer of the corresponding angle value without parameters, converting the classification network into a network that directly outputs the regression angle. The structure of the two branches is the same, but the weights and parameters are different. It should be noted that after Softmax, the network outputs the probability value of 181 categories, where each probability value , the corresponding parameter-free angle value fully connected layer weight is The final output angle value is: In this way, the output discrete angle categories are regressed to actual angle information.
[0123] The eye closure data acquisition unit is used to send the marker point feature map to the eye closure detection module to obtain the eye closure data.
[0124] Blink contribution calculation module 400, used to obtain blink frequency through eye closure data , through the formula Calculate the contribution of blink frequency to learning attention evaluation ; Where P is the frequency of normal people blinking;
[0125] The gaze analysis contribution calculation module 500 is used to calculate the gaze analysis contribution through the formula Calculate the contribution of gaze analysis to learning attention assessment ;in, is the standard deviation of the eye pitch angle during the eye opening time, is the standard deviation of the eye yaw angle during the eye opening time;
[0126] The posture analysis contribution calculation module 600 is used to calculate the posture analysis contribution through the formula Calculate the contribution of sitting posture analysis to learning attention assessment ;in, is the deviation disturbance between the eye pitch angle corresponding to the real-time sitting posture and the standard sitting posture, is the deviation disturbance between the eye yaw angle corresponding to the real-time sitting posture and the standard sitting posture;
[0127] Specifically, the online learning attention assessment system provided by the embodiment of the present invention further includes:
[0128] The standard deviation calculation module of the eye elevation angle is used to calculate the standard deviation of the eye elevation angle through the formula Calculated ;in, is the eye pitch angle when the eyes are open, is the average eye pitch angle when eyes are open, is the total number of eye-opening moments during online learning;
[0129] The eye yaw angle standard deviation calculation module is used to calculate the standard deviation of the eye yaw angle through the formula Calculated ;in, is the yaw angle of vision when the eyes are open, is the mean value of the eye yaw angle when the eyes are open;
[0130] The eye pitch angle deviation disturbance calculation module is used to calculate the Calculated ;
[0131] The eye yaw angle deviation disturbance calculation module is used to calculate the Calculated .
[0132] Learning attention scoring module 700, used to pass formula Calculate the learning attention score ; Among them, A is the scoring weight of blinking frequency, B is the scoring weight of gaze analysis, and C is the scoring weight of sitting posture analysis.
[0133] The online learning attention assessment system provided by the embodiment of the present invention is further described, and further includes:
[0134] The module for obtaining the optimal fitting weight is used to obtain the data set , and build a learning model to learn the scoring weights of different behaviors, so that Minimum, get the optimal fitting weight ;
[0135] Finally, we learn the attention scoring module to pass the scoring function Calculate the final learning attention score .
[0136] In summary, in order to solve the problem of learners' learning attention and state evaluation in online education, the embodiment of the present invention proposes a new visual analysis method based on eye tracking. This method focuses on online education scenarios, makes good use of eye tracking technology and guidance based on facial markers, and aims to accurately evaluate learners' learning attention in online education. This method first uses face detection technology to determine the area of the face, and then uses a deep learning method based on eye estimation of facial appearance to further analyze the degree of concentration and interest area during the learning process. At the same time, behavioral pattern recognition is used to monitor and analyze learners' learning behaviors in real time, and identify learners' learning patterns and behavioral characteristics. By fusing and analyzing these two types of data, the learners' learning status can be more comprehensively understood, providing more effective basis and support for personalized learning recommendations, teaching improvements, and other aspects.
[0137] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0138] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0139] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0140] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0141] The parts not described in detail in the embodiments of the present invention are all known technologies to those skilled in the art. Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention is described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solutions of the present invention, which should be included in the scope of the claims of the present invention.
Claims
1. An online learning attention assessment method based on eye tracking, characterized in that: include: Collect training face images and eye data, and obtain model training pitch angle and yaw angle based on the eye data; Inputting the face image and the model training pitch angle and yaw angle into the eye-gaze prediction convolutional neural network model for training, so that the loss is reduced to a preset convergence value, and obtaining a trained eye-gaze prediction model; Inputting the predicted face image into the eye prediction model to obtain real-time pitch angle, yaw angle and eye closure data; Obtaining the blink frequency through the eye closing data , through the formula Calculate the contribution of blink frequency to learning attention evaluation ; Where P is the frequency of normal people blinking; By formula Calculate the contribution of gaze analysis to learning attention assessment ;in, is the standard deviation of the eye pitch angle during the eye opening time, is the standard deviation of the eye yaw angle during the eye opening time; By formula Calculate the contribution of sitting posture analysis to learning attention assessment ;in, is the deviation disturbance between the eye pitch angle corresponding to the real-time sitting posture and the standard sitting posture, is the deviation disturbance between the eye yaw angle corresponding to the real-time sitting posture and the standard sitting posture; By formula Calculated ;in, is the eye pitch angle when the eyes are open, is the average eye pitch angle when eyes are open, is the total number of eye-opening moments during online learning; By formula Calculated ;in, is the yaw angle of vision when the eyes are open, is the mean value of the eye yaw angle when the eyes are open; By formula Calculated ; By formula Calculated ; By formula Calculate the learning attention score ; Where A is the scoring weight of blink frequency, B is the scoring weight of gaze analysis, and C is the scoring weight of sitting posture analysis; The obtaining of the model training pitch angle and yaw angle based on the eye data comprises: By formula The model training pitch angle is calculated; wherein, is the inverse tangent function, is the vertical coordinate of the eye on the screen, Y is the vertical coordinate of the center of the screen, and C is the distance from the eye to the screen; By formula The model training yaw angle is calculated; wherein, is the horizontal coordinate of the eye on the screen, and X is the horizontal coordinate of the center point of the screen.
2. The online learning attention assessment method based on eye tracking as claimed in claim 1, characterized in that: The step of inputting the predicted face image into the eye prediction model to obtain real-time pitch angle, yaw angle and eye closure data includes: The predicted face image is input into the vision prediction model, and the predicted face image is processed through a convolution block to obtain a face feature map; the predicted face image is also processed through a face landmark detection module to obtain a landmark image, and then a landmark feature map is obtained through a convolution block network feature extraction; Multiplying the face feature map by the marker feature map by weights to obtain a new feature map; The new feature map is sent to the residual block network, and then the real-time pitch angle and yaw angle are output respectively through two fully connected layers and a Softmax layer; The marker feature map is sent to an eye closure detection module to obtain the eye closure data.
3. The online learning attention assessment method based on eye tracking as claimed in claim 1 or 2, characterized in that: In the formula Calculate the learning attention score After that, it also includes: Get the dataset , and build a learning model to learn the scoring weights of different behaviors, so that Minimum, get the optimal fitting weight ; Through the scoring function Calculate the final learning attention score .
4. An online learning attention assessment system based on eye tracking, characterized in that: include: A training data collection module is used to collect training face images and eye data, and obtain the model training pitch angle and yaw angle based on the eye data; A model training module, used for inputting the face image and the model training pitch angle and yaw angle into the eye gaze prediction convolutional neural network model for training, so that the loss is reduced to a preset convergence value, and a trained eye gaze prediction model is obtained; The eye data acquisition module is used to input the predicted face image into the eye prediction model to obtain real-time pitch angle, yaw angle and eye closure data; the blink contribution calculation module is used to obtain the blink frequency through the eye closure data , By formula Calculate the contribution of blink frequency to learning attention evaluation ; Where P is the frequency of normal people blinking; The gaze analysis contribution calculation module is used to calculate the Calculate the contribution of gaze analysis to learning attention assessment ;in, is the standard deviation of the eye pitch angle during the eye opening time, is the standard deviation of the eye yaw angle during the eye opening time; Sitting posture analysis contribution calculation module is used to calculate the contribution of the posture analysis through the formula Calculate the contribution of sitting posture analysis to learning attention assessment ;in, is the deviation disturbance between the eye pitch angle corresponding to the real-time sitting posture and the standard sitting posture, is the deviation disturbance between the eye yaw angle corresponding to the real-time sitting posture and the standard sitting posture; Learn the attention scoring module to pass the formula Calculate the learning attention score ; Where A is the scoring weight of blink frequency, B is the scoring weight of gaze analysis, and C is the scoring weight of sitting posture analysis; The training data acquisition module comprises: A data acquisition unit, used for acquiring training face images and eye data; The pitch angle calculation unit is used to calculate the pitch angle through the formula The model training pitch angle is calculated; wherein, is the inverse tangent function, is the vertical coordinate of the eye on the screen, Y is the vertical coordinate of the center of the screen, and C is the distance from the eye to the screen; The yaw angle calculation unit is used to calculate the yaw angle through the formula The model training yaw angle is calculated; wherein, is the horizontal coordinate of the eye on the screen, and X is the horizontal coordinate of the center point of the screen; Also includes: The standard deviation calculation module of the eye elevation angle is used to calculate the standard deviation of the eye elevation angle through the formula Calculated ;in, is the eye pitch angle when the eyes are open, is the average eye pitch angle when eyes are open, is the total number of eye-opening moments during online learning; The module for calculating the standard deviation of the eye yaw angle is used to calculate the standard deviation of the eye yaw angle by the formula Calculated ;in, is the yaw angle of vision when the eyes are open, is the mean value of the eye yaw angle when the eyes are open; The eye pitch angle deviation disturbance calculation module is used to calculate the Calculated ; The eye yaw angle deviation disturbance calculation module is used to calculate the Calculated .
5. The online learning attention assessment system based on eye tracking as claimed in claim 4, characterized in that: The vision data acquisition module includes: A marker feature map extraction unit is used to input the predicted face image into the vision prediction model, and the predicted face image is passed through a convolution block to obtain a face feature map; the predicted face image is also passed through a face marker detection module to obtain a marker image, and then a convolution block network feature extraction is performed to obtain a marker feature map; A feature map generating unit, used for performing weighted multiplication on the face feature map and the marker feature map to obtain a new feature map; An angle output unit, used to send the new feature map into the residual block network, and then output the real-time pitch angle and yaw angle respectively through two fully connected layers and a Softmax layer; The eye closure data acquisition unit is used to send the marker feature map to the eye closure detection module to obtain the eye closure data.
6. The online learning attention assessment system based on eye tracking as claimed in claim 4 or 5, characterized in that: Also includes: The module for obtaining the optimal fitting weight is used to obtain the data set , and build a learning model to learn the scoring weights of different behaviors, so that Minimum, get the optimal fitting weight ; Finally, we learn the attention scoring module to pass the scoring function Calculate the final learning attention score .
