A student classroom behavior detection method based on ESRGAN and improved YOLOv5s

Through ESRGAN and improved YOLOv5s model, the problem of low detection accuracy of small and medium-sized targets and multiple targets for students' classroom behavior detection is solved, and higher recognition accuracy and robustness are achieved, and suitable for complex classroom scenarios.

CN114241422BActive Publication Date: 2024-11-01CHANGCHUN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111592024.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-23
Publication Date
2024-11-01
Estimated Expiration
2041-12-23

AI Technical Summary

Technical Problem

In student classroom behavior detection, deep learning methods are not effective when detecting small and multi-objectives in the back row, especially in complex real classroom scenarios. Factors such as light change, object occlusion and student overlap increase the difficulty of object detection. , resulting in low detection accuracy.

Method used

Using the student classroom behavior detection method based on ESRGAN and improved YOLOv5s, high-resolution images are generated through the ESRGAN model and an improved YOLOv5s model is constructed, including a convolutional attention module and a tiny object detection module to improve the accuracy of object detection.

Benefits of technology

It improves the accuracy of classroom behavior recognition, especially when detecting small and multi-objectives, enhances the ability to identify students' behaviors in the back row, and has higher robustness in complex scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114241422B_ABST
    Figure CN114241422B_ABST
Patent Text Reader

Abstract

The invention discloses a method for detecting student classroom behavior based on ESRGAN and improved YOLOv5s, comprising: collecting multiple student classroom monitoring images, and marking the positions and behaviors of students on the monitoring images to obtain an initial sample set; using an ESRGAN model to process the images in the initial sample set to obtain a training sample set; constructing an improved YOLOv5s model, which comprises a Backbone network, a Neck network and a Head network; wherein the Backbone network comprises a convolutional attention module; the Neck network comprises a small object detection module; using the training sample set to train the improved YOLOv5s model to obtain a student classroom behavior detection model; collecting student classroom real-time monitoring images, and processing the classroom real-time monitoring images through an ESRGAN model; using the student classroom behavior detection model to perform target detection on the processed classroom real-time monitoring images to identify student behaviors in the classroom real-time monitoring images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of student classroom behavior detection, and in particular relates to a student classroom behavior detection method based on ESRGAN and improved YOLOv5s. Background Art

[0002] With the rapid development of smart campus and artificial intelligence technology, intelligent identification of students' classroom behavior has become increasingly advantageous. Through monitoring equipment in the classroom, teaching videos are collected and stored in real time, and intelligent methods are used to identify and analyze students' classroom behaviors, and timely feedback is given to teachers, which facilitates tracking and evaluation of students' learning status, thereby improving teaching quality and monitoring students' physical and mental health.

[0003] At present, many researchers have applied deep learning technology to the detection of students' classroom behavior. Unlike traditional methods and machine learning methods, deep learning is based on big data, automatically extracts features, and has stronger robustness. However, due to the large number of students and dense locations, students' classroom behaviors are complex and changeable, and video data has the problem of small targets and low resolution of students in the back row, which makes deep learning methods ineffective in detecting small targets and multiple targets in the back row. During image acquisition, it was found that nearly 50% of the targets were small targets that occupied less than 0.5% of the image. In addition, the real classroom scenes are complex, such as light changes, object occlusion, student overlap, etc. The above factors increase the difficulty of target detection and bring great challenges to the recognition of students' classroom behavior. Summary of the invention

[0004] The purpose of the present invention is to provide a student classroom behavior detection method based on ESRGAN and improved YOLOv5s, which can improve the accuracy of student classroom behavior recognition.

[0005] The technical solution provided by the present invention is:

[0006] A method for detecting student classroom behavior based on ESRGAN and improved YOLOv5s, including:

[0007] Collect multiple classroom surveillance images of students, and mark the positions and behaviors of students on the surveillance images to obtain an initial sample set;

[0008] Using the ESRGAN model to process the images in the initial sample set to obtain a training sample set;

[0009] Build an improved YOLOv5s model, which includes Backbone network, Neck network and Head network;

[0010] Wherein, the Backbone network includes a convolutional attention module; the Neck network includes a small object detection module;

[0011] The improved YOLOv5s model is trained using the training sample set to obtain a student classroom behavior detection model;

[0012] Real-time classroom monitoring images of students are collected and processed through the ESRGAN model; the processed real-time classroom monitoring images are subjected to target detection using the student classroom behavior detection model to identify student behaviors in the real-time classroom monitoring images.

[0013] Preferably, the Backbone network further includes a Focus module, a plurality of first BottleneckCSP modules and an SPP spatial pyramid pooling module;

[0014] Wherein, the convolutional attention module is arranged between the Focus module and the first BottleneckCSP module.

[0015] Preferably, the tiny object detection module includes an FPN structure and a PAN structure;

[0016] The FPN structure includes a second Bottleneck CSP module, a first convolutional layer and a first Concat module connected in sequence; the PAN structure connects a third Bottleneck CSP module, a second convolutional layer and a second Concat module in sequence.

[0017] Preferably, the convolution kernel size of the first convolution layer is 1×1, and the convolution kernel size of the second convolution layer is 3×3.

[0018] Preferably, the convolutional attention module includes: a channel attention module and a spatial attention module.

[0019] Preferably, the Head network outputs detection feature maps of four sizes, and the sizes of the four detection feature maps are: 160×160, 80×80, 40×40 and 20×20 respectively.

[0020] Preferably, the student classroom behavior detection model is used to perform target detection on the processed classroom real-time monitoring image, including:

[0021] In the Backbone network:

[0022] After the Focus module divides the input image into multiple slices, it deeply connects the multiple slices through the convolution operation and outputs the first feature map through the convolution layer;

[0023] The first feature map is processed by the channel attention module and the spatial attention module in sequence to obtain a second feature map;

[0024] After the second characteristic map passes through the plurality of first Bottleneck CSP modules in sequence, a third characteristic map, a fourth characteristic map and a fifth characteristic map are obtained respectively;

[0025] The SPP spatial pyramid pooling performs tensor concatenation and maximum pooling operations on the fifth feature map, and then outputs a sixth feature map through a convolution operation.

[0026] Preferably, the student classroom behavior detection method based on ESRGAN and improved YOLOv5s further includes:

[0027] In the Neck network:

[0028] After the sixth feature map is processed by the Bottleneck CSP module and convolution, a Concat fusion operation is performed with the fifth feature map to obtain a seventh feature map;

[0029] After the seventh feature map is processed by the Bottleneck CSP module and convolution, a Concat fusion operation is performed with the fourth feature map to obtain an eighth feature map;

[0030] After the eighth feature map is processed by the second BottleneckCSP module and the first convolutional layer, it is fused with the third feature map by the first Concat module to obtain a ninth feature map;

[0031] After the ninth feature map is processed by the third Bottleneck CSP module, a tenth feature map is obtained.

[0032] Preferably, the student classroom behavior detection method based on ESRGAN and improved YOLOv5s further includes:

[0033] In the Head network, the tenth feature map is subjected to a convolution operation to obtain a detection feature map with a size of 160×160.

[0034] Preferably, the size of the input image is 640×640.

[0035] The beneficial effects of the present invention are:

[0036] The student classroom behavior detection method based on ESRGAN and improved YOLOv5s provided by the present invention fully utilizes the advantages of YOLOv5s in terms of fast speed, light weight and multi-target detection, and distributes the weights of channel features and the weights of feature map space features by integrating the CBAM module, thereby increasing the weights of useful features while suppressing the weights of invalid features, paying more attention to the target area containing important information, and improving the overall accuracy of target detection; using a small-scale feature fusion layer as a tiny target detection module can reduce the information loss of small-level features in the downsampling process, so that the features of tiny targets can be fully extracted in the network, and the accuracy of identifying the behavior of small-target students in the back row of the classroom is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a flowchart of the student classroom behavior detection method based on ESRGAN and improved YOLOv5s described in the present invention.

[0038] Figure 2 This is the improved YOLOv5s model diagram described in the present invention. DETAILED DESCRIPTION

[0039] The present invention is further described in detail below in conjunction with the accompanying drawings so that those skilled in the art can implement the invention with reference to the description.

[0040] like Figure 1 As shown, the present invention provides a student classroom behavior detection method based on ESRGAN and improved YOLOv5s, which is used to detect the learning status of students in class.

[0041] The first stage is to establish a dataset of student classroom behavior in real classroom scenarios in colleges and universities: collect surveillance video of real classroom environments in colleges and universities, extract useful frames, and convert video stream data into several frames of images. According to the classroom behavior of each student in the image, use data annotation tools to annotate the image, including using a rectangular frame to frame the position of each student and mark the name of the student's behavior, and divide the dataset into training set, validation set, and test set.

[0042] In order to obtain an experimental data set that meets the needs of building a model, in this embodiment, an experimental data set is constructed by collecting real classroom surveillance videos of a university. The video resolution is 1920×1080, the length of each video is 120 minutes, and the frames are uniformly sampled to obtain 480×270 pixel images. The data format is PNG.

[0043] The images are labeled using the data annotation tool LabelImg. The position and behavior of each student in the image are accurately labeled with a bounding box. The label file has a txt suffix and the file name is the same as the image name. The dataset contains 10 actions that students often take in class: playing with mobile phones, sitting with hands covering their faces, sitting and turning right, sitting and turning left, lowering their heads, sleeping, drinking water, standing, yawning, attending class, and unknown behaviors.

[0044] The second stage is the model design and training stage. Based on the dataset established in the first stage, the ESRGAN algorithm (enhanced super-resolution generative adversarial network algorithm) is used to generate high-resolution images and train the target detection model based on the improved YOLOv5s.

[0045] In order to improve the recognition accuracy of the model, the present invention uses ESRGAN to generate high-resolution images one-to-one from the original images of the data set. ESRGAN optimizes the super-resolution generative adversarial network (SRGAN) in terms of architecture and loss function. Compared with SRGAN, the residual block is replaced by Residual-in-Residual Dense Block (RRDB), which combines multi-layer residual networks and dense connections to optimize the texture of the image. The Sense block consists of 5 Convs, and 3 Sense block modules form an RRDB module. In terms of the discriminant network, the relative average discriminator (RaD) replaces the original discriminator. The mathematical expression is as follows:

[0046] D(x)=σ(C(x)) (1)

[0047]

[0048] Here, σ represents the Sigmoid function and C(x) represents the output of the unconverted discriminant network. real represents the real image, x fake represents the generated image, Represents the average value of all generated data. The loss function of the relative discriminant network is formally defined as:

[0049]

[0050]

[0051] The classroom behavior dataset established in the first phase is used as the input of the ESRGAN model. Through the generative adversarial network, the original image resolution can be magnified by 4 times, and the texture details of small student targets at a distance in the image can be enhanced, which is helpful for the subsequent detection and identification of student behaviors.

[0052] Compared with the super-resolution generative adversarial network (SRGAN), the ESRGAN algorithm used in the present invention optimizes the super-resolution generative adversarial network in terms of architecture and loss function, and introduces the Residual-in-Residu DenseBlock (RRDB) module. The high-resolution image generated by the ESRGAN algorithm can learn more detailed image features, greatly improving the resolution of small targets in the data set described in stage 1, which is conducive to the feature expression of small targets, thereby improving the accuracy of small target recognition.

[0053] like Figure 2 As shown in the figure, the improved YOLOv5s model structure is divided into three parts: Backbone network, Neck network and Head network. The input image aggregates different fine-grained images in the Backbone network to form image features. The Backbone network includes the Focus structure and CSPNet (Cross Stage Partial Networks). The improved Head network consists of four modules, which detect objects of sizes of 160×160, 80×80, 40×40 and 20×20 respectively, output the predicted bounding box and category, mark the target in the original image, and output the student behavior detection results.

[0054] Based on the YOLOv5s architecture, the present invention improves the Backbone network, Neck network and Head network structures respectively: a convolutional attention module is added after the Focus operation of the Backbone structure; a small object detection module composed of FPN and PAN is added after the second Concat operation of the Neck structure. The FPN structure includes a BottleneckCSP module, a convolution layer (the convolution kernel size is 1×1) and a Concat operation; the PAN structure includes a BottleneckCSP module and a convolution layer (the convolution kernel size is 3×3) and a Concat operation. In the Head network, a detection feature map of size 160×160 is added.

[0055] The specific method of using the improved YOLOv5s to detect targets in images is as follows:

[0056] For the original image with an input size of 640×640: First, the Focus slice operation divides the input original 640×640×3 channel image into 4 slices, each of which is 3×320×320 in size. Secondly, the 4 partial Concat operations are deeply connected using a convolution operation with 32 convolution kernels, and then a convolution layer composed of 32 convolutions is used to output a feature map (the first feature map) with a size of 32×320×320.

[0057] In the present invention, a convolutional attention module Conv_CBAM consisting of spatial attention and channel attention is added after the Focus operation of the Backbone structure to strengthen the initial features. The channel attention module aggregates the spatial information of the input feature map through global maximum pooling and global average pooling, and sends it to a shared network to compress the spatial dimension of the input feature map, and sums and merges each element to generate a channel attention map.

[0058] The feature map output by the channel attention module of the Spatial Attention Module is used as the input feature map of this module. First, a global maximum pooling and global average pooling based on the channel are performed, and then a convolution layer with a convolution kernel of 7×7 is passed, and finally it is multiplied with the input feature of the module to obtain the final generated feature map (the second feature map).

[0059] The feature map obtained after the convolutional attention module passes through three BottleneckCSP modules in sequence. The BottleneckCSP module is mainly composed of a residual unit, which connects the convolution layer with a convolution kernel size of 1×1 and the convolution layer with a convolution kernel size of 3×3. After passing through the three BottleneckCSP modules in sequence, the scale of the feature map becomes 64×160×160 (the third feature map), 128×80×80 (the fourth feature map), and 256×40×40 (the fifth feature map).

[0060] The SPP spatial pyramid pooling structure uses four convolution kernels of different sizes to perform tensor splicing and maximum pooling operations on the 256×40×40 feature map (the fifth feature map), outputting a 1024×20×20 feature map, and finally passing through a convolution layer with a convolution number of 512 and a convolution kernel size of 1×1 to output a 512×20×20 feature map (the sixth feature map).

[0061] The feature map (sixth feature map) obtained after the SPP module has a size of 256×20×20 after a BottleneckCSP module. The Neck network includes FPN and PANet modules. The FPN feature pyramid is a top-down structure, such as Figure 2As shown in the figure, a convolution operation with a convolution kernel of 1×1 is performed on the high-level feature map of a smaller size of 256×20×20, and then the obtained 256×40×40 feature map is concat-fused with the 256×40×40 output feature map (fifth feature map) of the third-layer CSP module in Backbone to obtain a 512×40×40 feature map (seventh feature map); the 512×40×40 feature map is then concat-fused with the 128×80×80 feature map (fourth feature map) output by the second-layer CSP module in Backbone through a BottleneckCSP module and a convolution layer with a convolution kernel of 1×1 to obtain a 256×80×80 feature map (eighth feature map). In this way, the high-level feature information and the output features of the CSP modules of different layers are aggregated from top to bottom, so as to fully integrate the image features of different layers and pass them to the bottom-up feature pyramid PANnet structure, which contains two PAN structures. The PAN structure performs a Concat operation on two feature maps of the same size, which can improve the target positioning ability of the algorithm to a certain extent.

[0062] After the second Concat operation of the Neck structure, a small object detection module consisting of FPN and PAN is added, such as Figure 2 As shown. The FPN structure includes, after extracting a feature map of size 80×80 in the second concat operation of the Neck network, adding a BottleneckCSP module and a convolution layer (the convolution kernel size is 1×1) to expand the size of the feature map to 160×160, and performing a concat operation on it with the feature map output by the first layer CSP module in the Backbone to obtain a feature map of size 160×160 (the ninth feature map), thereby adding a detection feature map of size 160×160 in the Head network. The PAN structure includes, after obtaining a 160×160 feature map, adding a BottleneckCSP module and a convolution layer (the convolution kernel size is 3×3) to perform a concat operation on the 160×160 feature map and the output feature map of the convolution operation (the convolution kernel is 1×1) in the FPN structure of the small object detection module according to the bottom-up structure.

[0063] Finally, four sizes of detection feature maps are obtained in the Head network: 160×160, 80×80, 40×40 and 20×20. By integrating the small object detection module, a more complex network structure is achieved and the depth of the network is increased. Therefore, the improved YOLOv5s provided in the present invention can learn more refined image features than the original YOLOv5s. When the input size of the image is 640×640, the model can detect targets as small as 4×4 pixels.

[0064] The improved YOLOv5s model is used to train on the student behavior dataset established by the present invention. The network parameters in this embodiment are shown in Table 1.

[0065] Table 1. Training network hyperparameters

[0066]

[0067] In this example, the improved YOLOv5s network uses the stochastic gradient descent (SGD) optimization algorithm, and the initial learning rate and momentum parameters are set to 0.01 and 0.937 respectively. The total number of iterations of model training is 300.

[0068] The convergence curves of the box loss, target loss, and classification loss of the training set and validation set in this example all show a sharp downward trend during the iteration process until they finally converge. After 200 iterations, the loss value drops to a relatively small value. When the iterations approach 300, the loss value reaches a relatively stable level, even close to zero.

[0069] On the other hand, as the number of iterations increases, the performance curves of precision, recall, and mean average precision (mAP) show an upward trend, tend to stabilize when the number of iterations reaches 200, exceed 95% after 300 iterations, and finally approach 100%. This shows that the overall training effect of the ET-YOLOv5s model is ideal. After the model training is completed, save the weight file of the obtained recognition model and use the test set to evaluate the performance of the model.

[0070] The student classroom behavior detection method based on ESRGAN and improved YOLOv5s provided by the present invention is compared with other detection models in an experiment to verify the effectiveness of the student behavior recognition method provided by the present invention.

[0071] The detection models are: YOLOv4, YOLOv5s, and improved YOLOv5s+ESRGAN (the detection method provided by the present invention). The comparative experiment was tested on the test data set we established, with mean average precision (mAP) and precision (P) as the evaluation indicators of model performance. In addition, FPS (frames per second) is used to evaluate the detection speed of the model, and FPS represents the number of images processed by the model per second. The hardware environment and training parameters of all models are the same. The experimental results are shown in Table 2.

[0072] Table 2 Comparative experimental results of different combination algorithms

[0073]

[0074] The experimental results show that compared with other similar algorithms, the detection method provided by the present invention has higher detection accuracy and better other performance for small and low-resolution targets. In the present invention, the CBAM module and the small object detection module increase the depth of the YOLOv5s network, resulting in an increase in model parameters and an increase in the amount of calculation. Therefore, compared with the original YOLOv5s, the detection speed of the improved YOLOv5s is slightly reduced, and the FPS value changes from 110 to 94, but the detection speed still meets the detection requirements of actual application scenarios.

[0075] The third stage is to use the model obtained after the second stage of training to detect the behavior of all students in the classroom and give specific categories. The identified behavior categories include 10 actions: playing with mobile phones, sitting with hands covering the face, sitting and turning right, sitting and turning left, lowering the head, sleeping, drinking water, standing, yawning, attending class, and unknown behaviors.

[0076] Taking the same image as the input image, the recognition results obtained by the student classroom behavior detection method based on ESRGAN and improved YOLOv5s provided by the present invention are compared with those obtained by the original YOLOv5s method. The original YOLOv5s method misdetects lowering the head as a normal behavior, and misses the detection frames of lowering the head and supporting the chin. The method provided by the present invention detects small targets more accurately than the original algorithm, and all small targets are detected. When the classroom is darker and there are more background environment interferences, the detection frame of the original YOLOv5s has a phenomenon of missed detection, and the method proposed by the present invention can still accurately detect the occluded targets, which shows that it has stronger robustness. In summary, the student classroom behavior detection method based on ESRGAN and improved YOLOv5s proposed by the present invention can detect more distant student small targets, and the algorithm is more robust.

[0077] The present invention adds a convolutional attention module (CBAM) after the Focus layer in the Backbone structure. The CBAM module infers the attention map from the intermediate feature map along two independent dimensions (channel and space) in sequence, and then multiplies the attention map with the input feature map for adaptive feature optimization. A small object detection module composed of FPN and PAN is added to the top of the three branches of the original Neck structure, and a feature map of size 160×160 is output in the Head network, that is, a small target detection module with a smaller scale than the original three feature detections of YOLOv5s is added. After extracting a feature map of size 80×80 in the second concat operation of the Neck network, a BottleneckCSP module and a convolution layer (convolution kernel size is 1×1) are added. Then, an upsampling operation is performed to expand the size of the feature map to 160×160. At the same time, the upsampled feature map and the first layer feature map extracted from the Backbone are fused through a connection operation to obtain a feature map of size 160×160. Finally, four sizes of feature maps are used in the Head network: 160×160, 80×80, 40×40, and 20×20. The improved YOLOv5s uses a total of four sizes of detection layers to achieve accurate recognition of tiny pupil targets.

[0078] The present invention makes full use of the advantages of YOLOv5s in terms of speed, light weight and multi-target detection. By integrating the CBAM module, the weights of channel features and the weights of feature map spatial features are allocated, while the weights of invalid features are suppressed, the weights of useful features are increased, and more attention is paid to the target area containing important information, thereby improving the overall accuracy of target detection. The small-scale feature fusion layer is used as a small target detection module to reduce the information loss of small-level features during the downsampling process, so that the features of small targets can be fully extracted in the network, and the accuracy of student behavior recognition of small targets in the back row of the classroom can be improved. When the input image size of the detection model is 640×640, the model can detect targets as small as 4×4 pixels. By integrating the CBAM module and the small target detection module, the useful features of small targets can be fully extracted from the network, and the accuracy of multiple student behavior recognition can be improved.

[0079] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation modes, and they can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.

Claims

1. A student classroom behavior detection method based on ESRGAN and improved YOLOv5s, It is characterized in that include: Collect multiple classroom surveillance images of students, and mark the positions and behaviors of students on the surveillance images to obtain an initial sample set; Using the ESRGAN model to process the images in the initial sample set to obtain a training sample set; The ESRGAN algorithm optimizes the super-resolution generative adversarial network in terms of architecture and loss function, and introduces the Residual-in-Residu Dense Block module; Build an improved YOLOv5s model, which includes Backbone network, Neck network and Head network; The Backbone network includes a Focus module, a plurality of first Bottleneck CSP modules and an SPP spatial pyramid pooling module; a convolutional attention module is added after the Focus operation of the Backbone structure; the input image aggregates different fine-grained images in the Backbone network to form image features; After the second Concat operation of the Neck structure, a small object detection module consisting of an FPN structure and a PAN structure is added; The FPN structure includes a second BottleneckCSP module, a first convolutional layer and a first Concat module connected in sequence; The PAN structure sequentially connects the third BottleneckCSP module, the second convolutional layer and the second Concat module; The convolution kernel size of the first convolution layer is 1×1, and the convolution kernel size of the second convolution layer is 3×3; The head network consists of four modules, which detect objects of sizes 160×160, 80×80, 40×40, and 20×20 respectively, output the predicted bounding box and category, mark the target in the original image, and output the student behavior detection results; The improved YOLOv5s model is trained using the training sample set to obtain a student classroom behavior detection model; Collecting real-time monitoring images of students in the classroom, and processing the real-time monitoring images of the classroom through the ESRGAN model; The student classroom behavior detection model is used to perform target detection on the processed real-time classroom monitoring images to identify student behaviors in the real-time classroom monitoring images.

2. The student classroom behavior detection method based on ESRGAN and improved YOLOv5s according to claim 1, It is characterized in that The convolutional attention module includes: a channel attention module and a spatial attention module.

3. The student classroom behavior detection method based on ESRGAN and improved YOLOv5s according to claim 2, It is characterized in that The student classroom behavior detection model is used to perform target detection on the processed classroom real-time monitoring image, including: In the Backbone network: After the Focus module divides the input image into multiple slices, it deeply connects the multiple slices through the convolution operation and outputs the first feature map through the convolution layer; The first feature map is processed by the channel attention module and the spatial attention module in sequence to obtain a second feature map; After the second characteristic map passes through the plurality of first Bottleneck CSP modules in sequence, a third characteristic map, a fourth characteristic map and a fifth characteristic map are obtained respectively; The SPP spatial pyramid pooling performs tensor concatenation and maximum pooling operations on the fifth feature map, and then outputs a sixth feature map through a convolution operation.

4. The student classroom behavior detection method based on ESRGAN and improved YOLOv5s according to claim 3, It is characterized in that Also includes: In the Neck network: After the sixth feature map is processed by the Bottleneck CSP module and convolution, a Concat fusion operation is performed with the fifth feature map to obtain a seventh feature map; After the seventh feature map is processed by the Bottleneck CSP module and convolution, a Concat fusion operation is performed with the fourth feature map to obtain an eighth feature map; After the eighth feature map is processed by the second BottleneckCSP module and the first convolutional layer, it is fused with the third feature map by the first Concat module to obtain a ninth feature map; After the ninth feature map is processed by the third Bottleneck CSP module, a tenth feature map is obtained.

5. The student classroom behavior detection method based on ESRGAN and improved YOLOv5s according to claim 4, It is characterized in that Also includes: In the Head network, the tenth feature map is subjected to a convolution operation to obtain a detection feature map with a size of 160×160.

6. The student classroom behavior detection method based on ESRGAN and improved YOLOv5s according to claim 5, It is characterized in that The size of the input image is 640×640.