Intelligent education monitoring management system based on cloud platform

Through the smart education monitoring and management system based on the cloud platform, face and micro-expression recognition technology is used to monitor students' identities and behaviors in real time, solving the problem of teachers' difficulty in understanding students' classroom emotions and behaviors under the traditional education model, and achieving efficient classroom management. and improve teaching efficiency.

CN118735124AInactive Publication Date: 2024-10-01HUBEI KAINATE TECH CO LTD

Patent Information

Application Number
CN202410903694.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Under the traditional education model, it is difficult for teachers to understand students' emotional states and behaviors in class in real time, resulting in low teaching efficiency, and there are problems such as students skipping classes, taking substitute classes, and inattention. Traditional face recognition and speech recognition technologies are used in large classrooms. Not very effective.

Method used

The smart education monitoring and management system based on the cloud platform establishes a face comparison database through the database construction unit, the model training unit builds the face and micro-expression recognition model, the identity recognition unit uses Euclidean distance to identify student identities, and the attendance sign-in unit counts sign-ins in real time. Situation, the information extraction unit analyzes micro-expressions and behaviors, the expression recognition unit displays the student's expression status, the behavior recognition unit performs behavior detection, and combines cameras and optical flow networks to achieve real-time monitoring.

Benefits of technology

It achieves accurate identification of students' identities and expressions, prevents substitutions and absenteeism, improves teaching efficiency, understands students' physical status in a timely manner, reduces the probability of student absenteeism, and improves the accuracy of classroom management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735124A_ABST
    Figure CN118735124A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent education monitoring management system based on a cloud platform, which relates to the technical field of education management and comprises a database construction unit, a model training unit, an identity recognition unit, an attendance check-in unit, an information extraction unit, an expression recognition unit and a behavior recognition unit. One student is randomly and respectively positioned through the information extraction unit according to the four cameras which are fixedly arranged, four students can be monitored in each time period, the monitoring time is 5 seconds each time, face key features obtained in the process are used for analyzing micro-expression changes, and by reducing the dimensionality of optical flow feature information, the micro-expression change is analyzed. Important information reserved between images is predicted and analyzed, the micro-expression recognition capability is improved, the obtained frame images are used for analyzing behavior changes, the recognition accuracy is improved, facial expression recognition is conducted on student classroom images through the expression recognition unit, and the expression state values of students in class are displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of education management, and in particular to a cloud platform-based smart education monitoring and management system. Background Art

[0002] The school management level, teacher management ability, student learning behavior, class size and class nature affect the effect of classroom management. Student classroom performance is related to learning results. We advocate compliance with classroom discipline and maintaining a good learning state. With the rapid development of Internet technology and embedded technology, the Internet of Things has penetrated into all areas of daily life and production. Video surveillance technology integrating computer technology, network technology and digital video technology has emerged. With the integration of automatic control, multimedia technology and 3G technology with video surveillance systems, monitoring technology has also developed rapidly. The monitoring system uses the network to connect scattered and independent image acquisition points to achieve cross-regional unified monitoring, unified management, resource sharing, and management tools that expand the visual range;

[0003] Under the traditional education model, teachers can only perceive students' learning status through visual observation during the teaching process. They cannot understand each student's real-time classroom emotional state and it is difficult to give true feedback on students' listening status in class, resulting in low teaching efficiency. In addition, roll call and sign-in waste time. Although it is currently possible to sign-in through mobile phone positioning, the positioning is too flexible, which provides a lot of room for students to skip classes. There is also the phenomenon of students substituting for classes. Students are prone to inattention, drowsiness, whispering, etc. in class. There is also the situation where physical discomfort cannot be discovered in time. Traditional face recognition and voice recognition are no longer reliable enough. For classrooms with larger areas, there are differences in student positions and individuals, making it difficult to fully play their role. Summary of the invention

[0004] The purpose of the present invention is to provide a smart education monitoring and management system based on a cloud platform to solve the problems raised in the above-mentioned background technology.

[0005] To achieve the above-mentioned purpose, the present invention provides the following technical solutions: a cloud platform-based smart education monitoring and management system, comprising a database construction unit, wherein the database construction unit starts a camera to read a face video stream, reads an image in the video stream, converts a color RGB mode image into a gray image, detects the grayed face image using an adaboost algorithm of a Haar-like feature, sets a reduction ratio of the image, marks the detected face with a box, and sequentially establishes a face comparison database for all students in the class by accumulating face counts;

[0006] A model training unit, wherein the model training unit constructs a face recognition model and a micro-expression recognition model. The face recognition model obtains a training set of images of the face recognition model from a face comparison database. Each image is marked with a number when it is entered. The training set images are traversed, and the images and number information in the training set are used as input for the face recognition model training. The model is saved at the same time. The micro-expression recognition model initializes the face image data set in the face comparison database, and builds a CNN model to train the micro-expression recognition model. The model training is completed by determining the input features of the information.

[0007] An identity recognition unit, wherein the identity recognition unit imports a student face comparison database according to a class schedule, retrieves a previously trained student face recognition model, collects student face images in the classroom through a camera, extracts features of the detected faces, and marks the location of the face with a red frame when it is determined that a face exists, calculates the Euclidean distance between the features of the student face image and the face features in the database, compares the Euclidean distance with a preset threshold, and then recognizes the student identity;

[0008] Attendance sign-in unit, which aggregates attendance information to the front-end page. By comparing the number of students who should be present with the actual number of students present, the sign-in status of each course in each class can be checked. On the front-end page, each sign-in result is a data row. Click View Details in each sign-in result to view the sign-in details of each student in the class. After the teacher selects the basic information of the class and classroom, he / she can click the Sign-in button in the system to check the student attendance.

[0009] An information extraction unit, wherein the information extraction unit is provided with four cameras in front of the podium in the classroom, each camera is randomly positioned to shoot any student in the classroom, the camera captures the key features of the student's face in real time, analyzes the changes in muscle movement when micro-expressions occur, eliminates the interference of non-key areas on micro-expression recognition, uses an optical flow network to accurately analyze the movement change trend of the facial area between frame images, and statistically observes the optical flow changes of different micro-expressions, performs subsequent expression recognition, and realizes behavior recognition by extracting frame images;

[0010] An expression recognition unit, which uses a trained micro-expression recognition model to recognize facial expressions in student classroom images. When detecting student faces in the classroom, the unit predicts the probability values ​​of all expressions of each person, takes the expression with the highest probability as the final recognition result, counts the number of students with different types of expressions, and displays the comprehensive expression state value in a visual form;

[0011] The behavior recognition unit classifies and detects the acquired student faces according to facial features, performs facial expression detection and behavior detection on the students in the classroom respectively, and then performs fixed frame extraction according to the video sequence acquired in real time, detects two consecutive frames at the same time, removes invalid frames according to the frame image recognition results, and saves and counts the frame images that are effective for the detection effect, so as to perform system analysis and data collation.

[0012] Preferably, each time the database construction unit selects a face, the count is increased by 1 until the face count of the student reaches 1000, and the facial features extracted from the grayed face image selected are stored in the database in the form of a two-dimensional array, thereby completing the face comparison database of one student, and then establishing the face comparison database of all students in the class in turn.

[0013] Preferably, after the face recognition model in the model training unit grays out the image and converts it into an array in turn, the image path is split to obtain the image number, and then the image information and the number information are added to the list respectively, and the image and number information in the training set are used as input for the face recognition model training, so that the image information and the number information correspond to each other, so as to obtain the face recognition model of the students in the class, and save the model;

[0014] The micro-expression recognition model is optimized and saved by adjusting parameters, and the human brain electrical signals are analyzed by identifying facial expressions and used as input features to determine information. The residual network connection in CNN is used to jump-transfer feature data to the next layer to speed up the training process. 120 filters are loaded in every two residual structures, so that the output feature results of the information are input to the next convolutional layer, and the residual model is constructed in sequence. A large amount of Float32 type data is used to optimize the processing speed of the GPU, flattened data processing is used to reduce the calculation amount of the model, and an averaged fully connected layer is used to reduce the residual model parameters. The classification function is used to process the network training data set with the same specifications of the image at the same ratio as the database image size to increase the accuracy of the model.

[0015] The output results include the convolution optimization algorithm, which is:

[0016]

[0017] In the formula, G k,l,n represents the output feature result, m represents the number of input channels, n represents the number of output channels, l represents the feature data, k represents the convolution kernel, K and, represent the three-dimensional dimensions, i and j represent the cardinality;

[0018]

[0019] In the formula, represents the output result after filter convolution, represents the optimized input amount;

[0020]

[0021] Where Z represents the output result.

[0022] Preferably, the identity recognition unit includes an image acquisition module, an identity determination module and a target matching module. The image acquisition module starts the camera to read the face video to obtain the face image of the classroom student, unifies the image size of the face image, and uses the face detected in the process as the input of the face recognition model detection, and then compares the student image with the faces in the registered face database one by one. The identity determination module converts the features of the detected student face image and the face features in the database into a 128-dimensional face feature vector, and calculates the Euclidean distance between the two. According to whether the Euclidean distance is less than a threshold, it is determined whether the detected image finds the corresponding face image in the student face comparison database. The threshold is set to 1.05. If the Euclidean distance is less than a threshold, the corresponding face image is found in the student face comparison database. If the distance is less than the threshold, it is judged that the detected face image has a small feature difference with the student face comparison database, the student's identity is determined, and the system has no abnormalities. If the Euclidean distance is greater than the threshold, it is judged that the detected face image has a large feature difference with the student face comparison database, and a warning appears on the front-end page, indicating that there are unidentified students. The target matching module obtains the identities of the face images of the students in the class in turn, and then displays the attendance to prevent the occurrence of substitute classes. During the student identity recognition and verification process, each test image will have no less than two matching training images in the training set image, and there is no situation where a new face image is suddenly stored. The training images are collected and the input test images are trained in sequence to match similar targets.

[0023] Preferably, when the teacher of the attendance sign-in unit initiates classroom sign-in, the system will go to the database to query the device and device status. When it is detected that the camera is available, it will trigger a call to start the sign-in, compare the detected student face image with the faces in the registered face database one by one for similarity, record the time at this time, and update the number of attendees and student names in the database. At the same time, the sign-in result is displayed on the front-end page. The management of the entire sign-in function is managed by the controller. The academic administrator can view the sign-in results of each class through the system. If a class has an abnormal sign-in, it is determined that an early warning is needed for the sign-in of the class. The database records the early warning result and displays it on the front-end page.

[0024] Preferably, the information extraction unit includes a random shooting module and a region division module. The random shooting module starts the camera to capture the real-time video stream. Each student is shot for 5 seconds. After that, each camera changes its position to randomly shoot another student, obtains the student's class image and stores it in the database, grays the obtained image, and extracts the key point features of the face. The region division module inputs the micro-expression video frame into Deep CNN, extracts the key point features of the face, and adopts the facial motion division strategy according to the key point feature information of the face, that is, the facial motion area is divided by combining the external appearance of the micro-expression and the movement frequency of the facial area. Then, the first frame of the divided facial motion area and each frame of the synthetic image group are used as the input of the FlowNet2 optical flow estimation network. After extracting the optical flow features of each frame of the video image, the optical flow changes of each frame of the image in the facial motion area are statistically analyzed as the facial representation features for identifying micro-expressions. The optical flow changes of different micro-expressions are statistically observed, and subsequent expression recognition is performed. Deep CNN is composed of convolutional layers, pooling layers, and fully connected layers.

[0025] Preferably, the expression recognition unit includes a result display module, an expression visualization module and a record determination module. The result display module calls a trained micro-expression recognition model to traverse the student faces detected in the image, predicts the probability values ​​of all expressions of each person, outputs the expression with the highest probability of each person as the expression value at the current moment, displays the facial expression recognition results, and stores the results in a database. Facial expressions include five facial expressions: listening, doubt, understanding, resistance and disdain. Each facial expression corresponds to different facial features, eye features and lip features. The expression visualization module outputs the number of people with these five expressions in the image respectively, and obtains a comprehensive expression state value based on these numbers, visualizes the emotional state of the students in the class, and draws a classroom emotional state curve. In addition, the physical state of the students is obtained in time according to the expression to prevent the students from being unwell and not being able to know in time. The record determination module determines whether the current class is over. If not, continue to perform expression recognition on the students in the class. If it is over, turn off the camera and output the overall emotional state and emotional fluctuation of the students in the class.

[0026] Preferably, the behavior recognition unit includes a classification detection module, a target data acquisition module and a posture estimation module. The classification detection module performs facial judgment on the student's facial features based on the captured images. If it is found during the detection process that all the facial features exist and the features appear normal, expression recognition is performed. If during the recognition and judgment process, none of the facial features is detected, it will be judged as not a face, and such data will be discarded. If only one feature of the facial features is detected to appear normal, and it is determined that the student has abnormal behavior, the student's face is photographed multiple times. If such detection situation always exists, the student's behavior is further detected. The target data acquisition module acquires video sequences in real time for students with abnormal behavior in the classification detection module. The student's abnormal behavior usually lasts for more than a few seconds. The system extracts a frame once per second to reduce the number and amount of recognition calculations. The frame extraction processing of the video sequence is implemented through OpenCV. The camera acquisition process will inevitably be affected by noise, which interferes with the accuracy of subsequent detection and recognition. Therefore, it is preferred to denoise the image. A double denoising method of Gaussian filtering and then median filtering is performed. After the image preprocessing is completed, the recognition detection model is started. If the recognition result of the latest frame image is consistent with the recognition result of the previous frame, that is, the same person and the same behavior are recognized, the current result is discarded and not accumulated in the data statistics table, and the analysis of the next frame is continued. Finally, the effective detection result is output to the current frame image for display, and the student target is marked with a border, and the behavior classification label and confidence of the target are marked on the border respectively. At the same time, the target data is saved to facilitate system analysis and data sorting after class. The posture estimation module uses a posture estimation algorithm to track the key coordinate points of the input human 2D skeleton, normalizes the key coordinate points, discards the key points of the lower body of the human skeleton, eliminates the interference of irrelevant skeleton feature points on the recognition of students' classroom behavior, and adopts a standardized processing method to reduce the position differences and individual differences of different target students. The skeleton key coordinate points are used for normalization, and the skeleton limb connection lines and skeleton limb angles form feature vectors of different classroom behaviors, thereby providing data analysis for the system to determine the posture.

[0027] Compared with the prior art, the present invention has the following beneficial effects:

[0028] 1. The present invention trains a face recognition model and a micro-expression recognition model according to an established face comparison database through a database construction unit and a model training unit, thereby providing a detection basis for the identity recognition unit and the expression recognition unit. The training of the micro-expression recognition model is relatively complex, and a residual network connection is used to realize jump transmission, and the ordinary convolution operation is decomposed into two steps of deep convolution and filter combination to realize deep separation, reduce the amount of calculation, and accelerate the training process. The feature vector of the face detected in the classroom is obtained through the identity recognition unit and the Euclidean distance calculation formula is used to judge the feature difference, thereby realizing the identity recognition of the student, preventing the phenomenon of class substitution in the classroom, and also preventing students from other classes from going to the wrong classroom. The attendance rate of the students can be counted in real time through the attendance check-in unit. When attendance abnormality occurs, it is recorded in the system in the form of a warning to prompt the teaching teacher and the academic administrator, thereby reducing the probability of student absenteeism;

[0029] 2. The present invention randomly locates a student according to four fixed cameras through an information extraction unit. Four students will be monitored in each time period, and each monitoring time is 5 seconds. The key facial features obtained in the process are used to analyze micro-expression changes. By reducing the dimension of optical flow feature information, important information retained between images is predicted and analyzed, and local feature changes of micro-expressions are statistically analyzed to improve the ability to recognize micro-expressions. The obtained frame images are used to analyze behavioral changes, thereby improving recognition accuracy. The facial expression recognition unit is used to recognize students' classroom images, and the students' expression status values ​​in class are displayed. The teaching plan is adjusted according to the students' status. The students' physical status can be obtained in time according to the expression to prevent the students from being unwell and not being able to know in time. The behavior recognition unit is used to detect the students' behavior in the classroom, and the skeleton coordinate information is used to predict the students' classroom behavior to achieve accurate posture estimation. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A schematic diagram of the overall system flow provided by an embodiment of the present invention;

[0031] Figure 2 An internal module block diagram of an identity recognition unit provided by an embodiment of the present invention;

[0032] Figure 3 This is a block diagram of the internal modules of the information extraction unit, expression recognition unit and behavior recognition unit provided in an embodiment of the present invention.

[0033] In the figure: 1. Database construction unit; 2. Model training unit; 3. Identity recognition unit; 301. Image acquisition module; 302. Identity determination module; 303. Target matching module; 4. Attendance check-in unit; 5. Information extraction unit; 501. Random shooting module; 502. Area division module; 6. Expression recognition unit; 601. Result display module; 602. Expression visualization module; 603. Record determination module; 7. Behavior recognition unit; 701. Classification detection module; 702. Target data acquisition module; 703. Posture estimation module. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] See also Figure 1-3 The present invention provides a technical solution: a cloud platform-based smart education monitoring and management system, comprising a database construction unit 1, the database construction unit 1 starts a camera to read a face video stream, and reads an image in the video stream, converts a color RGB mode image into a gray image, uses the adaboost algorithm of the Haar-like feature to detect the grayed face image, and sets a reduction ratio of the image, selects and marks the detected face, and sequentially establishes a face comparison database of all students in the class by accumulating face counts;

[0036] Model training unit 2, model training unit 2 builds a face recognition model and a micro-expression recognition model. The face recognition model obtains the training set images of the face recognition model from the face comparison database. Each image is marked with a number when it is entered. The training set images are traversed, and the images and number information in the training set are used as input for the face recognition model training. The model is saved at the same time. The micro-expression recognition model initializes the face image data set in the face comparison database, and builds a CNN model to train the micro-expression recognition model. The model training is completed by determining the input features of the information.

[0037] Identity recognition unit 3, identity recognition unit 3 imports the student face comparison database according to the class schedule, calls the previously trained student face recognition model, collects the face images of the students in the classroom through the camera, extracts the features of the detected faces, and marks the location of the faces with a red frame when it is determined that there are faces, calculates the Euclidean distance between the features of the student face images and the face features in the database, compares the Euclidean distance with the preset threshold, and then identifies the student identity;

[0038] Attendance sign-in unit 4: Attendance sign-in unit 4 aggregates attendance information to the front-end page. By comparing the expected attendance number with the actual attendance number, the sign-in status of each course in each class can be checked. On this front-end page, each sign-in result is a data row. Click View Details in each sign-in result to view the sign-in details of each student in the class. After the teacher selects the basic information of the class and classroom, he or she can click the Sign-in button in the system to check the student attendance.

[0039] Information extraction unit 5: Information extraction unit 5 is provided with four cameras in front of the podium in the classroom. Each camera is randomly positioned to shoot any student in the classroom. The camera captures the key features of the student's face in real time, analyzes the changes in muscle movement when micro-expressions occur, eliminates the interference of non-key areas on micro-expression recognition, uses the optical flow network to accurately analyze the movement change trend of the facial area between frame images, and statistically observes the optical flow changes of different micro-expressions, performs subsequent expression recognition, and realizes behavior recognition by extracting frame images;

[0040] Expression recognition unit 6, the expression recognition unit 6 performs facial expression recognition on the student classroom image through the trained micro-expression recognition model. When detecting the student faces in the classroom, the probability values ​​of all expressions of each person are predicted, and the expression with the maximum probability is used as the final recognition result. The number of different students corresponding to different categories of expressions is counted, and the comprehensive expression state value is displayed in a visual form;

[0041] The behavior recognition unit 7 classifies and detects the acquired student faces according to the facial features, and then detects the behavior of the students in the classroom through the classification detection results, and then extracts fixed frames according to the video sequence acquired in real time, detects two consecutive frames at the same time, removes invalid frames according to the frame image recognition results, and saves and counts the frame images that are effective for the detection effect.

[0042] The database construction unit 1 counts 1 each time a face is selected, until the face count of the student reaches 1000, and stores the facial features extracted from the grayed face image selected in the frame into the database in the form of a two-dimensional array, thus completing the face comparison database of one student, and sequentially building the face comparison database of all students in the class;

[0043] After the face recognition model in the model training unit 2 grays out the image and converts it into an array, the image path is split to obtain the image number, and then the image information and the number information are added to the list respectively, and the image and number information in the training set are used as inputs for the face recognition model training, so that the image information and the number information correspond to each other, so as to obtain the face recognition model of the students in the class, and save the model;

[0044] The micro-expression recognition model is optimized and saved. The human brain wave signal is analyzed through the recognized facial expression and used as the input feature to determine the information. The residual network connection in CNN is used to jump the feature data to the next layer to speed up the training process. 120 filters are loaded in every two residual structures so that the output feature results of the information are input to the next convolution layer, and the residual model is constructed in sequence. A large amount of Float32 type data is used to optimize the processing speed of the GPU. Flattened data processing is used to reduce the calculation amount of the model. The averaged fully connected layer is used to reduce the residual model parameters. The classification function is used to process the network training data set with the same image specifications in the same proportion as the database image size, and the final result is output to increase the accuracy of the model.

[0045] The output results include the convolution optimization algorithm, which is:

[0046]

[0047] In the formula, G k,l,n represents the output feature result, m represents the number of input channels, n represents the number of output channels, l represents the feature data, k represents the convolution kernel, K and, represent the three-dimensional dimensions, i and j represent the cardinality;

[0048]

[0049] In the formula, represents the output result after filter convolution, represents the optimized input amount;

[0050]

[0051] Where Z represents the output result.

[0052] The identity recognition unit 3 includes an image acquisition module 301, an identity determination module 302 and a target matching module 303. The image acquisition module 301 starts the camera to read the face video to obtain the face image of the classroom student, unifies the image size of the face image, and uses the face detected in the process as the input of the face recognition model detection, and then compares the student image with the faces in the registered face database one by one. The identity determination module 302 converts the features of the detected student face image and the face features in the database into a 128-dimensional face feature vector, and calculates the Euclidean distance between the two. According to whether the Euclidean distance is less than a threshold, it is determined whether the detected image finds a corresponding face image in the student face comparison database. The threshold is set to 1.05, if the Euclidean distance is less than the threshold, it is judged that the detected face image has a small feature difference with the student face comparison database, the student's identity is determined, and the system has no abnormality. If the Euclidean distance is greater than the threshold, it is judged that the detected face image has a large feature difference with the student face comparison database, and a warning appears on the front page, indicating that there are unidentified students. The target matching module 303 obtains the identity of the face images of the students in the class in turn, and then displays the attendance. During the student identity recognition and verification process, each test image will have no less than two matching training images in the training set image, and there is no situation where a new face image is suddenly stored. The training images are collected and the input test images are trained in sequence to match similar targets;

[0053] Attendance Sign-in Unit 4 When the teacher initiates classroom sign-in, the system will query the database for equipment and equipment status. When it detects that the camera is available, it will trigger a call to start sign-in, compare the detected student face image with the faces in the registered face database one by one, record the time at this time, and update the attendance number and student name in the database. At the same time, the sign-in result is displayed on the front-end page. The management of the entire sign-in function is managed by the controller. The academic administrator can view the sign-in results of each class through the system. If a class has an abnormal sign-in, it is determined that an early warning is needed for the sign-in of the class. The database records the early warning result and displays it on the front-end page;

[0054] The information extraction unit 5 includes a random shooting module 501 and a region division module 502. The random shooting module 501 starts the camera to capture the real-time video stream. Each student is photographed for 5 seconds. After that, each camera changes its position to randomly shoot another student, obtains the student's class image and stores it in the database, grays the obtained image, extracts the key point features of the face, and the region division module 502 inputs the micro-expression video frame into Deep CNN to extract the key point features of the face. According to the key point feature information of the face, a facial motion division strategy is adopted, that is, the facial motion area is divided by combining the external appearance of the micro-expression and the movement frequency of the facial area. Then, the first frame of the divided facial motion area and each frame of the synthetic image group are used as the input of the FlowNet2 optical flow estimation network. After extracting the optical flow features of each frame of the video image, the optical flow changes of each frame of the image in the facial motion area are statistically analyzed as the facial appearance features for identifying micro-expressions. The optical flow changes of different micro-expressions are statistically observed, and subsequent expression recognition is performed to improve the recognition rate of micro-expressions.

[0055] The expression recognition unit 6 includes a result display module 601, an expression visualization module 602 and a record determination module 603. The result display module 601 calls the trained micro-expression recognition model to traverse the student faces detected in the image, predicts the probability values ​​of all expressions of each person, outputs the expression with the highest probability of each person as the expression value at the current moment, displays the facial expression recognition result, and stores the result in a database. Facial expressions include five facial expressions: listening, doubt, understanding, resistance and disdain. Each facial expression corresponds to different facial features, eye features and lip features. The expression visualization module 602 outputs the number of people with these five expressions in the image respectively, and obtains a comprehensive expression state value based on these numbers, visualizes the emotional state of the students in the class, and draws a classroom emotional state curve. In addition, the physical state of the students is obtained in time according to the expression. The record determination module 603 determines whether the current class is over. If not, continue to perform expression recognition on the students in the class. If it is over, turn off the camera and output the overall emotional state and emotional fluctuation of the students in the class.

[0056] The behavior recognition unit 7 includes a classification detection module 701, a target data acquisition module 702 and a posture estimation module 703. The classification detection module 701 performs face judgment on the facial features of the student based on the captured image. If it is found that all the facial features exist and the features are displayed normally during the detection process, expression recognition is performed. If none of the facial features is detected during the recognition and judgment process, it will be judged as not a face and such data will be discarded. If only one feature of the facial features is detected to be normal, it is judged that the student has abnormal behavior, and the student's face is photographed multiple times. If such detection situation always exists, the student's behavior is further detected. The target data acquisition module 702 obtains video sequences of students with abnormal behavior in the classification detection module 701 in real time. The abnormal behavior of the students usually lasts for more than a few seconds. The system extracts a frame once per second to reduce the number and amount of recognition calculations. The frame extraction processing of the video sequence is realized through OpenCV. The camera acquisition process will inevitably be affected by noise, which interferes with the accuracy of subsequent detection and recognition. Therefore, the image is denoised first, and a double denoising method of first performing Gaussian filtering and then performing median filtering on the image is adopted. Noise method, after the image preprocessing is completed, the recognition detection model is started again. If the recognition result of the latest frame image is consistent with the recognition result of the previous frame, that is, the same person and the same behavior are recognized, the current result is discarded and not accumulated in the data statistics table, and the analysis of the next frame is continued. Finally, the effective detection result is output to the current frame image for display, and the student target is marked with a border, and the behavior classification label and confidence of the target are marked on the border respectively. At the same time, the target data is saved to facilitate system analysis and data sorting after class. The posture estimation module 703 uses a posture estimation algorithm to track the key coordinate points of the input human 2D skeleton, normalizes the key coordinate points, discards the key points of the lower body of the human skeleton, and eliminates the interference of irrelevant skeleton feature points on the recognition of student classroom behavior. The standardized processing method is used to reduce the position differences and individual differences of different target students, and the skeleton key coordinate points are used for normalization. The skeleton limb connection lines and skeleton limb angles form feature vectors of different classroom behaviors, thereby providing data analysis for the system to determine the posture. OpenCV is a cross-platform computer vision and machine learning software library released under the Apache2.0 license;

[0057] The key point features include nose, neck, right shoulder, right elbow, right wrist, left shoulder, left elbow and left wrist. The key coordinate point acquisition algorithm is:

[0058]

[0059] In the formula, [x′ i , y′ i ] represents the normalized key coordinate point position, including 8 key point features, [x i ,y i] respectively represent the key coordinate points before normalization, img wigth and img height Respectively represent the width and height of the frame image, x max and x mim Respectively represent the maximum x value and the minimum x value in the extracted skeleton coordinates, y max and min Respectively represent the maximum y value and the minimum y value in the extracted skeleton coordinates;

[0060] The skeleton limb connection lines include five limb connection lines between the nose and the neck, the right shoulder and the right elbow, the right elbow and the right wrist, the left shoulder and the left elbow, and the left elbow and the left wrist. The specific expression is:

[0061]

[0062] Where, d i,j represents the limb connection between key point i and key point j, (x i ,y i ) and (x j ,y j ) represent the x and y coordinates of key point i and key point j respectively;

[0063] The skeleton limb angles include the five angles between the line between the nose and the neck, the line between the right elbow and the right wrist, the line between the left elbow and the left wrist, and the north direction. The specific expression is:

[0064]

[0065] In the formula, h i,j and v i,j They represent the horizontal distance and vertical distance between key point i and key point j respectively, and p represents the angle feature vector.

[0066] Working principle: The present invention sequentially establishes a face comparison database for all students in the class corresponding to the timetable through a database construction unit 1, reads a face video stream through a camera, and reads an image in the video stream, converts a color RGB mode image into a gray image, detects the grayed face image, and after counting the faces of each selected student to 1000, stores the face features in the database in the form of a two-dimensional array, constructs a face recognition model and a micro-expression recognition model through a model construction unit 2, obtains a training set image of the face recognition model from the face comparison database, each image is marked with a number when entered, and uses the image and number information in the training set as input for the face recognition model training to obtain a face recognition model for students in the class, uses the recognized facial expression as the input feature for determining the micro-expression information, adopts the residual network connection in CNN, jumps the feature data to the next layer, loads 120 filters in each of the two residual structures, inputs the calculation results to the next convolutional layer, sequentially constructs the residual model, speeds up the training process, and uses the identity recognition unit 3 to identify the students according to the timetable. Import the student face comparison database, start the camera to read the face video to obtain the face images of the students in the classroom, unify the image size of the face images, use the faces detected in the process as the input of the face recognition model detection, and then compare the student image with the faces in the registered face database one by one, convert the features of the detected student face image and the face features in the database into 128-dimensional face feature vectors, and calculate the Euclidean distance between the two. According to whether the Euclidean distance is less than the threshold, determine whether the detected image finds the corresponding face image in the student face comparison database. If the Euclidean distance is less than the threshold, it is determined that the feature difference between the detected face image and the student face comparison database is small, the identity of the student is determined, and there is no abnormality in the system. If the Euclidean distance is greater than the threshold, it is determined that the feature difference between the detected face image and the student face comparison database is large, and a warning appears on the front-end page, indicating that there are unidentified students. During the student identity verification process, each test image will have at least two matching training images in the training set image to prevent the sudden storage of new face images.

[0067] The attendance check-in unit 4 automatically calls the check-in function according to the camera status, and displays the check-in result on the front-end page. The academic administrator finds that the class has abnormal check-in according to the front-end warning, and uses the information extraction unit 5 to randomly locate and shoot any student in the classroom according to the four fixed cameras. The camera captures the key features of the student's face in real time and analyzes the changes in muscle movement when micro-expressions occur. Each student is shot for 5 seconds, and then each camera changes its position and randomly shoots another student. The images of students in class are obtained and stored in the database. The optical flow network is used to accurately analyze the movement change trend of the facial area between frame images, and the optical flow changes of different micro-expressions are statistically observed for subsequent expression recognition. The video frame image can be extracted during the shooting process for subsequent behavior recognition. The expression recognition unit 6 counts the number of people corresponding to different categories of expressions of different students, and outputs the expression with the highest probability for each person as The expression value at the current moment displays the facial expression recognition result, and displays the comprehensive expression state value in a visual form. The behavior recognition unit 7 first pre-determines the behavior state through the detection state of the student's facial features and the display state of the facial features, and then focuses on the detection of suspicious abnormal states, and processes the video frame image sequence to improve the detection accuracy, save the target data, and facilitate system analysis and data sorting after class. The posture estimation algorithm is used to track the key coordinate points of the input human 2D skeleton, and the key point coordinates are normalized. The key points of the lower body of the human skeleton are discarded to eliminate the interference of irrelevant skeleton feature points on the recognition of students' classroom behavior. The standardized processing method is used to narrow the position differences and individual differences of different target students, and the skeleton key coordinate points are used for normalization. The skeleton limb lines and skeleton limb angles form characteristic vectors of different classroom behaviors, thereby providing data analysis for the system.

[0068] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A cloud-based smart education monitoring and management system, characterized in that: include: A database construction unit (1) starts a camera to read a face video stream, reads an image in the video stream, converts a color RGB mode image into a gray image, detects the grayed face image using an adaboost algorithm with Haar-like features, sets a reduction ratio for the image, marks the detected face, and sequentially establishes a face comparison database for all students in the class by accumulating face counts; A model training unit (2), wherein the model training unit (2) constructs a face recognition model and a micro-expression recognition model. The face recognition model obtains training set images of the face recognition model from a face comparison database, wherein each image is marked with a number when input, and the training set images are traversed, and the images and number information in the training set are used as input for face recognition model training, and the model is saved at the same time. The micro-expression recognition model initializes the face image data set in the face comparison database, and constructs a CNN model to train the micro-expression recognition model, and completes the model training by determining the input features of the information; An identity recognition unit (3), wherein the identity recognition unit (3) imports a student face comparison database according to a class schedule, retrieves a previously trained student face recognition model, collects student face images in the classroom through a camera, extracts features of the detected faces, and marks the location of the face with a red frame when it is determined that a face exists, calculates the Euclidean distance between the features of the student face image and the face features in the database, compares the Euclidean distance with a preset threshold, and thereby recognizes the student identity; Attendance check-in unit (4), the attendance check-in unit (4) aggregates the attendance information to the front-end page, and checks the check-in status of each course in each class by comparing the number of students who should be present with the actual number of students present. On the front-end page, each check-in result is a data row. Click View Details in each check-in result to check the check-in details of each student in the class. After the teacher selects the basic information of the class and classroom, he or she clicks the Check-in button in the system to check the student attendance. An information extraction unit (5), wherein the information extraction unit (5) is provided with four cameras in front of the podium in the classroom, each camera is randomly positioned to shoot any student in the classroom, the camera captures the key features of the student's face in real time, analyzes the muscle movement changes when micro-expressions occur, uses an optical flow network to accurately analyze the movement change trend of the facial area between frame images, and statistically observes the optical flow changes of different micro-expressions, performs subsequent expression recognition, and realizes behavior recognition by extracting frame images; An expression recognition unit (6), wherein the expression recognition unit (6) performs facial expression recognition on student classroom images through a trained micro-expression recognition model, predicts the probability values ​​of all expressions of each person when detecting student faces in the classroom, takes the expression with the highest probability as the final recognition result, counts the number of students with different types of expressions, and displays the comprehensive expression state value in a visual form; A behavior recognition unit (7) is provided, wherein the behavior recognition unit (7) classifies and detects the acquired student faces according to facial features, performs facial expression detection and behavior detection on the students in the classroom respectively, and then performs fixed frame extraction according to the video sequence acquired in real time, detects two consecutive frames, removes invalid frames according to the frame image recognition results, and saves and counts the frame images that are effective for the detection effect.

2. According to the cloud platform-based smart education monitoring and management system of claim 1, it is characterized by: Each time a face is selected by the database construction unit (1), the count is increased by 1 until the face count of the student reaches 1000, and the facial features extracted from the grayed face image selected are stored in the database in the form of a two-dimensional array, thus completing the face comparison database of one student, and sequentially establishing the face comparison database of all students in the class.

3. According to the cloud platform-based smart education monitoring and management system of claim 1, it is characterized by: After the face recognition model in the model training unit (2) grays out the images and converts them into arrays in turn, the image path is split to obtain image numbers, and then the image information and number information are added to the list respectively, and the images and number information in the training set are used as inputs for face recognition model training, so that the image information and number information correspond to each other, so as to obtain a face recognition model for students in the class, and the model is saved; The micro-expression recognition model is optimized and saved by adjusting parameters, and the human brain electrical signals are analyzed by identifying facial expressions and used as input features to determine information. The residual network connection in CNN is used to jump-transfer feature data to the next layer to speed up the training process. 120 filters are loaded in every two residual structures, so that the output feature results of the information are input to the next convolutional layer, and the residual model is constructed in sequence. A large amount of Float32 type data is used to optimize the processing speed of the GPU, flattened data processing is used to reduce the calculation amount of the model, and an averaged fully connected layer is used to reduce the residual model parameters. The classification function is used to process the network training data set with the same specifications of the image at the same ratio as the database image size to increase the accuracy of the model.

4. According to the cloud platform-based smart education monitoring and management system of claim 1, it is characterized by: The identity recognition unit (3) comprises an image acquisition module (301), an identity determination module (302) and a target matching module (303). The image acquisition module (301) starts a camera to read a face video to obtain a face image of a student in the classroom, unifies the face image size, uses the face detected in the process as an input for face recognition model detection, and then compares the student image with faces in a registered face database one by one. The identity determination module (302) converts the features of the detected student face image and the face features in the database into a 128-dimensional face feature vector, and performs Euclidean distance calculation on the two. According to whether the Euclidean distance is less than a threshold, it is determined whether the detected image finds a corresponding face image in the student face comparison database. The threshold is set to 1.

05. If the Euclidean distance is less than the threshold, it is judged that the detected face image has a small feature difference with the student face comparison database, and the student's identity is determined. The system has no abnormality. If the Euclidean distance is greater than the threshold, it is judged that the detected face image has a large feature difference with the student face comparison database, and a warning appears on the front page, indicating that there is an unidentified student. The target matching module (303) obtains the identity of the face images of the students in the class in turn, and then displays the attendance. During the student identity recognition and verification process, each test image will have no less than two matching training images in the training set image, and there is no situation where a new face image is suddenly stored. The training images are collected and the input test images are trained in sequence to match similar targets.

5. The cloud platform-based smart education monitoring and management system according to claim 1 is characterized by: When the teacher initiates classroom sign-in in the attendance sign-in unit (4), the system will query the database for equipment and equipment status. When it is detected that the camera is available, it will trigger a call to start sign-in, compare the detected student face image with the faces in the registered face database one by one, record the time at this time, and update the attendance number and student name in the database. At the same time, the sign-in result is displayed on the front page. The management of the entire sign-in function is managed by the controller. The academic administrator can view the sign-in results of each class through the system. If a class has a sign-in abnormality, it is determined that an early warning is needed for the sign-in of the class. The database records the early warning result and displays it on the front page.

6. The cloud platform-based smart education monitoring and management system according to claim 1, characterized in that: The information extraction unit (5) comprises a random shooting module (501) and a region division module (502). The random shooting module (501) starts a camera to capture a real-time video stream. Each student is photographed for 5 seconds. After that, each camera changes its position to randomly shoot another student. The image of the student in class is obtained and stored in a database. The obtained image is grayed. The region division module (502) inputs the micro-expression video frame into Deep CNN to extract the key point features of the face. According to the key point feature information of the face, a facial motion division strategy is adopted, that is, the facial motion area is divided by combining the external appearance of the micro-expression and the movement frequency of the facial area. Then, the first frame of the divided facial motion area and each frame of the synthesized image group are used as the input of the FlowNet2 optical flow estimation network. After extracting the optical flow features of each frame of the video image, the optical flow changes of each frame of the image in the facial motion area are statistically analyzed as the facial appearance features for identifying micro-expressions. The optical flow changes of different micro-expressions are statistically observed to perform subsequent expression recognition.

7. The cloud platform-based smart education monitoring and management system according to claim 1 is characterized by: The expression recognition unit (6) comprises a result display module (601), an expression visualization module (602) and a record determination module (603). The result display module (601) calls a trained micro-expression recognition model to traverse the student faces detected in the image, predicts the probability values ​​of all expressions of each person, outputs the expression with the highest probability of each person as the expression value at the current moment, displays the facial expression recognition result, and stores the result in a database. The facial expressions include five facial expressions: listening, doubt, understanding, resistance and disdain. Each facial expression corresponds to different facial features, eye features and lip features. The expression visualization module (602) outputs the number of people with these five expressions in the image respectively, and obtains a comprehensive expression state value based on these numbers, visualizes the emotional state of the students in the class, and draws a classroom emotional state curve. In addition, the physical state of the students is obtained in time according to the expressions. The record determination module (603) determines whether the current class is over. If not, the expression recognition of the students in the class continues. If it is over, the camera is turned off and the overall emotional state and emotional fluctuation of the students in the class are output.

8. The cloud platform-based smart education monitoring and management system according to claim 1, characterized in that: The behavior recognition unit (7) comprises a classification detection module (701), a target data acquisition module (702) and a posture estimation module (703). The classification detection module (701) performs face judgment on the facial features of the student based on the captured image. If it is found that all the facial features exist and the features are displayed normally during the detection process, expression recognition is performed. If none of the facial features is detected during the recognition and judgment process, it is judged that the student is not a face and such data is discarded. If only one feature of the facial features is detected to be normal, it is judged that the student has abnormal behavior. The student's face is photographed multiple times. If such detection situation always exists, the student's behavior is further detected. The target data acquisition module (702) obtains video sequences of students with abnormal behavior in the classification detection module (701) in real time. The system extracts frames once per second. The frame extraction processing of the video sequence is realized through OpenCV. The image is denoised first. The double-layer Gaussian filtering and median filtering are adopted. De-noising method, then start the recognition detection model, if the latest frame image recognition result is consistent with the recognition result of the previous frame, that is, the same person and the same behavior are recognized, then discard the current result, do not accumulate it into the data statistics table, and continue to wait for the analysis of the next frame, finally output the effective detection result to the current frame image for display, and mark the student target with a border, the border is respectively marked with the behavior classification label and confidence of the target, and the target data is saved at the same time, which is convenient for system analysis and data sorting after class. The posture estimation module (703) uses a posture estimation algorithm to track the key coordinate points of the input human 2D skeleton, normalizes the coordinates of the key points, discards the key points of the lower body of the human skeleton, eliminates the interference of irrelevant skeleton feature points on the recognition of student classroom behavior, adopts a standardized processing method to reduce the position differences and individual differences of different target students, uses the skeleton key coordinate points for normalization, and forms the characteristic vectors of different classroom behaviors with the skeleton limb connection lines and skeleton limb angles, thereby providing data analysis for the system to determine the posture.

Citation Information

Patent Citations

  • A classroom student state analysis method and device based on face monitoring

    CN109815795A

  • Intelligent classroom attendance system based on face identification technology

    CN109903412A

  • Classroom analysis system and method based on face recognition technology

    CN113450369A

  • Intelligent classroom attendance system based on face recognition

    CN117058737A

  • Smart classroom analysis method and platform for monitoring video stream

    CN117894046A

Cited By

  • Identity recognition management method for interactive education and related equipment

    CN119026923A

  • Intelligent data management system and method applied to intelligent attendance checking

    CN119763208A

  • Intelligent campus identity management system and method based on face recognition

    CN119832618A

  • A smart campus identity management system and method based on face recognition

    CN119832618B

  • Classroom behavior detection method, device and system and storage medium

    CN120014707A