Online classroom concentration identification method with visual privacy protection function

Through style transfer and correlation statistical models, the problem of balancing visual privacy protection and concentration identification in online classes is solved, achieving accurate identification of student concentration while protecting privacy, and improving teaching quality and privacy security.

CN118570860AActive Publication Date: 2024-08-30NANJING UNIV OF POSTS & TELECOMM
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410715707.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-30
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

Existing online classroom concentration monitoring systems have risks of privacy invasion, and traditional vision-based monitoring methods are difficult to accurately identify students' concentration while protecting privacy.

Method used

The style transfer method is used for visual privacy protection, and the convolutional neural network is used for style transfer processing. The image color features and significant structural features are extracted, mapped to the visual privacy protection score, and the correlation between the visual privacy protection score and the concentration recognition rate is established. Statistical model to achieve a balance between visual privacy protection and focus recognition.

Benefits of technology

It effectively protects students' visual privacy, ensures high recognition rate, provides high-focus recognition capabilities under high visual privacy protection, and provides a safe and reliable solution for online classroom teaching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570860A
    Figure CN118570860A
Patent Text Reader

Abstract

The invention relates to the field of computer vision and pattern recognition, in particular to an online classroom concentration recognition method with a visual privacy protection function, which comprises the following specific steps of: firstly, performing style migration on video data to realize a visual privacy protection effect; image color features and significant structure features of the processed video frame sequence are extracted and mapped to an image visual privacy protection score, the recognition rate of concentration recognition is obtained from the processed video frame sequence, and finally a binary statistical model between the visual privacy protection score and the online classroom concentration recognition rate is established; aiming at the privacy conflict between video monitoring and intelligent application, the video data privacy protection method balances the conflict between privacy protection and intelligent application while performing privacy protection on the video data, and has relatively high practical application value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of computer vision and pattern recognition, and in particular to an online classroom concentration recognition method with a visual privacy protection function. Background Art

[0002] With the popularization and continuous development of Internet technology, non-traditional teaching modes, especially online classroom teaching modes, have become a hot research topic. In the past few years, online education has made remarkable progress. From simple text and video tutorials to rich interactive courses and virtual laboratories, the content and form of online education have become increasingly rich. Although online education has many advantages, it also faces many challenges in the specific application of real-time video online interactive classrooms. In the traditional offline classroom teaching process, teachers can adjust the teaching method or progress at any time according to the students' class status. However, in real-time video online teaching, teachers can only judge the learning status of terminal students through computer screens and sounds. Since the display screen is mainly used to play teaching courseware, it is difficult for teachers to discover students' dynamics, which in turn affects the teaching quality. Computer-based concentration monitoring systems can solve this kind of situation.

[0003] According to the source of the detection signal, the methods of concentration monitoring are mainly divided into three categories: (1) methods based on electroencephalogram technology, which monitor students' brain waves through head-mounted devices to obtain students' brain activity; (2) methods based on activity sensing technology, which use sensor devices to monitor students' physical activities, such as heart rate, breathing, body temperature, etc., to obtain students' physiological status; (3) methods based on face recognition technology, which use cameras to capture students' facial expressions and eye activities to infer students' concentration. First, although the concentration monitoring methods based on wearable devices are not sensitive to the environment, wearing them all the time will make people feel uncomfortable or resistant. In addition, there are differences in physiological baseline levels between different individuals, which requires complex calibration. Compared with other sensor-based systems, face recognition technology has the advantages of low equipment cost, low interference, and good recognition effect, so it has broad application prospects in the field of concentration monitoring. However, traditional vision-based concentration monitoring has the risk of infringing personal privacy information, such as bank card numbers, mobile phone chat interfaces, etc. The feasibility of using these monitoring systems in a home environment is questionable.

[0004] Therefore, in order to solve these problems, the present invention proposes a novel concentration monitoring method with visual privacy protection function to protect personal privacy while monitoring students' concentration. Summary of the invention

[0005] The purpose of the present invention is to solve the problem of privacy infringement in the existing online class concentration monitoring system, propose a style transfer method for visual privacy protection, and further establish a statistical model of the association between the visual privacy protection level and concentration recognition.

[0006] In order to solve the above technical problems, the present invention discloses an online classroom concentration recognition method with a visual privacy protection function, comprising the following steps:

[0007] S1. Perform style transfer processing on online classroom video data to achieve visual privacy protection effect;

[0008] S2. extracting image color features and salient structural features of the video frame sequence after style transfer processing;

[0009] S3. Mapping image color features and salient structural features to image visual privacy protection scores;

[0010] S4. Obtaining the recognition rate of focus recognition from the video frame sequence after style transfer processing;

[0011] S5. Establish a binary statistical model between the visual privacy protection score and the online class concentration recognition rate.

[0012] Among them, in step S1, the style transfer processing method is a convolutional neural network, which transfers the style of one image to another image through a convolutional neural network. The content information of the image is captured through the deeper layers of the network, and the style information of the image is captured by the shallow and middle layers of the network. By adjusting the intensity of style transfer and the target style, effective extraction of target content and protection of privacy content can be achieved under different privacy protection requirements and application scenarios. VGG-Network is used to extract target features, and by performing gradient descent optimization on different layers of the network, starting from the initial white noise image, an image matching the feature response of the original image is gradually generated to reconstruct the encoded content of a given level;

[0013] Define the content loss function for:

[0014]

[0015] Among them, I C is an image containing modeling content, and its response matrix is I G To generate an image, the response matrix is

[0016] The gradient is calculated using standard error backpropagation, using the derivative of the loss:

[0017]

[0018] The style representation of an image at a given network layer is obtained by calculating the correlation between the feature responses of that layer. Specifically, the correlation is represented by a l The Gram matrix G of rows and columns l Definition, where G l (i, j) is the inner product of the flattened vectors of feature responses i and j. To find a style representation that matches the input image, the algorithm first initializes a random image and performs gradient descent optimization on the style representation;

[0019] Define style loss function is the loss E of each layer of the network l The weighting is:

[0020]

[0021] Among them, I s Represents the style image, I G Represents the generated image. The minimization process of this loss function will make the generated image match the style image as closely as possible in the style representation of a given network layer;

[0022]

[0023] In the formula, is the Gram matrix of the style image, is the Gram matrix of the generated image, n l is the number of feature maps, m l is the total dimension of each feature map. For the activation degree E l The derivative of is:

[0024]

[0025] In order to generate an image that mixes the content of one image with the style of another image, the Neural Art algorithm initializes a white noise image and simultaneously minimizes the content loss at one level and the style loss across multiple levels. Its total loss function is:

[0026]

[0027] In step S2, the image color features are obtained by dividing the video frame after style transfer processing, converting it into the LAB domain, and calculating the color histogram. The expression of the color histogram CHF is as follows:

[0028]

[0029] Where B is the number of image blocks, I blockis an image block in LAB space, G σ is a rotationally symmetric Gaussian low-pass filter generated by the standard deviation, * is the convolution operation of the matrix, Hist(·) is a histogram function containing k bins, and F τ (·) is a normalization function with a threshold τ.

[0030] Among them, in step S2, the specific steps of extracting significant structural features are:

[0031] First, the image is preprocessed by local contrast normalization:

[0032]

[0033] Among them, I block is an image block of the same size as the GCS-LBP window, I block (i, j) represents the central pixel of the image block, const is a very small positive number set to avoid the denominator being zero, μ(i, j) and σ(i, j) refer to the mean and standard deviation of an image block in the image, respectively;

[0034] Image patch after contrast normalization Perform GCS-LBP encoding:

[0035]

[0036] in, and They are two pixels symmetrical about the central pixel of the GCS-LBP window with a radius of R and containing P pixels. is the assignment function with threshold T:

[0037]

[0038] Use the Itti-Korch saliency model to extract image saliency features:

[0039]

[0040] I, C, O are the brightness, color and direction comprehensive saliency maps respectively, and Saliency is the final fusion saliency map;

[0041] Combining the Itti-Korch saliency model with the GCS-LBP operator, a saliency generalized central symmetric local binary pattern operator IGCS-LBP is proposed to extract saliency structural features for image visual privacy protection evaluation. The calculation formula is as follows:

[0042]

[0043] Among them, IGL Represents the feature map derived from GCS-LBP, I GB Indicates the significant value from the Itti-Korch significance model;

[0044] In step S3, the image color features and salient structure features are mapped to the image visual privacy protection score through the support vector regression model. The support vector regression (SVR) equation is as follows:

[0045]

[0046] where n is the number of support vectors and the Lagrange multiplier α i and And the parameter b needs to be determined when training the SVR model. K(x, x i ) is the kernel function used to test the input vectors x and x i Using RBF as the SVR kernel function can more accurately predict the VPP level, which is expressed as:

[0047] K(u,v)=exp(-γ||uv|| 2 );

[0048] The features of the training set and the corresponding difference mean score (DMOS) values ​​are used as input to train the SVR model. Finally, the features of the test set are used as input to the training model to obtain the predicted style transfer visual privacy protection score.

[0049] Among them, in step S4, the face target area is detected in the video frame sequence after style transfer processing through the IntraFace pre-trained model, the face target is input into the improved CNN network to extract facial features and the focus classification is performed through the Sigmoid classifier.

[0050] Wherein, in step S5, a correlation statistical model between the visual privacy protection score and the online class concentration recognition rate is obtained by curve fitting the visual privacy protection score of the video frame encoded with different style transfer rates and the corresponding online class concentration recognition rate of the video frame;

[0051] Preferably, the curve fitting method in step S5 includes linear fitting, Gaussian fitting, exponential fitting and polynomial fitting;

[0052] More preferably, the curve fitting method in step S5 is polynomial fitting.

[0053] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the online classroom concentration identification method with visual privacy protection function of the present invention are implemented.

[0054] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the online classroom concentration identification method with visual privacy protection function of the present invention are implemented.

[0055] Beneficial effects: The present invention aims at the risk of privacy leakage of traditional videos at the visual level, and uses the style transfer imaging mechanism to improve imaging, thereby achieving the purpose of visual privacy protection. The present invention aims at the problem of characterizing the degree of privacy protection of style transfer result images, and uses color features and significant structural features to objectively evaluate the degree of visual privacy protection. The present invention aims at the problem of intelligent application of style transfer result images, extracts the target area of ​​the face, and then realizes concentration recognition by improving the CNN network method. The present invention establishes a binary statistical model between the visual privacy protection degree and the concentration recognition rate of the style transfer result image, and finds a balance between the visual privacy protection score and the online classroom recognition rate, that is, to ensure a high recognition rate while maintaining high visual privacy protection, providing value for its practical application. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, and the above and / or other advantages of the present invention will become more clear.

[0057] Figure 1 It is a schematic diagram of the process of the present invention;

[0058] Figure 2 A partial example diagram of an online classroom data set constructed in an embodiment of the present invention;

[0059] Figure 3 Schematic diagram of image visual privacy protection under different style transfer rates in an embodiment of the present invention;

[0060] Figure 4 This is a line graph of concentration recognition of videos with different style transfer rates in an embodiment of the present invention. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further explained below in conjunction with the accompanying drawings and specific embodiments.

[0062] Embodiment 1:

[0063] See also Figure 1 The embodiment of the present invention provides an online classroom concentration recognition method with a visual privacy protection function, comprising the following steps:

[0064] Step 1: We built a dataset of online classroom concentration, selected effective video clips, and performed style transfer on the video data with reference to several effective neural styles to achieve visual privacy protection:

[0065] This technology uses convolutional neural networks (CNNs) to transfer the style of one image to another. The content information of the image is captured through the deeper layers of the network, while the style information of the image is captured by the shallow and intermediate layers of the network. By adjusting the intensity of style transfer and the target style, effective extraction of target content and protection of privacy content can be achieved under different privacy protection requirements and application scenarios. VGG-Network is used to extract target features. By performing gradient descent optimization on different layers of the network, starting from the initial white noise image, an image matching the feature response of the original image is gradually generated to reconstruct the coded content of a given layer.

[0066] 1.1 Content Loss Function Defined as:

[0067]

[0068] Among them, I C is an image containing modeling content, and its response matrix is I G To generate an image, the response matrix is The gradient is calculated using standard error backpropagation, using the derivative of the loss:

[0069]

[0070] The style representation of an image at a given network layer is obtained by calculating the correlation between the feature responses of that layer. Specifically, the correlation is represented by a l The Gram matrix G of rows and columns l Definition, where G l (i, j) is the inner product of the flattened vectors of feature responses i and j. To find a style representation that matches the input image, the algorithm first initializes a random image and performs gradient descent optimization on the style representation.

[0071] 1.2 Style Loss Function Defined as the loss E of each layer of the network l Weighting of:

[0072]

[0073] Among them, I s Represents the style image, I G Represents the generated image. The minimization process of this loss function will make the generated image match the style image as closely as possible at the style representation of a given network layer.

[0074]

[0075] In the formula, is the Gram matrix of the style image, is the Gram matrix of the generated image, n l is the number of feature maps, m l is the total dimension of each feature map. For the activation degree E l The derivative of is:

[0076]

[0077] 1.3 In order to generate an image that mixes the content of one image with the style of another image, the neural art algorithm initializes a white noise image and simultaneously minimizes the content loss at one level and the style loss across multiple levels. Its total loss function is:

[0078]

[0079] Among them, α is the weight parameter of the content loss, which controls the content image I C To generate image I G β is the weight parameter of style loss. It controls the style image I S To generate image I G They determine the best weight combination through continuous learning of the deep learning network.

[0080] Step 2: For the video frame sequence of style transfer visual privacy protection, extract the image color and salient structure features respectively:

[0081] Step 2.1: Convert the style transfer video frame into LAB domain and calculate its color histogram CHF:

[0082] First, the image is divided into image blocks of size M×M. After each image block is converted to the LAB model, it is downsampled in the L, A, and B channels respectively, and convolved with a Gaussian kernel. Then, the convolution result is linearly interpolated, and its histogram is calculated. The result after histogram processing is normalized as the color histogram of the image block, and finally the average color histogram of all image blocks is calculated as the color histogram of the entire image. The specific form is as follows:

[0083]

[0084] Where B is the number of image blocks, I block is an image block in LAB space, G σis a rotationally symmetric Gaussian low-pass filter generated by the standard deviation, * is the convolution operation of the matrix, Hist(·) is a histogram function containing k bins, and F τ (·) is a normalization function with a threshold τ.

[0085] Step 2.2: Calculate the salient structural features of the style-transferred video frame:

[0086] This case uses the GCS-LBP operator to extract the structural features of the image. First, the image is preprocessed by local contrast normalization:

[0087]

[0088] Among them, I block is an image block of the same size as the GCS-LBP window, I block (i, j) represents the central pixel of the image block, const is a very small positive number set to avoid the denominator being zero, μ(i, j) and σ(i, j) refer to the mean and standard deviation of an image block in the image, respectively.

[0089] Image patch after contrast normalization Perform GCS-LBP encoding:

[0090]

[0091] in, and They are two pixels symmetrical about the central pixel of the GCS-LBP window with a radius of R and containing P pixels. is the assignment function with threshold T:

[0092]

[0093] Use the Itti-Korch saliency model to extract image saliency features:

[0094]

[0095] I, C, O are the brightness, color and direction comprehensive saliency maps respectively, and Saliency is the final fusion saliency map.

[0096] In this embodiment, the Itti-Korch saliency model is combined with the GCS-LBP operator to propose a saliency generalized central symmetric local binary pattern operator IGCS-LBP to extract saliency structural features for image visual privacy protection evaluation. The calculation formula is as follows:

[0097] IGCS-LBP=∑ i ∑ j IGL (i, j)·Δ(I GB (i, j, k) (12)

[0098]

[0099] Among them, I GL Represents the feature map derived from GCS-LBP, I GB Indicates the significant value from the Itti-Korch significance model;

[0100] Step 3: Input the two features into the SVR model to obtain the visual privacy protection of the video frame:

[0101] The color feature CHF and the salient structure feature IGCS-LBP of the style migration video frame are input into the SVR model to obtain the visual privacy protection degree of the video frame. The SVR regression equation is as follows:

[0102]

[0103] where n is the number of support vectors and the Lagrange multiplier α i and And the parameter b needs to be determined when training the SVR model. K(x, x i ) is the kernel function used to test the input vectors x and x i Using RBF as the SVR kernel function can more accurately predict the VPP level, which is expressed as:

[0104] K(u,v)=exp(-γ||uv|| 2 ) (15)

[0105] The features of the training set and the corresponding difference mean score (DMOS) values ​​are used as input to train the SVR model. Finally, the features of the test set are used as input to the training model to obtain the predicted style transfer visual privacy protection score.

[0106] Step 4: For the style transfer visual preservation video frame sequence, use the IntraFace pre-trained model to detect the face target area, input the face target into the improved CNN network to extract the face features and use the Sigmoid classifier to classify the focus:

[0107] Step 4.1: Crop the face region based on the landmarks detected by the IntraFace preprocessing model. These labels can be used to extract relevant information about the face. A larger crop size can retain more information, while a smaller crop size can reduce noise from the background. In the implementation process, the cropped image size S is given by S = α × max (d υ , d h), where α is a scalar that controls the size of the face area, d υ is the distance between the uppermost landmark point and the lowermost landmark point, d h is the horizontal distance between the leftmost landmark point and the rightmost ground point. After determining the cropping size, we set the nose as the center position of the cropped face to obtain a moderate face image for model training.

[0108] Step 4.2: The network architecture of this example consists of two convolution and pooling blocks, followed by two fully connected layers. We use ReLU as the activation function for each convolution layer. To prevent overfitting, Dropout is also used after the fully connected layer. The CNN network structure in this embodiment is simple and can achieve good results in the focus recognition task. In order to further improve the discriminative ability of the model, two consecutive convolutional layers are stacked before the maximum pooling. Larger convolutional filters are used, which gives the neurons in the model a larger receptive field. After the modification, the receptive field of each neuron in the first fully connected layer becomes 12×12, which is about 6% of the input 48×48 image.

[0109] Step 5: Establish a binary statistical model between the visual privacy protection score and the concentration recognition rate to balance the relationship between the two:

[0110] Step 5.1: In order to further quantify the correlation between the visual privacy protection and the online classroom concentration recognition results, the visual privacy protection of the video frames encoded with different style transfer rates is curve fitted with their corresponding concentration recognition rates. The fitting methods selected in this implementation case are: linear fitting, Gaussian fitting, exponential fitting and polynomial fitting.

[0111] Step 5.2: The best fitting curve is selected from the sum of squared errors (SSE), coefficient of determination (R-square) and root mean square (RMSE), wherein the fitting effect is better when SSE and RMSE are close to 0 and R-square is close to 1. In this embodiment, the present invention selects polynomial fitting from various fitting results as the statistical model of the association between visual privacy protection and recognition rate.

[0112] The specific model is:

[0113] 1. Input:

[0114] Visual privacy-preserving video frames Where m, n are the number of focused and non-focused video frames, respectively, and R∈{18%, 24%, 30%, 36%, 42%}.

[0115] 2. Calculation I R Visual privacy protection level:

[0116] 2.1 Extraction of CHF:

[0117]

[0118] 2.2 Extracting IGCS-LBP:

[0119]

[0120] 2.3 Input the feature F = {CHF, IGCS-LBP} into the SVR model to obtain the visual privacy protection level. The SVR model is:

[0121]

[0122] 3. Calculate the attention recognition rate of style transfer visual privacy protection videos with different style transfer rates.

[0123] 4. Output: Statistical model of the correlation between visual privacy protection level and attention recognition rate:

[0124] The Gaussian fitting formula is:

[0125] Where a is the height of the peak, b is the location of the peak (mean), and C is the standard deviation, which determines the width of the curve.

[0126] In order to balance the visual privacy protection of style transfer and the recognition of concentration, this implementation case establishes a binary statistical model between the two. While achieving visual privacy protection of video data, it is still hoped to ensure the usefulness of the video after privacy protection, that is, to ensure its recognition effect in intelligent applications. When the visual privacy protection score of an image is low, the visual information contained in the image does not meet the requirements of privacy protection. When the visual privacy protection score of an image is high, the recognition rate of the image will be greatly reduced, causing the image in the visual privacy protection state to lose its application value. Therefore, it is hoped to find a balance between the visual privacy protection score and the online classroom recognition rate, that is, to ensure a high recognition rate while maintaining high visual privacy protection, and to establish a quantitative correlation statistical model between visual security and concentration recognition rate.

[0127] Embodiment 2:

[0128] The computer-readable storage medium of this embodiment stores a computer program, which, when executed by a processor, implements the steps of the online classroom concentration identification method with a visual privacy protection function of Example 1.

[0129] The computer-readable storage medium of this embodiment may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal; the computer-readable storage medium of this embodiment may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, etc. equipped on the terminal; further, the computer-readable storage medium may also include both an internal storage unit of the terminal and an external storage device.

[0130] The computer-readable storage medium of this embodiment is used to store computer programs and other programs and data required by the terminal. The computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.

[0131] Embodiment 3:

[0132] The computer device of this embodiment includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the online classroom concentration identification method with visual privacy protection function of Example 1 are implemented.

[0133] In this embodiment, the processor may be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits, readily available programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0134] Those skilled in the art will appreciate that the disclosed content of the embodiments may be provided as methods, systems, or computer program products. Therefore, the present solution may adopt the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Moreover, the present solution 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 and optical storage, etc.) containing computer-usable program codes.

[0135] The present solution is described with reference to the flowchart and / or block diagram of the method and computer program product according to the embodiment of the present solution. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions; these computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0136] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0137] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0139] The present invention provides an online classroom concentration recognition method with a visual privacy protection function. There are many methods and ways to implement the technical solution. The above is only a preferred implementation of the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications should also be regarded as the protection scope of the present invention. All components not specified in this embodiment can be implemented using existing technologies.

Claims

1. A method for identifying concentration in an online classroom with a visual privacy protection function, characterized in that: The following steps are involved: S1. Perform style transfer processing on online classroom video data to achieve visual privacy protection effect; S2. extracting image color features and salient structural features of the video frame sequence after style transfer processing; S3. Mapping image color features and salient structural features to image visual privacy protection scores; S4. Obtaining the recognition rate of focus recognition from the video frame sequence after style transfer processing; S5. Establish a binary statistical model between the visual privacy protection score and the online class concentration recognition rate.

2. The method according to claim 1, characterized in that In step S1, the style transfer processing method is a convolutional neural network, which performs gradient descent optimization on different layers of the network, starting from an initial white noise image, and gradually generates an image that matches the feature response of the original image. The specific steps are as follows: Define the content loss function Among them, I C is an image containing modeling content, and its response matrix is I G To generate an image, the response matrix is The gradient is calculated using standard error backpropagation, using the derivative of the loss in the form: The style representation of an image at a given network layer is obtained by calculating the correlation between the feature responses of that layer. Specifically, the correlation is obtained by a vector with n l The Gram matrix G of rows and columns l Definition, where G l (i, j) is the inner product of the flattened vectors of feature responses i and j; To find a style representation that matches the input image, the algorithm first initializes a random image and performs gradient descent optimization on the style representation; Define style loss function Among them, I s Represents the style image, I G represents the generated image, E l is the loss of each layer of the network; Specifically, the minimization process of this loss function will make the generated image match the style image as closely as possible in the style representation of a given network layer. The loss function is defined as: in, is the Gram matrix of the style image, is the Gram matrix of the generated image, n l is the number of feature maps, m l is the total dimension of each feature map; For the activation E of the lth layer l The derivative of is: To generate an image that mixes the content of one image with the style of another, the Neural Art algorithm initializes a white noise image and simultaneously minimizes the content loss at one level and the style loss across multiple levels; the total loss function is defined as for: Among them, α is the weight parameter of content loss; β is the weight parameter of style loss.

3. The method according to claim 1, characterized in that In step S2, the image color features are obtained by dividing the video frame obtained after the style transfer process into blocks, converting it into the LAB domain, and calculating the color histogram.

4. The method according to claim 1, characterized in that In step S2, the specific steps of extracting significant structural features are: First, the image is preprocessed by local contrast normalization: Among them, I block is an image block of the same size as the GCS-LBP window, I block (i, j) represents the central pixel of the image block, const is a very small positive number set to avoid the denominator being zero, μ(i, j) and σ(i, j) refer to the mean and standard deviation of an image block in the image, respectively; Image patch after contrast normalization Perform GCS-LBP encoding: in, and They are two pixels symmetrical about the central pixel of the GCS-LBP window with a radius of R and containing P pixels. is the assignment function with threshold T: Use the Itti-Korch saliency model to extract image saliency features: I, C, O are the brightness, color and direction comprehensive saliency maps respectively, and Saliency is the final fusion saliency map; Combining the Itti-Korch saliency model with the GCS-LBP operator, a saliency generalized central symmetric local binary pattern operator IGCS-LBP is proposed to extract saliency structural features for image visual privacy protection evaluation. The calculation formula is as follows: IGCS-LBP=∑ i ∑ j I GL (i,j)·Δ(I GB (i,j),k); Among them, I GL Represents the feature map, I GB Indicates significant value.

5. The method according to claim 1, characterized in that In step S3, the image color features and salient structure features are mapped to the image visual privacy protection score through a support vector regression model.

6. The method according to claim 1, characterized in that In step S4, the face target area is detected in the video frame sequence after the style transfer process by using the IntraFace pre-trained model, the face target is input into the improved CNN network to extract face features, and the focus classification is performed by using the Sigmoid classifier.

7. The method according to claim 1, characterized in that In the step S5, a correlation statistical model between the visual privacy protection score and the online class concentration recognition rate is obtained by curve fitting the visual privacy protection score of the video frame encoded with different style transfer rates and the corresponding online class concentration recognition rate of the video frame.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the online classroom concentration recognition method with visual privacy protection function as described in any one of claims 1 to 7 are implemented.

9. 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 program, the steps of the online classroom concentration identification method with visual privacy protection function as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Student experiment classroom behavior identification method based on top vision

    CN113989608A

  • Key point differential privacy-driven face image privacy protection method

    CN114169002A

  • Online online classroom student concentration degree supervision method

    CN114495293A

  • Financial intelligent teaching and privacy protection method

    CN114862636A

  • Online classroom learning participation degree monitoring method and system

    CN117371834A