A method and device for analyzing collective abnormal behavior based on dynamic topology
Through the dynamic topology analysis method, the skeleton posture and distance of the candidates are identified, which solves the problem of difficulty in detecting the collective abnormal behavior of candidates through machine vision recognition and improves the accuracy and efficiency of detection.
Patent Information
- Application Number
- CN202410119059.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-01-29
AI Technical Summary
Existing machine vision recognition technology is difficult to accurately detect collective abnormal behavior of examinees, especially when individual examinees deliver answers through collective actions, resulting in insufficient detection efficiency and accuracy.
Adopting a collective abnormal behavior analysis method based on dynamic topology, by obtaining the examination room video data for frame division and preprocessing, identifying key frames, constructing the examinee's skeleton topology, and monitoring the skeleton posture and distance based on the preset suspicious behavior model to identify the actual intervals Abnormal behavior when the distance is smaller than the preset value.
It improves the accuracy and efficiency of collective abnormal behavior detection, avoids blind spots and inaccuracies in machine vision recognition, and ensures rapid and accurate analysis of examinee abnormal behavior.
Smart Images

Figure CN118135649B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of behavior recognition, and in particular to a method and device for collective abnormal behavior analysis based on dynamic topology. Background Art
[0002] With the development of visual recognition technology, machine vision recognition technology used in examination halls can accurately obtain the actions of individual examinees and process the images of the examinees to determine whether there is any suspicion of abnormal behavior in the examinees' actions in the examination halls.
[0003] At present, the detection of abnormal behavior is mainly achieved through machine vision recognition to monitor the abnormal behavior of candidates. However, since image recognition can only recognize the behavior of candidates based on images, there will be a large visual recognition blind spot. For example, when a candidate puts his hand under the table, image recognition cannot predict and recognize the movement of the candidate's hand, resulting in the inability to detect the specific movement in this situation. At the same time, the existing abnormal behavior detection is only for individual candidates, and it is impossible to accurately identify candidates with collective abnormal behavior, resulting in candidates with collective abnormal behavior being able to circulate answers through collective actions, resulting in the inability to accurately analyze the existing abnormal behavior recognition, and thus cannot be effectively used in the identification of collective abnormal behavior.
[0004] Therefore, there is an urgent need for a method that can be used for collective abnormal behavior detection and analysis of examinees and improve the accuracy and efficiency of collective abnormal behavior detection and analysis. Summary of the invention
[0005] The present invention provides a method and device for analyzing collective abnormal behavior based on dynamic topology, so as to solve the technical problem in the prior art that it is impossible to accurately and efficiently detect and analyze the collective abnormal behavior of examinees.
[0006] In order to solve the above technical problems, an embodiment of the present invention provides a collective abnormal behavior analysis method based on dynamic topology, comprising:
[0007] Acquire the examination monitoring video data of the examination room, and perform frame division and preprocessing on the video data; wherein the video data after frame division includes a plurality of examination frame data;
[0008] Select key frames from the test frame data, perform portrait recognition on the key frames in turn, compare and analyze the recognized portraits with the preset candidate information database, and annotate the candidate information obtained from the analysis in the key frames
[0009] Capturing skeleton topology information of the annotated portraits, thereby constructing the skeleton topology of each examinee respectively, and continuously monitoring the skeleton topology and the examination monitoring video data according to a preset suspicious behavior recognition model;
[0010] Record the suspicious posture of each skeleton topology in turn, and obtain the actual distance between the skeleton topologies of each suspicious posture according to the coordinate information of the skeleton topology with suspicious posture in the test monitoring video data;
[0011] If the actual interval distance is less than the preset value, the skeleton topology of the two suspicious postures corresponding to the actual interval distance is used as the abnormal behavior skeleton, and the candidate information marked in the abnormal behavior skeleton is output, thereby completing the analysis of collective abnormal behavior.
[0012] As a preferred solution, the acquisition of the examination monitoring video data of the examination room and the frame division and preprocessing of the video data are specifically as follows:
[0013] Obtain the examination monitoring video data of the examination room through the camera;
[0014] Dividing the test monitoring video data into frames to obtain image frames;
[0015] Gaussian filtering, image denoising and image enhancement are performed on the image frame to obtain test frame data.
[0016] As a preferred solution, the key frames are selected from the test frame data, and the key frames are sequentially subjected to portrait recognition, and the recognized portraits are compared and analyzed with a preset candidate information database, and the candidate information obtained by the analysis is marked in the key frames, specifically:
[0017] According to the portrait recognition model, portrait recognition is performed on all test frame data, so as to select key frames in which portraits are not blocked from the test frame data, and obtain portrait information after portrait recognition of the key frames; wherein all portraits can be recognized in each key frame;
[0018] The recognized portrait information is compared and analyzed with the preset candidate information database, and the portrait information recognized in the key frames is marked with the candidate information in turn.
[0019] As a preferred solution, the skeleton topology information of the annotated portrait is captured, so as to construct the skeleton topology of each examinee respectively, and the skeleton topology and the examination monitoring video data are continuously monitored according to the preset suspicious behavior recognition model, specifically:
[0020] Capture the skeleton topology information of the portraits with the examinee information marked in all key frames, so as to construct the skeleton topology of each examinee in turn;
[0021] According to the preset behavior recognition model, the behavior posture recognition is performed on the skeleton topology of each candidate to obtain the behavior information of each candidate in each key frame;
[0022] According to the behavior information of each examinee in each key frame, the skeleton posture and behavior information of each examinee at the corresponding moment in the non-key frame are predicted and completed, so as to obtain the complete behavior information of each examinee in the test monitoring video data;
[0023] According to the preset suspicious behavior recognition model, all the behavior information of each examinee in the test monitoring video data is monitored and identified, so as to obtain the skeleton topology of the suspicious behavior; wherein the suspicious behavior includes all actions unrelated to writing actions, reading actions and head-up actions.
[0024] As a preferred solution, according to the behavior information of each examinee in each key frame, the skeleton posture and behavior information of each examinee at the corresponding moment in the non-key frame are predicted and completed, so as to obtain all the behavior information of each examinee in the test monitoring video data, specifically:
[0025] Predict and complete all behavioral information of each examinee in turn, so that in the process of predicting and completing all behavioral information of each examinee, according to a preset behavior recognition model, the test frame image in the test monitoring video data that can identify the complete skeleton topology and behavior information of the examinee is extracted, and combined with the behavior information of the examinee in each key frame, through the behavior prediction model, the frame moments corresponding to the test frame data that cannot identify the skeleton topology and behavior information of the examinee are predicted in turn for skeleton posture and behavior, and then the predicted skeleton posture and behavior information are input into the test frame data at the frame moment in turn, until the test frame data at all frame moments have the skeleton posture and behavior information of the examinee, thereby obtaining all behavioral information of the examinee in the test monitoring video data;
[0026] Until all the behavioral information of all candidates in the examination monitoring video data is obtained.
[0027] As a preferred solution, if the actual interval distance is less than the preset value, the skeleton topology of the two suspicious postures corresponding to the actual interval distance is used as the abnormal behavior skeleton, and the candidate information marked in the abnormal behavior skeleton is output, specifically:
[0028] If the actual interval distance is less than the preset value, the skeleton topologies of the two suspicious postures corresponding to the actual interval distance are used as abnormal behavior analysis skeletons;
[0029] Performing behavior recognition on the abnormal behavior analysis skeletons in sequence, and whenever one of the abnormal behavior analysis skeletons is identified to have suspicious behavior, obtaining behavior information of all accomplice skeletons within a preset distance of the abnormal behavior analysis skeleton, so that whenever the abnormal behavior analysis skeleton is performing a suspicious behavior, if it is identified that an accomplice skeleton is performing a head-raising action and / or a writing action, then recording the number of times the abnormal behavior analysis skeleton and the accomplice skeleton cyclically perform the same action;
[0030] If the number is greater than the preset number, the abnormal behavior analysis skeleton and the accomplice skeleton are used as abnormal behavior skeletons, and the candidate information marked in the abnormal behavior skeleton is output.
[0031] As a preferred solution, it also includes:
[0032] If the actual interval distance is greater than or equal to the preset value, the skeleton topology of the suspicious posture is sequentially identified;
[0033] Whenever a suspicious behavior is identified in one of the skeleton topologies of a suspicious posture, the behavior information of all accomplice skeletons within a preset distance of the skeleton topology is obtained, so that whenever the skeleton topology of the suspicious posture is performing a suspicious behavior, if it is identified that an accomplice skeleton is performing a head-up action and / or a writing action, the number of times the skeleton topology of the suspicious posture and the accomplice skeleton cyclically perform the same action is recorded;
[0034] If the number is greater than the preset number, the skeleton topology of the suspicious posture and the accomplice skeleton are used as abnormal behavior skeletons, and the candidate information marked in the abnormal behavior skeleton is output.
[0035] Accordingly, the present invention also provides a collective abnormal behavior analysis device based on dynamic topology, comprising: an acquisition module, a recognition module, a skeleton module, a distance module and an analysis module;
[0036] The acquisition module is used to acquire the test monitoring video data of the test room, and perform frame division and preprocessing on the video data; wherein the video data after frame division includes a plurality of test frame data;
[0037] The recognition module is used to select key frames from the test frame data, perform portrait recognition on the key frames in turn, compare and analyze the recognized portraits with the preset candidate information database, and mark the candidate information obtained from the analysis in the key frames.
[0038] The skeleton module is used to capture the skeleton topology information of the annotated portrait, so as to construct the skeleton topology of each examinee respectively, and continuously monitor the skeleton topology and the examination monitoring video data according to the preset suspicious behavior recognition model;
[0039] The distance module is used to record the suspicious posture of each skeleton topology in turn, and obtain the actual interval distance between the skeleton topologies of each suspicious posture according to the coordinate information of the skeleton topology with the suspicious posture in the test monitoring video data;
[0040] The analysis module is used to use the skeleton topology of the two suspicious postures corresponding to the actual interval distance as the abnormal behavior skeleton if the actual interval distance is less than a preset value, and output the candidate information marked in the abnormal behavior skeleton, thereby completing the analysis of collective abnormal behavior.
[0041] Correspondingly, the present invention also provides a terminal device, characterized in that it includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the collective abnormal behavior analysis method based on dynamic topology as described in any one of the above.
[0042] Accordingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any of the collective abnormal behavior analysis methods based on dynamic topology as described above.
[0043] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0044] The technical solution of the present invention obtains the examination monitoring video data of the examination room, and then selects key frames after frame division and preprocessing, so as to mark the candidate information corresponding to the portraits identified in turn, and capture the skeleton topology information of the marked portraits to construct the skeleton topology of each candidate, so as to continuously monitor the skeleton topology and the examination monitoring video data through a preset suspicious behavior recognition model, and at the same time combine the actual interval distance between the skeleton topologies of each suspicious posture to accurately and quickly determine whether the skeleton topologies of two suspicious postures between the actual interval distance are abnormal behavior skeletons, and then quickly output information on the candidates corresponding to the collective abnormal behavior. The analysis of skeleton behavior can avoid the blind spots of machine vision recognition and the problem of inaccurate machine vision behavior detection, and the accuracy of collective abnormal behavior detection is improved by combining the detection of the actual interval distance. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 : A flowchart of a method for analyzing collective abnormal behavior based on dynamic topology provided by an embodiment of the present invention;
[0046] Figure 2: A structural schematic diagram of a collective abnormal behavior analysis device based on dynamic topology provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example
[0048] Please refer to Figure 1 , a collective abnormal behavior analysis method based on dynamic topology provided by an embodiment of the present invention includes the following steps S101-S105:
[0049] Step S101: Acquire the test monitoring video data of the test room, and perform frame division and preprocessing on the video data; wherein the video data after frame division includes a plurality of test frame data.
[0050] As a preferred solution of this embodiment, the acquisition of the examination monitoring video data of the examination room and the frame division and preprocessing of the video data are specifically as follows:
[0051] The examination monitoring video data of the examination room is obtained through the camera; the examination monitoring video data is frame-divided to obtain image frames; the image frames are subjected to Gaussian filtering, image denoising and image enhancement processing to obtain examination frame data.
[0052] In this embodiment, the camera can be used to obtain the test monitoring video data of the test room, and then the obtained video data is divided into frames, so as to reduce the volume of the entire video data. It is understandable that since an exam generally takes more than half an hour and less than four hours, if all the video data is processed, the data processing will be complex, the data will be complicated, and the data processing efficiency will be low. Therefore, after dividing the video data into frames, the number of frames in one second can be reduced, thereby realizing the data volume of the video data. Preferably, the video data can be divided into a frame rate of one frame per second, which can significantly reduce the processing volume of the video data compared to the normal 30 frame rate and 60 frame rate.
[0053] Furthermore, Gaussian filtering, image denoising and image enhancement are performed on each image frame in the frame-divided video data, thereby obtaining test frame data that can be processed quickly, efficiently and accurately.
[0054] Step S102: Select key frames from the test frame data, perform portrait recognition on the key frames in turn, compare and analyze the recognized portraits with the preset candidate information database, and mark the candidate information obtained from the analysis in the key frames.
[0055] As a preferred solution of this embodiment, the key frames are selected from the test frame data, and the key frames are sequentially subjected to portrait recognition, and the recognized portraits are compared and analyzed with the preset candidate information database, and the candidate information obtained by the analysis is marked in the key frames, specifically:
[0056] According to the portrait recognition model, portrait recognition is performed on all test frame data, so as to select key frames in which the portraits are not blocked from the test frame data, and obtain the portrait information after the portraits in the key frames are recognized; wherein all portraits can be recognized in each key frame; the recognized portrait information is compared and analyzed with the preset candidate information database, and the portrait information recognized in the key frames is marked with the candidate information in turn.
[0057] In this embodiment, through the portrait recognition model, accurate portrait recognition can be performed on all test frame data, and through the test frame data, frames in which the portrait is not blocked are selected as key frames, and the portrait information after portrait recognition in the key frame is recognized, so that the candidate information corresponding to the portrait information can be obtained in the preset candidate information library. Preferably, the portrait information can be the result of face recognition, and by comparing the result of face recognition with the image in the preset candidate information library, it is determined that the portrait in the key frame corresponds to the candidate information in the candidate information library.
[0058] It should be noted that the portrait recognition model may be a face recognition model, which, after training, can accurately recognize facial feature information in an image.
[0059] It is understandable that the selection of key frames where the portrait is not occluded can improve the accuracy of portrait recognition, avoid the low accuracy of portrait recognition and skeleton feature information capture in subsequent steps due to occlusion, and thus lead to low accuracy of abnormal behavior analysis.
[0060] Step S103: capturing skeleton topology information of the annotated portrait, thereby constructing the skeleton topology of each examinee respectively, and continuously monitoring the skeleton topology and examination monitoring video data according to a preset suspicious behavior recognition model.
[0061] As a preferred solution of this embodiment, the skeleton topology information of the annotated portrait is captured, so as to construct the skeleton topology of each examinee respectively, and the skeleton topology and the examination monitoring video data are continuously monitored according to the preset suspicious behavior recognition model, specifically:
[0062] The skeleton topology information of the portraits with the examinee information marked in all key frames is captured, so as to construct the skeleton topology of each examinee in turn; according to the preset behavior recognition model, the behavior posture recognition is performed on the skeleton topology of each examinee to obtain the behavior information of each examinee in each key frame; according to the behavior information of each examinee in each key frame, the skeleton posture and behavior information of each examinee at the corresponding moment in the non-key frame are predicted and completed, so as to obtain the complete behavior information of each examinee in the test monitoring video data; according to the preset suspicious behavior recognition model, the complete behavior information of each examinee in the test monitoring video data is monitored and recognized, so as to obtain the skeleton topology with suspicious behavior; wherein, the suspicious behavior includes all actions unrelated to writing actions, reading actions and head-up actions.
[0063] In this embodiment, by capturing the skeleton topology information of the portraits with the examinee information marked in all key frames, the skeleton feature information corresponding to each examinee is obtained, and then the skeleton topology of each examinee can be accurately constructed based on the skeleton feature information, and then the current behavior posture corresponding to the skeleton topology of each examinee can be identified through the preset behavior recognition model, and the current behavior state of the examinee's skeleton topology can also be identified. Among them, the behavior recognition model is obtained through pre-training, and the various posture data of the skeleton of the human skeleton during the examination are input, so that the behavior recognition model can be trained.
[0064] In this embodiment, only all key frame data are captured. Since what is obtained is the behavior information corresponding to each key frame, it is necessary to predict and complete the skeleton posture and behavior information of each candidate at the corresponding moment in the non-key frame to ensure that the behavior of each candidate is monitored throughout the entire test.
[0065] In this embodiment, a preset suspicious behavior recognition model is used to monitor and recognize all the behavior information of each examinee in the test monitoring video data, so as to obtain the skeleton topology of suspicious behaviors. Among them, suspicious behaviors can be looking around, looking up for a long time, the movement or position of the hand in a non-writing state, shaking feet, etc., all actions that are not related to writing actions, reading actions and looking up actions. It can be understood that the recognition of suspicious behaviors can be achieved through the behavior recognition model. By recording the test behaviors of normal examinees and then marking the actions of normal examinees, the actions that are not marked as normal examinees can be regarded as suspicious behaviors. The behavior recognition model used for suspicious behavior recognition can also be trained to obtain a behavior recognition model that can recognize normal test behaviors by pre-inputting normal test behaviors such as writing actions, reading actions and looking up actions as training data, and then using the actions that are not marked as normal examinees as suspicious behaviors as the output of the model, and finally training to obtain a suspicious behavior recognition model.
[0066] As a preferred solution of this embodiment, according to the behavior information of each examinee in each key frame, the skeleton posture and behavior information of each examinee at the corresponding moment in the non-key frame are predicted and completed, so as to obtain all the behavior information of each examinee in the test monitoring video data, specifically:
[0067] The entire behavioral information of each candidate is predicted and completed in turn, so that in the process of predicting and completing the entire behavioral information of each candidate, the test frame image that can identify the complete skeleton topology and behavioral information of the candidate in the test monitoring video data is extracted according to the preset behavior recognition model, and combined with the behavior information of the candidate in each key frame, the skeleton posture and behavior are predicted in turn for the frame moments corresponding to the test frame data that cannot identify the skeleton topology and behavior information of the candidate through the behavior prediction model, and then the predicted skeleton posture and behavior information are input into the test frame data at the frame moment in turn, until the test frame data at all frame moments have the skeleton posture and behavior information of the candidate, thereby obtaining the complete behavioral information of the candidate in the test monitoring video data; until all the behavioral information of all candidates in the test monitoring video data is obtained.
[0068] In this embodiment, through the preset behavior recognition model, the complete skeleton topology and behavior information of the examinee in the test monitoring video data can be identified, and then the corresponding test frame image can be extracted, and combined with the behavior information of the examinee in each key frame, so that the skeleton information and behavior information of the two frames before and after the missing frame moment can be predicted through the behavior prediction model, and then the corresponding information of the missing frame moment can be completed and obtained. The skeleton information and behavior information of the examinee in all data frames in the test monitoring video data.
[0069] Furthermore, if the two frames before and after the missing frame correspond to a very large time difference between the two frames, there is a situation where the examinee deliberately avoids the camera action, that is, there may be suspicion of abnormal behavior, and the examinee's information will be directly output.
[0070] It can be understood that by completing the examinee's skeleton information and behavior information in all data frames, accurate monitoring of the examinee's movements and accurate analysis of abnormal behaviors can be ensured throughout the entire examination.
[0071] Step S104: Record the suspicious posture of each skeleton topology in turn, and obtain the actual interval distance between the skeleton topologies of each suspicious posture according to the coordinate information of the skeleton topology with the suspicious posture in the test monitoring video data.
[0072] In this embodiment, by recording the suspicious posture of each skeleton topology in turn, the skeleton topology with suspicious posture can be marked, and then the coordinate information of the marked skeleton topology in the test monitoring video data can be obtained, so as to obtain the actual spacing distance between the skeleton topologies of each suspicious posture according to the position and zoom ratio of the camera.
[0073] It is understandable that since candidates cannot move around freely after the exam begins, the position of the table can also be obtained by pre-entering the candidate's seat number information and then matching the candidate's skeleton with the seat information, so as to more accurately obtain each seat, that is, the actual spacing distance between each skeleton topology.
[0074] Step S105: If the actual interval distance is less than the preset value, the skeleton topology of the two suspicious postures corresponding to the actual interval distance is used as the abnormal behavior skeleton, and the candidate information marked in the abnormal behavior skeleton is output, thereby completing the analysis of collective abnormal behavior.
[0075] As a preferred solution of this embodiment, if the actual interval distance is less than the preset value, the skeleton topology of the two suspicious postures corresponding to the actual interval distance is used as the abnormal behavior skeleton, and the candidate information marked in the abnormal behavior skeleton is output, specifically:
[0076] If the actual interval distance is less than the preset value, the skeleton topologies of the two suspicious postures corresponding to the actual interval distance are both used as abnormal behavior analysis skeletons; behavior recognition is performed on the abnormal behavior analysis skeletons in turn, and whenever one of the abnormal behavior analysis skeletons is identified to have suspicious behavior, the behavior information of all accomplice skeletons within the preset distance of the abnormal behavior analysis skeleton is obtained, so that whenever the abnormal behavior analysis skeleton is performing a suspicious behavior, if it is identified that an accomplice skeleton is performing a head-up action and / or a writing action, the number of times the abnormal behavior analysis skeleton and the accomplice skeleton repeatedly perform the same action is recorded; if the number is greater than the preset number, the abnormal behavior analysis skeleton and the accomplice skeleton are used as abnormal behavior skeletons, and the candidate information marked in the abnormal behavior skeleton is output.
[0077] In this embodiment, when there are two skeleton topologies with suspicious postures whose actual interval distance is less than the preset value, it means that the two examinees may behave abnormally. For example, the two examinees are examinee A and examinee B. Preferably, the preset value can be set according to the actual examination room conditions and seat conditions. Thus, the skeleton topologies of the two suspicious postures corresponding to the actual interval distance are used as abnormal behavior analysis skeletons. When one of the abnormal behavior analysis skeletons (examinee A or examinee B) is identified to have suspicious behavior, the behavior information of all accomplice skeletons of the abnormal behavior analysis skeleton within the preset distance is obtained. For example, the abnormal behavior analysis skeleton is examinee A, and all accomplice skeletons include examinee a, examinee b, examinee c, examinee d, examinee e and examinee f. Whenever examinee A performs suspicious behavior, including but not limited to: supporting the chin with the left hand, supporting the chin with the right hand, lifting glasses, crossing legs, etc. (examinees may agree on which answer corresponds to each action before the test. For example, for multiple-choice questions, the options can be matched with each different action respectively, so that the answer can be transmitted after the corresponding action is performed), if one or more of examinee a, examinee b, examinee c, examinee d, examinee e and examinee f are performing a head-up action and / or a writing action, a collective abnormal behavior may occur in which examinee A transmits the answer to examinee a, examinee b, examinee c, examinee d, examinee e or examinee f who are performing a head-up action and / or a writing action. However, in order to avoid accidental events, the collective abnormal behavior is also monitored, and the number of times the abnormal behavior analysis skeleton and the accomplice skeleton repeatedly perform the same action, that is, the collective abnormal behavior, is recorded. If it is greater than the preset number, it is sufficient to indicate the existence of collective abnormal behavior, and the abnormal behavior analysis skeleton and the accomplice skeleton are used as abnormal behavior skeletons, and the examinee information marked in the abnormal behavior skeleton is output.
[0078] As a preferred solution of this embodiment, it also includes:
[0079] If the actual interval distance is greater than or equal to the preset value, the skeleton topology of the suspicious posture will be subjected to behavior identification in turn; whenever one of the skeleton topologies of the suspicious posture is identified to have suspicious behavior, the behavior information of all accomplice skeletons within the preset distance of the skeleton topology will be obtained, so that whenever the skeleton topology of the suspicious posture is performing suspicious behavior, if it is identified that there is an accomplice skeleton performing a head-raising action and / or a writing action, the number of times the skeleton topology of the suspicious posture and the accomplice skeleton perform the same action in a loop will be recorded; if the number is greater than the preset number, the skeleton topology of the suspicious posture and the accomplice skeleton will be regarded as abnormal behavior skeletons, and the candidate information marked in the abnormal behavior skeleton will be output.
[0080] It is understandable that candidates who may attempt to participate in collective abnormal behavior may be far away from each other, but can still see each other's actions. Therefore, for the skeleton topology of suspicious postures with actual separation distances, it is also necessary to identify and record the suspicious behavior execution and accomplice skeletons, so as to accurately and quickly identify candidates participating in collective abnormal behavior.
[0081] It can be understood that the embodiments of the present invention are mainly aimed at the behavior recognition of collective abnormal behavior, especially for the collective abnormal behavior of executing corresponding actions in the exam after agreeing on the action answers before the exam, so as to achieve the collective abnormal behavior of answer delivery. The existing abnormal behavior recognition cannot identify abnormal behavior in the scenario of collective abnormal behavior, resulting in the action recognition of a single examinee cannot accurately reflect the situation of all examinees in the entire examination room. The present invention makes it possible to focus on the behavior of examinees in the entire examination room, and avoid the occurrence of collective abnormal behavior through skeleton behavior action recognition, while also improving the accuracy and efficiency of abnormal behavior detection.
[0082] Implementing the above embodiments has the following effects:
[0083] The technical solution of the present invention obtains the examination monitoring video data of the examination room, and then selects key frames after frame division and preprocessing, so as to mark the candidate information corresponding to the portraits identified in turn, and capture the skeleton topology information of the marked portraits to construct the skeleton topology of each candidate, so as to continuously monitor the skeleton topology and the examination monitoring video data through a preset suspicious behavior recognition model, and at the same time combine the actual interval distance between the skeleton topologies of each suspicious posture to accurately and quickly determine whether the skeleton topologies of two suspicious postures between the actual interval distance are abnormal behavior skeletons, and then quickly output information on the candidates corresponding to the collective abnormal behavior. The analysis of skeleton behavior can avoid the blind spots of machine vision recognition and the problem of inaccurate machine vision behavior detection, and the accuracy of collective abnormal behavior detection is improved by combining the detection of the actual interval distance. Example
[0084] See also Figure 2 The present invention also provides a collective abnormal behavior analysis device based on dynamic topology, including: an acquisition module 201, a recognition module 202, a skeleton module 203, a distance module 204 and an analysis module 205.
[0085] The acquisition module 201 is used to acquire the test monitoring video data of the test room, and perform frame division and preprocessing on the video data; wherein the video data after frame division includes a plurality of test frame data;
[0086] The recognition module 202 is used to select key frames from the test frame data, and perform portrait recognition on the key frames in turn, and compare and analyze the recognized portraits with a preset candidate information database, and mark the candidate information obtained from the analysis in the key frames.
[0087] The skeleton module 203 is used to capture the skeleton topology information of the annotated portrait, so as to construct the skeleton topology of each examinee respectively, and continuously monitor the skeleton topology and the examination monitoring video data according to the preset suspicious behavior recognition model;
[0088] The distance module 204 is used to record the suspicious posture of each skeleton topology in turn, and obtain the actual interval distance between the skeleton topologies of each suspicious posture according to the coordinate information of the skeleton topology with the suspicious posture in the test monitoring video data.
[0089] The analysis module 205 is used to use the skeleton topology of the two suspicious postures corresponding to the actual interval distance as the abnormal behavior skeleton if the actual interval distance is less than the preset value, and output the candidate information marked in the abnormal behavior skeleton, thereby completing the analysis of collective abnormal behavior.
[0090] As a preferred solution, the acquisition of the examination monitoring video data of the examination room and the frame division and preprocessing of the video data are specifically as follows:
[0091] Obtain the examination monitoring video data of the examination room through the camera;
[0092] Dividing the test monitoring video data into frames to obtain image frames;
[0093] Gaussian filtering, image denoising and image enhancement are performed on the image frame to obtain test frame data.
[0094] As a preferred solution, the key frames are selected from the test frame data, and the key frames are sequentially subjected to portrait recognition, and the recognized portraits are compared and analyzed with a preset candidate information database, and the candidate information obtained by the analysis is marked in the key frames, specifically:
[0095] According to the portrait recognition model, portrait recognition is performed on all test frame data, so as to select key frames in which portraits are not blocked from the test frame data, and obtain portrait information after portrait recognition of the key frames; wherein all portraits can be recognized in each key frame;
[0096] The recognized portrait information is compared and analyzed with the preset candidate information database, and the portrait information recognized in the key frames is marked with the candidate information in turn.
[0097] As a preferred solution, the skeleton topology information of the annotated portrait is captured, so as to construct the skeleton topology of each examinee respectively, and the skeleton topology and the examination monitoring video data are continuously monitored according to the preset suspicious behavior recognition model, specifically:
[0098] Capture the skeleton topology information of the portraits with the examinee information marked in all key frames, so as to construct the skeleton topology of each examinee in turn;
[0099] According to the preset behavior recognition model, the behavior posture recognition is performed on the skeleton topology of each candidate to obtain the behavior information of each candidate in each key frame;
[0100] According to the behavior information of each examinee in each key frame, the skeleton posture and behavior information of each examinee at the corresponding moment in the non-key frame are predicted and completed, so as to obtain the complete behavior information of each examinee in the test monitoring video data;
[0101] According to the preset suspicious behavior recognition model, all the behavior information of each examinee in the test monitoring video data is monitored and identified, so as to obtain the skeleton topology of the suspicious behavior; wherein the suspicious behavior includes all actions unrelated to writing actions, reading actions and head-up actions.
[0102] As a preferred solution, according to the behavior information of each examinee in each key frame, the skeleton posture and behavior information of each examinee at the corresponding moment in the non-key frame are predicted and completed, so as to obtain all the behavior information of each examinee in the test monitoring video data, specifically:
[0103] Predict and complete all behavioral information of each examinee in turn, so that in the process of predicting and completing all behavioral information of each examinee, according to a preset behavior recognition model, the test frame image in the test monitoring video data that can identify the complete skeleton topology and behavior information of the examinee is extracted, and combined with the behavior information of the examinee in each key frame, through the behavior prediction model, the frame moments corresponding to the test frame data that cannot identify the skeleton topology and behavior information of the examinee are predicted in turn for skeleton posture and behavior, and then the predicted skeleton posture and behavior information are input into the test frame data at the frame moment in turn, until the test frame data at all frame moments have the skeleton posture and behavior information of the examinee, thereby obtaining all behavioral information of the examinee in the test monitoring video data;
[0104] Until all the behavioral information of all candidates in the examination monitoring video data is obtained.
[0105] As a preferred solution, if the actual interval distance is less than the preset value, the skeleton topology of the two suspicious postures corresponding to the actual interval distance is used as the abnormal behavior skeleton, and the candidate information marked in the abnormal behavior skeleton is output, specifically:
[0106] If the actual interval distance is less than the preset value, the skeleton topologies of the two suspicious postures corresponding to the actual interval distance are used as abnormal behavior analysis skeletons;
[0107] Performing behavior recognition on the abnormal behavior analysis skeletons in sequence, and whenever one of the abnormal behavior analysis skeletons is identified to have suspicious behavior, obtaining behavior information of all accomplice skeletons within a preset distance of the abnormal behavior analysis skeleton, so that whenever the abnormal behavior analysis skeleton is performing a suspicious behavior, if it is identified that an accomplice skeleton is performing a head-raising action and / or a writing action, then recording the number of times the abnormal behavior analysis skeleton and the accomplice skeleton cyclically perform the same action;
[0108] If the number is greater than the preset number, the abnormal behavior analysis skeleton and the accomplice skeleton are used as abnormal behavior skeletons, and the candidate information marked in the abnormal behavior skeleton is output.
[0109] As a preferred solution, it also includes:
[0110] If the actual interval distance is greater than or equal to the preset value, the skeleton topology of the suspicious posture is sequentially identified;
[0111] Whenever a suspicious behavior is identified in one of the skeleton topologies of a suspicious posture, the behavior information of all accomplice skeletons within a preset distance of the skeleton topology is obtained, so that whenever the skeleton topology of the suspicious posture is performing a suspicious behavior, if it is identified that an accomplice skeleton is performing a head-up action and / or a writing action, the number of times the skeleton topology of the suspicious posture and the accomplice skeleton cyclically perform the same action is recorded;
[0112] If the number is greater than the preset number, the skeleton topology of the suspicious posture and the accomplice skeleton are used as abnormal behavior skeletons, and the candidate information marked in the abnormal behavior skeleton is output.
[0113] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0114] Implementing the above embodiments has the following effects:
[0115] The technical solution of the present invention obtains the examination monitoring video data of the examination room, and then selects key frames after frame division and preprocessing, so as to mark the candidate information corresponding to the portraits identified in turn, and capture the skeleton topology information of the marked portraits to construct the skeleton topology of each candidate, so as to continuously monitor the skeleton topology and the examination monitoring video data through a preset suspicious behavior recognition model, and at the same time combine the actual interval distance between the skeleton topologies of each suspicious posture to accurately and quickly determine whether the skeleton topologies of two suspicious postures between the actual interval distance are abnormal behavior skeletons, and then quickly output information on the candidates corresponding to the collective abnormal behavior. The analysis of skeleton behavior can avoid the blind spots of machine vision recognition and the problem of inaccurate machine vision behavior detection, and the accuracy of collective abnormal behavior detection is improved by combining the detection of the actual interval distance. Example
[0116] Correspondingly, the present invention also provides a terminal device, comprising: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for collective abnormal behavior analysis based on dynamic topology as described in any one of the above embodiments is implemented.
[0117] The terminal device of this embodiment includes: a processor, a memory, and a computer program and a computer instruction stored in the memory and executable on the processor. When the processor executes the computer program, each step in the above-mentioned embodiment 1 is implemented, for example: Figure 1Alternatively, the processor implements the functions of each module / unit in the above device embodiment, such as the analysis module 205, when executing the computer program.
[0118] Exemplarily, the computer program can be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units can be a series of computer program instruction segments that can perform specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device. For example, the analysis module 205 is used to use the skeleton topology of the two suspicious postures corresponding to the actual spacing distance as the abnormal behavior skeleton if the actual spacing distance is less than a preset value, and output the candidate information marked in the abnormal behavior skeleton, thereby completing the analysis of collective abnormal behavior.
[0119] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the schematic diagram is merely an example of a terminal device and does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the diagram, or may combine certain components, or different components. For example, the terminal device may also include an input / output device, a network access device, a bus, etc.
[0120] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
[0121] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc.; the data storage area can store data created according to the use of the mobile terminal, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0122] Wherein, if the module / unit integrated in the terminal device 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 such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals. Example
[0123] Accordingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the collective abnormal behavior analysis method based on dynamic topology as described in any one of the above embodiments.
[0124] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for collective abnormal behavior analysis based on dynamic topology, It is characterized in that include: Acquire the examination monitoring video data of the examination room, divide the video data into frames to obtain image frames, and preprocess the image frames to obtain examination frame data; wherein the video data after frame division includes a plurality of unpreprocessed examination frame data; Select key frames from the test frame data, perform portrait recognition on the key frames in turn, compare and analyze the recognized portraits with a preset candidate information database, and mark the candidate information obtained from the analysis in the key frames; The skeleton topology information of the annotated portraits is captured, so as to construct the skeleton topology of each candidate respectively, and the skeleton topology and the test monitoring video data are continuously monitored according to the preset suspicious behavior recognition model; the skeleton topology information of the portraits with the candidate information annotated in all key frames is captured, so as to sequentially construct the skeleton topology of each candidate; according to the preset behavior recognition model, the behavior posture recognition is performed on the skeleton topology of each candidate to obtain the behavior information of each candidate in each key frame; according to the behavior information of each candidate in each key frame, the skeleton posture and behavior information of each candidate at the corresponding moment in the non-key frame are predicted and completed, so as to obtain the full behavior information of each candidate in the test monitoring video data; according to the preset suspicious behavior recognition model, the full behavior information of each candidate in the test monitoring video data is monitored and recognized, so as to obtain the skeleton topology with suspicious behavior; wherein, the suspicious behavior includes all actions unrelated to writing actions, reading actions and head-up actions; Record the suspicious posture of each skeleton topology in turn, and obtain the actual distance between the skeleton topologies of each suspicious posture according to the coordinate information of the skeleton topology with the suspicious posture in the test monitoring video data; If the actual interval distance is less than the preset value, the skeleton topology of the two suspicious postures corresponding to the actual interval distance is used as the abnormal behavior skeleton, and the candidate information marked in the abnormal behavior skeleton is output, so as to complete the analysis of collective abnormal behavior; if the actual interval distance is less than the preset value, the skeleton topology of the two suspicious postures corresponding to the actual interval distance is used as the abnormal behavior analysis skeleton; the abnormal behavior analysis skeletons are sequentially subjected to behavior recognition, and whenever one of the abnormal behavior analysis skeletons is identified to have suspicious behavior, the behavior information of all accomplice skeletons within the preset distance of the abnormal behavior analysis skeleton is obtained, so that whenever the abnormal behavior analysis skeleton is performing suspicious behavior, if it is identified that an accomplice skeleton is performing a head-up action and / or a writing action, the number of times the abnormal behavior analysis skeleton and the accomplice skeleton repeatedly perform the same action is recorded; if the number is greater than the preset number, the abnormal behavior analysis skeleton and the accomplice skeleton are used as abnormal behavior skeletons, and the candidate information marked in the abnormal behavior skeleton is output.
2. A method for analyzing collective abnormal behavior based on dynamic topology as claimed in claim 1, It is characterized in that The obtaining of the examination monitoring video data of the examination room and the frame division and preprocessing of the video data are specifically as follows: Obtain the examination monitoring video data of the examination room through the camera; Dividing the test monitoring video data into frames to obtain image frames; Gaussian filtering, image denoising and image enhancement are performed on the image frame to obtain test frame data.
3. A method for analyzing collective abnormal behavior based on dynamic topology as claimed in claim 2, It is characterized in that The key frames are selected from the test frame data, and the key frames are sequentially subjected to portrait recognition, and the recognized portraits are compared and analyzed with the preset candidate information database, and the candidate information obtained by the analysis is marked in the key frames, specifically: According to the portrait recognition model, portrait recognition is performed on all test frame data, so as to select key frames in which portraits are not blocked from the test frame data, and obtain portrait information after portrait recognition of the key frames; wherein all portraits can be recognized in each key frame; The recognized portrait information is compared and analyzed with the preset candidate information database, and the portrait information recognized in the key frames is marked with the candidate information in turn.
4. A method for analyzing collective abnormal behavior based on dynamic topology as claimed in claim 3, It is characterized in that According to the behavior information of each examinee in each key frame, the skeleton posture and behavior information of each examinee at the corresponding moment in the non-key frame are predicted and completed, so as to obtain all the behavior information of each examinee in the test monitoring video data, specifically: Predict and complete all behavioral information of each examinee in turn, so that in the process of predicting and completing all behavioral information of each examinee, according to a preset behavior recognition model, the test frame image in the test monitoring video data that can identify the complete skeleton topology and behavior information of the examinee is extracted, and combined with the behavior information of the examinee in each key frame, through the behavior prediction model, the frame moments corresponding to the test frame data that cannot identify the skeleton topology and behavior information of the examinee are predicted in turn for skeleton posture and behavior, and then the predicted skeleton posture and behavior information are input into the test frame data at the frame moment in turn, until the test frame data at all frame moments have the skeleton posture and behavior information of the examinee, thereby obtaining all behavioral information of the examinee in the test monitoring video data; Until all the behavioral information of all candidates in the examination monitoring video data is obtained.
5. A method for analyzing collective abnormal behavior based on dynamic topology as claimed in claim 1, It is characterized in that Also includes: If the actual interval distance is greater than or equal to the preset value, the skeleton topology of the suspicious posture is sequentially identified; Whenever a suspicious behavior is identified in one of the skeleton topologies of a suspicious posture, the behavior information of all accomplice skeletons within a preset distance of the skeleton topology is obtained, so that whenever the skeleton topology of the suspicious posture is performing a suspicious behavior, if it is identified that an accomplice skeleton is performing a head-up action and / or a writing action, the number of times the skeleton topology of the suspicious posture and the accomplice skeleton cyclically perform the same action is recorded; If the number is greater than the preset number, the skeleton topology of the suspicious posture and the accomplice skeleton are used as abnormal behavior skeletons, and the candidate information marked in the abnormal behavior skeleton is output.
6. A collective abnormal behavior analysis device based on dynamic topology, It is characterized in that include: Acquisition module, recognition module, skeleton module, distance module and analysis module; The acquisition module is used to acquire the test monitoring video data of the test room, and divide the video data into frames to obtain image frames, and preprocess the image frames to obtain test frame data; wherein the video data after frame division includes a plurality of unpreprocessed test frame data; The recognition module is used to select key frames from the test frame data, perform portrait recognition on the key frames in turn, compare and analyze the recognized portraits with a preset candidate information database, and mark the candidate information obtained by the analysis in the key frames; The skeleton module is used to capture the skeleton topology information of the annotated portraits, so as to construct the skeleton topology of each candidate respectively, and continuously monitor the skeleton topology and the test monitoring video data according to the preset suspicious behavior recognition model; the skeleton topology information of the portraits with the candidate information annotated in all key frames is captured, so as to sequentially construct the skeleton topology of each candidate; according to the preset behavior recognition model, the behavior posture recognition is performed on the skeleton topology of each candidate to obtain the behavior information of each candidate in each key frame; according to the behavior information of each candidate in each key frame, the skeleton posture and behavior information of each candidate at the corresponding moment in the non-key frame are predicted and completed, so as to obtain all the behavior information of each candidate in the test monitoring video data; according to the preset suspicious behavior recognition model, all the behavior information of each candidate in the test monitoring video data is monitored and recognized, so as to obtain the skeleton topology with suspicious behavior; wherein, the suspicious behavior includes all actions unrelated to writing actions, reading actions and head-up actions; The distance module is used to record the suspicious posture of each skeleton topology in turn, and obtain the actual interval distance between the skeleton topologies of each suspicious posture according to the coordinate information of the skeleton topology with the suspicious posture in the test monitoring video data; The analysis module is used to, if the actual interval distance is less than a preset value, use the skeleton topology of the two suspicious postures corresponding to the actual interval distance as the abnormal behavior skeleton, and output the candidate information marked in the abnormal behavior skeleton, so as to complete the analysis of collective abnormal behavior; if the actual interval distance is less than the preset value, use the skeleton topology of the two suspicious postures corresponding to the actual interval distance as the abnormal behavior analysis skeleton; perform behavior recognition on the abnormal behavior analysis skeletons in turn, and whenever one of the abnormal behavior analysis skeletons is identified to have suspicious behavior, obtain the behavior information of all accomplice skeletons of the abnormal behavior analysis skeleton within the preset distance, so that whenever the abnormal behavior analysis skeleton is performing suspicious behavior, if it is identified that an accomplice skeleton is performing a head-up action and / or a writing action, then record the number of times the abnormal behavior analysis skeleton and the accomplice skeleton cyclically perform the same action; if the number is greater than the preset number, use the abnormal behavior analysis skeleton and the accomplice skeleton as abnormal behavior skeletons, and output the candidate information marked in the abnormal behavior skeleton.
7. A terminal device, It is characterized in that The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for collective abnormal behavior analysis based on dynamic topology as described in any one of claims 1 to 5 is implemented.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the collective abnormal behavior analysis method based on dynamic topology according to any one of claims 1 to 5.
