A vision-based intelligent classification system for student behavior in smart classrooms
By integrating a method based on feature and skin color detection models, using detection coefficients to calculate the side length of the detection frame, and classifying classroom student expressions, the problems of high hardware performance and high time complexity in the existing technology are solved, and fast and timely expressions are achieved. Classification effect.
Patent Information
- Application Number
- CN202410946256.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-16
AI Technical Summary
When the existing technology performs real-time classification of classroom student expressions, the hardware performance requirements are high and the time complexity is large, resulting in high implementation costs and difficulty in quickly achieving real-time performance.
Using a comprehensive method based on features and skin color detection models, the side length of the detection frame is calculated through the detection coefficient, and the preset number intervals are used to group and segment the images to be identified, reducing the number of pixels and shape feature analysis areas of the skin color detection model, and improving Face area detection efficiency.
Under the same hardware performance, it significantly shortens the expression classification time, improves the timeliness of output results, reduces hardware performance requirements, and achieves rapid classification of a large number of student expressions.
Smart Images

Figure CN118506429B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of visual analysis, and in particular to a vision-based intelligent classification system for student behaviors in smart classrooms. Background Art
[0002] When it is necessary to evaluate the degree of acceptance of students to the content of the teacher's lecture, the traditional way is for the teacher to observe the students' expressions. When students feel that they cannot understand the content, they usually show expressions of doubt, impatience and other negative attitudes. When students find the content of the teacher's lecture very interesting, they usually show a focused expression. However, this observation method is limited to the situation where the number of students is small. When the number of students is large, the teacher cannot quickly judge all students' understanding of the teaching content. With the development of CV technology, there has emerged in the prior art a technology that uses image recognition to obtain students' expressions. This technology can quickly classify the expressions of a large number of students, which is conducive to teachers to understand students' understanding of the teaching content more timely and comprehensively.
[0003] However, in the prior art, when obtaining students' expressions through image recognition, one method is to use a feature-based method (such as the positional relationship features between the facial features) to perform face detection on the entire image containing the student's expression to obtain the student's facial area, and then identify the facial area to determine the student's facial expression. This method of detecting faces has a relatively high time complexity because it involves feature extraction. When it is necessary to conduct real-time statistics on the distribution of various facial expressions of students from classroom videos, a high-performance processing device is required to ensure the real-time statistics, and the implementation cost is high. Another method is to use a skin color detection model to identify the area in the image that belongs to the skin. Since there may also be pixels in the background that are similar in color to the skin area, it is necessary to further analyze a large number of areas to determine whether they are face areas. The time complexity of this recognition method is lower than that of the previous method, but all pixels still need to be judged each time to determine the exact position of the face area. Summary of the invention
[0004] The purpose of the present invention is to disclose a vision-based intelligent classification system for student behavior in smart classrooms, so as to solve the problem of how to reduce the performance requirements for hardware while shortening the time of expression classification and improving the timeliness of outputting classification results when classifying the expressions of students in the classroom.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] The present invention provides a vision-based intelligent classification system for student behaviors in smart classrooms, including a smart classroom monitoring device and an expression recognition device;
[0007] The smart classroom monitoring device is used to film the classroom and obtain the video to be analyzed;
[0008] The expression recognition device includes a video frame acquisition module, a face detection module and a face recognition module;
[0009] The video frame acquisition module is used to select video frames in the video to be analyzed using preset rules to obtain multiple images to be identified;
[0010] The face detection module is used to obtain the face area of each image to be identified;
[0011] The face recognition module is used to identify the face area and determine the expression type of the face in each face area;
[0012] Among them, the face area in each image to be recognized is obtained respectively, including:
[0013] Number the images to be identified according to the order of shooting time from early to late;
[0014] The images to be identified are grouped using a preset number interval, and the images to be identified are divided into multiple sets;
[0015] Recognize the images to be recognized in each set respectively, and obtain the face area in the images to be recognized, including:
[0016] Number the images to be identified in the same set in the order of shooting time from early to late;
[0017] For the first two images to be recognized, the first two images to be recognized are respectively input into the trained convolutional neural network model for recognition, and the face area in each image to be recognized is obtained;
[0018] From Starting from the image to be recognized, the face area is obtained in the following way:
[0019] Use , and Indicates The image to be recognized, The image to be recognized and An image to be recognized;
[0020] based on and Calculate the detection coefficient;
[0021] Calculate the side length of the detection box based on the detection coefficient;
[0022] exist In The coordinates of each face region in are the center of the detection frame, and multiple detection frames are drawn;
[0023] The preset skin color detection model is used to obtain the face area in each detection frame.
[0024] Preferably, it also includes a statistical device;
[0025] The statistical device is used to count the types of expressions in all the images to be recognized, and obtain the percentages of various types of expressions.
[0026] Preferably, the classroom is filmed to obtain the video to be analyzed, including:
[0027] Shoot the area directly above the blackboard in the classroom toward where the desks are located to obtain the video to be analyzed.
[0028] Preferably, a preset rule is used to select video frames in the video to be analyzed to obtain multiple images to be identified, including:
[0029] Divide the video to be analyzed into multiple video frames;
[0030] Use a fixed selection interval Get the image to be recognized, every A video frame is used as the image to be recognized.
[0031] Preferably, identifying the face regions and determining the facial expression type of each face region respectively includes:
[0032] The image corresponding to each face region is input into a pre-trained expression classification model for recognition to obtain the expression type of the face in the face region.
[0033] Preferably, the images to be identified are grouped using a preset number interval, and the images to be identified are divided into multiple sets, including:
[0034] use represents the preset number interval, then the number interval of the first set of images to be identified is ;
[0035] No. The interval of the number of the images to be identified in the set is , , , is the total number of images to be identified;
[0036] judge Is it 0? If not, the number interval is The images to be recognized are stored in the same set.
[0037] Preferably, the trained convolutional neural network model is a Mask R-CNN model.
[0038] Preferably, based on and Calculate the detection coefficient, including:
[0039] The first step is to calculate The offset distance of each face region in :
[0040] for The face area in , The coordinates of the center are , and Respectively The abscissa and ordinate of the center;
[0041] exist In the is the center and the radius is The circular area of
[0042] Get the distance in the circular area The nearest face area ,Will and The distance between them is taken as the offset distance;
[0043] In the second step, the detection coefficient is calculated using the following formula:
[0044]
[0045] represents the detection coefficient, express The set of face regions in express The total number of face regions in express The face area in The offset distance.
[0046] Preferably, calculating the side length of the detection box based on the detection coefficient includes:
[0047] Use the following formula to calculate the side length of the detection box:
[0048]
[0049] Indicates the side length of the detection box, Indicates the maximum length of the preset detection box. express The maximum offset distance of the face area in .
[0050] Preferably, In The coordinates of each face region in are the center of the detection frame, and multiple detection frames are drawn, including:
[0051] exist In The coordinates of each face area in are the center of the detection frame, and multiple detection frames with square shapes are drawn.
[0052] Effects of the present invention:
[0053] In the process of classifying the expressions of students, the present invention does not only obtain the face area based on a single face detection method, but also obtains the face area by combining the method based on feature for face area detection and the method based on skin color detection model. The advantage of this calculation method is that the present invention utilizes the characteristic of accurate detection results of the method based on feature for face area detection. When obtaining the face area of the images to be identified in the same set, the part of the images to be identified with earlier shooting time is first detected to obtain the approximate movement amplitude of the student's face, that is, the detection coefficient. Then, the size of the detection frame is determined based on the detection coefficient, and then the detection frame is drawn in the image to be identified that needs to be detected. Finally, the skin color detection model is used to obtain the face area from the detection frame. In this way, not only the number of pixels required to be detected by the skin color detection model can be effectively reduced, but also the number of areas that need to be analyzed for features such as shape of the areas identified by the skin color detection model is greatly reduced, thereby effectively improving the efficiency of face area detection. When the hardware performance is the same, the present invention obtains the face area in a shorter time than the prior art, and can classify the expressions of students more timely. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0055] Figure 1 The present invention is a schematic diagram of a vision-based intelligent classification system for student behavior in smart classrooms.
[0056] Figure 2 Another schematic diagram of the vision-based intelligent classification system for student behavior in smart classrooms of the present invention. DETAILED DESCRIPTION
[0057] 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 parameters of the protection of the present invention.
[0058] like Figure 1 In one embodiment shown, the present invention provides a vision-based intelligent classification system for student behavior in smart classrooms, including a smart classroom monitoring device and an expression recognition device;
[0059] The smart classroom monitoring device is used to film the classroom and obtain the video to be analyzed;
[0060] The expression recognition device includes a video frame acquisition module, a face detection module and a face recognition module;
[0061] The video frame acquisition module is used to select video frames in the video to be analyzed using preset rules to obtain multiple images to be identified;
[0062] The face detection module is used to obtain the face area of each image to be identified;
[0063] The face recognition module is used to identify the face area and determine the expression type of the face in each face area;
[0064] Among them, the face area in each image to be recognized is obtained respectively, including:
[0065] Number the images to be identified according to the order of shooting time from early to late;
[0066] The images to be identified are grouped using a preset number interval, and the images to be identified are divided into multiple sets;
[0067] Recognize the images to be recognized in each set respectively, and obtain the face area in the images to be recognized, including:
[0068] Number the images to be identified in the same set in the order of shooting time from early to late;
[0069] For the first two images to be recognized, the first two images to be recognized are respectively input into the trained convolutional neural network model for recognition, and the face area in each image to be recognized is obtained;
[0070] The earlier the shooting time, the smaller the number;
[0071] From Starting from the image to be recognized, the face area is obtained in the following way:
[0072] Use , and Indicates The image to be recognized, The image to be recognized and An image to be recognized;
[0073] based on and Calculate the detection coefficient;
[0074] Calculate the side length of the detection box based on the detection coefficient;
[0075] exist In The coordinates of each face region in are the center of the detection frame, and multiple detection frames are drawn;
[0076] The preset skin color detection model is used to obtain the face area in each detection frame.
[0077] In the process of classifying the expressions of students, the facial region is not acquired based on a single face detection method, but a method based on feature-based facial region detection and a method based on skin color detection model are combined to acquire the facial region. The advantage of this calculation method is that the present invention utilizes the characteristic of accurate detection results of the method based on feature-based facial region detection. When acquiring the facial region of the images to be identified in the same set, the part of the images to be identified that were shot earlier is first detected to obtain the approximate range of movement of the students' faces, that is, the detection coefficient. Then, the size of the detection frame is determined based on the detection coefficient, and then the detection frame is drawn in the image to be identified that needs face detection. Finally, the skin color detection model is used to acquire the facial region from the detection frame. In this way, not only the number of pixels that the skin color detection model needs to detect can be effectively reduced, but also the number of regions that need to perform feature analysis such as shape on the regions identified by the skin color detection model is greatly reduced, thereby effectively improving the efficiency of facial region detection. When the hardware performance is the same, the present invention obtains the facial region in a shorter time than the prior art, and can classify the expressions of students more timely.
[0078] Preferably, the preset numbering interval is 10. This numbering interval can be set according to the hardware performance. The higher the hardware performance, the smaller the numbering interval can be set, indicating that more video frames in the same video to be analyzed are used for expression recognition. The lower the hardware performance, the larger the numbering interval can be set, indicating that fewer video frames in the same video to be analyzed are used for expression recognition.
[0079] Preferably, if Figure 2 As shown, statistical devices are also included;
[0080] The statistical device is used to count the types of expressions in all the images to be recognized and obtain the percentages of various types of expressions.
[0081] Specifically, the types of expressions include concentration, disgust, confusion, etc. When collecting statistics, the statistics can be performed according to the settings of the teacher, for example, the percentage of various types of expressions in the video to be analyzed within the last one minute is counted.
[0082] Preferably, it also includes a display device;
[0083] The display device is used to display the percentage of various types of expressions.
[0084] Preferably, the classroom is filmed to obtain the video to be analyzed, including:
[0085] Shoot the area directly above the blackboard in the classroom toward where the desks are located to obtain the video to be analyzed.
[0086] Specifically, the start and end of filming can be controlled by the teacher. Generally, there is no lecture in class, but there will be questions, exercises, etc. The teacher can control the smart classroom monitoring device to film the classroom during the lecture.
[0087] In addition, the teacher can control the length of each recording, for example, recording a 1-minute long video to be analyzed each time.
[0088] Preferably, a preset rule is used to select video frames in the video to be analyzed to obtain multiple images to be identified, including:
[0089] Divide the video to be analyzed into multiple video frames;
[0090] Use a fixed selection interval Get the image to be recognized, every A video frame is used as the image to be recognized.
[0091] Specifically, since there are a large number of image frames per second in the video to be shot, if all the image frames are analyzed, it is obviously a waste of hardware performance. This is because the expression of the student is basically unchanged in a very short time. Therefore, the present invention can make the obtained image to be analyzed more representative by setting the selection interval. Avoid analyzing video frames with the same content in a short period of time, so that the amount of calculation can be reduced while obtaining the expression of the student in time, which provides effective support for the implementation of the subsequent face detection scheme of the present invention.
[0092] Preferably, is 10.
[0093] when When it is 10, it means that the 1st, 11th, 21st, etc. video frames in the video to be analyzed are selected as images to be identified.
[0094] Preferably, identifying the face regions and determining the facial expression type of each face region respectively includes:
[0095] The image corresponding to each face region is input into a pre-trained expression classification model for recognition to obtain the expression type of the face in the face region.
[0096] Specifically, the pre-trained expression classification model may be a DCGAN model, a LSTM model, etc.
[0097] Preferably, the images to be identified are grouped using a preset number interval, and the images to be identified are divided into multiple sets, including:
[0098] use represents the preset number interval, then the number interval of the first set of images to be identified is ;
[0099] No. The interval of the number of the images to be identified in the set is , , , is the total number of images to be identified;
[0100] judge Is it 0? If not, the number interval is The images to be recognized are stored in the same set.
[0101] Since the total number of images to be recognized may not be exactly Therefore, the present invention also Is it 0? It is judged. If it is 0, it means Can be When the number cannot be completely divided, the present invention stores the remaining images to be identified into a set.
[0102] Preferably, the preset number interval is 30. This number interval can be adaptively adjusted according to the activity level of students in the classroom. The more active the students are, the smaller the number interval is.
[0103] Preferably, the trained convolutional neural network model is a Mask R-CNN model.
[0104] Specifically, using Mask R-CNN for face region recognition is an existing technology, and the process is roughly as follows:
[0105] Input image: The model receives as input an image containing a face.
[0106] Feature extraction: Use Convolutional Neural Networks (CNNs) to extract features from the input image. These features capture the visual information of the image, such as edges, textures, and shapes.
[0107] Region Proposal Network (RPN): RPN is responsible for quickly and efficiently identifying areas in an image that may contain faces. It generates a series of candidate bounding boxes, the so-called Region Proposals.
[0108] Bounding box classification and bounding box regression: For each candidate region generated by the RPN, the model uses additional convolutional layers to classify whether these regions contain faces and adjust the position and size of the bounding box to more accurately locate the face.
[0109] Mask branch: For bounding boxes classified as faces, Mask R-CNN uses an additional fully convolutional network (FCN) to predict a pixel mask of the face within each bounding box. This mask is a binary image where pixels containing a face are marked as 1 and pixels not containing a face are marked as 0.
[0110] Loss Function: Training a model involves minimizing a loss function, which typically includes bounding box classification loss, bounding box regression loss, and mask prediction loss.
[0111] Post-processing: After the model generates the mask, you may want to apply some post-processing steps, such as thresholding, to remove masked regions with low confidence.
[0112] Output: The final output is a set of precise bounding boxes and corresponding pixel masks that accurately represent the location and outline of the faces in the image.
[0113] Preferably, based on and Calculate the detection coefficient, including:
[0114] The first step is to calculate The offset distance of each face region in :
[0115] for The face area in , The coordinates of the center are , and Respectively The abscissa and ordinate of the center;
[0116] exist In the is the center and the radius is The circular area of
[0117] Get the distance in the circular area The nearest face area ,Will and The distance between them is taken as the offset distance;
[0118] In the second step, the detection coefficient is calculated using the following formula:
[0119]
[0120] represents the detection coefficient, express The set of face regions in express The total number of face regions in express The face area in The offset distance.
[0121] Specifically, the detection coefficient can represent the movement range of the student's face. The larger the detection coefficient, the greater the movement range. and The larger the movement of the student's face, the greater the movement of the student's face. The detection coefficient is not simply calculated based on the average when calculating, because the average may offset the change in the movement. Therefore, the present invention calculates the detection coefficient by obtaining the variance, so as to more accurately represent the overall movement of the face position.
[0122] Preferably, the radius is 30.
[0123] Preferably, calculating the side length of the detection box based on the detection coefficient includes:
[0124] Use the following formula to calculate the side length of the detection box:
[0125]
[0126] Indicates the side length of the detection box, Indicates the maximum length of the preset detection box. express The maximum offset distance of the face area in .
[0127] In the present invention, the side length of the detection frame is positively correlated with the detection coefficient. The larger the detection coefficient, the longer the side length of the detection frame. Therefore, when the student's face moves with a large amplitude, a larger face area detection range can be obtained to ensure that the student's face area is correctly identified.
[0128] Preferably, the maximum length of the preset detection frame is 30. This maximum length can be set according to the resolution of the image to be identified. The higher the resolution, the greater the maximum length.
[0129] Preferably, In The coordinates of each face region in are the center of the detection frame, and multiple detection frames are drawn, including:
[0130] exist In The coordinates of each face area in are the center of the detection frame, and multiple detection frames with square shapes are drawn.
[0131] Here, the side length of the detection box is the side length calculated based on the detection coefficient.
[0132] Preferably, a preset skin color detection model is used to obtain a face area in each detection frame, including:
[0133] The elliptical skin color model is used to identify the pixel points in the detection frame, and the pixel points in the detection frame that conform to the elliptical skin color model are obtained;
[0134] Get the set of all connected domains composed of pixels in the detection frame that conform to the elliptical skin color model LU ;
[0135] like LU There is only one connected domain in LU The connected domain in is taken as the face region;
[0136] like LU If the number of connected domains in is greater than or equal to 2, the following rules are used to obtain the face region:
[0137] based on LU Calculate the screening coefficient of the connected domain;
[0138] If the connected domain screening coefficient is less than or equal to the set connected domain screening coefficient threshold, the first rule is used to obtain the face area; if the connected domain screening coefficient is greater than the set connected domain screening coefficient threshold, the second rule is used to obtain the face area.
[0139] Although the recognition range of the face area has been greatly reduced, when the overall movement of the face position is large, there are still many background pixels in the detection frame, and these pixels may also conform to the elliptical skin color model. Therefore, after obtaining a set of connected domains composed of pixels conforming to the elliptical skin color model, the present invention does not directly use the connected domain with the largest area as the face area, because this is prone to misdetection. For example, when student A wears a vest and stretches his arms forward, this may cause two connected domains with an area larger than the face area to appear in the detection frame, because the color of the skin of the arm is close to that of the face.
[0140] Therefore, the present invention screens the connected domain based on the connected domain screening coefficient, and can obtain a more accurate face region.
[0141] Preferably, the calculation formula of the connected domain screening coefficient is:
[0142]
[0143] represents the screening coefficient of the connected domain, express LU The area of the largest connected domain in ; express LU The area of the second largest connected domain in .
[0144] The connected domain coefficient is the first two connected domains with the largest area for comparison. Generally speaking, since the present invention has limited the position of the detection frame, the face area is generally the area with the largest area in the detection frame. However, since students may lean back and change the distance between themselves and the intelligent classroom monitoring device, the face area may not be the area with the largest area. The present invention calculates the screening coefficient. When the area difference between the two areas is too large, it can be considered that the possibility that the connected domain with a smaller area belongs to the face area is very small.
[0145] In the prior art, when a skin color detection model is used for detection, since the detection frame solution of the present invention is not used, it is not possible to directly judge the possibility that a connected domain with a smaller area belongs to a face region based on the connected domain screening coefficient. This is because there may be many regions in the background that are similar in size and area to the face region.
[0146] Preferably, the connected domain screening coefficient threshold is 0.2.
[0147] Preferably, the first rule is used to obtain the face region, including:
[0148] Will LU The connected region with the largest area is regarded as the face region.
[0149] Specifically, when the connected domain screening coefficient meets the requirement, it means that the area difference between other connected domains in the detection frame and the face area is too large. Therefore, the connected domain can be screened directly according to the area.
[0150] Preferably, the second rule is used to obtain the face region, including:
[0151] when LU When the number of face regions in is greater than or equal to 2 and less than 5, calculate LU The judgment values of all connected domains in;
[0152] when LU When the number of face regions in is greater than or equal to 5, get LU The first five connected domains with the largest area;
[0153] Calculate the judgment value of each connected domain respectively;
[0154] The connected domain with the largest judgment value is regarded as the face area.
[0155] Specifically, the area is needed when calculating the judgment value. Therefore, for a connected domain with an area that is too small, the value of the calculated detection value is basically 0. Therefore, the present invention only calculates the judgment value for the first 5 connected domains, which can accurately identify the face area while reducing the recognition time.
[0156] Preferably, the calculation formula of the judgment value is:
[0157]
[0158] Represents a connected domain The judgment value of Represents a connected domain The area of express LU The maximum area of the connected domain in Represents a connected domain The similarity between the contour of the face and the preset standard face contour, The set ratio value.
[0159] Specifically, the judgment value not only considers the area, but also the contour features of the connected domain, so that the judgment value can more accurately and comprehensively represent the possibility that the connected domain belongs to the face region. The larger the judgment value, the greater the possibility. Generally speaking, the contour of a face is close to an ellipse. Therefore, by comparing it with the standard face contour, the possibility that the connected domain belongs to the face region can be effectively judged.
[0160] Preferably, The value of is 0.4.
[0161] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A vision-based intelligent classification system for student behavior in smart classrooms, characterized in that: Including intelligent classroom monitoring devices and expression recognition devices; The smart classroom monitoring device is used to film the classroom and obtain the video to be analyzed; The expression recognition device includes a video frame acquisition module, a face detection module and a face recognition module; The video frame acquisition module is used to select video frames in the video to be analyzed using preset rules to obtain multiple images to be identified; The face detection module is used to obtain the face area of each image to be identified; The face recognition module is used to identify the face area and determine the expression type of the face in each face area; Among them, the face area in each image to be recognized is obtained respectively, including: Number the images to be identified according to the order of shooting time from early to late; The images to be identified are grouped using a preset number interval, and the images to be identified are divided into multiple sets; Recognize the images to be recognized in each set respectively, and obtain the face area in the images to be recognized, including: Number the images to be identified in the same set in the order of shooting time from early to late; For the first two images to be recognized, the first two images to be recognized are respectively input into the trained convolutional neural network model for recognition, and the face area in each image to be recognized is obtained; From Starting from the image to be recognized, the face area is obtained in the following way: The image to be recognized, The image to be recognized and An image to be recognized; Greater than or equal to 2; based on and Calculate the detection coefficient; Calculate the side length of the detection box based on the detection coefficient; exist In The coordinates of each face region in are the center of the detection frame, and multiple detection frames are drawn; Use the preset skin color detection model to obtain the face area in each detection frame; based on Calculate the detection coefficient, including: The first step is to calculate The offset distance of each face region in: The face area in and The coordinates of the center are The abscissa and ordinate of the center; , get the coordinates is the center and the radius is Circular area of Get the distance in the circular area The nearest face area The distance between them is taken as the offset distance; In the second step, the detection coefficient is calculated using the following formula: ; The total number of regions, The face area in The offset distance.
2. According to claim 1, a vision-based intelligent classification system for student behavior in smart classrooms is characterized in that: Also included are statistical devices; The statistical device is used to count the types of expressions in all the images to be recognized, and obtain the percentages of various types of expressions.
3. According to claim 1, a vision-based intelligent classification system for student behavior in smart classrooms is characterized in that: Film the classroom and obtain the video to be analyzed, including: Shoot the area directly above the blackboard in the classroom toward where the desks are located to obtain the video to be analyzed.
4. According to claim 1, a vision-based intelligent classification system for student behavior in smart classrooms is characterized in that: The preset rules are used to select the video frames in the video to be analyzed, and multiple images to be identified are obtained, including: Divide the video to be analyzed into multiple video frames; Use a fixed selection interval Get the image to be recognized, every A video frame is used as the image to be recognized.
5. The vision-based intelligent classification system for student behavior in smart classrooms according to claim 1 is characterized in that: Recognize the face area and determine the facial expression type of each face area, including: The image corresponding to each face region is input into a pre-trained expression classification model for recognition to obtain the expression type of the face in the face region.
6. The vision-based intelligent classification system for student behavior in smart classrooms according to claim 1 is characterized in that: The images to be identified are grouped using preset number intervals, and the images to be identified are divided into multiple sets, including: represents the preset number interval, then the number interval of the first set of images to be identified is ; No. The interval of the number of the images to be identified in the set is , , ; judge Is it 0? If not, the number interval is The images to be recognized are stored in the same set.
7. The vision-based intelligent classification system for student behavior in smart classrooms according to claim 1 is characterized in that: The trained convolutional neural network model is the Mask R-CNN model.
8. The vision-based intelligent classification system for student behavior in smart classrooms according to claim 1 is characterized in that: Calculate the side length of the detection box based on the detection coefficient, including: Use the following formula to calculate the side length of the detection box: , The maximum offset distance of the face area in .
9. The vision-based intelligent classification system for student behavior in smart classrooms according to claim 1 is characterized in that: exist In The coordinates of each face region in are the center of the detection frame, and multiple detection frames are drawn, including: The coordinates of each face area in are the center of the detection frame, and multiple detection frames with square shapes are drawn.
