Online exam cheating detection method, system and storage medium

Through the line of sight estimation algorithm and lightweight deep learning model, combined with the direction and time threshold, the direction of the examinee's line of sight is tracked in real time, which solves the problem of difficulty in detecting and monitoring cheating in blind spots in the existing technology, and achieves more efficient and accurate cheating in online exams. Behavior detection.

CN112464793BActive Publication Date: 2024-09-06DALIAN NEUSOFT EDUCATION TECH GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011340295.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-25
Publication Date
2024-09-06
Estimated Expiration
2040-11-25

AI Technical Summary

Technical Problem

Existing automatic proctoring methods for online exams are difficult to detect cheating behavior by candidates in the blind spot of monitoring, such as flipping through notebooks, resulting in the inability to effectively detect abnormal sight deviations.

Method used

The gaze estimation algorithm is used to track the examinee's gaze direction in real time through the joint constraints of the direction threshold and the time threshold. It combines the lightweight deep learning model and the Attention mechanism to predict the gaze angle and improve the accuracy and efficiency of detection.

Benefits of technology

It realizes the identification of more cheating behaviors, improves the stability and accuracy of detection, can run on edge devices in real time, reduces deployment costs, and avoids missing sight deviations in existing technologies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112464793B
    Figure CN112464793B
Patent Text Reader

Abstract

The present invention discloses a method, system and storage medium for detecting cheating behavior in online examinations, including: judging whether the current input image is the first frame, and if it is not the first frame, judging the difference between the previous and next frames of the image; if the image is the first frame or the difference between the previous and next frames exceeds a threshold, starting a pedestrian detection algorithm to judge whether there are multiple people in the picture, and alarming if multiple people are detected; when the pedestrian detection algorithm does not alarm or the difference between the previous and next frames of the image is less than a threshold, executing a face detection algorithm, and alarming if multiple faces are detected or no face is detected; if no alarm is given, correcting the face; using the corrected face as input, using a sight prediction model to predict the line of sight direction of the examinee; within the line of sight deviation time threshold, if more than half of the time the examinee's line of sight angle exceeds the line of sight deviation angle threshold, alarming. The present invention uses line of sight tracking technology to detect the examinee's cheating behavior, and can identify more cheating situations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an online examination cheating behavior detection method, system and storage medium. Background Art

[0002] Online examination is a modern and new examination model. Examiners can quickly build a networked examination platform that integrates examination, assessment, practice and other functions according to their own characteristics, and can easily complete tasks such as full-staff assessment, skill assessment, and job evaluation.

[0003] At present, the automatic proctoring method for online exams is usually: identity verification of candidates through facial recognition algorithms; staff monitor the candidate's exam screen in real time in the background; infer the candidate's line of sight based on the candidate's head posture; or use the candidate's body state, voice and other information to achieve the purpose of judging cheating behavior.

[0004] However, the above-mentioned automatic invigilation method for online examinations often has blind spots in monitoring, and candidates can cheat at will in the blind spots, such as flipping through the notes next to the notebook. At this time, the candidate can maintain a normal body posture and only move his eyes from the computer screen to the notes. The existing technology cannot capture such cheating behavior. Summary of the invention

[0005] The present invention focuses on solving the problem of automatic proctoring in online or remote examinations; the present invention innovatively introduces a line of sight estimation algorithm to track the line of sight direction of the examinee in real time, and determines whether the examinee has abnormal line of sight deviation through the joint constraints of the direction threshold and the time threshold, thereby issuing an early warning. In addition, the line of sight estimation algorithm used in the present invention also takes into account both time efficiency and space efficiency, and has the characteristics of small memory usage and fast running speed. Using face images as input and based on a lightweight deep learning model, a good compromise between efficiency and accuracy is achieved, and it can run in real time on edge devices, which can save a lot of deployment costs.

[0006] The present invention provides the following technical solutions:

[0007] In one aspect, the present invention provides a method for detecting cheating in an online exam, the method comprising the following steps:

[0008] Receive the video stream of the examinee collected by the camera, determine whether the currently received image is the first frame, and if it is not the first frame, determine the difference between the previous and next frames of the image;

[0009] When the image is the first frame or the difference between the previous and next frames exceeds the threshold, the pedestrian detection algorithm is used to detect pedestrians and determine whether there are multiple people in the picture. If multiple people are detected, an alarm is triggered;

[0010] When the pedestrian detection algorithm does not give an alarm or the difference between the previous and next frames of the image is less than the threshold, the face detection algorithm is used to detect the face. If multiple faces are detected or no face is detected, an alarm is given;

[0011] When the face detection algorithm does not sound an alarm, the face is corrected based on the face detected and the coordinates of the feature points corresponding to the face;

[0012] Using the corrected face as input, the gaze prediction model is used to predict the gaze direction of the examinee;

[0013] Set the sight deviation time threshold and sight deviation angle threshold. Within the sight deviation time threshold, if the candidate's sight angle exceeds the sight deviation angle threshold for more than half of the time, an alarm will be triggered.

[0014] Furthermore, pedestrian detection is performed using a pedestrian detection algorithm, including: using a pedestrian detection algorithm implemented based on a lightweight convolutional neural network to determine whether there are multiple people or no one in the examination room.

[0015] Furthermore, face detection is performed using a face detection algorithm, including: using a face detection algorithm based on a lightweight convolutional neural network, and using multi-scale features to simultaneously detect the face position in the image and the corresponding face feature point coordinates.

[0016] Furthermore, the sight line prediction model is a lightweight deep learning model, which uses a transfer learning method to further fine-tune the model pre-trained on the ImageNet dataset;

[0017] The training data set includes face images marked with angle values ​​of the current line of sight of the face in the horizontal direction and the vertical direction. During the training process, the face images in the training data set are input into the line of sight prediction model in batches, and the network parameters are continuously adjusted using the objective function so that the corresponding line of sight angle value calculated by the line of sight prediction model according to the input face image and the marked value of the face image are continuously close; the trained line of sight prediction model can predict the angle values ​​of the line of sight corresponding to the input face image in the horizontal direction and the vertical direction;

[0018] The Attention mechanism is used to weight each element of each feature map in the last convolutional layer of the lightweight convolutional neural network model; the Self-Attention mechanism is used to weight the training samples in each batch.

[0019] Furthermore, it also includes:

[0020] Calculating the head posture of the examinee based on the coordinates of facial feature points obtained by the face detection algorithm;

[0021] Set the head deflection time threshold and the head deflection angle threshold. Within the head deflection time threshold, if the examinee's head deflection angle exceeds the head deflection angle threshold for more than half of the time, an alarm will be triggered.

[0022] Furthermore, the feature points corresponding to the face include: left and right eye centers, nose tip, and left and right mouth corners.

[0023] On the other hand, the present invention also provides an online examination cheating behavior detection system, the system comprising:

[0024] The video stream receiving module is used to receive the video stream of the examinee collected by the camera, determine whether the currently received image is the first frame, and if it is not the first frame, determine the difference between the previous and next frames of the image;

[0025] Pedestrian detection module, used to detect pedestrians using pedestrian detection algorithm when the image is the first frame or the difference between the previous and next frames exceeds the threshold, to determine whether there are multiple people in the picture, and to alarm if multiple people are detected;

[0026] The face detection module is used to detect faces using the face detection algorithm when the pedestrian detection algorithm does not sound an alarm or the difference between the previous and next frames of the image is less than a threshold. If multiple faces are detected or no face is detected, an alarm is sounded;

[0027] A face correction module, used for correcting the face based on the face detected and the coordinates of the feature points corresponding to the face when the face detection algorithm does not give an alarm;

[0028] The sight line prediction module is used to use the corrected face as input and the sight line prediction model to predict the examinee's sight line direction;

[0029] The sight deviation detection module is used to set the sight deviation time threshold and the sight deviation angle threshold. Within the sight deviation time threshold, if the examinee's sight angle exceeds the sight deviation angle threshold for more than half of the time, an alarm will be triggered.

[0030] Furthermore, it also includes: a head deflection detection module, which is used to calculate the head posture of the examinee based on the coordinates of the facial feature points obtained by the face detection algorithm; setting a head deflection time threshold and a head deflection angle threshold. Within the head deflection time threshold, if the examinee's head deflection angle exceeds the head deflection angle threshold for more than half of the time, an alarm is issued.

[0031] On the other hand, the present invention further provides a computer-readable storage medium, wherein a computer instruction set is stored in the computer-readable storage medium, and when the computer instruction set is executed by a processor, the above-mentioned online examination cheating behavior detection method is implemented.

[0032] Advantages and positive effects of the present invention:

[0033] 1. The present invention uses eye tracking technology to detect cheating behavior of examinees and can identify more cheating situations than the existing technology.

[0034] 2. The gaze prediction algorithm used in the present invention uses a face image as input. Compared with the method of using the eye area as input in the prior art, it can simplify the algorithm process and does not require further calculation of the face image to crop out the eye area. Secondly, compared with only using the eye image as input, using the face image can consider more image context information and improve the robustness of the algorithm.

[0035] The line of sight prediction algorithm used in the present invention can accurately predict the line of sight direction and output a specific viewing angle value. Compared with the traditional algorithm, whether the examinee's line of sight is consistent with the preset line of sight direction is judged based on the local geometric characteristics of the eye. If it is consistent, it is considered that the examinee's line of sight is deviated. The line of sight prediction method in the present invention is more accurate and can fully reflect the examinee's line of sight, avoiding missing judgments on situations outside the preset line of sight direction.

[0036] 3. The present invention uses two constraints, namely, a time threshold and a line of sight angle deviation threshold, to jointly judge the line of sight deviation of the examinee, so that the judgment result has better stability.

[0037] 4. Each algorithm model of the present invention takes into account the balance between efficiency and accuracy, reducing the cost of algorithm deployment. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0039] Figure 1 This is a flow chart of a method for detecting cheating in online exams in an embodiment of the present invention;

[0040] Figure 2 The structure block diagram of an online examination cheating behavior detection system in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.

[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0043] See also Figure 1 , which shows a flow chart of a method for detecting cheating in an online exam in an embodiment of the present invention, the method comprising the following steps:

[0044] S1. Determine whether the current input image is the first frame. If it is not the first frame, determine the difference between the previous and next frames of the image.

[0045] S2. If the image is the first frame or the difference between the previous and next frames exceeds the threshold, the pedestrian detection algorithm is started to determine whether there are multiple people in the picture. If multiple people are detected, an alarm is triggered.

[0046] When starting the pedestrian detection algorithm to process the current video frame, the size and pixel value of the current video frame image are first normalized and then input into the pedestrian detection algorithm. The pedestrian detection algorithm will arrange the position information of the detected pedestrians in order of entries and output them together. The number of detected people is determined by counting the number of entries output by the pedestrian detection algorithm.

[0047] The pedestrian detection algorithm in the present invention is implemented using a lightweight convolutional neural network model, which has higher efficiency than the pedestrian detection algorithm using an ordinary non-lightweight convolutional neural network.

[0048] The use of the previous and next frame image comparison technology in the present invention can skip the pedestrian detection algorithm when there is no obvious change in the test background picture, thereby greatly improving efficiency.

[0049] S3. When the pedestrian detection algorithm does not sound an alarm or the difference between the previous and next frames of the image is less than the threshold, the face detection algorithm is executed. If multiple faces are detected or no face is detected, an alarm is sounded.

[0050] This face detection algorithm is based on the improved SSD algorithm. It reduces the size of the network on the basis of the original algorithm, and increases the size of multi-scale features, so that higher efficiency is achieved with very low precision loss. In addition, this face detection algorithm outputs the coordinates of 5 feature points corresponding to the face while outputting the face frame.

[0051] When starting the face detection algorithm, first normalize the size of the current video frame image, and then input it into the face detection algorithm. The algorithm will output the location information of all detected faces and the coordinates of the feature points corresponding to the faces. The number of detected faces can be determined by the output face location information entries. The output face location coordinate information is used to crop the candidate's facial image for subsequent steps.

[0052] The face detection algorithm used in the present invention is based on a lightweight convolutional neural network model, which can output features from different convolutional layers. These features are responsible for detecting faces of different scales, which are called multi-scale features. Multi-scale features are used to detect faces that may exist in an image and the coordinates of feature points corresponding to the faces (centers of left and right eyes, left and right outer corners, and tip of the nose). Compared with the face detection algorithm based on a non-lightweight convolutional neural network model, it has higher efficiency and can run in real time on the test equipment.

[0053] S4. Based on the face obtained in the previous step and the coordinates of the feature points corresponding to the face, the face is corrected so that the center points of all facial images are theoretically facing the camera and the centers of both eyes remain horizontal, and the head posture of the candidate is calculated.

[0054] S5. Using the corrected face as input, use the gaze prediction model to predict the candidate's gaze direction.

[0055] The rectified face image has a fixed size and the centers of both eyes are on a horizontal line. This image is input into the gaze prediction model, which outputs the horizontal and vertical angle values ​​of the examinee's gaze after processing.

[0056] The sight line prediction model used in the present invention is a lightweight deep learning model, which uses the transfer learning method to further fine-tune the training based on the model pre-trained on the ImageNet dataset. The training dataset includes face images marked with the angle values ​​of the current sight lines of the face in the horizontal and vertical directions. During the training process, the face images in the training dataset are input into the sight line prediction model in batches, and the network parameters are continuously adjusted using the objective function so that the corresponding sight line angle value calculated by the sight line prediction model based on the input face image and the label value of the face image are continuously close; the trained sight line prediction model can predict the angle values ​​of the sight line corresponding to the input face image in the horizontal and vertical directions.

[0057] In order to adapt to the output size of the line of sight estimation task, the pre-trained model (convolutional neural network) of the line of sight prediction model is improved in the present invention, the original fully connected layer of the pre-trained model is removed, and a new fully connected layer with a dimension different from the original fully connected layer is added according to the current task requirements. In order to improve the accuracy of the model, the present invention uses the Attention mechanism to weight each element of each feature map in the last convolutional layer, with the aim of increasing the model's attention to pixels related to the line of sight. In addition, the present invention also uses the Self-Attention mechanism to weight the training samples in each batch, so that the model pays more attention to those samples with accurate annotations during training.

[0058] Compared with the algorithm using the traditional scheme to estimate the implementation scheme, the line of sight estimation algorithm proposed in the present invention has low requirements on the pixels of the collected face image and does not rely on other auxiliary equipment or infrared light sources. Compared with the general line of sight estimation algorithm based on deep learning, the line of sight estimation algorithm proposed in the present invention has the advantages of simple structure, high accuracy and high speed.

[0059] S6. Set a time threshold and a line of sight deviation angle threshold. If the examinee's line of sight exceeds the line of sight deviation angle threshold for more than half of the time within the time threshold, an alarm will be triggered.

[0060] Also includes:

[0061] Set the head deflection time threshold and the head deflection angle threshold. Within the head deflection time threshold, if the examinee's head deflection angle exceeds the head deflection angle threshold for more than half of the time, an alarm will be triggered.

[0062] In the embodiment of the present invention, eye tracking technology is used to detect cheating behavior of examinees, which can identify more cheating situations than the existing technology; the eye prediction algorithm used uses face images as input, which is simple and efficient; the time threshold and the eye angle deviation threshold are used as two constraints to jointly judge the eye deviation of the examinee, so that the judgment result has better stability. At the same time, each algorithm model in the embodiment of the present invention considers the balance between efficiency and accuracy, reducing the cost of algorithm deployment.

[0063] The following is a specific example to illustrate a method for detecting cheating in an online exam in the present invention.

[0064] When detecting cheating behavior in online exams, the video stream captured by the front camera of the examinee's laptop is first obtained; the identity authentication module verifies the examinee's identity, and an alarm is triggered if the identity authentication fails;

[0065] After verification, the collected video stream is received frame by frame. Here, the image data in the video stream will be skipped according to the efficiency of the algorithm. The specific method is: the number of intervals is equal to the number of picture frames contained in the video stream per unit time divided by the number of frames that the algorithm can process per unit time; and the sampled image is transformed into a size of 480mm in height and 640mm in width.

[0066] Determine whether the received image is the first frame. If it is the first frame, start the pedestrian detection algorithm. If multiple people are detected or no person is detected, an alarm is issued. If not, count the sum of the absolute values ​​of the pixel differences in the previous and next frame images except for the area where the examinee is located. If the difference is less than the threshold, skip the pedestrian detection algorithm. If the difference is greater than the threshold, start the pedestrian detection algorithm. If multiple people are detected or no person is detected, an alarm is issued. Record the examinee's position information detected by the pedestrian detection algorithm for background verification in the next cycle.

[0067] If the pedestrian detection module does not alarm, the face detection algorithm is started, and an alarm is sounded when no face is detected or multiple faces are detected; otherwise, the face detected by the face detection algorithm and the corresponding coordinates of the five facial feature points are extracted, and the corresponding positions of the five facial feature points are the center points of the left and right eyes, the tip of the nose, and the left and right corners of the mouth; the face image is corrected based on the coordinates of the feature points, and the correction process is to first set the ideal distance between the centers of the two eyes, and the ideal distance between the centers of the two eyes in this method is (0.4*face image size); then, the actual distance between the centers of the two eyes and the angle between the left and right eyes in the longitudinal direction are calculated based on the coordinates of the five feature points predicted by the face detection algorithm; then, the transformation matrix from the actual space to the ideal space can be obtained, and the face image of the candidate is transformed into the ideal space;

[0068] If the face detection algorithm does not give an alarm, the sight line estimation algorithm is started. The algorithm takes the face image corrected in the previous step as input and finally predicts the angle values ​​of the human eye's sight line in the two dimensions of up, down, left and right.

[0069] Taking the image collected by the front camera of a regular 14-inch notebook as an example, when the output angle value exceeds 2 degrees or is less than -12 degrees in the up and down direction, it is judged as sight deviation; when the output angle value exceeds 12 degrees or is less than -12 degrees in the left and right direction, it is judged as sight deviation; when the examinee's sight deviation time exceeds a certain proportion within a period of time, an alarm is issued;

[0070] Similarly, based on the coordinates of the five facial feature points output by the face detection algorithm in step 5, the angle information of the examinee's head posture in three-dimensional space can be calculated. Based on judgment rules similar to those for line of sight deviation decisions, an alarm can be issued when the examinee's head deflection angle is too large.

[0071] The efficiency and error comparison results of the sight line evaluation algorithm used in the embodiment of the present invention are shown in Table 1, and the test environment is ThinkPad E490 Win10.

[0072] Model speed error Non-lightweight CNN model ~100ms ~4.8 degrees Improved lightweight CNN model ~20ms ~5.6 degrees Estimating gaze direction using head pose ~2ms More than 10 degrees

[0073] As shown in the above table, the method for realizing line of sight estimation based on the improved lightweight CNN model used in the embodiment of the present invention has obvious speed advantages over the method of predicting line of sight direction using a non-lightweight CNN model, with an accuracy loss of less than 1 degree, and has obvious accuracy advantages over the method of estimating line of sight direction using head posture.

[0074] Corresponding to an online examination cheating behavior detection method in the present invention, the present invention also provides an online examination cheating behavior detection system.

[0075] See also Figure 2 , which shows a structural block diagram of an online examination cheating behavior detection system in an embodiment of the present invention, the system includes:

[0076] The video stream receiving module is used to receive the video stream of the examinee collected by the camera, determine whether the currently received image is the first frame, and if it is not the first frame, determine the difference between the previous and next frames of the image;

[0077] Pedestrian detection module, used to detect pedestrians using pedestrian detection algorithm when the image is the first frame or the difference between the previous and next frames exceeds the threshold, to determine whether there are multiple people in the picture, and to alarm if multiple people are detected;

[0078] The face detection module is used to detect faces using the face detection algorithm when the pedestrian detection algorithm does not sound an alarm or the difference between the previous and next frames of the image is less than a threshold. If multiple faces are detected or no face is detected, an alarm is sounded;

[0079] A face correction module, used for correcting the face based on the face detected and the coordinates of the feature points corresponding to the face when the face detection algorithm does not give an alarm;

[0080] The sight line prediction module is used to use the corrected face as input and the sight line prediction model to predict the examinee's sight line direction;

[0081] The sight deviation detection module is used to set the sight deviation time threshold and the sight deviation angle threshold. Within the sight deviation time threshold, if the examinee's sight angle exceeds the sight deviation angle threshold for more than half of the time, an alarm will be triggered.

[0082] It also includes: a head deflection detection module, which is used to calculate the head posture of the examinee based on the coordinates of the facial feature points obtained by the face detection algorithm; setting a head deflection time threshold and a head deflection angle threshold. Within the head deflection time threshold, if the examinee's head deflection angle exceeds the head deflection angle threshold for more than half of the time, an alarm is triggered.

[0083] As for the embodiments of the present invention, since they correspond to the embodiments above, the description is relatively simple. For the relevant similarities, please refer to the description of the above embodiments, which will not be described in detail here.

[0084] An embodiment of the present invention further discloses a computer-readable storage medium, in which a computer instruction set is stored. When the computer instruction set is executed by a processor, the online examination cheating behavior detection method provided in any of the above embodiments is implemented.

[0085] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0086] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0087] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0088] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0089] 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 aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for detecting cheating in online exams, characterized in that: The method comprises the following steps: Receive the video stream of the examinee collected by the camera, determine whether the currently received image is the first frame, and if it is not the first frame, determine the difference between the previous and next frames of the image; When the image is the first frame or the difference between the previous and next frames exceeds the threshold, the pedestrian detection algorithm is used to detect pedestrians and determine whether there are multiple people in the picture. If multiple people are detected, an alarm is triggered; When the pedestrian detection algorithm does not give an alarm or the difference between the previous and next frames of the image is less than the threshold, the face detection algorithm is used to detect the face. If multiple faces are detected or no face is detected, an alarm is given; When the face detection algorithm does not sound an alarm, the face is corrected based on the face detected and the coordinates of the feature points corresponding to the face; Using the corrected face as input, the gaze prediction model is used to predict the gaze direction of the examinee; Set the sight deviation time threshold and sight deviation angle threshold. If the test-taker's sight angle exceeds the sight deviation angle threshold for more than half of the time within the sight deviation time threshold, an alarm will be triggered. The sight line prediction model is a lightweight convolutional neural network model, which is further fine-tuned and trained based on the pre-trained model on the ImageNet dataset using the transfer learning method; The training data set includes face images marked with angle values ​​of the current line of sight of the face in the horizontal direction and the vertical direction. During the training process, the face images in the training data set are input into the line of sight prediction model in batches, and the network parameters are continuously adjusted using the objective function so that the corresponding line of sight angle value calculated by the line of sight prediction model according to the input face image and the marked value of the face image are continuously close; the trained line of sight prediction model can predict the angle values ​​of the line of sight corresponding to the input face image in the horizontal direction and the vertical direction; The Attention mechanism is used to weight each element of each feature map in the last convolutional layer of the lightweight convolutional neural network model; the Self-Attention mechanism is used to weight the training samples in each batch.

2. The method according to claim 1, characterized in that: Pedestrian detection is performed using a pedestrian detection algorithm, including: using a pedestrian detection algorithm based on a lightweight convolutional neural network to determine whether there are multiple people or no one in the examination room.

3. The method according to claim 1, characterized in that The face detection is performed using a face detection algorithm, including: using a face detection algorithm based on a lightweight convolutional neural network, and using multi-scale features to simultaneously detect the face position in the image and the corresponding face feature point coordinates.

4. The method according to claim 1, characterized in that: Also includes: Calculating the head posture of the examinee based on the coordinates of facial feature points obtained by the face detection algorithm; Set the head deflection time threshold and the head deflection angle threshold. Within the head deflection time threshold, if the examinee's head deflection angle exceeds the head deflection angle threshold for more than half of the time, an alarm will be triggered.

5. The method according to claim 1, characterized in that The feature points corresponding to the face include: the center points of the left and right eyes, the tip of the nose, and the left and right corners of the mouth.

6. An online examination cheating behavior detection system, characterized in that: The system comprises: The video stream receiving module is used to receive the video stream of the examinee collected by the camera, determine whether the currently received image is the first frame, and if it is not the first frame, determine the difference between the previous and next frames of the image; Pedestrian detection module, used to detect pedestrians using pedestrian detection algorithm when the image is the first frame or the difference between the previous and next frames exceeds the threshold, to determine whether there are multiple people in the picture, and to alarm if multiple people are detected; The face detection module is used to detect faces using the face detection algorithm when the pedestrian detection algorithm does not sound an alarm or the difference between the previous and next frames of the image is less than a threshold. If multiple faces are detected or no face is detected, an alarm is sounded; A face correction module, used for correcting the face based on the face detected and the coordinates of the feature points corresponding to the face when the face detection algorithm does not give an alarm; A sight line prediction module is used to use a sight line prediction model to predict the sight line direction of the examinee using a corrected face as input; the sight line prediction model is a lightweight convolutional neural network model, which uses a transfer learning method to further fine-tune the training based on a model pre-trained on the ImageNet dataset; the training dataset includes face images marked with angle values ​​of the current sight lines of the face in the horizontal and vertical directions. During the training process, the face images in the training dataset are input into the sight line prediction model in batches, and the network parameters are continuously adjusted using an objective function so that the corresponding sight line angle value calculated by the sight line prediction model based on the input face image and the label value of the face image are continuously close; the trained sight line prediction model can predict the angle values ​​of the sight line corresponding to the input face image in the horizontal and vertical directions; the Attention mechanism is used to weight each element of each feature map in the last convolution layer of the lightweight convolutional neural network model; the Self-Attention mechanism is used to weight the training samples in each batch; The sight deviation detection module is used to set the sight deviation time threshold and the sight deviation angle threshold. Within the sight deviation time threshold, if the examinee's sight angle exceeds the sight deviation angle threshold for more than half of the time, an alarm will be triggered.

7. The system according to claim 6, characterized in that Also includes: A head deflection detection module, used to calculate the head posture of the examinee based on the coordinates of facial feature points obtained by a face detection algorithm; Set the head deflection time threshold and the head deflection angle threshold. Within the head deflection time threshold, if the examinee's head deflection angle exceeds the head deflection angle threshold for more than half of the time, an alarm will be triggered.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer instruction set, and when the computer instruction set is executed by a processor, the online examination cheating behavior detection method as claimed in any one of claims 1 to 5 is implemented.