Automatic proctoring method and robot based on artificial intelligence

Through the automatic proctoring method based on artificial intelligence, the deep learning model is used for video analysis to detect and mark possible cheating actions, which solves the problem of time-consuming, labor-intensive and blind spots of manual proctoring and achieves efficient and real-time cheating detection.

CN115426482BActive Publication Date: 2024-10-15SOUTH CHINA NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211072460.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-02
Publication Date
2024-10-15
Estimated Expiration
2042-09-02

AI Technical Summary

Technical Problem

In the existing technology, manual proctoring is time-consuming and labor-intensive, and there are blind spots. It is difficult to take into account all candidates, and the detection efficiency of cheating is low.

Method used

Adopt an automatic proctoring method based on artificial intelligence, conduct video analysis through typical feature detection and deep learning models, detect and mark possible cheating actions, reduce invalid detection, and improve detection efficiency.

Benefits of technology

It achieves real-time detection and monitoring of cheating behavior, improves the efficiency and effectiveness of invigilation, saves computing costs, and ensures the accuracy and real-time nature of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115426482B_ABST
    Figure CN115426482B_ABST
Patent Text Reader

Abstract

The automatic proctoring method and robot based on artificial intelligence include: a typical feature detection step; a frame marking step to be detected; a video clip interception step to be detected; a cheating action detection step; and a monitoring video marking step. The above method, system, and robot first detect typical features and then detect cheating actions in those video segments with typical features, thereby reducing the detection of many video segments that do not contain typical features, thereby greatly improving the speed and efficiency of detection. This method is also applicable to real-time video monitoring. When no typical features appear, there is no need to detect cheating actions, which can greatly save computing costs, improve detection speed, and achieve real-time detection effects.
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 automatic invigilation method and robot based on artificial intelligence. Background Art

[0002] In the process of realizing the present invention, the inventors found that there are at least the following problems in the prior art: under the prior art, manual proctoring is a very time-consuming and labor-intensive task, and manual proctoring also has blind spots, such as places that the invigilator cannot see, making it difficult to take care of all candidates.

[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0004] Based on this, it is necessary to provide an automatic proctoring method and robot based on artificial intelligence to address the defects or shortcomings of existing technologies, so as to assist manual proctoring, improve the efficiency and effectiveness of proctoring, and enable cheating behavior to be detected without omission.

[0005] In a first aspect, an embodiment of the present invention provides an artificial intelligence method, the method comprising:

[0006] Typical feature detection step: obtaining each frame of the monitoring video of the test, taking each frame of the image as input, calculating through a typical feature detection deep learning model, and obtaining an output as a label of the typical features of each frame of the image; if the label of the typical features of each frame of the image is not empty, then intercepting an image within the marked range from each frame of the image according to the marked range in the label of the typical features of each frame of the image; taking the image within the marked range as input, calculating through a candidate recognition image deep learning model, and obtaining an output as the candidate information in the label of the typical features of each frame of the image;

[0007] The step of marking frames to be detected: obtaining labels of each frame of image in the surveillance video of the test and the typical features of each frame of image; if the label of the typical features of each frame of image is not empty, determining the preset maximum duration of the corresponding cheating action according to the name of the typical features in the label of the typical features as the preset duration to be detected; if there are multiple labels of the typical features that are not empty, determining multiple preset maximum durations of the corresponding multiple cheating actions according to the names of multiple typical features in multiple labels of the typical features, and taking the largest multiple preset maximum durations among the multiple preset maximum durations as the preset duration to be detected; if the label of the typical features of each frame of image is not empty, marking each frame of image as a frame to be detected, marking all frames with a duration of the preset duration to be detected / 2 before each frame of image as frames to be detected, and marking all frames with a duration of the preset duration to be detected / 2 after each frame of image as frames to be detected; some frames will be repeatedly marked as frames to be detected, and some frames will not be marked as frames to be detected;

[0008] The step of extracting the video segment to be detected is as follows: extracting the continuous frames marked as frames to be detected and not marked as extracted in the monitoring video of the test as a video segment to be detected, and marking the extracted frames to be detected as extracted;

[0009] Cheating action detection step: taking the video clip to be detected as input, and calculating the output obtained by the cheating action detection deep learning model as the label of the cheating action in the video clip to be detected; taking the video clip within the marked range as input, and calculating the deep learning model of the candidate video recognition, and obtaining the output as the candidate information in the label of the cheating action in the video clip; taking the labels of the cheating action in all the video clips to be detected as the labels of the cheating action in the monitoring video of the test;

[0010] Monitoring video marking step: replacing the corresponding video segment to be detected in the monitoring video of the test with the video segment to be detected with the label of each cheating action, to obtain the monitoring video after the cheating action is marked.

[0011] Preferably, the method further comprises:

[0012] Video surveillance steps: Obtain surveillance video of the exam;

[0013] Cheating action setting steps: obtaining the cheating action set by the user;

[0014] Step of obtaining a video of the cheating action: obtaining a video sample of each of the cheating actions;

[0015] The step of obtaining typical features of cheating actions is as follows: obtaining typical features of cheating actions set by the user;

[0016] The step of obtaining images of typical features of cheating actions is to obtain image samples of each of the typical features.

[0017] Preferably, the method further comprises:

[0018] Steps to build a cheating knowledge graph: build multiple cheating action entities, multiple typical feature entities, multiple candidate entities, multiple examination room entities, and multiple invigilator entities;

[0019] Steps for defining the relationship of the exam cheating knowledge graph: the examinee entity points to the cheating action entity through the has relationship; the examinee entity points to the typical feature entity through the has relationship; the examinee entity points to the examination room entity through the in relationship; the invigilator entity points to the examination room entity through the in relationship;

[0020] Steps for generating static relationships in the exam cheating knowledge graph: Based on the typical features of cheating actions set by the user, establish relationships between typical feature entities and cheating action entities.

[0021] Preferably, the method further comprises:

[0022] Typical feature detection model construction step: taking an image sample of each typical feature as input, taking a label of each typical feature as expected output, training and testing a deep learning model, and obtaining a typical feature detection deep learning model;

[0023] The cheating action detection model construction step: taking a video sample of each cheating action as input, taking a label of each cheating action as expected output, training and testing the deep learning model, and obtaining a cheating action detection deep learning model;

[0024] The candidate image recognition model construction step: obtain a photo of each candidate, take the photo of each candidate as input, take the candidate information as expected output, perform transfer learning on the face image recognition deep learning model, and obtain the candidate image recognition deep learning model;

[0025] Steps for constructing the candidate video recognition model: obtain the video of each candidate, take the video of each candidate as input, take the candidate's information as expected output, perform transfer learning on the face video recognition deep learning model, and obtain the candidate video recognition deep learning model.

[0026] In a second aspect, an embodiment of the present invention provides an artificial intelligence system, the system comprising:

[0027] Typical feature detection module: obtain each frame of the monitoring video of the test, take each frame of the image as input, calculate the typical feature detection deep learning model, and obtain the output as the label of the typical feature of each frame of the image; if the label of the typical feature of each frame of the image is not empty, then intercept the image within the marked range from each frame of the image according to the marked range in the label of the typical feature of each frame of the image; take the image within the marked range as input, calculate the deep learning model of the examinee recognition image, and obtain the output as the examinee information in the label of the typical feature of each frame of the image;

[0028] Frame marking module for detection: obtains labels of each frame image and typical features of each frame image in the surveillance video of the test; if the label of the typical features of each frame image is not empty, the preset maximum duration of the corresponding cheating action is determined according to the name of the typical features in the label of the typical features, as the preset duration to be detected; if there are multiple labels of the typical features that are not empty, multiple preset maximum durations of the corresponding multiple cheating actions are determined according to the names of multiple typical features in multiple labels of the typical features, and the largest multiple preset maximum durations among the multiple preset maximum durations are taken as the preset duration to be detected; if the label of the typical features of each frame image is not empty, each frame image is marked as a frame to be detected, all frames with a duration of the preset duration to be detected / 2 before each frame image are marked as frames to be detected, and all frames with a duration of the preset duration to be detected / 2 after each frame image are marked as frames to be detected; some frames will be repeatedly marked as frames to be detected, and some frames will not be marked as frames to be detected;

[0029] A module for extracting video segments to be detected: extracting the continuous frames marked as frames to be detected and not marked as extracted from the monitoring video of the test as a video segment to be detected, and marking the extracted frames to be detected as extracted;

[0030] Cheating action detection module: taking the video clip to be detected as input, and calculating the output obtained by the cheating action detection deep learning model as the label of the cheating action in the video clip to be detected; taking the video clip within the marked range as input, and calculating the deep learning model of the candidate video recognition, and obtaining the output as the candidate information in the label of the cheating action in the video clip; taking the labels of the cheating actions in all the video clips to be detected as the labels of the cheating actions in the monitoring video of the test;

[0031] A monitoring video marking module is used to replace the corresponding video segment to be detected in the monitoring video of the test with the video segment to be detected with the label of each cheating action, so as to obtain the monitoring video after the cheating action is marked.

[0032] Preferably, the system further comprises:

[0033] Video surveillance module: obtain the surveillance video of the exam;

[0034] Cheating action setting module: obtain the cheating action set by the user;

[0035] A module for obtaining a video of cheating actions: obtaining a video sample of each cheating action;

[0036] A module for obtaining typical features of cheating actions: obtaining typical features of cheating actions set by users;

[0037] An image module for obtaining typical features of cheating actions: obtaining image samples of each of the typical features.

[0038] Preferably, the system further comprises:

[0039] Establish a cheating knowledge graph module: establish multiple cheating action entities, multiple typical feature entities, multiple candidate entities, multiple examination room entities, and multiple invigilator entities;

[0040] Exam cheating knowledge graph relationship definition module: the examinee entity points to the cheating action entity through the has relationship; the examinee entity points to the typical feature entity through the has relationship; the examinee entity points to the examination room entity through the has relationship; the invigilator entity points to the examination room entity through the has relationship;

[0041] Exam cheating knowledge graph static relationship generation module: According to the typical features of cheating actions set by the user, a relationship is established between typical feature entities and cheating action entities.

[0042] Preferably, the system further comprises:

[0043] Typical feature detection model construction module: taking the image sample of each typical feature as input, taking the label of each typical feature as expected output, training and testing the deep learning model, and obtaining a typical feature detection deep learning model;

[0044] A cheating action detection model building module: taking a video sample of each cheating action as input, taking a label of each cheating action as expected output, training and testing a deep learning model, and obtaining a cheating action detection deep learning model;

[0045] Candidate image recognition model construction module: obtain the photo of each candidate, take the photo of each candidate as input, take the candidate's information as expected output, perform transfer learning on the face image recognition deep learning model, and obtain the candidate image recognition deep learning model;

[0046] Candidate video recognition model construction module: obtain the video of each candidate, take the video of each candidate as input, take the candidate's information as expected output, perform transfer learning on the face video recognition deep learning model, and obtain the candidate video recognition deep learning model.

[0047] In a third aspect, an embodiment of the present invention provides an artificial intelligence device, which includes a module of the system described in any one of the embodiments of the second aspect.

[0048] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the steps of the method described in any one of the embodiments of the first aspect.

[0049] In a fifth aspect, an embodiment of the present invention provides a robot, comprising a memory, a processor, and an artificial intelligence robot program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the method described in the first aspect when executing the program.

[0050] The automatic proctoring method and robot based on artificial intelligence provided in this embodiment include: a typical feature detection step; a frame marking step to be detected; a video segment interception step to be detected; a cheating action detection step; and a monitoring video marking step. The above method, system, and robot reduce the detection of many video segments that do not contain typical features by first detecting typical features and then detecting cheating actions in those video segments with typical features, thereby greatly improving the speed and efficiency of detection. This method is also applicable to real-time video monitoring. When no typical features appear, there is no need to detect cheating actions, which can greatly save computing costs, improve detection speed, and achieve the effect of real-time detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 A module diagram of an artificial intelligence system provided for one embodiment of the present invention;

[0052] Figure 2 A module diagram of an artificial intelligence system provided for one embodiment of the present invention;

[0053] Figure 3 A module diagram of an artificial intelligence system provided for one embodiment of the present invention;

[0054] Figure 4 A module diagram of an artificial intelligence system provided for one embodiment of the present invention. DETAILED DESCRIPTION

[0055] The technical solutions in the embodiments of the present invention are described in detail below in conjunction with the embodiments of the present invention.

[0056] Basic Embodiments of the Invention

[0057] In the first aspect, an embodiment of the present invention provides an artificial intelligence method, which includes: a typical feature detection step; a frame marking step to be detected; a video segment interception step to be detected; a cheating action detection step; and a monitoring video marking step. Technical effect: By first detecting typical features and then detecting cheating actions in those video segments with typical features, the detection of many video segments that do not contain typical features is reduced, thereby greatly improving the speed and efficiency of detection. This method is also applicable to real-time video monitoring. When no typical features appear, there is no need to detect cheating actions, which can greatly save computing costs, improve detection speed, and achieve real-time detection effects.

[0058] Preferably, the method further comprises: a video monitoring step; a cheating action setting step; a step of obtaining a video of the cheating action; a step of obtaining a typical feature setting step of the cheating action; and a step of obtaining an image of the typical features of the cheating action. Technical effect: Allowing users to set typical features and cheating actions by themselves, thereby achieving personalized detection for different users and meeting the needs of different users. Because the detection standards desired by users are different, if they are fixed in the system in advance and the user is not allowed to set them, there will be technical defects. The present application effectively overcomes this technical defect and can perform detection in a more personalized manner.

[0059] Preferably, the method further comprises: establishing a cheating knowledge graph; defining a relationship in the cheating knowledge graph; and generating a static relationship in the cheating knowledge graph. Technical effect: The relationship between examinees, examination rooms, typical features, cheating actions, etc. can be clearly seen through the knowledge graph, which can improve user experience and facilitate more accurate detection using such relationships.

[0060] Preferably, the method further comprises: a typical feature detection model construction step; a cheating action detection model construction step; a candidate image recognition model construction step; and a candidate video recognition model construction step. Technical effect: By training typical features and cheating models through deep learning technology, the shortcomings of traditional pattern matching and expert systems can be overcome.

[0061] In a second aspect, an embodiment of the present invention provides an artificial intelligence system, such as Figure 1 As shown, the system includes: a typical feature detection module; a to-be-detected frame marking module; a to-be-detected video segment interception module; a cheating action detection module; and a monitoring video marking module.

[0062] Preferably, if Figure 2As shown, the system further includes: a video monitoring module; a cheating action setting module; a video module for obtaining cheating actions; a setting module for obtaining typical features of cheating actions; and an image module for obtaining typical features of cheating actions.

[0063] Preferably, if Figure 3 As shown, the system also includes: a module for establishing a cheating in exams knowledge graph; a module for defining relationships in the cheating in exams knowledge graph; and a module for generating static relationships in the cheating in exams knowledge graph.

[0064] Preferably, if Figure 4 As shown, the system also includes: a typical feature detection model building module; a cheating action detection model building module; a candidate image recognition model building module; and a candidate video recognition model building module.

[0065] In a third aspect, an embodiment of the present invention provides an artificial intelligence device, which includes a module of the system described in any one of the embodiments of the second aspect.

[0066] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the steps of the method described in any one of the embodiments of the first aspect.

[0067] In a fifth aspect, an embodiment of the present invention provides a robot, comprising a memory, a processor, and an artificial intelligence robot program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the method described in the first aspect when executing the program.

[0068] Preferred embodiments of the present invention

[0069] Video monitoring step: obtaining monitoring video of the examination; preferably, obtaining the monitoring video of the examination in real time.

[0070] Cheating action setting steps: Get the cheating actions set by the user, including the action of looking at other people's test papers, or taking a note, or taking a book, or taking information, or staring at a certain information source for more than a preset time threshold; the action of taking a note includes the action of receiving a note, or passing a note, or taking a note out of a pocket, and the typical feature is the appearance of a note in the hand.

[0071] The step of obtaining videos of cheating actions: obtaining video samples of each of the cheating actions; preferably, obtaining a large number of video samples of each of the cheating actions; preferably, obtaining a first preset number of video samples of each of the cheating actions; preferably, different types of cheating actions have different first preset numbers, complex cheating actions have large first preset numbers, simple cheating actions have small first preset numbers, and the more complex the cheating actions, the larger the first preset number.

[0072] Steps for obtaining typical features of cheating actions: obtaining typical features of cheating actions set by the user, including the typical feature of looking at other people's test papers is that the eyes look at places other than one's own test paper, or the typical feature of taking a note is that something other than a pen and an eraser appears in the hand, or the typical feature of taking a book is that something other than a pen and an eraser appears in the hand, or the typical feature of taking information is that something other than a pen and an eraser appears in the hand, or the typical feature of staring at a certain information source for more than a preset time threshold is that the eyes look at places other than one's own test paper. It can be seen that if it is a typical feature of a certain action, it is not necessarily the action. On the contrary, if it is a certain action, the typical feature of the action will inevitably appear. In other words, relying on typical features, it is easy to make false detections, and treat non-cheating actions as cheating actions, but there will be no missed detections, that is, there will be no cheating actions but the typical features will not be detected. Therefore, typical features of cheating actions can be used for initial inspection, thereby improving the speed and efficiency of cheating action detection and saving time and cost of detection, because typical features can be described by static images, while cheating actions are continuous actions that can only be described by videos. Obviously, the efficiency and speed of detecting specific images from exam monitoring videos are much higher than the efficiency and speed of detecting specific videos, thereby reducing the cost of detection, which is of great significance for carbon neutrality and energy conservation. However, it is not enough to rely solely on typical features for detection, because typical features cannot uniquely determine whether it is a cheating action. For example, the typical feature of eyes looking at places other than their own test papers may be because students are tired of taking the exam and look into the distance to rest for a while. It is not necessarily the action of looking at other people's test papers, nor is it necessarily the time of staring at a certain information source exceeding the preset time threshold. Therefore, after the initial inspection through the image of typical features, it is necessary to further confirm the diagnosis through the action video.

[0073] The steps of obtaining images of typical features of cheating actions: obtaining image samples of each of the typical features; preferably, obtaining a large number of image samples of each of the typical features; preferably, obtaining a second preset number of image samples of each of the typical features; preferably, different types of the typical features have different second preset numbers, the complex typical features have a large second preset number, the simple typical features have a small second preset number, and the more complex the typical features, the larger the second preset number.

[0074] Steps to build a knowledge graph for cheating in exams: build multiple cheating action entities, multiple typical feature entities, multiple candidate entities, multiple exam room entities, and multiple invigilator entities.

[0075] Steps for defining relationships in the knowledge graph of cheating in exams: Typical feature entities point to cheating action entities through a belongs-to relationship. A typical feature entity has a belongs-to relationship with one or more cheating action entities, and a cheating action entity has a belongs-to relationship with one or more typical feature entities. Candidate entities point to cheating action entities through a has-to relationship. A candidate entity has a has-to relationship with zero or one or more cheating action entities, and a cheating action entity has a has-to relationship with zero or one or more candidate entities. Candidate entities point to typical feature entities through a has-to relationship. A candidate entity has a has-to relationship with zero or one or more typical feature entities, and a typical feature entity has a has-to relationship with zero or one or more candidate entities. Candidate entities point to examination room entities through an in relationship. A candidate entity has an exists-to relationship with an examination room entity, and an examination room entity has an exists-to relationship with multiple candidate entities. Invigilator entities point to examination room entities through an in relationship. A invigilator entity has an exists-to relationship with an examination room entity, and an examination room entity has an exists-to relationship with multiple invigilator entities.

[0076] Steps for generating static relationships in the exam cheating knowledge graph: Based on the typical features of cheating actions set by the user, establish relationships between typical feature entities and cheating action entities.

[0077] Typical feature detection model construction step: take the image sample of each typical feature as input, take the label of each typical feature as expected output, train and test the deep learning model, and obtain the typical feature detection deep learning model. The image sample of each typical feature is an examination room image, and the image is marked with a preset mark to mark the examinee with each typical feature, and the range of the mark needs to cover each typical feature. For example, the typical feature is something other than a pen and an eraser on the hand, and the examinee whose typical feature in the examination room image is something other than a pen and an eraser on the hand and the things other than a pen and an eraser on the hand are framed with a square. The label of each typical feature includes the name of each typical feature (for example, something other than a pen and an eraser on the hand), the position of the mark of each typical feature in the image, such as the position of the square box (4 vertex coordinates). If the position of the mark of each typical feature in the image in the label of each typical feature is empty, it indicates that the image sample does not contain each typical feature.

[0078] The cheating action detection model construction step: taking the video sample of each cheating action as input, taking the label of each cheating action as expected output, training and testing the deep learning model, and obtaining the cheating action detection deep learning model; the video sample of each cheating action is a test video, and the video is marked with a preset mark to mark the examinee with each cheating action, and the range of the mark needs to cover each cheating action, where the range includes the spatial range and the time range, and the time range is from the starting frame to the ending frame of each cheating action, for example, the cheating action is the action of taking a note, and the cheating action of the test video is the action of taking a note from the starting frame to the ending frame. The cheating action of each cheating action includes the name of each cheating action (such as the action of taking a note), the starting frame, the ending frame, and the position of the mark in each frame, such as the position of the box in each frame (4 vertex coordinates). If the start frame and the end frame of each cheating action in the label of each cheating action are empty, it indicates that the video sample does not contain each cheating action.

[0079] Steps for constructing a candidate image recognition model: obtain a photo of each candidate, take the photo of each candidate as input, take the candidate's information (such as the candidate's name or ID number or student number) as the expected output, perform transfer learning on the face image recognition deep learning model, and obtain a candidate image recognition deep learning model.

[0080] Steps for constructing a candidate video recognition model: obtain the video of each candidate, take the video of each candidate as input, take the candidate's information (such as the candidate's name or ID number or student number) as the expected output, perform transfer learning on the face video recognition deep learning model, and obtain a candidate video recognition deep learning model.

[0081] Typical feature detection step: obtain each frame of the surveillance video of the test, take each frame of the image as input, calculate through the typical feature detection deep learning model, and obtain the output as the label of the typical features of each frame of the image. If the label of the typical features of each frame of the image is not empty (if it is empty, it means that each frame of the image does not have typical features), then according to the mark range in the label of the typical features of each frame of the image, the image within the marked range is intercepted from each frame of the image. Take the image within the marked range as input, calculate through the candidate recognition image deep learning model, and obtain the output as the candidate information in the label of the typical features of each frame of the image. If the label of the typical features of each frame of the image is not empty, then each frame of the image contains one or more typical features.

[0082] The step of marking frames to be detected: obtaining the labels of each frame image and the typical features of each frame image in the surveillance video of the test. If the label of the typical features of each frame image is not empty, the preset maximum duration of the corresponding cheating action is determined according to the name of the typical features in the label of the typical features, as the preset duration to be detected. If there are multiple labels of the typical features that are not empty, multiple preset maximum durations of the corresponding multiple cheating actions are determined according to the names of multiple typical features in multiple labels of the typical features, and the largest multiple preset maximum durations among the multiple preset maximum durations are taken as the preset duration to be detected. If the label of the typical features of each frame image is not empty, each frame image is marked as a frame to be detected, all frames with a duration of the preset duration to be detected / 2 before each frame image are marked as frames to be detected, and all frames with a duration of the preset duration to be detected / 2 after each frame image are marked as frames to be detected. Some frames will be repeatedly marked as frames to be detected, and some frames will not be marked as frames to be detected.

[0083] The step of extracting the video segments to be detected is as follows: extracting the continuous frames marked as frames to be detected and not marked as extracted from the monitoring video of the test as a video segment to be detected, and marking the extracted frames to be detected as extracted. 0, 1 or more video segments to be detected can be extracted from the monitoring video of the test.

[0084] Cheating action detection step: the video clip to be detected is used as input, and the output obtained by calculation by the cheating action detection deep learning model is used as the label of the cheating action in the video clip to be detected. The video clip within the marked range is used as input, and the output obtained by calculation by the candidate video recognition deep learning model is used as the candidate's information in the label of the cheating action of the video clip. If the label of the typical feature of each frame of the image is not empty, then each frame of the image contains one or more typical features. The labels of the cheating actions in all the video clips to be detected are used as the labels of the cheating actions in the monitoring video of the exam.

[0085] Monitoring video marking step: replacing the corresponding video segment to be detected in the monitoring video of the test with the video segment to be detected with the label of each cheating action, to obtain the monitoring video after the cheating action is marked.

[0086] By first detecting typical features and then detecting cheating actions in those video segments with typical features, the detection of many video segments without typical features is reduced, thereby greatly improving the speed and efficiency of detection. This method is also applicable to real-time video monitoring. When no typical features appear, there is no need to detect cheating actions, which can greatly save computing costs, improve detection speed, and achieve real-time detection.

[0087] Each typical feature detection model construction step: take the image sample of each typical feature as input, take the label of each typical feature as the expected output, train and test the deep learning model, and obtain Each A sort of Typical feature detection deep learning model. The image sample of each typical feature is an examination room image, and the examinees with each typical feature are marked with preset marks in the image, and the range of the mark needs to cover each typical feature. For example, the typical feature is something other than a pen and an eraser appearing on the hand. The examinees whose typical feature in the examination room image is something other than a pen and an eraser appearing on the hand and the things other than a pen and an eraser appearing on the hand are framed with a square. The label of each typical feature includes the name of each typical feature (for example, something other than a pen and an eraser appearing on the hand), the position of the mark of each typical feature in the image, such as the position of the square box (4 vertex coordinates). If the position of the mark of each typical feature in the image in the label of each typical feature is empty, it indicates that the image sample does not contain each typical feature.

[0088] Each cheating action detection model construction step: take the video sample of each cheating action as input, take the label of each cheating action as the expected output, train and test the deep learning model, and obtain Each of the Cheating action detection deep learning model; the video sample of each cheating action is an examination room video and the video is marked with a preset mark to mark the examinee with each cheating action and the range of the mark needs to cover each cheating action, where the range includes spatial range and time range, and the time range is from the starting frame to the ending frame of each cheating action. For example, the cheating action is the action of taking a note, and the cheating action of the examination room video is the action of taking a note from the starting frame to the ending frame. The examinee and the action of taking a note in each frame are framed with a square. The label of each cheating action includes the name of each cheating action (such as the action of taking a note), the starting frame, the ending frame, and the position of the mark in each frame of each cheating action, such as the position of the square frame in each frame (4 vertex coordinates). If the starting frame and the ending frame of each cheating action in the label of each cheating action are empty, it indicates that the video sample does not contain each cheating action.

[0089] Training a deep learning model for each typical feature and each cheating action can make the deep learning model more targeted and accurate. Although it increases the computing cost to some extent, it can be reduced through targeted detection.

[0090] Steps for constructing a candidate image recognition model: obtain a photo of each candidate, take the photo of each candidate as input, take the candidate's information (such as the candidate's name or ID number or student number) as the expected output, perform transfer learning on the face image recognition deep learning model, and obtain a candidate image recognition deep learning model.

[0091] Steps for constructing a candidate video recognition model: obtain the video of each candidate, take the video of each candidate as input, take the candidate's information (such as the candidate's name or ID number or student number) as the expected output, perform transfer learning on the face video recognition deep learning model, and obtain a candidate video recognition deep learning model.

[0092] Typical feature detection step: obtain each frame of the surveillance video of the test, take each frame of the image as input, calculate through the typical feature detection deep learning model, and obtain the output as the label of the typical features of each frame of the image. If the label of the typical features of each frame of the image is not empty (if it is empty, it means that each frame of the image does not have typical features), then according to the marking range in the label of the typical features of each frame of the image, cut out the image within the marked range from each frame of the image. Take the image within the marked range as input, calculate through the candidate recognition image deep learning model, and obtain the output as the candidate information in the label of the typical features of each frame of the image. If the label of the typical features of each frame of the image is not empty, then each frame of the image contains one or more typical features.

[0093] The step of marking frames to be detected: obtaining the labels of each frame image and the typical features of each frame image in the surveillance video of the test. If the label of the typical features of each frame image is not empty, the preset maximum duration of the corresponding cheating action is determined according to the name of the typical features in the label of the typical features, as the preset duration to be detected. If there are multiple labels of the typical features that are not empty, multiple preset maximum durations of the corresponding multiple cheating actions are determined according to the names of multiple typical features in multiple labels of the typical features, and the largest multiple preset maximum durations among the multiple preset maximum durations are taken as the preset duration to be detected. If the label of the typical features of each frame image is not empty, each frame image is marked as a frame to be detected, all frames with a duration of the preset duration to be detected / 2 before each frame image are marked as frames to be detected, and all frames with a duration of the preset duration to be detected / 2 after each frame image are marked as frames to be detected. Some frames will be repeatedly marked as frames to be detected, and some frames will not be marked as frames to be detected.

[0094] The step of extracting the video segments to be detected is as follows: extracting the continuous frames marked as frames to be detected and not marked as extracted from the monitoring video of the test as a video segment to be detected, and marking the extracted frames to be detected as extracted. 0, 1 or more video segments to be detected can be extracted from the monitoring video of the test.

[0095] The step of determining alternative cheating actions for the video clip to be detected is as follows: obtaining each video clip to be detected, obtaining the name of the typical feature in the non-empty label of the typical features of all frame images in each video clip to be detected, obtaining the names of multiple typical features, removing duplicates from the names of the multiple typical features, and obtaining a set of different typical feature names as a set of typical features to be detected.

[0096] The step of determining the cheating actions to be detected is as follows: obtaining the name of each typical feature in the set of typical features to be detected, and obtaining the name of one or more cheating actions corresponding to the name of each typical feature according to the relationship between the typical feature entity and the cheating action entity in the exam cheating knowledge graph. Deduplication is performed on the names of all cheating actions obtained according to the names of all typical features in the set of typical features to be detected, and a set of different cheating action names is obtained as the set of cheating actions to be detected.

[0097] Specific cheating action detection step: taking each of the video clips to be detected as input, and calculating the output obtained by the deep learning model for detecting each cheating action corresponding to each cheating action in the set of cheating actions to be detected as the label of each cheating action in the video clip to be detected. Taking the video clips within the marked range as input, and calculating the deep learning model for candidate video recognition, the output obtained is used as the candidate's information in the label of each cheating action in the video clip. If the label of the typical feature of each frame of the image is not empty, then each frame of the image contains one or more typical features. The label of each cheating action in all the video clips to be detected is used as the label of each cheating action in the monitoring video of the exam.

[0098] This solution eliminates the need to detect all types of cheating actions in video clips. Instead, it only needs to detect cheating actions corresponding to typical features, thereby reducing the computational complexity of cheating action detection.

[0099] Monitoring video marking step: replacing the corresponding video segment to be detected in the monitoring video of the test with the video segment to be detected with the label of each cheating action, to obtain the monitoring video after the cheating action is marked.

[0100] By first detecting typical features and then detecting cheating actions in those video segments with typical features, the detection of many video segments without typical features is reduced, thereby greatly improving the speed and efficiency of detection. This method is also applicable to real-time video monitoring. When no typical features appear, there is no need to detect cheating actions, which can greatly save computing costs, improve detection speed, and achieve real-time detection.

[0101] The step of profiling the typical features of the examinee is as follows: obtaining the typical feature name and the examinee's information from the non-empty label of the typical feature in each frame of the surveillance video of the exam, and establishing a relationship between the typical feature entity and the examinee entity in the exam cheating knowledge graph.

[0102] Step of profiling the examinee's cheating actions: obtain the cheating action name and examinee information in the non-empty label of each cheating action in the video clip to be detected in the surveillance video of the exam, and establish a relationship between the cheating action entity and the examinee entity in the exam cheating knowledge graph.

[0103] Steps for determining cheating candidates: Obtain each candidate in the exam cheating knowledge graph. If each candidate has a relationship connection with a cheating action entity in the exam cheating knowledge graph, then each candidate has cheated.

[0104] Cheating warning step: obtain the examination room related to each candidate who has cheated in the examination cheating knowledge graph, obtain the invigilator related to the examination room in the examination cheating knowledge graph, and send the information that each candidate has cheated to the invigilator.

[0105] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. An automatic proctoring method, characterized in that: The method comprises: Typical feature detection step: obtain each frame of the image in the surveillance video of the test, take each frame of the image as input, calculate through the typical feature detection deep learning model, and obtain the output as the label of the typical feature of each frame of the image; if the label of the typical feature of each frame of the image is not empty, then intercept the image within the marked range from each frame of the image according to the marked range in the label of the typical feature of each frame of the image; take the image within the marked range as input, calculate through the candidate recognition image deep learning model, and obtain the output as the candidate information in the label of the typical feature of each frame of the image; The step of marking frames to be detected: obtaining labels of each frame of image in the surveillance video of the test and the typical features of each frame of image; if the label of the typical features of each frame of image is not empty, determining the preset maximum duration of the corresponding cheating action according to the name of the typical features in the label of the typical features as the preset duration to be detected; if there are multiple labels of the typical features that are not empty, determining multiple preset maximum durations of the corresponding multiple cheating actions according to the names of multiple typical features in multiple labels of the typical features, and taking the largest preset maximum duration among the multiple preset maximum durations as the preset duration to be detected; if the label of the typical features of each frame of image is not empty, marking each frame of image as a frame to be detected, marking all frames with a duration of the preset duration to be detected / 2 before each frame of image as frames to be detected, and marking all frames with a duration of the preset duration to be detected / 2 after each frame of image as frames to be detected; some frames will be repeatedly marked as frames to be detected, and some frames will not be marked as frames to be detected; The step of extracting the video segment to be detected is as follows: extracting the continuous frames marked as frames to be detected and not marked as extracted in the monitoring video of the test as a video segment to be detected, and marking the extracted frames to be detected as extracted; Cheating action detection step: taking the video clip to be detected as input, and calculating the output obtained by the cheating action detection deep learning model as the label of the cheating action in the video clip to be detected; taking the video clip within the marked range as input, and calculating the deep learning model of the candidate video recognition, and obtaining the output as the candidate information in the label of the cheating action in the video clip; taking the labels of the cheating action in all the video clips to be detected as the labels of the cheating action in the monitoring video of the test; Monitoring video marking step: replacing the corresponding video segment to be detected in the monitoring video of the test with the label of the video segment to be detected and the cheating action therein, to obtain the monitoring video after the cheating action is marked.

2. The automatic invigilation method according to claim 1, characterized in that: The method further comprises: Video surveillance steps: Obtain surveillance video of the exam; Cheating action setting steps: obtaining the cheating action set by the user; Step of obtaining a video of the cheating action: obtaining a video sample of each of the cheating actions; The step of obtaining typical features of cheating actions is as follows: obtaining typical features of cheating actions set by the user; The step of obtaining images of typical features of cheating actions is to obtain image samples of each of the typical features.

3. The automatic invigilation method according to claim 1, characterized in that: The method further comprises: Steps to build a cheating knowledge graph: build multiple cheating action entities, multiple typical feature entities, multiple candidate entities, multiple examination room entities, and multiple invigilator entities; Steps for defining the relationship of the exam cheating knowledge graph: the examinee entity points to the cheating action entity through the has relationship; the examinee entity points to the typical feature entity through the has relationship; the examinee entity points to the examination room entity through the in relationship; the invigilator entity points to the examination room entity through the in relationship; Steps for generating static relationships in the exam cheating knowledge graph: Based on the typical features of cheating actions set by the user, establish relationships between typical feature entities and cheating action entities.

4. The automatic invigilation method according to claim 1, characterized in that: The method further comprises: Typical feature detection model construction step: taking an image sample of each typical feature as input, taking a label of each typical feature as expected output, training and testing a deep learning model, and obtaining a typical feature detection deep learning model; The cheating action detection model construction step: taking a video sample of each cheating action as input, taking a label of each cheating action as expected output, training and testing the deep learning model, and obtaining a cheating action detection deep learning model; The candidate image recognition model construction step: obtain a photo of each candidate, take the photo of each candidate as input, take the candidate's information as expected output, perform transfer learning on the face image recognition deep learning model, and obtain the candidate image recognition deep learning model; Steps for constructing the candidate video recognition model: obtain the video of each candidate, take the video of each candidate as input, take the candidate's information as expected output, perform transfer learning on the face video recognition deep learning model, and obtain the candidate video recognition deep learning model.

5. An automatic invigilation system, characterized in that: The system comprises: Typical feature detection module: obtain each frame of the monitoring video of the test, take each frame of the image as input, calculate the typical feature detection deep learning model, and obtain the output as the label of the typical feature of each frame of the image; if the label of the typical feature of each frame of the image is not empty, then intercept the image within the marked range from each frame of the image according to the marked range in the label of the typical feature of each frame of the image; take the image within the marked range as input, calculate the deep learning model of the candidate recognition image, and obtain the output as the candidate information in the label of the typical feature of each frame of the image; Frame marking module for detection: obtains labels of each frame image and typical features of each frame image in the surveillance video of the test; if the label of the typical features of each frame image is not empty, the preset maximum duration of the corresponding cheating action is determined according to the name of the typical features in the label of the typical features, as the preset duration to be detected; if there are multiple labels of the typical features that are not empty, multiple preset maximum durations of the corresponding multiple cheating actions are determined according to the names of multiple typical features in multiple labels of the typical features, and the largest preset maximum duration among the multiple preset maximum durations is taken as the preset duration to be detected; if the label of the typical features of each frame image is not empty, each frame image is marked as a frame to be detected, all frames with a duration of the preset duration to be detected / 2 before each frame image are marked as frames to be detected, and all frames with a duration of the preset duration to be detected / 2 after each frame image are marked as frames to be detected; some frames will be repeatedly marked as frames to be detected, and some frames will not be marked as frames to be detected; A module for extracting video segments to be detected: extracting the continuous frames marked as frames to be detected and not marked as extracted from the monitoring video of the test as a video segment to be detected, and marking the extracted frames to be detected as extracted; Cheating action detection module: taking the video clip to be detected as input, and calculating the output obtained by the cheating action detection deep learning model as the label of the cheating action in the video clip to be detected; taking the video clip within the marked range as input, and calculating the deep learning model of the candidate video recognition, and obtaining the output as the candidate information in the label of the cheating action in the video clip; taking the labels of the cheating actions in all the video clips to be detected as the labels of the cheating actions in the monitoring video of the test; The monitoring video marking module replaces the corresponding video segment to be detected in the monitoring video of the test with the label of the video segment to be detected and the cheating action therein, so as to obtain the monitoring video after the cheating action is marked.

6. The automatic invigilation system according to claim 5, characterized in that: The system further comprises: Video surveillance module: obtain the surveillance video of the exam; Cheating action setting module: obtain the cheating action set by the user; A module for obtaining a video of cheating actions: obtaining a video sample of each cheating action; A module for obtaining typical features of cheating actions: obtaining typical features of cheating actions set by users; An image module for obtaining typical features of cheating actions: obtaining image samples of each of the typical features.

7. The automatic invigilation system according to claim 5, characterized in that: The system further comprises: Establish a cheating knowledge graph module: establish multiple cheating action entities, multiple typical feature entities, multiple candidate entities, multiple examination room entities, and multiple invigilator entities; Exam cheating knowledge graph relationship definition module: the examinee entity points to the cheating action entity through the has relationship; the examinee entity points to the typical feature entity through the has relationship; the examinee entity points to the examination room entity through the has relationship; the invigilator entity points to the examination room entity through the has relationship; Exam cheating knowledge graph static relationship generation module: According to the typical features of cheating actions set by the user, a relationship is established between typical feature entities and cheating action entities.

8. The automatic invigilation system according to claim 5, characterized in that: The system further comprises: Typical feature detection model construction module: taking the image sample of each typical feature as input, taking the label of each typical feature as expected output, training and testing the deep learning model, and obtaining a typical feature detection deep learning model; A cheating action detection model building module: taking a video sample of each cheating action as input, taking a label of each cheating action as expected output, training and testing a deep learning model, and obtaining a cheating action detection deep learning model; Candidate image recognition model construction module: obtain the photo of each candidate, take the photo of each candidate as input, take the candidate's information as expected output, perform transfer learning on the face image recognition deep learning model, and obtain the candidate image recognition deep learning model; Candidate video recognition model construction module: obtain the video of each candidate, take the video of each candidate as input, take the candidate's information as expected output, perform transfer learning on the face video recognition deep learning model, and obtain the candidate video recognition deep learning model.

9. A robot comprising a memory, a processor, and an artificial intelligence robot program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 4 are implemented.

10. 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 method according to any one of claims 1 to 4 are implemented.