Education interaction system based on algorithm, artificial intelligence and augmented reality

By designing an online target tracking algorithm based on spatiotemporal memory and sample gradient memory update in the educational interactive system, integrating time and space information, the problem of target tracking accuracy and robustness is solved, and the online update is optimized through sample gradient information to achieve Efficient teacher-student posture recognition and educational interaction effects.

CN118534994APending Publication Date: 2024-08-23陈卫
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310114430.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-01-29
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing educational interactive systems based on algorithms, artificial intelligence, and augmented reality face challenges such as frequent posture changes, occlusions, and appearance changes when tracking targets, making it difficult to guarantee tracking accuracy and robustness, and the positive and negative samples are inconsistent during online updates. Equilibrium leads to model performance degradation.

Method used

An online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update is designed. By fusing target time and space information, VGG16 backbone network and convolutional long short-term memory network are used to mine spatiotemporal features, and online memory is performed through sample gradient information. Updated to improve tracking robustness and stability.

Benefits of technology

It achieves accurate identification and tracking of teacher and student postures during the teaching process, improves the realism and interactivity of the educational interactive system, enables both teachers and students to have a better classroom experience, and enhances the adaptability and robustness of the tracking algorithm. , avoiding errors and over-fitting problems in online updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534994A
    Figure CN118534994A
Patent Text Reader

Abstract

An education interaction system based on an algorithm, artificial intelligence and augmented reality comprises a teacher and student posture data acquisition module, a teacher and student posture algorithm analysis module and an augmented reality interaction module. Through tracking and analyzing the emotion postures of students and teachers in the online education system, the efficiency and interestingness of communication and communication between the teachers and the students in the online education process are effectively improved; in the teacher and student posture algorithm analysis module, an online target tracking algorithm based on target space-time memory and sample gradient memory updating is designed, the tracking algorithm designs a target space-time memory method, state changes of a target in a tracking video are mined from the two dimensions of time and space, information is fused, and the target tracking speed is improved. A final spatio-temporal information response diagram is obtained, the target state is predicted, the robustness of the tracker is enhanced, meanwhile, a memory updating method based on sample gradients is designed, the problem of algorithm performance degradation caused by sample imbalance is solved through gradient information of samples, the adaptive capacity of the tracker to target changes is improved, and the tracking accuracy is improved. Therefore, the precision and efficiency of target tracking in an educational interaction system based on an algorithm, artificial intelligence and augmented reality are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of educational interaction technology, and in particular to an educational interaction system based on algorithms, artificial intelligence and augmented reality. Background Art

[0002] Online educational interactive systems enable teachers and students to communicate in all directions through the Internet, quickly narrowing the psychological distance between teachers and students. They are not restricted by factors such as teaching resources and learning environment in traditional education, and can realize personalized and intelligent education models through technologies such as artificial intelligence and augmented reality. Therefore, it is very valuable to study educational interactive systems based on algorithms, artificial intelligence and augmented reality. With the rapid development of artificial intelligence technology and computer vision technology, by collecting video information of teachers and students in the teaching process, using pattern recognition technology to process and analyze the postures of teachers and students, analyzing students' performance in teaching and the degree of understanding of the knowledge they have learned, and then realizing communication and interaction between teachers and students through augmented reality technology without the need for actual teaching venues. It is necessary to detect the area where the teachers and students are located, track the target body, and identify the target posture.

[0003] When tracking a target in an actual teaching scenario, the accuracy and robustness of the target tracking algorithm are difficult to guarantee due to challenging problems such as frequent changes in the target's posture, being blocked by other objects, or even the target escaping from the field of view. Therefore, the designed tracker needs to be able to guarantee the accuracy and robustness of human body tracking in tracking scenarios such as target deformation and occlusion. Spatial information has the state information of the target in the current frame, which can effectively improve the accuracy of the tracking algorithm in predicting the target in the current scene. However, most tracking methods only consider the spatial expression of the target. When the tracker is in a scene where the target's appearance suddenly changes significantly, it is difficult to maintain tracking accuracy. Temporal information has the target's historical state change information, which can more accurately determine the target position and improve the robustness of tracking. In addition, most tracking methods do not distinguish between the generated training samples when performing online updates. In fact, the imbalance of positive and negative samples in the generated training samples will cause the tracker model to introduce error information in the update learning, causing the tracker performance to degrade and making it difficult to achieve continuous tracking of targets with changing appearance. Summary of the invention

[0004] In response to the above problems, the present invention proposes an educational interactive system based on algorithms, artificial intelligence and augmented reality, and designs an online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update. The robustness of tracking is improved by means of target time and space dimensional information, and the stability of tracking is improved by adaptively fusing the two types of information. In addition, in response to the problem of online memory update, sample gradient information is used for memory update, which improves the accuracy of memory update and the adaptability of the tracking algorithm to target deformation, facilitates the recognition and analysis of the postures of teachers and students in the teaching process, and then realizes efficient communication between teachers and students in the education process, so that both teachers and students can have a better classroom experience.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0006] The educational interactive system based on algorithm, artificial intelligence and augmented reality of the present invention is characterized in that the system includes a teacher-student posture data acquisition module, a teacher-student posture algorithm analysis module and an augmented reality interaction module;

[0007] The teacher-student posture data acquisition module is used to collect the body postures of teachers and students during online teaching, and to shoot teachers and students in real time through a network camera to obtain the action videos of teachers and students during class, and then transmit the obtained video image sequence to the teacher-student posture algorithm analysis module for processing and analysis;

[0008] The teacher-student posture algorithm analysis module is used to further analyze the video image sequence collected by the teacher-student posture data acquisition module, including a human body dynamic detection algorithm, a human body tracking algorithm and a human body posture recognition algorithm. The human body dynamic detection algorithm is used to detect the human body in the first frame of the video image sequence given by the teacher-student posture data acquisition module, and give the human body state information, and then use the detected human body state information as the initial information of the human body tracking algorithm; the human body tracking algorithm uses the initial information given by the human body dynamic detection algorithm, and uses a designed online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update in subsequent video image sequences to track teachers and students in real time during the teaching process, and gives the position information and scale information of the tracked object in each frame of the video image sequence; the human body posture recognition algorithm is used to identify the shape of the current tracked object, and according to the position information and scale information of the tracked object given by the human body tracking algorithm, determine the recognition area of ​​the posture recognition algorithm, and recognize the posture form of the target;

[0009] The augmented reality interaction module is used to interact the teacher-student posture information in reality in the virtual world, and integrate the virtual and real environments according to the target posture information processed in the teacher-student posture algorithm analysis module to improve the realism and interactivity of online teaching.

[0010] Furthermore, the process of the designed online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update is as follows:

[0011] Step 1: Obtain the target search area of ​​the first frame based on the known initial frame image and the target's initial real position information;

[0012] Step 2: Use the VGG16 backbone network to extract target feature information, train the spatiotemporal memory network online, and store the target's true state in the spatiotemporal memory network;

[0013] Step 3: Read the next frame of image and use the VGG16 backbone network to extract the current image features;

[0014] Step 4: Input the target feature information extracted from the current frame into the spatiotemporal memory network, and combine it with the memory content related to the target to mine the target state changes from the two dimensions of time and space to obtain the time feature response map and the space feature response map;

[0015] Step 5: Fuse the temporal feature response map and the spatial feature response map to obtain the final spatiotemporal information response map and predict the target position and scale information;

[0016] Step 6: Judge the current tracking prediction result. If the memory update condition is met, execute step 7. If not, skip step 7 and execute step 8.

[0017] Step 7: Use the VGG16 backbone network to extract the target feature information in the current frame prediction result, and store the extracted target feature information in the memory. Use the state information of the target in the memory to update the spatiotemporal memory network online;

[0018] Step 8: Loop steps 3 to 7 to perform online real-time prediction of the target state until the video sequence ends.

[0019] Furthermore, the process of mining the target space state change by using multi-layer target features is as follows:

[0020] Step 1: Input the target search area image into the VGG-16 network, and extract the network's conv3 layer, conv4 layer, and conv5 features as the target spatial information depth features F3, F4, and F5 respectively;

[0021] Step 2: Use 1×1 convolutional layers separately The target’s different spatial information depth features F3, F4, and F5 are downsampled to the same dimension to obtain F3′, F4′, and F5′, and then the different spatial information depth features in the same dimension are fused to obtain F s ′:

[0022]

[0023] Among them, d represents the number of layers for extracting features. Represents the convolution of features at different layers, F d Represents the depth features of spatial information at different layers, F s ′ represents the multi-spatial information features after fusion of down-sampling features;

[0024] Step 3: The fused multi-spatial information feature F s ′ is input to the constructed global average pooling layer and fully connected layer to obtain the global representation information F of the fusion feature g :

[0025] F g =φ FC (φ GAP (F s ))

[0026] where φ GAP represents global average pooling, φ FC represents the fully connected layer, F g Represents a global representation that integrates multiple spatial information features;

[0027] Step 4: Construct parallel fully connected layers and Softmax layers to learn the weights of different spaces for expressing target information. Use the learned weights to re-weight and fuse the spatial information F3′, F4′, and F5′ of the same dimension obtained in step 2 to obtain the final target feature F that fuses multiple layers of spatial information. s ;

[0028]

[0029] in, Represents the parallel fully connected layer corresponding to the d-th layer spatial features;

[0030] Step 5: Pass the 1×1 convolution layer The target feature F that integrates multiple layers of spatial information s Dimensionality reduction, obtain the target space information response map S s :

[0031]

[0032] Furthermore, the process of mining target time series information using target deep features is as follows:

[0033] Step 1: Use the convolutional feature F5 of the conv5 layer and the target state c stored in the memory network of the previous frame n-1They are input into the convolutional long short-term memory network to mine the target’s changing information in time series:

[0034]

[0035]

[0036]

[0037]

[0038]

[0039] Among them, n represents the number of frames of the current image in the video, c n-1 represents the historical state information of the target before the nth frame, W represents the weight matrix of the convolutional long short-term memory network, b represents the bias matrix in the convolutional long short-term memory network, W and b are obtained by online training from the previous frame, i n It means to filter out the feature information that can effectively represent the current frame target from the current frame information and historical target status, f n Indicates that the feature information that is invalid for the current frame target is removed from the current frame information and historical target status. n Indicates the hidden state of the next frame combined with the target history information, '*' indicates the convolution operation, Indicates the corresponding element multiplication operation;

[0040] Step 2: Through 1×1 convolution layer The target time feature F of the fused target history state t Dimensionality reduction, obtain the target time information response map S t :

[0041]

[0042] Furthermore, the process of fusing the target spatial dimension information and the temporal dimension information to obtain the final spatiotemporal information response map is as follows:

[0043] S=λ s ·S s +λ t ·S t

[0044] Among them, λ s represents the parameter that controls the importance of the target spatial information response map, λ t represents the parameter that controls the importance of the target time information response map, S represents the final response map after the target integrates the spatiotemporal information, and λ s and λ tIt is a hyperparameter set artificially, and the current state of the target is determined according to the final generated spatiotemporal information response graph.

[0045] Furthermore, the current prediction target result is judged whether online memory update is needed, which is calculated by the following formula:

[0046] Calculate the signal-to-noise ratio (SNR) of the final response graph of the current frame:

[0047] SNR(s)=exp(max(s)-mean(s))

[0048] Among them, max() means taking the maximum value in the final response map, mean() means taking the average value in the final response map, and a threshold th is set. When the signal-to-noise ratio SNR is greater than or equal to the threshold, the current tracking result is accepted into the memory and the tracking model is updated. When the signal-to-noise ratio SNR is less than the threshold, the online memory update part is skipped and the next frame image is tracked.

[0049] Furthermore, the process of constructing an online memory update loss function based on sample gradient is as follows:

[0050] Step 1: Obtain sample gradient density information GD(g), which can reflect the number of samples in a certain gradient range, reduce the focus on a large number of simple negative samples and particularly difficult samples, and avoid overfitting:

[0051]

[0052] Among them, g represents the gradient modulus, which is given by Get, y represents the sample label, the value is 1 or 0, is the predicted value, which reflects the closeness between the prediction and the true label. The value is between 0 and 1. N is the total number of samples used for training. ε (g k ,g) means that in the sample, the gradient modulus is Sample information within the range, l ε (g) indicates The length of the range;

[0053] Step 2: Introduce the sample gradient density information GD(g) into the high-quality focus loss function to generate a loss function based on sample gradient information that can balance different sample ratios:

[0054]

[0055] The online target tracking algorithm based on sample gradient memory update, most tracking methods only consider the expression of the target in space, the spatial information has the state information of the target in the current frame, which can effectively improve the accuracy of the tracking algorithm for the target prediction in the current scene, but the tracker is difficult to maintain the accuracy of tracking when facing a scene where the target appearance suddenly changes greatly, and the time information has the target's historical state change information, which can more accurately determine the target position and improve the robustness of tracking. To address this problem, this algorithm mines the target state under different spatial states by fusing shallow convolution features and deep convolution features, and mines the target's changes in time series through long short-term memory networks. With the help of the two-dimensional information of target time and space, the robustness of tracking is improved, and the fusion of the two-dimensional information improves the stability of tracking. In addition, for the problem of online memory update, the sample gradient information is used for memory update, which improves the accuracy of memory update and the adaptability of the tracking algorithm to target deformation, which is convenient for the recognition and analysis of the postures of teachers and students in the teaching process, and then realizes the efficient communication between teachers and students in the education process, so that both teachers and students can have a better classroom experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The invention is further illustrated by the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the invention. A person skilled in the art can obtain other drawings based on the following drawings without creative work.

[0057] Figure 1 It is a structural diagram of the educational interactive system based on algorithm, artificial intelligence and augmented reality provided by the present invention. DETAILED DESCRIPTION

[0058] See also Figure 1 , the educational interactive system based on algorithm, artificial intelligence and augmented reality of this embodiment, the system includes a teacher-student posture data acquisition module, a teacher-student posture algorithm analysis module and an augmented reality interaction module;

[0059] The teacher-student posture data acquisition module is used to collect the body postures of teachers and students during online teaching, and to shoot teachers and students in real time through a network camera to obtain the action videos of teachers and students during class, and then transmit the obtained video image sequence to the teacher-student posture algorithm analysis module for processing and analysis;

[0060] The teacher-student posture algorithm analysis module is used to further analyze the video image sequence collected by the teacher-student posture data acquisition module, including a human body dynamic detection algorithm, a human body tracking algorithm and a human body posture recognition algorithm. The human body dynamic detection algorithm is used to detect the human body in the first frame of the video image sequence given by the teacher-student posture data acquisition module, and give the human body state information, and then use the detected human body state information as the initial information of the human body tracking algorithm; the human body tracking algorithm uses the initial information given by the human body dynamic detection algorithm, and uses a designed online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update in subsequent video image sequences to track teachers and students in real time during the teaching process, and gives the position information and scale information of the tracked object in each frame of the video image sequence; the human body posture recognition algorithm is used to identify the shape of the current tracked object, and according to the position information and scale information of the tracked object given by the human body tracking algorithm, determine the recognition area of ​​the posture recognition algorithm, and recognize the posture form of the target;

[0061] The augmented reality interaction module is used to interact the teacher-student posture information in reality in the virtual world, and integrate the virtual and real environments according to the target posture information processed in the teacher-student posture algorithm analysis module to improve the realism and interactivity of online teaching.

[0062] Preferably, the designed online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update has the following process:

[0063] Step 1: Obtain the target search area of ​​the first frame based on the known initial frame image and the target's initial real position information;

[0064] Step 2: Use the VGG16 backbone network to extract target feature information, train the spatiotemporal memory network online, and store the target's true state in the spatiotemporal memory network;

[0065] Step 3: Read the next frame of image and use the VGG16 backbone network to extract the current image features;

[0066] Step 4: Input the target feature information extracted from the current frame into the spatiotemporal memory network, and combine it with the memory content related to the target to mine the target state changes from the two dimensions of time and space to obtain the time feature response map and the space feature response map;

[0067] Step 5: Fuse the temporal feature response map and the spatial feature response map to obtain the final spatiotemporal information response map and predict the target position and scale information;

[0068] Step 6: Judge the current tracking prediction result. If the memory update condition is met, execute step 7. If not, skip step 7 and execute step 8.

[0069] Step 7: Use the VGG16 backbone network to extract the target feature information in the current frame prediction result, and store the extracted target feature information in the memory. Use the state information of the target in the memory to update the spatiotemporal memory network online;

[0070] Step 8: Loop steps 3 to 7 to perform online real-time prediction of the target state until the video sequence ends.

[0071] Preferably, the process of mining the target space state change by using multi-layer target features is as follows:

[0072] Step 1: Input the target search area image into the VGG-16 network, and extract the network's conv3 layer, conv4 layer, and conv5 features as the target spatial information depth features F3, F4, and F5 respectively;

[0073] Step 2: Use 1×1 convolutional layers separately The target’s different spatial information depth features F3, F4, and F5 are downsampled to the same dimension to obtain F3′, F4′, and F5′, and then the different spatial information depth features in the same dimension are fused to obtain F s ′:

[0074]

[0075] Among them, d represents the number of layers for extracting features. Represents the convolution of features at different layers, F d Represents the depth features of spatial information at different layers, F s ′ represents the multi-spatial information features after fusion of down-sampling features;

[0076] Step 3: The fused multi-spatial information feature F s ′ is input to the constructed global average pooling layer and fully connected layer to obtain the global representation information F of the fusion feature g :

[0077] F g =φ FC (φ GAP (F s ))

[0078] where φ GAP represents global average pooling, φ FC represents the fully connected layer, F g Represents a global representation that integrates multiple spatial information features;

[0079] Step 4: Construct parallel fully connected layers and Softmax layers to learn the weights of different spaces for expressing target information. Use the learned weights to re-weight and fuse the spatial information F3′, F4′, and F5′ of the same dimension obtained in step 2 to obtain the final target feature F that fuses multiple layers of spatial information. s ;

[0080]

[0081] in, Represents the parallel fully connected layer corresponding to the d-th layer spatial features;

[0082] Step 5: Pass the 1×1 convolution layer The target feature F that integrates multiple layers of spatial information s Dimensionality reduction, obtain the target space information response map S s :

[0083]

[0084] Preferably, the process of mining target time series information using target deep features is as follows:

[0085] Step 1: Use the convolutional feature F5 of the conv5 layer and the target state c stored in the memory network of the previous frame n-1 They are input into the convolutional long short-term memory network to mine the target’s changing information in time series:

[0086]

[0087]

[0088]

[0089]

[0090]

[0091] Among them, n represents the number of frames of the current image in the video, c n-1 represents the historical state information of the target before the nth frame, W represents the weight matrix of the convolutional long short-term memory network, b represents the bias matrix in the convolutional long short-term memory network, W and b are obtained by online training from the previous frame, i n It means to filter out the feature information that can effectively represent the current frame target from the current frame information and historical target status, f n Indicates that the feature information that is invalid for the current frame target is removed from the current frame information and historical target status. n Indicates the hidden state of the next frame combined with the target history information, '*' indicates the convolution operation, Indicates the corresponding element multiplication operation;

[0092] Step 2: Through 1×1 convolution layer The target time feature F of the fused target history state t Dimensionality reduction, obtain the target time information response map S t :

[0093]

[0094] Preferably, the process of fusing the target space dimension information and the time dimension information to obtain the final space-time information response map is as follows:

[0095] S=λ s ·S s +λ t ·S t

[0096] Among them, λ s represents the parameter that controls the importance of the target spatial information response map, λ t represents the parameter that controls the importance of the target time information response map, S represents the final response map after the target integrates the spatiotemporal information, and λ s and λ t It is a hyperparameter set artificially, and the current state of the target is determined according to the final generated spatiotemporal information response graph.

[0097] Preferably, the current prediction target result is judged whether online memory update is required, which is calculated by the following formula:

[0098] Calculate the signal-to-noise ratio (SNR) of the final response graph of the current frame:

[0099] SNR(s)=exp(max(s)-mean(s))

[0100] Among them, max() means taking the maximum value in the final response map, mean() means taking the average value in the final response map, and a threshold th is set. When the signal-to-noise ratio SNR is greater than or equal to the threshold, the current tracking result is accepted into the memory and the tracking model is updated. When the signal-to-noise ratio SNR is less than the threshold, the online memory update part is skipped and the next frame image is tracked.

[0101] Preferably, the process of constructing an online memory update loss function based on sample gradient is as follows:

[0102] Step 1: Obtain sample gradient density information GD(g), which can reflect the number of samples in a certain gradient range, reduce the focus on a large number of simple negative samples and particularly difficult samples, and avoid overfitting:

[0103]

[0104] Among them, g represents the gradient modulus, which is given by Get, y represents the sample label, the value is 1 or 0, is the predicted value, which reflects the closeness between the prediction and the true label. The value is between 0 and 1. N is the total number of samples used for training. ε (g k ,g) means that in the sample, the gradient modulus is Sample information within the range, l ε (g) indicates The length of the range;

[0105] Step 2: Introduce the sample gradient density information GD(g) into the high-quality focus loss function to generate a loss function based on sample gradient information that can balance different sample ratios:

[0106]

[0107] Among them, γ represents the adjustment factor, which is a hyperparameter set artificially, and the loss function L based on the sample gradient information qf-GHM It can reduce the overfitting of simple negative samples and avoid the decrease in the ability of the memory network to express target state changes due to the influence of accumulated errors on online updates during tracking. At the same time, it enhances the learning of existing knowledge and improves the robustness of the tracker.

[0108] The human body tracking algorithm in the teacher-student posture algorithm analysis module of this preferred example adopts a designed online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update. By fusing shallow convolution features and deep convolution features to mine target states under different spatial states and mining target changes in time series through long and short-term memory networks, the robustness of tracking is improved by using target time and space two-dimensional information, and the fusion of two-dimensional information improves the stability of tracking. In addition, for the problem of online memory update, sample gradient information is used for memory update, which improves the accuracy of memory update and the adaptability of tracking algorithm to target deformation, making it easier to identify and analyze the teacher-student postures during teaching, thereby achieving efficient communication between teachers and students during the education process, so that both teachers and students can have a better classroom experience. In actual computer vision application scenarios, due to the challenges of frequent target movement, lighting changes, occlusion by other objects, and low frame rate jamming caused by network speed, the accuracy and robustness of the target tracking algorithm are difficult to guarantee. At the same time, most tracking methods only consider the spatial expression of the target, and the spatial information has the state information of the current frame target. , which can effectively improve the accuracy of the tracking algorithm in predicting the target in the current scene. However, it is difficult for the tracker to maintain the tracking accuracy when facing a scene where the target appearance suddenly changes significantly. The time information has the target's historical state change information, which can more accurately determine the target position and improve the robustness of tracking. To address this problem, a target spatiotemporal memory tracking method is designed. This method considers and fuses the changes of the target in time and space during the tracking process. Specifically, the target search area is input into the VGG16 backbone network, and the convolutional features of the conv3 layer, conv4 layer and conv5 layer of the network are extracted. The shallow spatial detail information and the deep spatial semantic information are fused through the designed spatial information coordination network to obtain the final spatial information response map. At the same time, the conv5 layer convolutional features are input into the long short-term memory network to mine the target's temporal change information and obtain the temporal information response map. Finally, the spatial information response map and the temporal information response map are weightedly fused to obtain the final target response map, realizing the fusion process of the target's spatial and temporal information. This method can complementarily utilize the target information changes in the two dimensions of time and space, thereby improving the accuracy and robustness of the tracking algorithm.In addition, in order to adapt to the appearance changes of the target during the tracking process, most methods will update the tracking model online, but the update is often to generate some training samples in the current frame. In fact, for online updates, the imbalance of positive and negative samples in the generated training samples will cause the performance of the tracker model to degrade, making it difficult to continuously track targets with appearance changes. To address this problem, an online update strategy based on sample gradient information is designed. Specifically, the gradient modulus of the sample is obtained according to the difference between the predicted value and the true label, and the sample gradient density information is constructed to reflect the number of samples in a certain gradient range. Finally, the sample gradient density information is fused into the high-quality focal loss function to generate a loss function based on sample gradient information. The loss function guides the online update of memory, which can reduce the overfitting problem of simple negative samples in the learning process, avoid the decrease in the ability of the memory network to express the target state changes due to the cumulative error affecting the online update during the tracking process, and enhance the learning of existing knowledge and improve the robustness of the tracker. ;

[0109] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, rather than to limit the scope of protection of the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the essence and scope of the technical solution of the present invention.

Claims

1. An educational interactive system based on algorithms, artificial intelligence and augmented reality, characterized by: The analysis system includes a teacher-student posture data acquisition module, a teacher-student posture algorithm analysis module, and an augmented reality interaction module; The teacher-student posture data acquisition module is used to collect the body postures of teachers and students during online teaching, and to shoot teachers and students in real time through a network camera to obtain the action videos of teachers and students during class, and then transmit the obtained video image sequence to the teacher-student posture algorithm analysis module for processing and analysis; The teacher-student posture algorithm analysis module is used to further analyze the video image sequence collected by the teacher-student posture data acquisition module, including a human body dynamic detection algorithm, a human body tracking algorithm and a human body posture recognition algorithm. The human body dynamic detection algorithm is used to detect the human body in the first frame of the video image sequence given by the teacher-student posture data acquisition module, and give the human body state information, and then use the detected human body state information as the initial information of the human body tracking algorithm; The human body tracking algorithm uses the initial information given by the human body dynamic detection algorithm, and uses a designed online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update in the subsequent video image sequence to track teachers and students in real time during the teaching process, and gives the position information and scale information of the tracked object in each frame of the video image sequence; The human body posture recognition algorithm is used to identify the shape of the current tracked object, determine the recognition area of ​​the posture recognition algorithm according to the position information and scale information of the tracked object given by the human body tracking algorithm, and identify the posture form of the target; The augmented reality interaction module is used to interact the teacher-student posture information in reality in the virtual world, and integrate the virtual and real environments according to the target posture information processed in the teacher-student posture algorithm analysis module to improve the realism and interactivity of online teaching.

2. The educational interactive system based on algorithm, artificial intelligence and augmented reality according to claim 1, characterized in that: The process of the designed online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update is as follows: Step 1: Obtain the target search area of ​​the first frame based on the known initial frame image and the target's initial real position information; Step 2: Use the VGG16 backbone network to extract target feature information, train the spatiotemporal memory network online, and store the target's true state in the spatiotemporal memory network; Step 3: Read the next frame of image and use the VGG16 backbone network to extract the current image features; Step 4: Input the target feature information extracted from the current frame into the spatiotemporal memory network, and combine it with the memory content related to the target to mine the target state changes from the two dimensions of time and space to obtain the time feature response map and the space feature response map; Step 5: Fuse the temporal feature response map and the spatial feature response map to obtain the final spatiotemporal information response map and predict the target position and scale information; Step 6: Judge the current tracking prediction result. If the memory update condition is met, execute step 7. If not, skip step 7 and execute step 8. Step 7: Use the VGG16 backbone network to extract the target feature information in the current frame prediction result, and store the extracted target feature information in the memory. Use the state information of the target in the memory to update the spatiotemporal memory network online; Step 8: Loop steps 3 to 7 to perform online real-time prediction of the target state until the video sequence ends.

3. The online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update according to claim 2 is characterized in that: The process of mining the target space state change by using multi-layer target features is as follows: Step 1: Input the target search area image into the VGG-16 network, and extract the network's conv3 layer, conv4 layer, and conv5 features as the target spatial information depth features F3, F4, and F5 respectively; Step 2: Use 1×1 convolutional layers separately The target’s different spatial information depth features F3, F4, and F5 are downsampled to the same dimension to obtain F3′, F4′, and F5′, and then the different spatial information depth features in the same dimension are fused to obtain F s ′: Among them, d represents the number of layers for extracting features. Represents the convolution of features at different layers, F d Represents the depth features of spatial information at different layers, F s ′ represents the multi-spatial information features after fusion of down-sampling features; Step 3: The fused multi-spatial information feature F s ′ is input to the constructed global average pooling layer and fully connected layer to obtain the global representation information F of the fusion feature g : F g =φ FC (f GAP (F s )) where φ GAP represents global average pooling, φ FC represents the fully connected layer, F g Represents a global representation that integrates multiple spatial information features; Step 4: Construct parallel fully connected layers and Softmax layers to learn the weights of different spaces for expressing target information. Use the learned weights to re-weight and fuse the spatial information F3′, F4′, and F5′ of the same dimension obtained in step 2 to obtain the final target feature F that fuses multiple layers of spatial information. s ; in, Represents the parallel fully connected layer corresponding to the d-th layer spatial features; Step 5: Pass the 1×1 convolution layer The target feature F that integrates multiple layers of spatial information s Dimensionality reduction, obtain the target space information response map S s :

4. The online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update according to claim 2 is characterized in that: The process of mining target time series information using target deep features is as follows: Step 1: Use the convolutional feature F5 of the conv5 layer and the target state c stored in the memory network of the previous frame n-1 They are jointly input into the convolutional long short-term memory network to mine the change information of the target in time series: Among them, n represents the number of frames of the current image in the video, c n-1 represents the historical state information of the target before the nth frame, W represents the weight matrix of the convolutional long short-term memory network, b represents the bias matrix in the convolutional long short-term memory network, W and b are obtained by online training from the previous frame, i n It means to filter out the feature information that can effectively represent the current frame target from the current frame information and historical target status, f n Indicates that the feature information that is invalid for the current frame target is removed from the current frame information and historical target status. n Indicates the hidden state of the next frame combined with the target history information, '*' indicates the convolution operation, Indicates the corresponding element multiplication operation; Step 2: Through 1×1 convolution layer The target time feature F of the fused target history state t Dimensionality reduction, obtain the target time information response map S t :

5. The online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update according to claim 2 is characterized in that: The process of fusing the target spatial dimension information and the temporal dimension information to obtain the final spatiotemporal information response map is as follows: S=λ s ·S s +λ t ·S t Among them, λ s represents the parameter that controls the importance of the target spatial information response map, λ t represents the parameter that controls the importance of the target time information response map, S represents the final response map after the target integrates the spatiotemporal information, and λ s and λ t It is a hyperparameter set artificially, and the current state of the target is determined according to the final generated spatiotemporal information response graph.

6. The online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update according to claim 2 is characterized in that: To determine whether online memory update is needed for the current prediction target result, the following formula is used to calculate: Calculate the signal-to-noise ratio (SNR) of the final response graph of the current frame: SNR(s)=exp(max(s)-mean(s)) Among them, max() means taking the maximum value in the final response map, mean() means taking the average value in the final response map, and a threshold th is set. When the signal-to-noise ratio SNR is greater than or equal to the threshold, the current tracking result is accepted into the memory and the tracking model is updated. When the signal-to-noise ratio SNR is less than the threshold, the online memory update part is skipped and the next frame image is tracked.

7. The online target tracking algorithm based on target spatiotemporal memory and sample gradient memory update according to claim 2 is characterized in that: The process of constructing an online memory update based on the sample gradient loss function is as follows: Step 1: Obtain sample gradient density information GD(g), which can reflect the number of samples in a certain gradient range, reduce the focus on a large number of simple negative samples and particularly difficult samples, and avoid overfitting: Among them, g represents the gradient modulus, which is given by Get, y represents the sample label, the value is 1 or 0, is the predicted value, which reflects the closeness between the prediction and the true label. The value is between 0 and 1. N is the total number of samples used for training. ε (g k ,g) means that in the sample, the gradient modulus is Sample information within the range, l ε (g) indicates The length of the range; Step 2: Introduce the sample gradient density information GD(g) into the high-quality focus loss function to generate a loss function based on sample gradient information that can balance different sample ratios: Among them, γ represents the adjustment factor, which is a hyperparameter set artificially, and the loss function L based on the sample gradient information qf-GHM It can reduce the overfitting of simple negative samples and avoid the decrease in the ability of the memory network to express target state changes due to the influence of accumulated errors on online updates during tracking. At the same time, it enhances the learning of existing knowledge and improves the robustness of the tracker.

Citation Information

Patent Citations

  • Deep integration target tracking method based on time and space network

    CN109934846A

  • Time-space information combined online learning method

    CN110211156A

  • Teacher tracking teaching system based on double-camera interaction

    CN110933316A

  • Space-time information integrated intelligent tracking method based on complex background

    CN111932583A

  • Target tracking algorithm based on state perception template updating

    CN113052875A