Classroom monitoring method, device, computer equipment and storage medium

By collecting and identifying students' face images according to time intervals in class and establishing focus queues, the problem of low recognition efficiency caused by excessive data volume is solved and the efficiency of monitoring students' class status is improved.

CN109344682BActive Publication Date: 2024-10-18PING AN TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201810870693.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-08-02
Publication Date
2024-10-18
Estimated Expiration
2038-08-02

AI Technical Summary

Technical Problem

In the teaching classroom, due to the large amount of data, the efficiency of identifying students' class status is not high, and it is difficult to effectively monitor students' desertion with existing technology.

Method used

By regularly collecting the target face image according to the first time interval and inputting it into the expression recognition model, if the recognition result is abnormal, a prompt message will be sent, and the abnormal image will be added to the focus queue, and the target face image will be collected and recognized again according to the second time interval. , if the exception occurs again, a message will be sent.

Benefits of technology

It reduces the calculation amount of data collection and identification, improves the efficiency of classroom monitoring, and enables targeted monitoring of students' class status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109344682B_ABST
    Figure CN109344682B_ABST
Patent Text Reader

Abstract

The present invention discloses a classroom monitoring method, device, computer equipment and storage medium. The classroom monitoring method comprises: collecting a first target face image at a first time interval, inputting the first target face image into an expression recognition model, and obtaining a first recognition result; if the first recognition result is abnormal, sending a first prompt message to a monitoring end; adding the first target face image with an abnormal first recognition result to a focus queue, the focus queue includes a focus person identification; collecting a second target face image at a second time interval and a focus person identification in the focus queue, inputting the second target face image into an expression recognition model, and obtaining a second recognition result; if the second recognition result is abnormal, sending a second prompt message to the monitoring end. The classroom monitoring method reduces the amount of calculation for data collection and recognition while ensuring monitoring of the classroom situation, thereby improving overall efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of image processing, and more specifically, relates to a classroom monitoring method, device, computer equipment and storage medium. Background Art

[0002] In the classroom, when the teacher is teaching, he may not notice that some students are absent-minded and not listening carefully, which may cause students to miss some important knowledge points. With the rapid development of image recognition technology, there are also technologies that try to use expression recognition technology to obtain students' expressions in real time in the classroom. The camera collects images and analyzes the collected images in the camera. If there are multiple faces, the facial expressions and movements of each face are analyzed to determine whether the student is currently absent-minded. However, due to the long duration of the class and the large number of students, continuous data collection and recognition will cause too much data, resulting in low overall efficiency. Summary of the invention

[0003] The embodiments of the present invention provide a classroom monitoring method, apparatus, computer equipment and storage medium to solve the technical problem of low efficiency in identifying the class status of students due to excessive data volume.

[0004] A classroom monitoring method comprising:

[0005] Regularly collecting a first target face image according to a first time interval, inputting the first target face image into an expression recognition model, and obtaining a first recognition result;

[0006] If the first recognition result is abnormal, sending a first prompt message to the monitoring end;

[0007] adding the first target face image whose first recognition result is abnormal to a focus queue, wherein the focus queue includes a focus person identifier;

[0008] According to a second time interval and the identification of the person of interest in the focus queue, a second target face image is regularly collected, and the second target face image is input into the expression recognition model to obtain a second recognition result;

[0009] If the second recognition result is abnormal, a second prompt message is sent to the monitoring end.

[0010] A classroom monitoring device, comprising:

[0011] A first recognition result acquisition module, used to regularly collect a first target face image according to a first time interval, input the first target face image into an expression recognition model, and obtain a first recognition result;

[0012] A first prompt message sending module, configured to send a first prompt message to a monitoring terminal if the first recognition result is abnormal;

[0013] A key attention queue adding module, used for adding the first target face image whose first recognition result is abnormal to a key attention queue, wherein the key attention queue includes a focus person identifier;

[0014] A second recognition result acquisition module, used for regularly collecting a second target face image according to a second time interval and the attention person identification in the focus attention queue, inputting the second target face image into the expression recognition model, and obtaining a second recognition result;

[0015] The second prompt message sending module is used to send a second prompt message to the monitoring end if the second recognition result is abnormal.

[0016] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned classroom monitoring method when executing the computer program.

[0017] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned classroom monitoring method are implemented.

[0018] The above-mentioned classroom monitoring method, device, computer equipment and storage medium acquire the first target face image according to the first time interval, and input the first target face image into the expression recognition model to obtain the first recognition result. If the first recognition result is abnormal, a first prompt message is sent to the monitoring end; then the key focus queue is adjusted according to the first recognition result, and the second target face image is acquired according to the second time interval for the focus person identification in the key focus queue, and the second target face image is input into the expression recognition model to obtain the second recognition result. If the second recognition result is abnormal, a second prompt message is sent to the monitoring end. By acquiring images at a certain time interval and establishing a key focus queue to realize classroom monitoring, targeted monitoring can be achieved, which reduces the amount of data acquisition and recognition calculation while ensuring good monitoring of the classroom situation, thereby improving overall efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0020] Figure 1 is a schematic diagram of an application environment of a classroom monitoring method in one embodiment of the present invention;

[0021] Figure 2 is a flow chart of a classroom monitoring method in one embodiment of the present invention;

[0022] Figure 3 is another flow chart of a classroom monitoring method in one embodiment of the present invention;

[0023] Figure 4 is another flow chart of a classroom monitoring method in one embodiment of the present invention;

[0024] Figure 5 is another flow chart of a classroom monitoring method in one embodiment of the present invention;

[0025] Figure 6 is a principle block diagram of a classroom monitoring device in one embodiment of the present invention;

[0026] Figure 7 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0027] 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 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.

[0028] The classroom monitoring method provided by this application can be applied in Figure 1In an application environment, the monitoring end communicates with the server end through a network, the server end collects the first target face image regularly according to the first time interval through the camera, inputs the acquired first target face image into the expression recognition model, and obtains the first recognition result. If the first recognition result is abnormal, the server end sends a first prompt message to the monitoring end, and adds the first target face image with the first recognition result as abnormal to the key attention queue, wherein the key attention queue includes the attention person identification; then the server end collects the second target face image regularly according to the second time interval and the attention person identification in the key attention queue through the camera, inputs the acquired second target face image into the expression recognition model, and obtains the second recognition result. If the second recognition result is abnormal, the server end sends a second prompt message to the monitoring end. The monitoring end can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices. The server end can be implemented with an independent server or a server cluster consisting of multiple servers.

[0029] In one embodiment, if Figure 2 As shown, a classroom monitoring method is provided, which is applied in Figure 1 The server in the example is used as an example to illustrate the following steps:

[0030] S10: regularly collecting a first target face image according to a first time interval, inputting the first target face image into an expression recognition model, and obtaining a first recognition result.

[0031] Among them, the first time interval is a preset time period, which can be set according to actual needs, such as 5 minutes, 8 minutes or 10 minutes. The first target facial image refers to the facial images of all students in the whole class. Multiple cameras can be set in the classroom, and each camera collects the facial images of students in a fixed area to achieve the collection of the first target facial image. It can be understood that the more cameras there are, the higher the collection accuracy. Optionally, the camera collects video data, and the facial image is obtained after the video data is framed at a predetermined frame rate.

[0032] The expression recognition model is a recognition model for judging the facial emotions in the current image. The expression recognition model can judge the probability value of the face in the current image corresponding to multiple preset emotions. If the probability value of a certain emotion exceeds the corresponding preset threshold, the emotion corresponding to the standard face image is obtained as the first recognition result. For example, in this embodiment, for the classroom scenario, the emotions in the expression recognition model can be set to five types: listening, doubt, understanding, resistance, and disdain. Specifically, a large number of sample images representing these five emotions can be collected in advance for annotation to form a sample image set, and then the corresponding neural network model or classifier is selected for training to finally obtain the expression recognition model.

[0033] S20: If the first recognition result is abnormal, a first prompt message is sent to the monitoring end.

[0034] After the expression recognition model outputs the first recognition result, a first prompt message is sent according to the output first recognition result.

[0035] Among them, the expression recognition model will determine the expression result corresponding to the facial area in the first target facial image; for example, listening, doubt, understanding, resistance or disdain. Optionally, when the expression recognition model determines that the emotion corresponding to the facial area in the first target facial image is resistance or disdain, the corresponding output first recognition result is abnormal; when the expression recognition model determines that the emotion corresponding to the facial area in the first target facial image is listening, doubt or understanding, the corresponding output first recognition result is normal. If the first recognition result is abnormal, a first prompt message is sent to the monitoring end, prompting that the student may be in a state of absenteeism. Optionally, the monitoring end is a mobile phone, computer or other communication device of other relevant personnel such as teachers or class teachers, so that relevant personnel can understand the student's class status and make corresponding evaluations or stop behaviors.

[0036] S30: adding the first target face image whose first recognition result is abnormal to a focus queue, where the focus queue includes a focus person identifier.

[0037] The focus queue refers to a queue of students who may be absent from class and need to be focused on. Specifically, the queue can be represented by a focus person ID. The focus person ID is an ID used to distinguish students who need to be focused on. For example, it can be a student ID, ID number, or seat number.

[0038] S40: regularly collecting a second target face image according to the second time interval and the identification of the person of interest in the focus queue, and inputting the second target face image into the expression recognition model to obtain a second recognition result.

[0039] Among them, the second time interval is also a preset time period, which can be set according to actual needs, such as 1 minute, 3 minutes or 5 minutes. Preferably, the second time interval is smaller than the first time interval. The second target facial image refers to the facial image of the student corresponding to the concerned person identification. Specifically, the corresponding camera can be found through the concerned person identification, and the second target facial image can be obtained from the camera. Among them, the method of collecting the second target facial image is similar to the method of collecting the first target facial image in step S10, which will not be repeated here. The process of inputting the second target facial image into the expression recognition model to obtain the second recognition result is also similar to the corresponding step in step S10, which will not be repeated here.

[0040] S50: If the second recognition result is abnormal, a second prompt message is sent to the monitoring end.

[0041] After the expression recognition model outputs the second recognition result, a second prompt message is sent according to the output second recognition result. Among them, the expression recognition model will determine the emotion corresponding to the facial area in the second target facial image, such as listening, doubt, understanding, resistance or disdain. Optionally, when the expression recognition model determines that the emotion corresponding to the facial area in the second target facial image is resistance or disdain, the corresponding output second recognition result is abnormal; when the expression recognition model determines that the emotion corresponding to the facial area in the second target facial image is listening, doubt or understanding, the corresponding output second recognition result is normal. If the second recognition result is abnormal, a second prompt message is sent to the monitoring end to prompt that the student may be absent-minded.

[0042] Furthermore, the second target face image with an abnormal second recognition result is added to the focus queue. In one embodiment, while the second target face image with an abnormal second recognition result is added to the focus queue, the second target face image with a normal second recognition result is released from the focus queue. It is understandable that a student with an abnormal first recognition result may not be focused enough at a certain moment, but quickly returns to normal, which is acceptable. By updating the focus queue, the amount of computation for data collection and recognition can be effectively reduced, and the pertinence of classroom monitoring can be improved.

[0043] exist Figure 2 In the corresponding embodiment, the first target face image is collected regularly according to the first time interval, and the first target face image is input into the expression recognition model to obtain the first recognition result. If the first recognition result is abnormal, a first prompt message is sent to the monitoring end; then the key focus queue is adjusted according to the first recognition result, and the second target face image is collected regularly according to the focus person identifier in the key focus queue and the second time interval, and the second target face image is input into the expression recognition model to obtain the second recognition result. If the second recognition result is abnormal, a second prompt message is sent to the monitoring end. By adopting a certain time interval to collect images and establish a key focus queue to realize classroom monitoring, targeted monitoring can be achieved, which reduces the amount of data collection and recognition calculations while ensuring good monitoring of the classroom situation, thereby improving overall efficiency.

[0044] In one embodiment, the expression recognition model is an expression recognition model trained by a convolutional neural network. Among them, the convolutional neural network (CNN) is a multi-layer neural network that is good at processing image-related machine learning problems, especially large images. The basic structure of CNN includes two layers: a convolution layer and a pooling layer. Optionally, a 10-layer convolutional neural network is used. Since the more layers of the neural network, the longer the calculation time, the higher the expression recognition distinction, and the use of a 10-layer convolutional neural network can achieve the training accuracy requirements in a shorter time. In this embodiment, the expression recognition model includes: an eye recognition model, a lip recognition model, and a head recognition model. Before step S10, that is, the first target face image is regularly collected according to the first time interval, and the first target face image is input into the expression recognition model, and before the step of obtaining the first recognition result, as Figure 3 As shown, the classroom effect monitoring method provided by the embodiment of the present invention also includes:

[0045] S61: Acquire samples of human face images, and acquire eye training images, lip training images, and head training images according to the samples of human face images.

[0046] The samples of face images may be face images of students collected in advance.

[0047] Specifically, the corresponding regions can be pre-divided according to the face image as eye region images, lip region images and head region images, and then the sets of eye region images, lip region images and head region images obtained from the sample set are used as eye training images, lip training images and head training images, respectively. The method of dividing the regions can be pre-set as needed, and the embodiment of the present invention does not specifically limit it.

[0048] S62: Input the eye training image into the eye recognition model to obtain a standard eye recognition result.

[0049] The standard eye recognition result refers to the result recognized by the eye recognition model based on the eye features in the eye training image. Optionally, the eyebrow features in the eye training image can be used as eye features, and standard definitions are made based on five preset expressions of listening, doubt, understanding, resistance and disdain. For example, the eyebrow feature corresponding to the listening expression should be that the eyebrows are naturally stretched, and the angle β between the two ends of the eyebrows and the midpoint of the eyes is less than or equal to 120 degrees.

[0050] Specifically, by classifying eye training images according to eyebrow features and inputting the classified eye training images into the eye recognition model, the eyebrow features corresponding to the five expressions of listening, doubt, understanding, resistance and disdain are obtained. The combination of these five corresponding eyebrow features and expressions can be used as the standard eye recognition result.

[0051] S63: Input the lip training image into the lip recognition model to obtain a standard lip recognition result.

[0052] The standard lip recognition result refers to the result recognized by the lip recognition model based on the lip features in the lip training image. Optionally, the mouth corner features in the lip training image can be used as lip features. For example, when the expression is a puzzled expression, the corresponding mouth corner feature should be a downward shift of the mouth corner, that is, the mouth corner feature line and its bisector present a negative deviation.

[0053] Specifically, a standard definition is made based on the five preset expressions of listening, doubt, understanding, resistance and disdain. The lip training images are classified according to the mouth corner features, and the classified lip training images are input into the lip recognition model to obtain the mouth corner features corresponding to the five expressions of listening, doubt, understanding, resistance and disdain. The result of combining these five corresponding mouth corner features and expressions can be used as the standard lip recognition result.

[0054] S64: Input the head training image into the head recognition model to obtain a standard head recognition result.

[0055] The standard head recognition result refers to the result recognized by the head recognition model based on the head features in the head training image. Optionally, the head angle feature in the head training image can be used as the head feature. For example, when the expression is resistance, the head angle feature should be lowering the head or turning the head, and the head angle change α is greater than 60 degrees.

[0056] Specifically, based on the standard definitions of the five expressions of listening, doubt, understanding, resistance and disdain, the head training images are classified according to the mouth corner features, and the classified head training images are input into the head recognition model to obtain the mouth corner features corresponding to the five expressions of listening, doubt, understanding, resistance and disdain. The combination of these five corresponding head angle features and expressions can be used as the standard head recognition result.

[0057] S65: The standard eye recognition result, the standard lip recognition result and the standard head recognition result are combined into a standard expression recognition result set.

[0058] Specifically, the features corresponding to the standard eye recognition results, standard lip recognition results, and standard head recognition results are combined to form a standard expression recognition result set. For example, when the expression is doubtful, the corresponding eye feature is that the angle β between the two ends of the eyebrows and the midpoint of the eyes is greater than 120 degrees, the corresponding lip feature is that the mouth corner feature line and its bisector present a negative deviation, and the corresponding head feature is that the head angle changes between 0 and 60 degrees. All standard eye recognition results, standard lip recognition results, and standard head recognition results are combined together to form a standard expression recognition result set.

[0059] exist Figure 3 In the corresponding embodiment, eye training images, lip training images and head training images are obtained according to a sample set of facial images, and then the eye training images are respectively input into the eye recognition model to obtain standard eye recognition results; the lip training images are input into the lip recognition model to obtain standard lip recognition results; the head training images are input into the head recognition model to obtain standard head recognition results; finally, the standard eye recognition results, standard lip recognition results and standard head recognition results are combined into a standard expression recognition result set, which can provide support for expression recognition of target facial images collected subsequently.

[0060] In one embodiment, if Figure 4 As shown, in step S10, that is, collecting the first target face image regularly according to the first time interval, the following steps may be specifically included:

[0061] S11: acquiring original video data regularly according to a first time interval.

[0062] The original video data is the video data collected by the camera in the classroom. If there are multiple cameras, the original video data of the corresponding camera can be obtained according to the identifier corresponding to the first target face image.

[0063] Specifically, the camera of the classroom is turned on to collect video, and original video data is obtained according to a first time interval.

[0064] S12: Frame segmentation and normalization processing are performed on the original video data to obtain a first target face image.

[0065] Specifically, the frame processing refers to dividing the original video data according to a preset time to obtain at least one frame of the video image to be identified. Among them, normalization is a way to simplify the calculation, that is, to transform the dimensional expression into a dimensionless expression and become a scalar. For example, in the original video data in this embodiment, the facial area of ​​the first target is required to extract the corresponding expression features. Therefore, it is necessary to normalize the pixels of the video image to be identified after framing to a uniform pixel, such as 260*260, to obtain the first target face image, so as to subsequently identify each frame of the video image to be identified.

[0066] exist Figure 4 In a corresponding embodiment, by periodically acquiring original video data according to a first time interval, and then performing frame segmentation and normalization processing on the original video data, a first target face image is obtained, which can provide support for recognition of expressions corresponding to subsequent face images.

[0067] In one embodiment, the standard expression recognition result set includes five expression results: listening, doubt, understanding, resistance and disdain. Figure 5As shown, in step S10, the first target face image is input into the expression recognition model to obtain a first recognition result, which may specifically include the following steps:

[0068] S13: Acquire first target facial feature points from the first target facial image using a facial feature point detection algorithm.

[0069] The first target facial feature point refers to a feature coordinate point obtained from the first target facial image according to a preset need. The facial feature point detection algorithm refers to an algorithm that automatically locates facial feature points based on an input facial image. Optionally, the following facial feature point detection algorithm can be used to obtain facial feature point information:

[0070] (1) OpenCV's own Viola-Jones algorithm based on Harr features;

[0071] Among them, OpenCV is a cross-platform computer vision library that can run on Linux, Windows, Android and Mac OS operating systems. It consists of a series of C functions and a small number of C++ classes. It also provides interfaces for languages ​​such as Python, Ruby, and MATLAB, and implements many general algorithms in image processing and computer vision. The Viola-Jones algorithm based on Haar features is one of the facial feature point detection algorithms. Haar features are a feature that reflects the grayscale changes of an image and a feature that reflects the difference between pixel modules. Haar features are divided into three categories: edge features, linear features, and center-diagonal features. The Viola-Jones algorithm is a method for face detection based on the Haar feature values ​​of the face.

[0072] (2) dlib based on HOG+SVM features;

[0073] Among them, dlib is a modern C++ toolbox that contains machine learning algorithms and tools for creating complex software in C++ to solve practical problems. HOG refers to the Histogram of Oriented Gradient (HOG), and SVM (Support Vector Machine) refers to the support vector machine, which is a common discriminant method and is usually used for pattern recognition, classification, and regression analysis. HOG features combined with SVM classifiers are widely used in image recognition.

[0074] (3) Three face detection methods of the doppia library (DPM, HeadHunter and HeadHunter_baseline).

[0075] Among them, DPM (Deformable Part Model) is a target detection algorithm, which has become an important part of many classifiers, segmentation, human posture and behavior classification. DPM can be regarded as an extension of HOG. The method is to first calculate the gradient direction histogram, then use SVM training to obtain the target gradient model, and then classify it to match the model with the target. The HeadHunter and HeadHunter_baseline algorithms are the same as DPM in terms of method, the difference is that different models are used.

[0076] The following uses the (1) type of facial feature point detection algorithm as an example to illustrate the process of obtaining the first target facial feature point: first, obtain a sample image of the input facial image, preprocess (normalize) the sample image and then train it to obtain a facial feature point model, namely, the Viola-Jones algorithm of the Harr feature; then obtain the input first target facial image, perform the same preprocessing on the first target facial image, and then perform the steps of skin color area segmentation, facial feature area segmentation and facial feature area classification in sequence; finally, perform matching calculation based on the Viola-Jones algorithm of the Harr feature and the facial feature area classification to obtain the first target facial feature point.

[0077] S14: Divide the first target face image according to the first target face feature points to obtain an eye region image, a lip region image and a head region image.

[0078] According to the acquired first target face feature points, the eye region image, the lip region image and the head region image are acquired respectively. Specifically:

[0079] The eye area image can use the facial feature point detection algorithm to first locate the position coordinates of the left and right eye corners and the center of the eyebrows in the same eye area, and then use the horizontal coordinates of the left and right eye corners as the left and right coordinates, the vertical coordinate of the center of the eyebrows as the upper coordinate, and the vertical coordinate of the eye corner plus the vertical distance from the center of the eyebrows to the eye corner as the lower coordinate. The rectangular area formed by these four point coordinates is the eye area, and obtaining the eye area is the eye area image.

[0080] The lip area image can use facial feature points to first locate the coordinates of the left and right corners of the mouth and the tip of the nose, and then use the horizontal coordinates of the left and right corners of the mouth as the left and right coordinates, the vertical coordinate of the tip of the nose as the upper coordinate, and the vertical coordinate of the corner of the mouth plus the vertical distance from the tip of the nose to the corner of the mouth as the lower coordinate. The rectangular area formed by these four coordinates is the lip area, and obtaining the lip area is the lip area image.

[0081] The head region image may directly use the first target face image as the head region image.

[0082] S15: Input the eye area image into the eye recognition model to obtain a test eye recognition result; input the lip area image into the lip recognition model to obtain a test lip recognition result; input the head area image into the head recognition model to obtain a test head recognition result.

[0083] Among them, the test eye recognition result refers to the corresponding eye recognition result in the target face image obtained based on real-time video data, and the test lip recognition result and the test head recognition result are the same.

[0084] Specifically, the eye region image is input into the eye recognition model, and the expression corresponding to the eye region image can be obtained according to the expression defined by the eye recognition model, which is the test eye recognition result. Similarly, the lip region image is input into the lip recognition model to obtain the test lip recognition result; the head region image is input into the head recognition model to obtain the test head recognition result.

[0085] S16: Match the test eye recognition results, the test lip recognition results and the test head recognition results with the standard expression recognition result set, and use the standard expression recognition results with a matching degree greater than a preset threshold as the output expression results. If the output expression results are listening, doubt, or understanding, the first recognition result is normal; if the output expression results are resistance or disdain, the first recognition result is abnormal.

[0086] Among them, the preset threshold refers to the preset threshold of the matching degree between the test recognition result and the standard expression recognition result. The preset threshold can be set according to the specific situation of the expression recognition model, and no specific limitation is made here. It can be understood that the expression recognition results corresponding to the test eye recognition results, the test lip recognition results, and the test head recognition results may be inconsistent, and they are also different from the standard expression recognition results. Therefore, the test recognition result is matched with each standard expression recognition result of the standard expression recognition result set. If the matching degree exceeds the preset threshold, the corresponding standard expression recognition result is used as the output expression result.

[0087] Specifically, the test eye recognition results, test lip recognition results, and test head recognition results are matched with the standard expression recognition result set. If the overall matching result with a certain standard expression recognition result in the standard expression recognition result set is greater than a preset threshold, the standard recognition result is used as the output expression result. Optionally, when the output expression result is listening, doubt, and understanding, the first recognition result is normal; when the output expression result is resistance and disdain, the first recognition result is abnormal. For example, if the preset threshold is 80%, after matching the test eye recognition results, test lip recognition results, and test head recognition results of a student with the standard expression recognition result set, it is found that the matching result matches the disdain expression in the standard expression recognition result set by more than the preset threshold of 80%, then the standard expression recognition result of disdain is used as the output expression result, and the first recognition result is abnormal.

[0088] exist Figure 5 In the corresponding embodiment, the first target face feature points are obtained from the first target face image by using a face feature point detection algorithm, and then the first target face image is divided according to the first target face feature points to obtain an eye area image, a lip area image and a head area image; the eye area image, the lip area image and the head area image are respectively input into the eye recognition model, the lip recognition model and the head recognition model to obtain a test eye recognition result, a test lip recognition result and a test head recognition result, and finally the test eye recognition result, the test lip recognition result and the test head recognition result are matched with the standard expression recognition result set, and the standard expression recognition result with a matching degree greater than a preset threshold is used as the output expression result. If the output expression result is listening, doubt, or understanding, the first recognition result is normal; if the output expression result is resistance or disdain, the first recognition result is abnormal. Implementing the expression recognition model through three recognition models can improve the recognition accuracy of the expression recognition model and improve the efficiency of classroom monitoring.

[0089] In one embodiment, the classroom monitoring method provided by the embodiment of the present invention further includes:

[0090] The reference point position information is obtained in real time, and a third target face image is collected according to the reference point position information; the third target face image is then input into the expression recognition model to obtain a third recognition result. If the third recognition result is abnormal, a third prompt message is sent to the monitoring end.

[0091] The reference point location information refers to the teacher's location information, which can be obtained by obtaining the GPS positioning information of the teacher's mobile phone, or by tracking and collecting the teacher through a camera to locate the teacher's location information.

[0092] Understandably, when the teacher is at the podium and facing the students, the third target face image is not collected because all the students are within the teacher's sight. However, when the teacher is walking down the podium and there is a blind spot in the sight or the teacher leaves the classroom, the third target face image is collected.

[0093] Specifically, a location information mapping table can be established in advance. According to the location information mapping table, the corresponding third target facial image to be collected can be obtained in the location information mapping table according to the real-time location information of the teacher. For example, when the teacher stands on the left side of the classroom, the students on the right side of the classroom are taken as the objects for which the third target facial image collection is required; when the teacher stands on the right side of the classroom, the students on the left side of the classroom are taken as the objects for which the third target facial image collection is required. The specific location information mapping table can be set according to actual needs and scenarios, and is not limited here. The collected third target facial image is then input into the expression recognition model to obtain a third recognition result. If the third recognition result is abnormal, a third prompt message is sent to the monitoring end. This recognition and message sending process is similar to the corresponding steps of the aforementioned embodiment, and will not be repeated here.

[0094] Further, the third target face image with the third recognition result as abnormal can be added to the key focus queue, wherein the key focus queue includes the focus person identification. It should be understood that the process of adding the third target face image with the third recognition result as abnormal to the key focus queue is a parallel process to the process of adding the face image with the recognition result as abnormal to the key focus queue in the above embodiment. Optionally, the face image with the third recognition result as abnormal can also be added to the key focus queue to update the key focus queue and monitor the classroom effect in a more targeted manner.

[0095] In this embodiment, by acquiring the teacher's location information in real time and collecting the third target facial image based on the position of the teacher as a reference point, the amount of video data collected can be reduced; by inputting the third target facial image into the expression recognition model to obtain a third recognition result, if the third recognition result is abnormal, a third prompt message is sent to the monitoring end, so that the students' class status can be obtained more specifically, and students who are absent can be found, thereby reducing the amount of calculation for data collection and recognition and improving the efficiency of classroom monitoring.

[0096] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0097] In one embodiment, a classroom monitoring device is provided, which corresponds one-to-one to the classroom monitoring method in the above embodiment. Figure 6As shown, the classroom monitoring device includes a first recognition result acquisition module 10, a first prompt message sending module 20, a focus queue adding module 30, a second recognition result acquisition module 40 and a second prompt message sending module 50. The functional modules are described in detail as follows:

[0098] The first recognition result acquisition module 10 is used to regularly collect a first target face image according to a first time interval, input the first target face image into an expression recognition model, and obtain a first recognition result.

[0099] The first prompt message sending module 20 is used to send a first prompt message to the monitoring end if the first recognition result is abnormal.

[0100] The key attention queue adding module 30 is used to add the first target face image whose first recognition result is abnormal to the key attention queue, wherein the key attention queue includes the attention person identification.

[0101] The second recognition result acquisition module 40 is used to regularly collect the second target face image according to the second time interval and the focus person identification in the focus queue, input the second target face image into the expression recognition model, and obtain the second recognition result.

[0102] The second prompt message sending module 50 is used to send a second prompt message to the monitoring end if the second recognition result is abnormal.

[0103] Furthermore, the expression recognition model is an expression recognition model obtained by training a convolutional neural network, including: an eye recognition model, a lip recognition model and a head recognition model. The classroom monitoring device also includes a standard result set acquisition module 60, and the standard result set acquisition module 60 includes: a training image acquisition unit 61, a standard eye recognition result acquisition unit 62, a standard lip recognition result acquisition unit 63, a standard head recognition result acquisition unit 64 and a standard result set acquisition unit 65.

[0104] The training image acquisition unit 61 is used to acquire samples of face images, and acquire eye training images, lip training images and head training images according to the samples of face images.

[0105] The standard eye recognition result acquisition unit 62 is used to input the eye training image into the eye recognition model to obtain a standard eye recognition result.

[0106] The standard lip recognition result acquisition unit 63 is used to input the lip training image into the lip recognition model to obtain a standard lip recognition result.

[0107] The standard head recognition result acquisition unit 64 is used to input the head training image into the head recognition model to obtain a standard head recognition result.

[0108] The standard result set acquisition unit 65 is used to combine the standard eye recognition result, the standard lip recognition result and the standard head recognition result into a standard expression recognition result set.

[0109] Furthermore, the standard expression recognition result set includes five expression results: listening, doubt, understanding, resistance and disdain. The first recognition result acquisition module 10 includes: a video data acquisition unit 11 and a first target face image acquisition unit 12.

[0110] The video data acquisition unit 11 is used to regularly acquire original video data according to a first time interval.

[0111] The first target face image acquisition unit 12 is used to perform frame segmentation and normalization processing on the original video data to obtain a first target face image.

[0112] Furthermore, the first recognition result acquisition module 10 also includes: a facial feature point acquisition unit 13 , a region image acquisition unit 14 , a test recognition result acquisition unit 15 and a first recognition result unit 16 .

[0113] The facial feature point acquisition unit 13 is used to acquire first target facial feature points from the first target facial image by using a facial feature point detection algorithm.

[0114] The region image acquisition unit 14 is used to divide the first target face image according to the first target face feature points to obtain an eye region image, a lip region image and a head region image.

[0115] The test recognition result acquisition unit 15 is used to input the eye area image into the eye recognition model to obtain the test eye recognition result; input the lip area image into the lip recognition model to obtain the test lip recognition result; input the head area image into the head recognition model to obtain the test head recognition result.

[0116] The first recognition result acquisition unit 16 is used to match the test eye recognition result, the test lip recognition result and the test head recognition result with the standard expression recognition result set, and use the standard expression recognition result with a matching degree greater than a preset threshold as the output expression result. If the output expression result is listening, doubt, or understanding, the first recognition result is normal; if the output expression result is resistance or disdain, the first recognition result is abnormal.

[0117] Furthermore, the classroom monitoring device also includes a reference point position acquisition module 70 , a third recognition result acquisition module 80 and a third prompt message sending module 90 .

[0118] The reference point position acquisition module 70 is used to acquire the reference point position information in real time and collect the third target face image according to the reference point position information.

[0119] The third recognition result acquisition module 80 is used to input the third target face image into the expression recognition model to obtain a third recognition result.

[0120] The third prompt message sending module 90 is used to send a third prompt message to the monitoring end if the third recognition result is abnormal.

[0121] For the specific definition of the classroom monitoring device, please refer to the definition of the classroom monitoring method above, which will not be repeated here. Each module in the above-mentioned classroom monitoring device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0122] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store original video data, a first target face image, a second target face image, a third target face image, a focus queue and prompt messages, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a classroom monitoring method is implemented.

[0123] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0124] Regularly collecting a first target face image according to a first time interval, inputting the first target face image into an expression recognition model, and obtaining a first recognition result;

[0125] If the first recognition result is abnormal, a first prompt message is sent to the monitoring end;

[0126] Adding the first target face image whose first recognition result is abnormal to a focus queue, wherein the focus queue includes a focus person identifier;

[0127] According to the second time interval and the identification of the person of interest in the focus queue, a second target face image is collected regularly, and the second target face image is input into the expression recognition model to obtain a second recognition result;

[0128] If the second recognition result is abnormal, a second prompt message is sent to the monitoring end.

[0129] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0130] Regularly collecting a first target face image according to a first time interval, inputting the first target face image into an expression recognition model, and obtaining a first recognition result;

[0131] If the first recognition result is abnormal, a first prompt message is sent to the monitoring end;

[0132] Adding the first target face image whose first recognition result is abnormal to a focus queue, wherein the focus queue includes a focus person identifier;

[0133] According to the second time interval and the identification of the person of interest in the focus queue, a second target face image is collected regularly, and the second target face image is input into the expression recognition model to obtain a second recognition result;

[0134] If the second recognition result is abnormal, a second prompt message is sent to the monitoring end.

[0135] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0136] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0137] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A classroom monitoring method, characterized in that: The following steps are involved: Regularly collecting a first target face image according to a first time interval, inputting the first target face image into an expression recognition model, and obtaining a first recognition result; If the first recognition result is abnormal, sending a first prompt message to the monitoring end; adding the first target face image whose first recognition result is abnormal to a focus queue, wherein the focus queue includes a focus person identifier; According to a second time interval and the identification of the person of interest in the focus queue, a second target face image is regularly collected, and the second target face image is input into the expression recognition model to obtain a second recognition result; If the second recognition result is abnormal, sending a second prompt message to the monitoring end; The classroom monitoring method also includes: When a blind spot appears in the line of sight, the reference point position information is obtained in real time, and a third target face image is collected according to the reference point position information; the collecting of the third target face image comprises: obtaining a position information mapping table, obtaining the position of the collection object in the position information mapping table according to the reference point position information, and determining the third target face image corresponding to the position of the collection object; Inputting the third target face image into the expression recognition model to obtain a third recognition result; If the third recognition result is abnormal, a third prompt message is sent to the monitoring end.

2. The classroom monitoring method according to claim 1, characterized in that: The expression recognition model is an expression recognition model obtained by training a convolutional neural network, and the expression recognition model includes: an eye recognition model, a lip recognition model and a head recognition model; Before the step of regularly collecting the first target face image according to the first time interval and inputting the first target face image into the expression recognition model to obtain the first recognition result, the classroom monitoring method further includes: Acquire samples of human face images, and acquire eye training images, lip training images, and head training images according to the samples of human face images; Inputting the eye training image into the eye recognition model to obtain a standard eye recognition result; Inputting the lip training image into the lip recognition model to obtain a standard lip recognition result; Inputting the head training image into the head recognition model to obtain a standard head recognition result; The standard eye recognition result, the standard lip recognition result and the standard head recognition result are combined into a standard expression recognition result set.

3. The classroom monitoring method according to claim 2, characterized in that: The step of regularly acquiring the first target face image according to the first time interval includes: acquiring original video data regularly according to the first time interval; The original video data is framed and normalized to obtain a first target face image.

4. The classroom monitoring method according to claim 3, characterized in that: The standard expression recognition result set includes five expression results: listening, doubt, understanding, resistance and disdain; The step of inputting the first target face image into an expression recognition model to obtain a first recognition result includes: Acquire first target facial feature points from the first target facial image using a facial feature point detection algorithm; Dividing the first target face image according to the first target face feature points to obtain an eye region image, a lip region image, and a head region image; Input the eye region image into the eye recognition model to obtain a test eye recognition result; input the lip region image into the lip recognition model to obtain a test lip recognition result; input the head region image into the head recognition model to obtain a test head recognition result; The test eye recognition result, the test lip recognition result and the test head recognition result are matched with the standard expression recognition result set, and the standard expression recognition result with a matching degree greater than a preset threshold is used as the output expression result; if the output expression result is listening, doubt, or understanding, the first recognition result is normal; if the output expression result is resistance or disdain, the first recognition result is abnormal.

5. The classroom monitoring method according to claim 1, characterized in that: After the step of sending a second prompt message to the monitoring end if the second recognition result is abnormal, the method further includes: The second target face image whose second recognition result is normal is released from the key attention queue.

6. A classroom monitoring device, characterized in that: include: A first recognition result acquisition module, used to regularly collect a first target face image according to a first time interval, input the first target face image into an expression recognition model, and obtain a first recognition result; A first prompt message sending module, configured to send a first prompt message to a monitoring terminal if the first recognition result is abnormal; A key attention queue adding module, used for adding the first target face image whose first recognition result is abnormal to a key attention queue, wherein the key attention queue includes a focus person identifier; A second recognition result acquisition module, used for regularly collecting a second target face image according to a second time interval and the attention person identification in the focus attention queue, inputting the second target face image into the expression recognition model, and obtaining a second recognition result; A second prompt message sending module, configured to send a second prompt message to the monitoring terminal if the second recognition result is abnormal; The classroom monitoring device also includes: A reference point position acquisition module is used to acquire the reference point position information in real time when a blind spot appears in the line of sight, and to acquire a third target face image according to the reference point position information; the acquisition of the third target face image comprises: acquiring a position information mapping table, acquiring the position of the acquisition object in the position information mapping table according to the reference point position information, and determining the third target face image corresponding to the position of the acquisition object; A third recognition result acquisition module, used to input the third target face image into the expression recognition model to obtain a third recognition result; The third prompt message sending module is used to send a third prompt message to the monitoring end if the third recognition result is abnormal.

7. The classroom monitoring device according to claim 6, characterized in that: The standard expression recognition result set includes five expression results: listening, doubt, understanding, resistance and disdain; The first recognition result acquisition module includes a face feature point acquisition unit, a regional image acquisition unit, a test recognition result acquisition unit and a first recognition result unit; The facial feature point acquisition unit is used to acquire first target facial feature points from the first target facial image using a facial feature point detection algorithm; The regional image acquisition unit is used to divide the first target face image according to the first target face feature points to obtain an eye region image, a lip region image and a head region image; The test recognition result acquisition unit is used to input the eye region image into the eye recognition model to obtain a test eye recognition result; Input the lip region image into the lip recognition model to obtain a test lip recognition result; input the head region image into the head recognition model to obtain a test head recognition result; The first recognition result unit is used to match the test eye recognition result, the test lip recognition result and the test head recognition result with a standard expression recognition result set, and use the standard expression recognition result with a matching degree greater than a preset threshold as the output expression result; If the output expression result is listening, doubt, or understanding, then the first recognition result is normal; If the output expression result is resistance or disdain, the first recognition result is abnormal.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the classroom monitoring method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the classroom monitoring method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Student state determination method, device and system

    CN106599881A

  • Learning monitoring method and apparatus, and electronic device

    CN107292271A