A learning attention recognition method, device and storage medium integrating information entropy

Through deep learning technology and information entropy theory, combined with video and physiological data, the problem of insufficient accuracy and real-time performance of learning attention recognition in the existing technology is solved, and accurate assessment and real-time monitoring of learners' attention status are achieved, optimizing teaching strategies and teaching quality.

CN118395331BActive Publication Date: 2024-08-27BEIJING NORMAL UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410852589.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-08-27
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

The accuracy and real-time performance of learning attention recognition in existing educational technology are insufficient. Traditional methods rely on a single data source and ignore the multi-modal nature and temporal alignment of data, making it difficult to accurately assess learners' attention status.

Method used

Using deep learning technology and information entropy theory, by simultaneously collecting video and physiological data, using 3D CNN and 2D CNN models to extract spatiotemporal features, combined with information entropy calculation and weighted voting system, to achieve accurate assessment and real-time monitoring of learners' attention status .

Benefits of technology

It improves the accuracy and efficiency of learning attention recognition and provides real-time feedback to help educators optimize teaching strategies and improve teaching quality and learning effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395331B
    Figure CN118395331B
Patent Text Reader

Abstract

The present invention relates to a learning attention recognition method and device and storage medium integrating information entropy, the purpose of which is to accurately and in real time evaluate the attention level by analyzing the video and physiological data of learners in specific activities. By synchronously collecting video and physiological data, after pre-processing such as median filtering and low-pass filtering, the YOWO model combining 3D CNN and 2D CNN is used to extract spatiotemporal features from video data, and key features are extracted from physiological data through signal processing technology; the present invention calculates the head movement entropy and hand movement entropy of video data and the physiological entropy of physiological data, and uses a deep forest model to evaluate these entropy values, and finally decides the learner's attention level through a weighted voting mechanism; the present invention provides timely feedback for educators, which helps to optimize teaching strategies and improve teaching quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of educational technology and artificial intelligence, and specifically relates to a learning attention recognition method, device and storage medium integrating information entropy. Background Art

[0002] With the rapid development of information technology, artificial intelligence is increasingly used in the field of education, especially the monitoring and analysis of learners' behavior and attention status, which is of great significance for improving teaching effectiveness and learning efficiency. Traditional attention recognition methods mainly rely on a single data source, such as using only video surveillance data or relying on learners' self-reports. These methods have certain limitations: video data analysis may be affected by factors such as ambient light and learners' position, while self-reporting methods rely on learners' subjective feelings and are not very accurate.

[0003] In addition, existing learning attention assessment techniques often ignore the multimodal nature of data and the importance of temporal alignment, making it difficult to accurately assess learners' attention status in practical applications. For example, learners' physiological data (such as heart rate, skin electrodermal activity, etc.) can provide important information about their attention level, but how to effectively fuse and analyze these physiological signals with behavioral data (such as head movement, facial expressions, etc.) to achieve more accurate attention recognition remains a technical challenge to be solved.

[0004] Therefore, there is an urgent need for a new method that can comprehensively utilize multiple data sources and use advanced data processing and analysis techniques to accurately evaluate and monitor learners' attention status in real time. Summary of the invention

[0005] The present invention discloses a method, device and storage medium for learning attention recognition that integrates information entropy, aiming to solve the problem of insufficient accuracy and real-time performance of learning attention recognition in the existing field of educational technology. Specifically, the present invention combines video surveillance data with physiological monitoring data, adopts deep learning technology and information entropy theory, and then accurately identifies and evaluates the learner's attention state. It not only improves the accuracy and efficiency of learning attention recognition, but also can monitor the learner's attention changes in real time, provide real-time feedback to educators, and then optimize teaching strategies and improve teaching quality.

[0006] To achieve the above objectives, the present invention adopts the following technical solutions:

[0007] In a first aspect, the present invention provides a method for learning attention recognition by integrating information entropy, comprising the steps of:

[0008] The video and physiological data of learners in specific learning activities are collected simultaneously to capture their behavioral movements and physiological responses in multiple dimensions. This data collection process relies on high-resolution video capture equipment and smart bracelets that integrate multiple physiological sensors to ensure the acquisition of high-quality raw data. Subsequently, the method optimizes the data through pre-processing techniques such as median filtering and low-pass filtering to reduce noise and interference, ensuring the purity of the data and the accuracy of the analysis.

[0009] In the feature extraction stage, the method uses the YOWO model that combines 3D CNN and 2D CNN to process video data to obtain rich spatiotemporal features. For physiological data, key features such as peak amplitude in the inverse spectrum are extracted through advanced signal processing methods to accurately reflect the changes in the learner's physiological state. In order to quantify the uncertainty of these features, the inventive method introduces the concept of information entropy and uses the deep forest model to evaluate behavioral entropy and motion entropy to infer the learner's attention level.

[0010] Finally, the method uses a weighted voting system to combine various data and information entropy results to determine the learner's attention level. This step relies on the weights set by experts to ensure the scientificity and reliability of the final judgment. The judgment results will help educators obtain real-time feedback to optimize teaching strategies and improve teaching quality.

[0011] In another aspect, the present invention provides an attention recognition device, comprising the following modules:

[0012] Acquisition module: responsible for synchronously collecting learners' behavioral and physiological data.

[0013] Recognition module: preprocesses the collected data, performs feature extraction, and calculates information entropy to form a preliminary attention assessment.

[0014] Processing module: Based on the output of the recognition module, a weighted voting method is applied to determine the learner's attention level, and the evaluation results are visualized for educators' reference.

[0015] In another aspect, the present invention further comprises at least one computer-readable storage medium having computer program instructions stored thereon, which, when executed, direct the relevant processor to complete data synchronization, analysis, information entropy calculation, and final attention state evaluation and output.

[0016] Beneficial effects of the present invention:

[0017] 1. Improve the accuracy of learning attention recognition: By accurately synchronizing and aligning multimodal data in the time domain, the present invention effectively solves the analysis errors caused by data asynchrony and improves the accuracy of learning attention state recognition. This enables educators to more accurately understand and evaluate learners' attention states, thereby making more targeted teaching adjustments.

[0018] 2. Enhance the credibility of labeled data: We adopted cross-validation of multivariate data labeling methods, combined self-reporting and expert observation, and used Kappa statistical methods to ensure the consistency of labeling results, which significantly improved the reliability and validity of data labeling. This provides a more reliable and accurate data basis for subsequent learning attention state analysis.

[0019] 3. Realize dynamic and comprehensive learning attention monitoring: This invention realizes dynamic and comprehensive evaluation of learners' attention level by integrating information entropy theory and deep learning technology. The calculation of behavior entropy and motion entropy by using the deep forest model and the application of weighted voting mechanism not only improves the recognition efficiency, but also can integrate multiple data sources for accurate evaluation, providing educators with real-time and comprehensive feedback on learners' attention.

[0020] 4. Optimize teaching strategies and improve teaching quality: By accurately identifying and monitoring learners' attention status in real time, the present invention provides educators with powerful data support, enabling them to adjust teaching content and methods in a timely manner according to learners' real-time attention feedback, thereby effectively improving teaching interactivity and learning outcomes. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A flow chart showing the main steps of the method of the present invention is shown;

[0022] Figure 2 A schematic diagram of a fusion network structure used in the present invention is shown;

[0023] Figure 3 A schematic diagram of the network structure of a CFAM module in a fusion network used in the present invention is shown;

[0024] Figure 4 A schematic diagram showing a voting mechanism used in the present invention;

[0025] Figure 5 A schematic diagram of the structure of a learning attention recognition device according to the present invention is shown; DETAILED DESCRIPTION

[0026] Exemplary embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0027] In the first aspect, the present invention provides a method for learning attention recognition by integrating information entropy, Figure 1 , including the steps of:

[0028] S1. Multimodal data acquisition

[0029] Video acquisition equipment and physiological data acquisition devices (such as smart bracelets) are used to synchronously collect learners' behavioral data and physiological data during learning activities. These data can reflect learners' attention status from different dimensions and provide a rich source of information for subsequent data analysis and attention identification.

[0030] S1.1 Video data acquisition

[0031] S1.1.1 Equipment selection and configuration

[0032] Choose a digital camera that supports 1080p resolution recording and 60fps frame rate, equipped with optical image stabilization technology and automatic light compensation to ensure that clear and stable images can be captured in a variety of indoor lighting conditions. The camera model should support instant autofocus function to adapt to the rapid changes of learner activities in the classroom.

[0033] S1.1.2 Location layout and installation

[0034] Install a sufficient number of cameras in key areas of the classroom, such as the front, sides and back, to ensure that the facial and body movements of each learner can be captured in all directions, and the angles can be adjusted to ensure full coverage of the learners; a camera can be installed at the front, sides and back of the classroom, and the viewing angles of the four cameras can be cross-covered to eliminate visual blind spots and ensure that the facial and hand movements of each learner can be captured.

[0035] S1.1.3 Data transmission and storage

[0036] Video data is transmitted to the server in real time via an 802.11ac Wi-Fi network. The network protocol used ensures low latency and high reliability of data transmission; the server is equipped with a solid-state drive (SSD) with sufficient capacity to store high-quality video data. The management software running on the server can automatically index and archive the collected videos for quick retrieval.

[0037] S1.2 Physiological data collection

[0038] S1.2.1 Equipment selection and functionality

[0039] Choose a smart bracelet with integrated heart rate sensor and skin electrical sensor, which can continuously monitor the learner's heart rate through optical methods and measure skin electrical activity through electrodes. The bracelet should meet the requirements of all-day wear comfort and have a battery life of at least 24 hours.

[0040] S1.2.2 Wearing and data synchronization

[0041] Before the learning activity begins, instruct learners to wear the bracelet correctly to ensure that the device's sensor is in close contact with the skin; the bracelet transmits the collected data in real time to a computer equipped with a receiving module in the classroom or directly uploads it to a cloud server via Bluetooth BLE technology. The data of each bracelet is given a unique identifier to ensure that the data can be correctly associated with the corresponding learner.

[0042] S1.3 Data synchronization and integration

[0043] S1.3.1 Timestamp alignment

[0044] All cameras and smart bracelets are synchronized via the Network Time Protocol (NTP) to ensure that the timestamps of video and physiological data are precisely consistent. This mechanism ensures the accuracy of data analysis and allows researchers to accurately align and compare information from different data sources.

[0045] S1.3.2 Data integration process

[0046] The data processing software running on the server is responsible for receiving, processing and integrating the data from the video camera and the smart bracelet. The software integrates the timestamp-based data into a unified data set for subsequent analysis and processing.

[0047] S2. Data Preprocessing

[0048] The collected multimodal data are preprocessed, including median filtering and denoising of video data, low-pass filtering and baseline correction of physiological data, etc., to improve data quality and prepare for feature extraction.

[0049] S2.1 Video Data Preprocessing

[0050] S2.1.1 Median filter denoising

[0051] A median filter algorithm is used for each frame of video, which sorts the color value of each pixel and replaces it with the median of the adjacent pixel values. This method is particularly effective in removing the "salt and pepper" noise scattered in the image while retaining edge information; a 3x3 or 5x5 filter window is selected for operation, and adjusted according to the actual noise level to balance the denoising effect and image detail retention.

[0052] S2.1.2 Frame rate adjustment

[0053] If the original video frame rate is too high, the frame rate can be adjusted to reduce the amount of data and improve the efficiency of subsequent processing. The key frames can be retained for downsampling to ensure that the behavior feature information is not lost; key frames are identified based on the motion detection algorithm, and non-key frames are deleted at intervals to maintain the continuity of key actions.

[0054] S2.2 Physiological data preprocessing

[0055] S2.2.1 Low-pass filtering

[0056] A low-pass filter was applied to the heart rate and galvanic skin response data to remove high-frequency interference caused by equipment noise, electrical interference, or rapid movement; a Butterworth low-pass filter with a cutoff frequency of 0.5 Hz was used to allow physiological changes in heart rate and galvanic skin signals to pass while filtering out non-physiological high-frequency noise.

[0057] S2.2.2 Baseline correction

[0058] Baseline correction is performed on the galvanic skin response data to remove baseline drift caused by long-term wearing. The baseline is determined by analyzing the stable segment at the beginning of the data, and then the entire segment of data is adjusted using a linear or nonlinear model to ensure that the data reflects real physiological changes.

[0059] S2.3 Unified formatting

[0060] The preprocessed video and physiological data are uniformly formatted to facilitate subsequent feature extraction and analysis; the video data is converted to a unified encoding format (such as H.264), and the resolution and frame rate are standardized; the physiological data is converted to CSV or JSON format, and each data item is accompanied by an accurate timestamp.

[0061] S3. Feature extraction and information entropy calculation

[0062] Key features such as head movement entropy, hand movement entropy and physiological entropy are extracted from the preprocessed data, and the information entropy values ​​of these features are calculated. The calculation of information entropy aims to quantify the uncertainty of the features, which is closely related to the learner's attention level.

[0063] S3.1 Unified representation of multimodal data

[0064] S3.1.1 Build time template

[0065] In order to achieve synchronization and alignment of multimodal data, a unified time template is first constructed. This template encodes video and physiological data according to UTC standard time, including sensor code, sampling frequency, and data value at a specific time point.

[0066] Specifically, the time template is expressed as:

[0067] Te=[Ti,De,Fr,Va]

[0068] in Indicates the time template code, Indicates UTC standard time. Indicates the sensor code, represents the sampling frequency of the relevant sensor, Represents the value obtained by the sensor at time Ti;

[0069] S3.1.2 Data synchronization and alignment

[0070] Based on the time template, the frequency of data collected by different sensors is adjusted to ensure temporal consistency. For sensor data with sampling frequency lower or higher than the average sampling frequency, it is adjusted by interpolation or downsampling to align all sensor data in time.

[0071] Specifically, the alignment process is as follows:

[0072] S3.1.2.1 Constructing a sampling frequency set

[0073] Get different sensor sampling frequencies and build a sensor sampling frequency set:

[0074]

[0075] in Indicates the sampling rate of the nth sensor;

[0076] S3.1.2.2 Calculate the average sampling frequency

[0077] Calculate the average of the sampling frequencies of the above different sensors:

[0078]

[0079] S3.1.2.3 Estimating sensor values

[0080] In order to estimate the relevant values ​​of sensors that have different frequencies from the average frequency, the frequency differences between different sensors are calculated in two ways: not equal to the mean and equal to the mean:

[0081]

[0082] Where:

[0083] represents the estimated value of the sensor's measurement;

[0084] Indicates the average frequency of sampling by different sensors;

[0085] Represent the sampling frequencies of the nth sensor at time t+1 and t respectively;

[0086] Represent the measurement values ​​of the nth sensor at time t+1 and t respectively;

[0087] against , that is, when the sampling rate of the relevant sensor is not equal to the average sampling rate, the data is estimated by linear interpolation of the above formula. That is, if the frequency of the relevant sensor is consistent with the average sampling rate, no processing is done on the sampled raw data;

[0088] S3.1.3 Normalization

[0089] All sensor data are processed by the min-max normalization method to eliminate the dimension effect and ensure that different modal data can be effectively integrated in subsequent modeling.

[0090] Specifically, the normalization formula is as follows:

[0091]

[0092] Where:

[0093] Represents the normalized value;

[0094] Indicates the minimum value of a sensor measurement;

[0095] Indicates the maximum value of a sensor measurement.

[0096] S3.2 Multivariate Data Annotation Cross-Validation

[0097] S3.2.1 Labeling method

[0098] Combining the self-report method and expert observation method, the attention levels of multimodal data segments during the learning activities were annotated. The self-report method asked the subjects to review their own behavior videos and conduct self-evaluation after the activity, while the expert observation method was evaluated by experienced teachers through observing the videos. The annotation tool was ELAN 6.1, the annotation frame rate was 1 frame / second, and the attention labels were divided into three categories: high, medium, and low.

[0099] Specifically, the self-report method and expert observation method are further introduced:

[0100] The self-report method is to let the subjects watch the video clips they recorded during the process after the data collection is completed, provide relevant materials to assist in recalling the learning status, and add self-labeled labels to the video clips.

[0101] The expert observation method refers to the selection of five pre-service teachers with teaching experience as annotators after recruitment and the training of ELAN annotation tools. The annotators watch the video clips and repeatedly judge and correct the learning attention state. Based on the learners' facial expressions, head postures, body postures, gestures and other specific visual expression clues and their combinations, and referring to physiological signal data, the annotators combine their own experience to label the video clips frame by frame.

[0102] During the whole process, the labelers completed the labeling task independently with their backs to each other.

[0103] S3.2.2 Reliability and Validity Verification

[0104] Since it is impossible to make a value judgment on the annotation results of each annotator, that is, whose annotation results are more accurate or whose annotation results are less credible, during the annotation process, it was decided to remove the minimum and maximum learning attention annotation values ​​and use the average of the remaining three annotation values ​​to represent the learning attention. Since the learning attention observed by humans is not always consistent, the average learning attention shows short-term fluctuations.

[0105] Therefore, the following process is used for standard annotation:

[0106] S3.2.2.1 Median filtering

[0107] A median filter with a time window of 5 seconds is used for processing, and the corresponding thresholds are set to divide the average learning attention into three levels: low, medium and high. The value range of low attention is [1, 2.33), the value range of medium attention is [2.33, 3.66], and the value range of high attention is (3.66, 5]. The second-by-second annotation of the video clips with these three labels is taken as the final result of manual estimation.

[0108] S3.2.2.2 Kappa test

[0109] The Kappa statistical method was used to test the consistency of the annotation results of self-report and expert observation to ensure the reliability and validity of the annotation results.

[0110] Specifically, the consistency formula is calculated as follows:

[0111]

[0112] in:

[0113]

[0114]

[0115] S3.3 Fusion Information Entropy Calculation

[0116] S3.3.1 Video feature extraction

[0117] The YOWO algorithm is used to extract features containing temporal and spatial information. YOWO combines 3D CNN and 2D CNN to capture the spatiotemporal dynamics of video sequences and the spatial features of key frames, respectively, and then performs feature fusion.

[0118] Specifically, the Figure 2 A fusion network is shown for feature extraction, and the structural features are as follows:

[0119] One branch of the input is connected to the 3D CNN network to extract the temporal features of the video sequence. The size of the input feature map is , the output feature map size is ,in , Represents the three color channels RGB and = =3, is the time depth and ,and and They are the height and width before and after compression, =W / 32;

[0120] The other branch is connected to the 2D CNN network to extract the spatial features of a single video key frame. The input feature map size is , the output feature map size is ,in , Represents the three color channels RGB and = =3, and and They are the height and width before and after compression, =W / 32;

[0121] Therefore, the output shapes and sizes of the 2D-CNN branch and the 3D-CNN branch remain consistent, which will facilitate the fusion of subsequent features.

[0122] The outputs of the two branches are then stacked and connected to the channel fusion and attention module (CFAM) for fusion. Its structural features are as follows: Figure 3 As shown:

[0123] The outputs of 2D-CNN and 3D-CNN are stacked and recorded as the input A of CFAM, where the feature map , which is regarded as a graphical integration of 2D and 3D information, while ignoring their interrelationships;

[0124] Then input A into two convolutional layers to generate a new feature map B, where , then perform the following operation on feature map B to obtain feature map C:

[0125] 1. Vectorization

[0126]

[0127] The feature map B is vectorized into a matrix F; this process involves expanding the pixel values ​​in each feature map into a vector; here we assume that there are C channels, each channel has H*W spatial positions, so the dimension of the expanded matrix F is C x N, where N represents the number of features after each channel is expanded.

[0128] 2. Gram Matrix

[0129]

[0130] Calculate the product of matrix F and its transpose F' to get the Gram matrix G; each element of the Gram matrix G represents the correlation between features of different channels; this is obtained by performing an inner product operation on the row vectors in the matrix F, so the dimension of G is .

[0131] 3. Softmax function

[0132]

[0133] Apply the softmax function to calculate the feature weight matrix M; this is a normalization process so that the weight of each channel sums to 1; applying the softmax function to each row of the Gram matrix strengthens the weights of some channels and suppresses others.

[0134] 4. Feature Fusion

[0135] F

[0136] Use the calculated weight matrix M to weight the original feature matrix F to obtain the weighted feature matrix F'; this step enhances the channel features with higher weights.

[0137] 5. Reinvention

[0138]

[0139] The weighted feature matrix F' needs to be reshaped back to the original spatial size , to match the dimension requirements of the subsequent processing steps and generate the final feature map F''.

[0140] 6. Linear Transformation

[0141]

[0142] Perform a linear transformation by scaling factor and the bias term For feature maps Make adjustments is a learnable scaling parameter, is a learnable bias parameter, which together determine the final feature map .

[0143] Then the feature map Send it to two or more convolutional layers for operation, and then we get the output feature map of the CFAM module. .

[0144] Finally, the output processed by CFAM is classified and bounding box regressed:

[0145] 1. Grid unit division

[0146] The feature map is divided into multiple grid cells, each of which is responsible for predicting the objects within its coverage area.

[0147] 2. K-means clustering generates prior boxes

[0148] The K-means clustering method is used to analyze the ground truth boxes in the training set to generate 5 fixed prior boxes with different aspect ratios. The 5 prior boxes generated by each grid unit are used to predict the position of the target in the coverage area; these prior boxes are designed to cover targets of different shapes and sizes to better adapt to the detection task; each prior box provides a reference frame, based on which the network will predict the relative offset value of the target.

[0149] 3. Intersection over Union (IoU) selection and offset prediction

[0150] For each target, the prior box with the largest IoU is selected to be "responsible" for predicting the target. This step ensures that each target is predicted by the most appropriate prior box; the network predicts the offset value of the target (including the offset of the center point and the size change of the box) based on these selected prior boxes, so as to adjust the prior box to more accurately cover the actual target.

[0151] 4. Output

[0152] The size of the final output of the YOWO model depends on the number of grid cells in the feature map and the prediction task each grid cell is responsible for. For each prior box, the model predicts 4 coordinate values ​​(locating the target), 1 confidence score (confidence of the existence of the target) and multiple category scores (NumCls, the score of each category); the final output is connected to the fully connected layer to obtain the recognition result that matches the attention state annotation, which is recorded as recognition result 1.

[0153] S3.3.2 Physiological feature extraction

[0154] Features such as peak amplitude data of physiological signals are extracted from the inverse spectrum to reflect changes in the learner's physiological state, and the extracted physiological signal features are input into a long short-term memory network (LSTM). LSTM can learn and memorize long-term dependencies in time series data through its special gating mechanism. The LSTM network is trained to identify patterns and trends related to the learner's attention state based on the input physiological signal features.

[0155] Based on the output of the LSTM network, an evaluation of the learner’s current attention state is generated and recorded as recognition result 3.

[0156] S3.3.3 Information entropy calculation

[0157] Behavior entropy and motion entropy: Calculate information entropy for extracted video and physiological data features respectively to quantify the uncertainty of features. Use sample entropy calculation method to evaluate the complexity of time series data, providing quantitative basis for subsequent attention level assessment.

[0158] Specifically, the entropy is calculated using the following method:

[0159] S3.3.3.1 Behavioral entropy calculation:

[0160] For video data, it can be regarded as a time series consisting of N+1 image frames:

[0161]

[0162] The calculation process of the sparse optical flow features of two adjacent frames of images is as follows:

[0163] Assume that the time between two adjacent frames is and , the corresponding positions of a certain pixel are (x, y) and (x+u, y+v) respectively.

[0164] According to the grayscale invariance assumption, there is formula 1:

[0165]

[0166] According to the small motion hypothesis, the first-order Taylor series expansion of the right side of equation 1 gives equation 2:

[0167]

[0168] in, , are the partial derivatives of the image brightness in the x and y directions at the (x,y) pixel point, respectively. is the derivative of the image brightness with respect to time at the pixel point (x, y) at time t.

[0169] Combining equation 1 and equation 2, we get equation 3:

[0170] = 0

[0171] Convert to matrix form:

[0172] [ I x ' , I y ' ] u v =- I t ' ∆t

[0173] in, is the brightness difference between the (x, y) coordinates of the two frames, expressed as:

[0174]

[0175] Then we have:

[0176] [ I x ' , I y ' ] u v =- ∆ I t

[0177] According to the regional consistency assumption, the size is selected as All pixels in the window are combined to establish the equation system:

[0178]

[0179] Convert to matrix form:

[0180]

[0181] Denoted as:

[0182]

[0183] Use the least squares method to find the optical flow vector of the (x,y) pixel:

[0184]

[0185] in, Reversible.

[0186] The movement speed of the (x,y) pixel is:

[0187]

[0188] The movement direction of the (x,y) pixel is:

[0189]

[0190] Assuming that there are K pixels in the desired part (the area including the head, face, posture, etc.), the average movement speed of the part is:

[0191]

[0192] The average direction of motion is:

[0193]

[0194] In this way, we get N consecutive ,Right now ,..., , calculate the entropy value based on the sample entropy , and finally obtain the behavior entropy of the desired part:

[0195]

[0196] S3.3.3.2 Calculation of kinetic entropy:

[0197] For physiological signals, it can be regarded as a time series consisting of N data:

[0198]

[0199] Their sample entropy calculation process is as follows:

[0200] A vector sequence of dimension m is formed by sequence number:

[0201]

[0202] in:

[0203] ,

[0204] These vectors represent m consecutive x values ​​starting from the i-th point.

[0205] Defining vectors and The distance between d[ X m (i), X m (j) ] , which is the absolute value of the maximum difference between the corresponding elements of the two:

[0206] d[ X m (i), X m (j)]=ma x k=0,1,...,m-1 ( x(i + k)-x(j+k) )

[0207] For a given ,statistics and The distance between them is less than or equal to r The number of .for ,definition:

[0208]

[0209] definition for:

[0210]

[0211] Increase the dimension to m+1 and calculate and The number of distances less than or equal to r is recorded as .

[0212] definition for:

[0213]

[0214] definition for:

[0215]

[0216] so, is the probability that two sequences match m points with similarity tolerance r, and is the probability that two sequences match m+1 points. Finally, the sample entropy, i.e., motion entropy, is obtained:

[0217] SampEn (m,r,N)=-ln[ A (m) (r) B (m) (r) ]

[0218] The deep forest is used to identify the information entropy features, and the behavior entropy recognition result of the video is obtained, which is recorded as recognition result 2, and the motion entropy recognition result of the physiological signal is obtained, which is recorded as recognition result 4.

[0219] The core of Deep Forest is Multi-Grained Cascade Forest (gcForest). Compared with deep neural networks, the training process of Deep Forest is relatively simple, does not require complex gradient calculations, and is suitable for small data sets such as information entropy. In addition, the representation effect of deep neural networks on data other than visual data and text data needs to be improved, and Deep Forest fills this gap.

[0220] Specifically, the processing process is as follows:

[0221] First, a complete P-dimensional sample is input, and then sliding sampling is performed through a sampling window of length k to obtain S = (P - K) / 1+1 k-dimensional feature sub-sample vectors. Then each sub-sample is used for training of complete random forest and ordinary random forest and a probability vector of length C (number of categories) is obtained in each forest. In this way, each forest will produce a representation vector of length S*C (that is, a probability vector converted and spliced ​​by random forest). Finally, the results of F forests in each layer are spliced ​​together to obtain the output of this layer.

[0222] S3.4 Weighted voting to determine attention level

[0223] Decision fusion: A weighted voting mechanism is used to comprehensively consider the recognition results from video data and physiological data, as well as the respective information entropy calculation results. The results of different modalities are weighted by the weights set by experts to ultimately determine the learner's attention level.

[0224] Specifically, using Figure 4 Voting is done using the voting mechanism shown below:

[0225] The video data is subjected to the calculation process described in S3.3.1 to obtain recognition result 1; the video data is subjected to the calculation process described in S3.3.3.1 to obtain recognition result 2; the physiological (bracelet) data is subjected to the calculation process described in S3.3.2 to obtain recognition result 3; the physiological (bracelet) data is subjected to the calculation process described in S3.3.3.2 to obtain recognition result 4; the recognition result 1, recognition result 2, recognition result 3, and recognition result 4 are weightedly calculated using the weights set by the expert to obtain the final recognition result (low / medium / high), and the following formula is satisfied:

[0226]

[0227] in:

[0228] The corresponding weight of the recognition result i set by the expert satisfies ;

[0229] Result1 is the recognition result 1 obtained by the calculation process described in S3.3.1;

[0230] Result2 is the identification result 2 obtained by the calculation process described in S3.3.3.1;

[0231] Result3 is the recognition result 3 obtained by the calculation process described in S3.3.2;

[0232] Result 4 is the recognition result 4 obtained by the calculation process described in S3.3.3.2.

[0233] Finally, the entropy value obtained after weighted calculation Mapped to the attention classification interval; among them, the value range of low attention is [1, 2.33), the value range of medium attention is [2.33, 3.66], and the value range of high attention is (3.66, 5]; thus, the final attention label (high / medium / low) is obtained.

[0234] S4. Result visualization and feedback

[0235] The learning attention state identified by the model is presented in a visual form through the user interface, providing educators with intuitive learner attention feedback and helping them adjust their teaching methods and strategies in a timely manner.

[0236] S4.1 Interface Design

[0237] The user interface directly displays the learner's attention state as one of three classification labels: high, medium, and low. This classification result is based on the weighted voting described in S3.4.

[0238] S4.2 Classification display

[0239] The system displays the attention status classification of each learner in real time, and the interface uses color differentiation (such as green for "high", yellow for "medium", and red for "low") to intuitively display the status of each learner.

[0240] S4.3 Educational feedback

[0241] The interface provides a feedback function that allows educators to record feedback based on the displayed attention status classification, especially the teaching adjustments taken for learners with a "low" attention status.

[0242] S4.4 Status Report

[0243] Based on the analysis results, the system automatically generates a report containing a classification of each learner's attention status. The report will help educators understand the attention distribution of the class as a whole and individual learners, as well as the corresponding teaching adjustment effects.

[0244] In a second aspect, the present invention provides a learning attention recognition device, combined with Figure 5 , composed as follows:

[0245] 1. Get the module

[0246] This module is responsible for collecting learners’ behavioral and physiological data from various sensors. Behavioral data includes learners’ posture, facial expressions, etc., which are captured in real time by camera devices; physiological data includes heart rate, skin galvanic response, etc., which are collected by physiological monitoring devices such as smart bracelets.

[0247] 2. Identification module

[0248] This module receives the input from the acquisition module and performs data preprocessing and feature extraction. It processes behavioral data by using deep learning algorithms such as convolutional neural networks (CNN) and long short-term memory networks (LSTM) to process time series physiological data. In addition, this module is responsible for calculating information entropy to evaluate the learner's attention level and outputting preliminary recognition results.

[0249] 3. Processing module

[0250] This module receives the output of the recognition module and performs further data analysis and processing based on pre-set algorithms and models. This includes comprehensive analysis and comparison of the preliminary recognition results, using a weighted decision tree algorithm to integrate multiple data sources, and ultimately evaluating the learner's attention level as high, medium or low, and providing feedback to the teacher in a visual form or adjusting the intelligent learning environment to improve learning efficiency.

[0251] In a third aspect, the present invention further includes at least one computer-readable storage medium storing computer program instructions capable of instructing a processor to implement the above steps. These instructions can instruct the processor to:

[0252] A. Perform data synchronization and alignment to ensure temporal consistency of video and physiological data.

[0253] B. Perform data analysis, including applying deep learning models to extract temporal and spatial features from video data, and applying machine learning algorithms to extract features such as heart rate variability from physiological data.

[0254] C. Implement information entropy calculation to evaluate the uncertainty and complexity of features as a basis for attention recognition.

[0255] D. Output decision results, classify attention levels into low, medium, and high, and provide feedback through the user interface.

[0256] As described in the above drawings, the present invention provides an efficient and accurate learning attention recognition method and its device and storage medium, which aims to achieve accurate assessment of learners' attention status by integrating information entropy and combining deep analysis of video and physiological data. The present invention optimizes the accuracy and response speed of attention recognition by synchronously collecting and analyzing learners' behaviors and physiological responses in learning activities, introducing deep learning technology and information entropy theory. In particular, the application of multimodal data processing, feature extraction, entropy value calculation and weighted voting mechanism of the present invention significantly improves the practicality and reliability of the recognition method.

[0257] It is worth noting that the protection scope of the present invention is not limited to the specific implementations described in the above embodiments. Equivalent variations or modifications made by those skilled in the art based on the enlightenment of the present invention should be included in the protection scope of the present invention as long as they do not deviate from the spirit of the technical solution of the present invention.

Claims

1. A learning attention recognition method integrating information entropy, the method is characterized in that: The following steps are involved: a) Use a multi-sensor time representation algorithm based on average sampling frequency to synchronously collect video data and physiological data of learners in specific learning activities, and perform time domain synchronization and alignment to ensure the correlation and data consistency between multimodal data; b) preprocessing the collected video data and physiological data, including median filtering, low-pass filtering, baseline correction and frame rate adjustment; c) Use the YOWO model that combines 3D CNN and 2D CNN to extract spatiotemporal features from video data, and use signal processing technology to extract features from physiological data; d) calculating the head motion entropy and hand motion entropy of the video data and the physiological entropy of the physiological data based on the extracted features; e) Apply the deep forest model to evaluate the head motion entropy and hand motion entropy of video data and the physiological entropy of physiological data, and perform cross-validation with multivariate data, including self-report method and expert observation method; use Kappa consistency verification to confirm the consistency and reliability of the annotation results; f) A weighted voting mechanism is used to determine the learner's attention level based on the extracted features and the calculated information entropy results. In order to achieve a unified representation of multimodal data, a unified time template needs to be constructed first; Secondly, based on the time template, the frequency of data collected by different sensors is adjusted by interpolation or downsampling methods to ensure temporal consistency. Finally, all sensor data are processed by the min-max normalization method to eliminate dimensional effects and ensure that different modal data can be effectively integrated in subsequent modeling.

2. A learning attention recognition device integrating information entropy, used to implement the learning attention recognition method described in claim 1, the device include: a) an acquisition module, configured to synchronously collect video data and physiological data of learners in specific learning activities, and perform time domain synchronization and alignment using a multi-sensor time representation algorithm based on an average sampling frequency to ensure the correlation and data consistency between multi-modal data; b) Recognition module, used to pre-process the collected video data and physiological data, including median filtering, low-pass filtering, baseline correction and frame rate adjustment, and to extract spatiotemporal features of video data using the YOWO model that combines 3D CNN and 2D CNN, and to extract features of physiological data through signal processing technology; c) The processing module is responsible for calculating the head movement entropy and hand movement entropy of the video data, as well as the physiological entropy of the physiological data, and applying the deep forest model to evaluate the calculated entropy values. The results are further comprehensively evaluated through a weighted voting mechanism to determine the learner's attention level. The self-report method and expert observation method are combined, and the Kappa consistency verification is used to confirm the consistency and reliability of the annotation results.

3. The device according to claim 2, in, The acquisition module is equipped with a high-resolution digital camera with automatic light compensation and image stabilization technology and a smart bracelet with integrated heart rate and skin electrical sensors for high-quality video and physiological data acquisition.

4. A computer-readable storage medium, It is characterized in that Program instructions are stored, which, when executed by a processor, enable the processor to implement the learning attention recognition method based on information entropy fusion according to claim 1.