Abnormal behavior recognition system and method based on soft AI

Through the abnormal behavior recognition system based on soft AI, combined with infrared night vision high-definition camera technology and deep learning model, the accuracy and cost problems of abnormal behavior detection in the existing technology are solved, and efficient abnormal behavior recognition and early warning are achieved, which is suitable for Home and ward monitoring.

CN118587649APending Publication Date: 2024-09-03SHANDONG ARTAPLAY INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202410673285.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-05-26
Filing Date
2024-05-28
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing security monitoring abnormal behavior detection systems have shortcomings in accuracy, response time and false alarm rate, especially in low-light environments and the complexity and high cost of multi-sensor systems.

Method used

Adopting an abnormal behavior recognition system based on soft AI, combined with infrared night vision high-definition camera technology and deep learning model, the pre-processing module denoises the video, the target recognition module identifies human bodies and dangerous objects, and the action recognition module identifies human body action types and calculates Target distance, if it reaches the threshold or matches a dangerous action combination, abnormal behavior will be determined.

Benefits of technology

It improves the accuracy and efficiency of abnormal behavior identification, reduces the complexity and cost of the system, is suitable for home and ward monitoring scenarios, and has broad application prospects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587649A
    Figure CN118587649A
Patent Text Reader

Abstract

The invention relates to the technical field of soft AI, and particularly provides an abnormal behavior recognition system and method based on soft AI, and the method comprises the steps: obtaining a monitoring video, and carrying out the denoising of the monitoring video, and obtaining a plurality of image frames; identifying a human body target and a dangerous object target from the image frame by using a target detection model; recognizing the human body key points of the human body target by using an RTM model, recognizing the motion type of the human body target based on the relative position between the human body key points, and integrating the motion types of the adjacent image frames into a motion combination; calculating the distance between the human body target and the dangerous object target based on the positions of the human body target and the dangerous object target in the image frame; and if the distance reaches a set distance threshold value or the action combination is matched with a pre-stored dangerous action combination, judging that the monitoring video has an abnormal behavior. The abnormal behavior recognition method provided by the invention is high in accuracy and high in recognition efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of soft AI technology, and in particular relates to an abnormal behavior recognition system and method based on soft AI. Background Art

[0002] Existing abnormal behavior detection systems for security monitoring have obvious deficiencies in identifying and warning abnormal behaviors of monitored objects, mainly manifested in low accuracy, long response time, and high false alarm rate. These systems can be roughly divided into three categories: abnormal behavior detection systems based on video analysis, abnormal behavior detection systems based on a single type of sensor, and abnormal behavior detection systems integrating multiple sensors.

[0003] Abnormal behavior detection systems based on video analysis: These systems mainly rely on high-definition cameras to capture the behavior of the monitored object and perform behavior analysis through image processing technology. However, they have the following disadvantages: (1) High environmental dependence: In low-light or nighttime environments, the effectiveness of video surveillance will be greatly reduced; (2) High computational cost: High-quality video analysis requires a lot of computing resources, resulting in increased costs.

[0004] Abnormal behavior detection systems based on single-type sensors: This type of system uses one type of sensor among motion, temperature, and pressure to monitor the behavior of the monitored object. Their disadvantages include: (1) Single information: A single type of sensor is difficult to fully capture the complexity of the behavior of the monitored object; (2) High false alarm rate: The sensor is easily disturbed by environmental factors, resulting in false alarms; (3) Limited coverage: The monitoring range of the sensor is limited, making it difficult to achieve comprehensive monitoring.

[0005] Abnormal behavior detection systems integrating multiple sensors: These systems attempt to improve the accuracy of system detection by integrating data from multiple sensors. However, they still face challenges: (1) Complex data processing: Multi-sensor data fusion requires complex data processing algorithms; (2) High system cost: Multi-sensor integration increases the economic cost of the system; (3) Difficult maintenance: Multi-sensor systems require regular maintenance, which increases the difficulty of use. Summary of the invention

[0006] In view of the above-mentioned deficiencies in the prior art, the present invention provides an abnormal behavior recognition system and method based on soft AI to solve the above-mentioned technical problems.

[0007] In a first aspect, the present invention provides an abnormal behavior recognition system based on soft AI, comprising: A preprocessing module is used to obtain a surveillance video and perform noise removal on the surveillance video to obtain multiple image frames; A target recognition module, used to recognize human targets and dangerous object targets from the image frame using a target detection model; An action recognition module is used to use the RTM model to identify the key points of the human body target, identify the action type of the human body target based on the relative positions between the key points of the human body, and integrate the action types of adjacent image frames into an action combination; A distance calculation module, used for calculating the distance between the human target and the dangerous object target based on the positions of the human target and the dangerous object target in the image frame; The abnormality recognition module is used to determine that abnormal behavior exists in the monitoring video if the distance reaches a set distance threshold or the action combination matches a pre-stored dangerous action combination.

[0008] In an optional embodiment, the preprocessing module includes: A video acquisition unit is used to acquire surveillance video through a high-definition camera and to acquire the ambient brightness of the high-definition camera through a photoelectric sensor. If the ambient brightness does not reach a set brightness threshold, the high-definition camera is controlled to turn on the night vision function; The preprocessing unit is used to perform multi-level encoding and downsampling processing, and multi-level decoding and upsampling processing on the surveillance video using the Unet structure of the image denoising algorithm, and perform skip connection design on the corresponding layers in the Unet structure through separable convolutional layers, fuse the feature maps of different layers, and obtain a denoised image frame.

[0009] In an optional implementation, the target recognition unit includes: A model training unit, used for training a plurality of target detection models based on a target detection algorithm, a human target data set, and a dangerous target data set, respectively, wherein the plurality of target detection models are used for detecting human targets and dangerous target respectively; The target recognition unit is used to input the image frames into multiple target detection models respectively, and the multiple target detection models recognize the image frames in parallel, and store the target recognition results output by the multiple target detection models.

[0010] In an optional implementation, the action recognition module includes: A point recognition unit, used to detect a human frame containing a human target using RTMdet of the RTM model, and detect human key points in the human frame using RTMpose of the RTM model, wherein the human key points include left and right shoulder key points, left and right hip key points, left and right ankle key points, and left and right wrist key points; A feature positioning unit, used to locate the midpoint of the left and right shoulder key points as the first feature point, locate the midpoint of the left and right hip key points as the second feature point, and locate the midpoint of the left and right ankle key points as the third feature point; An angle acquisition unit, used to sequentially connect the first feature point, the second feature point and the third feature point to obtain a bending angle of the human body; A first recognition unit, configured to determine that the action type of the human target is a standing state if the bending angle of the human body exceeds a set maximum threshold and the aspect ratio of the human body frame is lower than a set first ratio threshold; A second recognition unit is used to determine that the human body bending angle is between a set maximum threshold and a set minimum threshold, and the action type of the human body target is a bending state; a third recognition unit, configured to determine that the action type of the human target is a lying state if the bending angle of the human body exceeds a set maximum threshold and the aspect ratio of the human body frame exceeds a set second ratio threshold; The sequence recognition unit is used to set a time window, use the time window to select continuous image frames corresponding to a fixed time length, and sort the action types of the continuous image frames in chronological order to obtain an action combination.

[0011] In an optional implementation, the distance calculation module includes: A first calculation unit is used for calculating the shortest distance between the human body frame and the window target if the dangerous object target is a window target, and if the shortest distance reaches a set distance threshold, calculating the distance between the ankle key point of the human body target and the lowest point of the window target; The second calculation unit is used to calculate the distance between the left and right wrist key points and the left and right ankle key points of the human body target and the socket target if the dangerous object target is a socket target, and output the minimum distance.

[0012] In an optional implementation, the dangerous action combination includes: A combination of standing, bending and lying down in sequence, or a combination of standing and lying down in sequence.

[0013] In an optional embodiment, the system further includes: A video generation module, used for storing video clips composed of corresponding image frames; The warning generation module is used to generate risk warning prompt information and send the risk warning prompt information to a remote terminal.

[0014] In a second aspect, the present invention provides an abnormal behavior recognition method based on soft AI, comprising: Acquire a surveillance video, and perform noise removal on the surveillance video to obtain multiple image frames; Using a target detection model to identify human targets and dangerous object targets from the image frame; The RTM model is used to identify the key points of the human body, identify the action type of the human body based on the relative positions between the key points, and integrate the action types of adjacent image frames into action combinations; Calculating the distance between the human target and the dangerous object target based on the positions of the human target and the dangerous object target in the image frame; If the distance reaches a set distance threshold or the action combination matches a pre-stored dangerous action combination, it is determined that abnormal behavior exists in the surveillance video.

[0015] In an optional implementation, a surveillance video is acquired and denoised to obtain a plurality of image frames, including: The surveillance video is collected by a high-definition camera, and the ambient brightness of the high-definition camera is collected by a photoelectric sensor. If the ambient brightness does not reach a set brightness threshold, the high-definition camera is controlled to turn on the night vision function; The surveillance video is subjected to multi-level encoding and downsampling processing, and multi-level decoding and upsampling processing by using the Unet structure of the image denoising algorithm. The corresponding layers in the Unet structure are skipped through separable convolutional layers, and the feature maps of different layers are fused to obtain a denoised image frame.

[0016] In an optional implementation, identifying a human target and a dangerous object target from the image frame using a target detection model includes: Based on the target detection algorithm, the human target data set and the dangerous target data set, multiple target detection models are trained respectively, and the multiple target detection models are used to detect human targets and dangerous target respectively; The image frames are input into a plurality of target detection models respectively, the plurality of target detection models recognize the image frames in parallel, and the target recognition results output by the plurality of target detection models are stored.

[0017] In an optional embodiment, the RTM model is used to identify the key points of the human body target, identify the action type of the human body target based on the relative positions between the key points of the human body, and integrate the action types of adjacent image frames into an action combination, including: The RTMdet of the RTM model is used to detect a human frame containing a human target, and the RTMpose of the RTM model is used to detect human key points in the human frame, wherein the human key points include left and right shoulder key points, left and right hip key points, left and right ankle key points, and left and right wrist key points; The midpoint of the left and right shoulder key points is located as the first feature point, the midpoint of the left and right hip key points is located as the second feature point, and the midpoint of the left and right ankle key points is located as the third feature point; Connect the first characteristic point, the second characteristic point and the third characteristic point in sequence to obtain the bending angle of the human body; If the bending angle of the human body exceeds the set maximum threshold, and the aspect ratio of the human body frame is lower than the set first ratio threshold, then the action type of the human body target is determined to be a standing state; If the bending angle of the human body is between the set maximum threshold and the minimum threshold, and the action type of the human body target is determined to be a bending state; If the bending angle of the human body exceeds a set maximum threshold, and the aspect ratio of the human body frame exceeds a set second ratio threshold, it is determined that the action type of the human body target is a lying state; A time window is set, and continuous image frames corresponding to a fixed time length are selected using the time window, and the action types of the continuous image frames are sorted in chronological order to obtain an action combination.

[0018] In an optional implementation, calculating the distance between the human target and the dangerous object target based on the positions of the human target and the dangerous object target in the image frame includes: If the dangerous object target is a window target, the shortest distance between the human body frame and the window target is calculated. If the shortest distance reaches a set distance threshold, the distance between the ankle key point of the human body target and the lowest point of the window target is calculated. If the dangerous object target is a socket target, the distances between the left and right wrist key points and the left and right ankle key points of the human target and the socket target are calculated, and the minimum distance is output.

[0019] In an optional embodiment, the dangerous action combination includes: A combination of standing, bending and lying down in sequence, or a combination of standing and lying down in sequence.

[0020] In an optional implementation, if it is determined that the surveillance video has abnormal behavior, the method further includes: Storing video segments composed of corresponding image frames; Generate risk warning prompt information, and send the risk warning prompt information to a remote terminal.

[0021] In a third aspect, a terminal is provided, including: processor, memory, wherein: The memory is used to store computer programs. The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.

[0022] According to a fourth aspect, a computer storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the methods described in the above aspects.

[0023] The beneficial effect of the present invention is that the abnormal behavior recognition system and method based on soft AI provided by the present invention, combined with infrared night vision high-definition camera technology and artificial intelligence (AI) algorithm, uses a deep learning model to analyze and warn the behavior of the monitored object (such as the elderly and children), and is suitable for monitoring scenarios such as home monitoring and ward monitoring. In addition, the recognition of human body movements is realized by combining target recognition technology and human key point recognition technology with judgment logic, and the recognition of abnormal situations is realized based on the recognized continuous movements. The abnormal behavior recognition method provided by the present invention has high accuracy and high recognition efficiency.

[0024] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0026] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.

[0027] Figure 2 is another schematic flow chart of a method according to an embodiment of the present invention.

[0028] Figure 3 is a schematic block diagram of a system according to an embodiment of the present invention.

[0029] Figure 4 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0032] The abnormal behavior recognition method based on soft AI provided in the embodiment of the present invention is executed by a computer device, and accordingly, the abnormal behavior recognition system based on soft AI runs in the computer device.

[0033] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention. Figure 1 The execution subject can be an abnormal behavior recognition system based on soft AI. According to different requirements, the order of the steps in the flowchart can be changed, and some can be omitted.

[0034] like Figure 1 As shown, the method includes: Step 110, acquiring a surveillance video, and performing denoising processing on the surveillance video to obtain a plurality of image frames; Step 120, identifying human targets and dangerous object targets from the image frame using a target detection model; Step 130, using the RTM model to identify the key points of the human body target, identifying the action type of the human body target based on the relative positions between the key points of the human body, and integrating the action types of adjacent image frames into an action combination; Step 140, calculating the distance between the human target and the dangerous object target based on the positions of the human target and the dangerous object target in the image frame; Step 150: If the distance reaches a set distance threshold or the action combination matches a pre-stored dangerous action combination, it is determined that abnormal behavior exists in the surveillance video.

[0035] To facilitate understanding of the present invention, the abnormal behavior recognition method based on soft AI provided by the present invention is further described below based on the principle of the abnormal behavior recognition method based on soft AI of the present invention and the process of identifying abnormal behavior in the surveillance video in the embodiment.

[0036] For details, please refer to Figure 2 , the abnormal behavior recognition method based on soft AI includes: S1. Obtain a surveillance video, and perform noise removal on the surveillance video to obtain multiple image frames.

[0037] S101, collecting surveillance video through a high-definition camera, and collecting the ambient brightness of the high-definition camera through a photoelectric sensor. If the ambient brightness does not reach a set brightness threshold, controlling the high-definition camera to turn on a night vision function.

[0038] Install a high-definition camera. According to the activity area of ​​the monitored object, place the high-definition camera on the wall on one side of the area. The camera should be placed at a height that the monitored object cannot touch (the empirical value is 3 meters). The camera installation position should be fixed and stable. The camera field of view should cover the monitoring area, including all areas that the monitored object may reach. The high-definition camera has night vision function, two-way voice function, and is equipped with a photoelectric sensor.

[0039] The photoelectric sensor obtains the corresponding electrical signal value according to the ambient brightness. The electrical signal value is processed by nonlinear mapping and normalization to obtain the light intensity value representing the ambient brightness. When the value is less than the preset threshold (the empirical value is 0.6), the camera's night vision function switch is turned on to improve the accuracy of the monitoring image under low light conditions.

[0040] S102, using the Unet structure of the image denoising algorithm to perform multi-level encoding and downsampling processing, and multi-level decoding and upsampling processing on the surveillance video, and perform skip connection design on the corresponding layers in the Unet structure through separable convolutional layers, fuse the feature maps of different layers, and obtain a denoised image frame.

[0041] The high-definition camera obtains the real-time frame of the picture and passes it to the data preprocessing module. The module uses the lightweight denoising network model PMRID. Through the Unet structure, the input image features are processed in a multi-level "encoder-downsampling" module and a multi-level "decoder-upsampling" module in sequence, and the corresponding layers in the Unet structure are skipped through the separable convolution layer to achieve real-time denoising of the input image. The processed denoised image will be sent to the user terminal in real time.

[0042] S2. Using a target detection model to identify human targets and dangerous object targets from the image frames.

[0043] Based on the target detection algorithm, the human target data set and the dangerous target data set, multiple target detection models are trained respectively, and the multiple target detection models are used to detect human targets and dangerous targets respectively; the image frames are input into the multiple target detection models respectively, the multiple target detection models recognize the image frames in parallel, and the target recognition results output by the multiple target detection models are stored.

[0044] Specifically, the target detection model is implemented using the Yolov8 structure, and multiple models are trained to detect human targets, window targets, and socket targets. The preprocessed images are synchronously input into three target detection models for detecting human targets, window targets, and socket targets, respectively.

[0045] S3. Using the RTM model to identify the key points of the human body, the action type of the human body is identified based on the relative positions between the key points, and the action types of adjacent image frames are integrated into an action combination.

[0046] S301, using RTMdet of the RTM model to detect a human frame containing a human target, and using RTMpose of the RTM model to detect human key points in the human frame, wherein the human key points include left and right shoulder key points, left and right hip key points, left and right ankle key points, and left and right wrist key points.

[0047] The human key point detection model is implemented using the rtmdet+rtmpose structure. The human key points are trained using the COCO data set containing 17 key points. The present invention mainly uses left and right shoulder key points, left and right hip key points, left and right ankle key points, and left and right wrist key points.

[0048] S302, locating the midpoint of the left and right shoulder key points as the first feature point, locating the midpoint of the left and right hip key points as the second feature point, and locating the midpoint of the left and right ankle key points as the third feature point.

[0049] The method of locating the midpoint includes obtaining the coordinates of two key points, such as (a1, b1) and (a2, b2). The coordinates of the midpoint of the two key points are ( ).

[0050] S303, sequentially connect the first feature point, the second feature point and the third feature point to obtain the bending angle of the human body.

[0051] S304: Action recognition.

[0052] If the body bending angle exceeds the set maximum threshold and the aspect ratio of the body frame is lower than the set first ratio threshold, the action type of the body target is determined to be a standing state; if the body bending angle is between the set maximum threshold and the minimum threshold, the action type of the body target is determined to be a bending state; if the body bending angle exceeds the set maximum threshold and the aspect ratio of the body frame exceeds the set second ratio threshold, the action type of the body target is determined to be a lying state.

[0053] Specifically, when the angle formed by the midpoints of the left and right shoulder key points, the midpoints of the left and right hip key points, and the midpoints of the left and right ankle key points is greater than the preset maximum threshold (the empirical value is 130 degrees) and the aspect ratio of the human body detection frame is less than the first ratio threshold (the empirical value is 0.8), the person is judged to be in an upright state; when the angle formed by the midpoints of the left and right shoulder key points, the midpoints of the left and right hip key points, and the midpoints of the left and right ankle key points is greater than the preset minimum bending threshold (the empirical value is 40 degrees) and less than the preset maximum bending threshold (the empirical value is 110 degrees), the person is judged to be in a bent state; when the angle formed by the midpoints of the left and right shoulder key points, the midpoints of the left and right hip key points, and the midpoints of the left and right ankle key points is greater than the preset maximum threshold (the empirical value is 130 degrees) and the aspect ratio of the human body detection frame is less than the second ratio threshold (the empirical value is 1.2), the person is judged to be in a lying state.

[0054] S305 , setting a time window, using the time window to select continuous image frames corresponding to a fixed time length, and sorting the action types of the continuous image frames in chronological order to obtain an action combination.

[0055] If the time window is set to 2s, the time window captures image frames within 2s. In this embodiment, the dangerous action combination is set to: a combination of standing, bending and lying down in sequence, or a combination of standing and lying down in sequence.

[0056] For example, if the actions of standing up, bending over, and lying down occur successively within a preset time threshold (the empirical value is 2 seconds), it is determined to be a fall risk behavior.

[0057] S4. Calculate the distance between the human target and the dangerous object target based on the positions of the human target and the dangerous object target in the image frame.

[0058] If the dangerous target is a window target, the shortest distance between the human body frame and the window target is calculated. If the shortest distance reaches the set distance threshold, the distance between the ankle key point of the human body target and the lowest point of the window target is calculated; if the dangerous target is a socket target, the distance between the left and right wrist key points and the left and right ankle key points of the human body target and the socket target is calculated, and the minimum distance is output.

[0059] Specifically, after the supervised person enters the monitoring area, if the distance between the human body detection frame and the window detection frame is less than the preset minimum threshold (the empirical value is 10) and the height of the left ankle key point or the right ankle key point is higher than the lowest point of the window detection frame, it is determined to be a window climbing risk behavior; After the supervised person enters the monitoring area, if the distance between the left wrist key point, the right wrist key point, the left ankle key point, or the right ankle key point and the socket detection frame is less than the preset minimum threshold (the empirical value is 10), it is determined to be an electric shock risk behavior; After the supervised person enters the monitoring area, if the person fails to detect the human frame within the preset time threshold (the empirical value is 10 seconds), it is judged as a risk behavior of leaving the area.

[0060] S5. If the distance reaches a set distance threshold or the action combination matches a pre-stored dangerous action combination, it is determined that abnormal behavior exists in the surveillance video.

[0061] The video clips composed of corresponding image frames are stored; risk warning prompt information is generated, and the risk warning prompt information is sent to a remote terminal.

[0062] Specifically, when a risky behavior is determined, the behavior recognition and warning module will issue an alarm at the scene of the monitoring area, and provide an alarm prompt to the guardian's user terminal in real time, and save a 20-second video record before and after the alarm occurs. At this time, the guardian can use the two-way voice module to conduct real-time voice interaction with the supervised object in the monitoring area to prevent it from getting into danger.

[0063] In the case of misjudgment, the behavior recognition and early warning module allows users to make a second judgment on the judgment result. If the second judgment result occurs more than 10 times in total, the data feature extraction module will adaptively adjust the preset threshold in the judgment process. In addition, the behavior recognition and early warning module also allows the user guardian to select the switch of each risk judgment option.

[0064] In some embodiments, the abnormal behavior recognition system based on soft AI may include multiple functional modules composed of computer program segments. The computer program of each program segment in the abnormal behavior recognition system based on soft AI may be stored in the memory of a computer device and executed by at least one processor to perform (see Figure 1 Description) The function of abnormal behavior recognition based on soft AI.

[0065] In this embodiment, the abnormal behavior recognition system based on soft AI can be divided into multiple functional modules according to the functions it performs, such as Figure 3 As shown. The functional modules of the system 300 may include: a preprocessing module 310, a target recognition module 320, an action recognition module 330, a distance calculation module 340 and an abnormality recognition module 350. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0066] A preprocessing module is used to obtain a surveillance video and perform noise removal on the surveillance video to obtain multiple image frames; A target recognition module, used to recognize human targets and dangerous object targets from the image frame using a target detection model; An action recognition module is used to use the RTM model to identify the key points of the human body target, identify the action type of the human body target based on the relative positions between the key points of the human body, and integrate the action types of adjacent image frames into an action combination; A distance calculation module, used for calculating the distance between the human target and the dangerous object target based on the positions of the human target and the dangerous object target in the image frame; The abnormality recognition module is used to determine that abnormal behavior exists in the monitoring video if the distance reaches a set distance threshold or the action combination matches a pre-stored dangerous action combination.

[0067] Optionally, as an embodiment of the present invention, the preprocessing module includes: A video acquisition unit is used to acquire surveillance video through a high-definition camera and to acquire the ambient brightness of the high-definition camera through a photoelectric sensor. If the ambient brightness does not reach a set brightness threshold, the high-definition camera is controlled to turn on the night vision function; The preprocessing unit is used to perform multi-level encoding and downsampling processing, and multi-level decoding and upsampling processing on the surveillance video using the Unet structure of the image denoising algorithm, and perform skip connection design on the corresponding layers in the Unet structure through separable convolutional layers, fuse the feature maps of different layers, and obtain a denoised image frame.

[0068] Optionally, as an embodiment of the present invention, the target recognition unit includes: A model training unit, used for training a plurality of target detection models based on a target detection algorithm, a human target data set, and a dangerous target data set, respectively, wherein the plurality of target detection models are used for detecting human targets and dangerous target respectively; The target recognition unit is used to input the image frames into multiple target detection models respectively, and the multiple target detection models recognize the image frames in parallel, and store the target recognition results output by the multiple target detection models.

[0069] Optionally, as an embodiment of the present invention, the action recognition module includes: A point recognition unit, used to detect a human frame containing a human target using RTMdet of the RTM model, and detect human key points in the human frame using RTMpose of the RTM model, wherein the human key points include left and right shoulder key points, left and right hip key points, left and right ankle key points, and left and right wrist key points; A feature positioning unit, used to locate the midpoint of the left and right shoulder key points as the first feature point, locate the midpoint of the left and right hip key points as the second feature point, and locate the midpoint of the left and right ankle key points as the third feature point; An angle acquisition unit, used to sequentially connect the first feature point, the second feature point and the third feature point to obtain a bending angle of the human body; A first recognition unit, configured to determine that the action type of the human target is a standing state if the bending angle of the human body exceeds a set maximum threshold and the aspect ratio of the human body frame is lower than a set first ratio threshold; A second recognition unit is used to determine that the human body bending angle is between a set maximum threshold and a set minimum threshold, and the action type of the human body target is a bending state; a third recognition unit, configured to determine that the action type of the human target is a lying state if the bending angle of the human body exceeds a set maximum threshold and the aspect ratio of the human body frame exceeds a set second ratio threshold; The sequence recognition unit is used to set a time window, use the time window to select continuous image frames corresponding to a fixed time length, and sort the action types of the continuous image frames in chronological order to obtain an action combination.

[0070] Optionally, as an embodiment of the present invention, the distance calculation module includes: A first calculation unit is used for calculating the shortest distance between the human body frame and the window target if the dangerous object target is a window target, and if the shortest distance reaches a set distance threshold, calculating the distance between the ankle key point of the human body target and the lowest point of the window target; The second calculation unit is used to calculate the distance between the left and right wrist key points and the left and right ankle key points of the human body target and the socket target if the dangerous object target is a socket target, and output the minimum distance.

[0071] Optionally, as an embodiment of the present invention, the dangerous action combination includes: A combination of standing, bending and lying down in sequence, or a combination of standing and lying down in sequence.

[0072] Optionally, as an embodiment of the present invention, the system further includes: A video generation module, used for storing video clips composed of corresponding image frames; The warning generation module is used to generate risk warning prompt information and send the risk warning prompt information to a remote terminal.

[0073] Figure 4 A schematic diagram of the structure of a terminal 400 provided in an embodiment of the present invention, wherein the terminal 400 can be used to execute the abnormal behavior recognition method based on soft AI provided in an embodiment of the present invention.

[0074] The terminal 400 may include: a processor 410, a memory 420 and a communication unit 430. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0075] The memory 420 can be used to store the execution instructions of the processor 410, and the memory 420 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 420 are executed by the processor 410, the terminal 400 can perform some or all of the steps in the following method embodiments.

[0076] The processor 410 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 420, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 410 can include only a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0077] The communication unit 430 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.

[0078] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0079] Therefore, the present invention combines infrared night vision high-definition camera technology with artificial intelligence (AI) algorithms, and uses deep learning models to analyze and warn the behavior of monitored objects (such as the elderly and children), which is suitable for monitoring scenarios such as home monitoring and ward monitoring. In addition, the recognition of human movements is achieved through target recognition technology and human key point recognition technology combined with judgment logic, and the recognition of abnormal situations is achieved based on the recognized continuous movements. The abnormal behavior recognition method provided by the present invention has high accuracy, does not completely rely on artificial intelligence models, and has a small amount of calculation. The technical effects that can be achieved by this embodiment can be found in the description above, and will not be repeated here.

[0080] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.

[0081] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

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

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

[0084] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0085] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.

Claims

1. An abnormal behavior recognition system based on soft AI, characterized in that: include: A preprocessing module is used to obtain a surveillance video and perform noise removal on the surveillance video to obtain multiple image frames; A target recognition module, used to recognize human targets and dangerous object targets from the image frame using a target detection model; An action recognition module is used to use the RTM model to identify the key points of the human body target, identify the action type of the human body target based on the relative positions between the key points of the human body, and integrate the action types of adjacent image frames into an action combination; A distance calculation module, used for calculating the distance between the human target and the dangerous object target based on the positions of the human target and the dangerous object target in the image frame; The abnormality recognition module is used to determine that abnormal behavior exists in the monitoring video if the distance reaches a set distance threshold or the action combination matches a pre-stored dangerous action combination.

2. The system according to claim 1, characterized in that The preprocessing module comprises: A video acquisition unit is used to acquire surveillance video through a high-definition camera and to acquire the ambient brightness of the high-definition camera through a photoelectric sensor. If the ambient brightness does not reach a set brightness threshold, the high-definition camera is controlled to turn on the night vision function; The preprocessing unit is used to perform multi-level encoding and downsampling processing, and multi-level decoding and upsampling processing on the surveillance video using the Unet structure of the image denoising algorithm, and perform skip connection design on the corresponding layers in the Unet structure through separable convolutional layers, fuse the feature maps of different layers, and obtain a denoised image frame.

3. The system according to claim 1, characterized in that The target recognition unit comprises: A model training unit, used for training a plurality of target detection models based on a target detection algorithm, a human target data set, and a dangerous target data set, respectively, wherein the plurality of target detection models are used for detecting human targets and dangerous target respectively; The target recognition unit is used to input the image frames into multiple target detection models respectively, and the multiple target detection models recognize the image frames in parallel, and store the target recognition results output by the multiple target detection models.

4. The system according to claim 1, characterized in that The action recognition module comprises: A point recognition unit, used to detect a human frame containing a human target using RTMdet of the RTM model, and detect human key points in the human frame using RTMpose of the RTM model, wherein the human key points include left and right shoulder key points, left and right hip key points, left and right ankle key points, and left and right wrist key points; A feature positioning unit, used to locate the midpoint of the left and right shoulder key points as the first feature point, locate the midpoint of the left and right hip key points as the second feature point, and locate the midpoint of the left and right ankle key points as the third feature point; An angle acquisition unit, used to sequentially connect the first feature point, the second feature point and the third feature point to obtain a bending angle of the human body; A first recognition unit, configured to determine that the action type of the human target is a standing state if the bending angle of the human body exceeds a set maximum threshold and the aspect ratio of the human body frame is lower than a set first ratio threshold; A second recognition unit is used to determine that the human body bending angle is between a set maximum threshold and a set minimum threshold, and the action type of the human body target is a bending state; a third recognition unit, configured to determine that the action type of the human target is a lying state if the bending angle of the human body exceeds a set maximum threshold and the aspect ratio of the human body frame exceeds a set second ratio threshold; The sequence recognition unit is used to set a time window, use the time window to select continuous image frames corresponding to a fixed time length, and sort the action types of the continuous image frames in chronological order to obtain an action combination.

5. The system according to claim 4, characterized in that The distance calculation module comprises: A first calculation unit is used for calculating the shortest distance between the human body frame and the window target if the dangerous object target is a window target, and if the shortest distance reaches a set distance threshold, calculating the distance between the ankle key point of the human body target and the lowest point of the window target; The second calculation unit is used to calculate the distance between the left and right wrist key points and the left and right ankle key points of the human body target and the socket target if the dangerous object target is a socket target, and output the minimum distance.

6. The system according to claim 1, characterized in that The dangerous action combinations include: A combination of standing, bending and lying down in sequence, or a combination of standing and lying down in sequence.

7. The system according to claim 1, characterized in that The system further comprises: A video generation module, used for storing video clips composed of corresponding image frames; The warning generation module is used to generate risk warning prompt information and send the risk warning prompt information to a remote terminal.

8. A method for identifying abnormal behavior based on soft AI, characterized in that: include: Acquire a surveillance video, and perform noise removal on the surveillance video to obtain multiple image frames; Using a target detection model to identify human targets and dangerous object targets from the image frame; The RTM model is used to identify the key points of the human body, identify the action type of the human body based on the relative positions between the key points, and integrate the action types of adjacent image frames into action combinations; Calculating the distance between the human target and the dangerous object target based on the positions of the human target and the dangerous object target in the image frame; If the distance reaches a set distance threshold or the action combination matches a pre-stored dangerous action combination, it is determined that abnormal behavior exists in the surveillance video.

9. The method according to claim 8, characterized in that Acquire a surveillance video and perform noise reduction processing on the surveillance video to obtain multiple image frames, including: The surveillance video is collected by a high-definition camera, and the ambient brightness of the high-definition camera is collected by a photoelectric sensor. If the ambient brightness does not reach a set brightness threshold, the high-definition camera is controlled to turn on the night vision function; The surveillance video is subjected to multi-level encoding and downsampling processing, and multi-level decoding and upsampling processing by using the Unet structure of the image denoising algorithm. The corresponding layers in the Unet structure are skipped through separable convolutional layers, and the feature maps of different layers are fused to obtain a denoised image frame.

10. The method according to claim 8, characterized in that Using a target detection model to identify a human target and a dangerous object target from the image frame includes: Based on the target detection algorithm, the human target data set and the dangerous target data set, multiple target detection models are trained respectively, and the multiple target detection models are used to detect human targets and dangerous target respectively; The image frames are input into a plurality of target detection models respectively, the plurality of target detection models recognize the image frames in parallel, and the target recognition results output by the plurality of target detection models are stored.

Citation Information

Patent Citations

  • Infant monitoring method and device based on posture

    CN111797776A

  • Fall detection method based on key points

    CN112287759A

  • Behavior recognition method, system and device

    CN112580543A

  • Attitude flow-based fight behavior identification method

    CN113111733A

  • Dangerous behavior detection method and system based on machine vision and deep learning

    CN114782897A

Cited By

  • Abnormal behavior security early warning system based on multi-video image analysis

    CN119672932A

  • Intelligent monitoring method and system based on video analysis

    CN120126051A

  • Suspicious target detection method and device based on visible light image and thermal imaging

    CN121236800A

  • Suspicious Target Detection Method and Apparatus Based on Visible Light Images and Thermal Imaging

    CN121236800B

  • Access control abnormal behavior early warning system and method based on neural network

    CN121747040A