Family personnel behavior detection method and system and set top box

Through the camera and voice collection module combined with YOLOv8 and face detection algorithms, combined with the deep neural network to process image and audio information, domestic violence behavior is comprehensively judged, which solves the problem of low detection accuracy in the existing technology and achieves higher behavior detection. Accuracy and timely intervention.

CN118573933APending Publication Date: 2024-08-30SHANDONG ARTAPLAY INTELLIGENT TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410663807.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing technology has low accuracy in family behavior detection and is mostly based on a single factor, which affects the judgment of the results.

Method used

A camera is used to acquire images and a pre-trained violent behavior detection model is used, the YOLOv8 algorithm and the face detection algorithm are combined for feature extraction and fusion, and the voice collection module and deep neural network are combined for audio feature processing to comprehensively determine domestic violence.

Benefits of technology

It improves the accuracy of domestic violence detection and feature extraction precision, reduces missed detections and misdetections, and timely detects and intervenes in domestic violence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573933A
    Figure CN118573933A
Patent Text Reader

Abstract

The invention relates to the field of human body behavior detection, and particularly discloses a family person behavior detection method and system and a set top box, and the method comprises the steps: obtaining a to-be-processed image of a target area through a camera; to-be-processed audio is acquired through the voice acquisition module; inputting the to-be-processed image into a pre-trained violent behavior detection model for processing to obtain a violent behavior detection result; the violent behavior detection model is realized based on a YOLOv8 algorithm and a face detection algorithm; inputting the to-be-processed audio into a pre-trained speech recognition model for processing to obtain a violent threat detection result; according to the violent behavior detection result and the violent threat detection result, judging whether a family violent behavior exists in the current environment or not; if yes, alarm information is sent to the user members. According to the method, the image and audio information is processed by using the pre-trained violent behavior detection model and the voice recognition model, and the judgment is comprehensively performed based on the two types of detection results, so that the detection accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of human behavior detection, and in particular to a method, system and set-top box for detecting the behavior of family members. Background Art

[0003] With the continuous development of science and technology, especially the increasing maturity of computer vision and speech recognition technology, new ideas have been provided for the detection of family members' behavior. However, the current recognition of family members by computer technology is mostly based on processing a single factor, such as being limited to processing videos or limited to processing languages, which affects the accuracy of human behavior detection. In addition, the current detection technology has low accuracy, which affects the result judgment. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a method, system and set-top box for detecting the behavior of family members, so as to improve the accuracy of detection.

[0005] In a first aspect, the technical solution of the present invention provides a method for detecting the behavior of family members, comprising the following steps: Acquire the image to be processed of the target area through the camera; Obtain the audio to be processed through the voice acquisition module; Inputting the image to be processed into a pre-trained violent behavior detection model for processing to obtain a violent behavior detection result; the violent behavior detection model is implemented based on the YOLOv8 algorithm and the face detection algorithm; Input the audio to be processed into a pre-trained speech recognition model for processing to obtain a violent threat detection result; Use the violent behavior detection results and violent threat detection results to determine whether there is domestic violence in the current environment; If it exists, send a warning message to the user member.

[0006] In an optional implementation, the image to be processed is input into a pre-trained violent behavior detection model for processing to obtain a violent behavior detection result, specifically including: Use the YOLOv8 algorithm to extract the target parts of the human body in the image to be processed; Conduct trajectory analysis on target parts of the human body to identify physical conflict information; Use face detection algorithm to extract the face area in the image to be processed; Use convolutional neural network to recognize facial expressions and obtain recognition expression information; The physical conflict information and facial expression recognition information are fused, and the fused features are input into the pre-trained classifier to obtain the violent behavior detection results.

[0007] In an optional implementation, the audio to be processed is input into a pre-trained speech recognition model for processing to obtain a violent threat detection result, specifically including: Preprocess the audio to be processed; Segment the preprocessed audio to be processed to obtain audio frames; Extract time domain features for each audio frame; Calculate the rate of change of the extracted features to obtain the dynamic time-domain feature vector; The dynamic time-domain feature vector is processed through a deep neural network to recognize the speech signal and obtain the violent threat detection result.

[0008] In an optional implementation, judging whether there is domestic violence in the current environment based on the violent behavior detection results and the violent threat detection results specifically includes: Determine whether the probability of violent behavior exceeds a maximum threshold according to the violent behavior detection result; If so, it is determined that domestic violence exists in the current environment; If not, determine whether the probability of violent behavior is between the minimum threshold and the maximum threshold; If not, it is determined that there is no domestic violence in the current environment; if so, it is determined whether there is violent threatening language at present based on the violence threat detection result; if so, it is determined that there is domestic violence in the current environment; if not, it is determined that there is no domestic violence in the current environment.

[0009] In an optional implementation manner, sending warning information to user members specifically includes: Send SMS alert information to user members through the server.

[0010] In an optional implementation, obtaining the image to be processed of the target area through a camera specifically includes: Obtain camera configuration parameters, wherein the configuration parameters include a running time period; The timer is used to count the time. When the running time is reached, the camera is started to shoot the video to obtain the image to be processed in the target area.

[0011] In an optional implementation, if it is determined that domestic violence exists in the current environment, the following steps are further performed: The video and voice data are stored within a preset time period before and after the domestic violence occurs.

[0012] In a second aspect, the technical solution of the present invention provides a family member behavior detection system, comprising: Image acquisition unit: acquires the image to be processed of the target area through a camera; Audio acquisition unit: obtains the audio to be processed through the voice acquisition module; Violence detection unit: inputs the image to be processed into a pre-trained violence detection model for processing to obtain a violence detection result; Violence threat detection unit: inputs the audio to be processed into a pre-trained speech recognition model for processing to obtain a violence threat detection result; Violence identification unit: determines whether there is domestic violence in the current environment through the results of violence detection and violence threat detection; Alarm unit: If it exists, send alarm information to user members.

[0013] In a third aspect, the technical solution of the present invention provides a set-top box, which is provided with a camera, and is provided with a voice acquisition module, a memory and a processor; the camera, the language acquisition module and the memory are electrically connected to the processor respectively; The memory is used to store a family member behavior detection program; The processor is used to implement the steps of the household behavior detection method as described in any of the above items when executing the household behavior detection program.

[0014] In an optional embodiment, the camera is arranged on the front side of the set-top box.

[0015] Compared with the prior art, the present invention provides a method, system and set-top box for detecting the behavior of family members, which have the following beneficial effects: the image and audio information inside the family are obtained in real time through a camera and a voice acquisition module, providing a data source for timely detection of domestic violence and timely intervention; at the same time, the image and audio information are processed using a pre-trained violence detection model and a voice recognition model, and a comprehensive judgment is made based on the two types of detection results, thereby improving the accuracy of detection; wherein the violence detection model is implemented based on the YOLOv8 algorithm and the face detection algorithm, thereby improving the feature extraction accuracy and cooperating with the face expression recognition to improve the accuracy of violence detection. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 It is a flow chart of a method for detecting the behavior of family members provided in an embodiment of the present invention.

[0017] Figure 2 The present invention provides a schematic block diagram of a system for detecting the behavior of family members according to an embodiment of the present invention.

[0018] Figure 3 The diagram is a schematic diagram of a set-top box circuit principle provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0019] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0020] 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.

[0021] Figure 1 This is a flow chart of a method for detecting the behavior of family members provided by an embodiment of the present invention. Figure 1 The execution subject may be a family member behavior detection system. The family member behavior detection method provided in the embodiment of the present invention is executed by a computer device, and accordingly, the family member behavior detection system runs in the computer device. According to different requirements, the order of the steps in the flowchart may be changed, and some may be omitted.

[0022] like Figure 1 As shown, the method includes the following steps: S1, obtaining an image to be processed of a target area through a camera.

[0023] In this embodiment, a camera is used to shoot a video of the target area, and a screenshot of the video image is taken to obtain an image to be processed.

[0024] In this embodiment, the camera parameters can be pre-configured, and the configured parameters include the operating time period, which is then timed by a timer. When the operating time period is reached, the camera is started to shoot a video to obtain the image to be processed in the target area.

[0025] S2, obtaining the audio to be processed through the voice collection module.

[0026] In this embodiment, the sound of the surrounding environment is collected by the voice collection module to obtain the audio to be processed.

[0027] S3, inputting the image to be processed into a pre-trained violent behavior detection model for processing to obtain a violent behavior detection result.

[0028] The violent behavior detection model of this embodiment is implemented based on the YOLOv8 algorithm and the face detection algorithm, and specifically includes the following steps.

[0029] S3.1, use the YOLOv8 algorithm to extract the human target parts in the image to be processed.

[0030] This embodiment adopts the YOLOv8 algorithm for target processing. Compared with traditional deep learning models, YOLOv8 has shown significant advantages in detection speed, accuracy and practicality. In this embodiment, human target parts, such as hands, feet and other key parts, can be accurately and quickly detected, and behavioral analysis of these parts is subsequently performed to provide a data basis for subsequent violent behavior detection.

[0031] S3.2, perform trajectory analysis on the target parts of the human body to identify physical conflict information.

[0032] This step uses trajectory analysis based on the target part of the human body to identify physical conflict information. For example, for the target in continuous frames, its motion trajectory, such as speed, acceleration, direction, etc., is analyzed to identify possible physical conflict information.

[0033] S3.3, using a face detection algorithm to extract the face area in the image to be processed.

[0034] S3.4, using a convolutional neural network to perform facial expression recognition on the face area to obtain recognized expression information.

[0035] Exemplarily, MTCNN is used to detect the face area in the image, and then a convolutional neural network is used to perform expression recognition on the face area, such as extracting expression features such as anger, tension, fear, etc., to form recognized expression information.

[0036] S3.5, perform feature fusion on the physical conflict information and the facial expression recognition information, and input the fused features into a pre-trained classifier to obtain the violent behavior detection result.

[0037] Pre-train a classifier, such as a support vector machine (SVM), random forest, or neural network, and process the fused features using the classifier to obtain violent behavior detection results, such as the probability of violent behavior.

[0038] This embodiment collects a large number of images in advance and marks samples for training, learning and identifying characteristic patterns related to violent behavior. These features include not only direct physical conflicts, such as pushing, hitting and other physical movements, but also more subtle changes in facial expressions, such as angry eyes, tense facial muscles, and expressions of fear or pain. When domestic violence occurs, the body movements and expressions of family members are analyzed to identify possible violent behaviors such as physical conflicts and threatening gestures at the first time.

[0039] This embodiment uses the YOLOv8 algorithm to extract the target parts of the human body, which significantly improves the detection speed. At the same time, the YOLOv8 algorithm also performs well in terms of accuracy, and can accurately capture key parts of the human body, such as hands and feet, providing a reliable data basis for subsequent behavior analysis. Through trajectory analysis, the target parts of the human body are carefully analyzed, and possible physical conflict information can be identified. This method not only considers the position of the target part, but also considers its motion trajectory, speed, acceleration and direction, so as to more accurately judge whether there is violent behavior. At the same time, the face detection algorithm and the convolutional neural network are combined for facial expression recognition, which provides another important reference indicator for violent behavior detection. Expression features such as anger, tension, and fear are important precursors of violent behavior. By identifying these expressions, potential violent incidents can be warned and intervened earlier. By fusing the physical conflict information and the recognition expression information, information from two different sources can be comprehensively utilized to improve the accuracy of violent behavior detection. This fusion method can capture more comprehensive behavioral characteristics and reduce missed detection and false detection.

[0040] S4, inputting the audio to be processed into a pre-trained speech recognition model for processing to obtain a violent threat detection result.

[0041] This step recognizes violent threatening speech contained in speech based on a deep neural network, and specifically includes the following steps.

[0042] S4.1, pre-processing the audio to be processed.

[0043] Before model training, the audio is preprocessed, including sampling rate conversion, framing, windowing, and Mel filter bank conversion (MFCC) to generate feature vectors that can be used as CNN input.

[0044] S4.2, segment the audio to be processed to obtain audio frames.

[0045] S4.3, extract time domain features for each audio frame.

[0046] S4.4, calculate the rate of change of the extracted features to obtain the dynamic time domain feature vector.

[0047] The dynamic time domain feature used in this embodiment is a speech feature extraction method based on the time domain, which takes into account the temporal changes of the speech signal, wherein the time domain feature includes the calculation of amplitude, frequency, time and other features.

[0048] S4.5, the dynamic time domain feature vector is processed through a deep neural network to recognize the speech signal to obtain a violent threat detection result.

[0049] A large amount of annotated speech data is used for deep neural network training. The annotated speech includes screams, crying, quarrels and other characteristic speech during domestic violence, so that the neural network can accurately identify various speech signals. After obtaining the sampling features in the training data set, the speech features are extracted and compressed through the convolutional neural network. First, the speech features are convolved to obtain the output of the convolution layer, and then the output of the convolution layer is pooled to obtain the output of the pooling layer. Finally, the output of the pooling layer is fully connected to obtain the final prediction result.

[0050] This embodiment is based on a threat speech recognition algorithm trained by a deep neural network, which is able to recognize a series of voice features related to domestic violence, including but not limited to: Scream: A high-pitched, sudden outburst of sound, often accompanied by an emotional expression of panic or pain. Crying: Sustained, sad breathing patterns, especially those of children, are easily recognized because of their unique frequency characteristics. Loud arguments: High-decibel, emotionally charged conversations with the characteristic vocabulary and inflection of verbal conflict. The sound of objects colliding: such as furniture moving, objects being thrown, etc., these sounds are often associated with physical conflicts or emotionally out-of-control behaviors. S5, judging whether there is domestic violence in the current environment through the violent behavior detection results and the violent threat detection results.

[0051] This embodiment confirms whether domestic violence behavior exists through two aspects: violent behavior detection results and violent threat detection results, which can improve the accuracy of behavior detection results and ensure effective identification of violent behavior. Specifically, the following steps are included.

[0052] S5.1, judging whether the probability of the existence of violent behavior exceeds a maximum threshold according to the violent behavior detection result.

[0053] S5.2: If yes, it is determined that domestic violence exists in the current environment.

[0054] S5.3, if not, determine whether the probability of violent behavior is between the minimum threshold and the maximum threshold.

[0055] S5.4, if not, it is determined that there is no domestic violence in the current environment; if so, determine whether there is violent threatening language at present based on the violence threat detection result; if so, it is determined that there is domestic violence in the current environment; if not, it is determined that there is no domestic violence in the current environment.

[0056] This embodiment first makes a judgment based on the violent behavior detection results. If the probability of violent behavior is high, it is directly determined that domestic violence exists. If the probability of violent behavior is low, it is determined that there is no domestic violence. For the state where the probability is in the middle area, a judgment is made in combination with violent threatening voice. If there is violent threatening voice, it is determined that domestic violence exists in the current environment.

[0057] This embodiment can more comprehensively and accurately assess whether there is violence in the family environment by considering both the violent behavior detection results and the violent threat detection results, which helps to reduce misjudgments and missed judgments and ensure accurate identification of domestic violence. A double verification method is adopted, that is, a preliminary judgment is first made through the violent behavior detection results, and then further confirmed in combination with the violent threat detection results, which can enhance the reliability of the judgment and avoid misjudgment caused by a single factor. At the same time, by setting the maximum threshold and the minimum threshold, the judgment criteria can be adjusted according to the actual situation, which can adapt to the needs of different scenarios and improve its practicality and applicability. In the case that the violent behavior detection results are unclear, by considering the violent threat detection results, potential violent threats can be discovered in time. This helps to take measures in advance to prevent the occurrence of violent behavior and protect the safety of family members.

[0058] S6: If it exists, send a warning message to the user member.

[0059] This embodiment promptly reports domestic violence alarms after domestic violence occurs, notifies domestic violence assistance organizations or designates emergency contacts, and provides a new way to prevent and intervene in domestic violence. For example, a text message alarm is sent to user members through a server. In addition, if it is determined that domestic violence exists in the current environment, video data and voice data within a preset time before and after the domestic violence occurs are stored for recording and evidence collection, providing strong evidence support for subsequent problem handling.

[0060] An embodiment of a method for detecting the behavior of household members is described in detail above. Based on the method for detecting the behavior of household members described in the above embodiment, an embodiment of the present invention also provides a system for detecting the behavior of household members corresponding to the method.

[0061] Figure 2 This is a schematic block diagram of the structure of a family member behavior detection system provided by an embodiment of the present invention. The family member behavior detection system can be divided into multiple functional units according to the functions it performs. The unit 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.

[0062] Image acquisition unit: acquires the image to be processed of the target area through the camera.

[0063] Audio acquisition unit: obtains the audio to be processed through the voice acquisition module.

[0064] Violence detection unit: The image to be processed is input into a pre-trained violence detection model for processing to obtain a violence detection result.

[0065] Violence threat detection unit: The audio to be processed is input into a pre-trained speech recognition model for processing to obtain a violence threat detection result.

[0066] Violence identification unit: determines whether there is domestic violence in the current environment through violence detection results and violence threat detection results.

[0067] Alarm unit: If it exists, send alarm information to user members.

[0068] The household behavior detection system of the present embodiment is used to implement the aforementioned household behavior detection method. Therefore, the specific implementation method of the system can be seen in the embodiment section of the household behavior detection method in the previous text. Therefore, its specific implementation method can refer to the description of the corresponding embodiments of each part and will not be introduced in detail here.

[0069] In addition, since the household behavior detection system of this embodiment is used to implement the aforementioned household behavior detection method, its function corresponds to that of the aforementioned method and will not be repeated here.

[0070] This embodiment provides a set-top box. Figure 3 The schematic diagram of the circuit principle of the set-top box provided by the embodiment of the present invention is a camera provided on the set-top box, and a voice acquisition module, a memory and a processor are provided in the set-top box. The camera, the voice acquisition module and the memory are electrically connected to the processor respectively. The camera is provided on the front side of the set-top box, and the interface can be located on the side of the set-top box to avoid various data lines from blocking the image acquisition device.

[0071] Among them, the memory is used to store the household behavior detection program; the processor is used to implement the steps of the household behavior detection method as described in the above embodiment when executing the household behavior detection program.

[0072] As a ubiquitous household device, the set-top box has the potential to become a carrier of domestic violence monitoring technology. In this embodiment, the set-top box can be used to detect in real time whether there is domestic violence in the family, and timely feedback to notify domestic violence assistance organizations or designated emergency contacts, providing a new way to prevent and intervene in domestic violence.

[0073] The above disclosure is only a preferred embodiment of the present invention, but the present invention is not limited thereto. Any non-creative changes that can be thought of by a person skilled in the art, as well as several improvements and modifications made without departing from the principle of the present invention, should fall within the protection scope of the present invention.

Claims

1. A method for detecting family member behavior, characterized in that: The following steps are involved: Acquire the image to be processed of the target area through the camera; Obtain the audio to be processed through the voice acquisition module; Inputting the image to be processed into a pre-trained violent behavior detection model for processing to obtain a violent behavior detection result; the violent behavior detection model is implemented based on the YOLOv8 algorithm and the face detection algorithm; Input the audio to be processed into a pre-trained speech recognition model for processing to obtain a violent threat detection result; Use the violent behavior detection results and violent threat detection results to determine whether there is domestic violence in the current environment; If it exists, send a warning message to the user member.

2. The method for detecting family member behavior according to claim 1, characterized in that: The image to be processed is input into the pre-trained violent behavior detection model for processing to obtain the violent behavior detection results, including: Use the YOLOv8 algorithm to extract the target parts of the human body in the image to be processed; Conduct trajectory analysis on target parts of the human body to identify physical conflict information; Use face detection algorithm to extract the face area in the image to be processed; Use convolutional neural network to recognize facial expressions and obtain recognition expression information; The physical conflict information and facial expression recognition information are fused, and the fused features are input into the pre-trained classifier to obtain the violent behavior detection results.

3. The method for detecting family member behavior according to claim 2, characterized in that: The audio to be processed is input into the pre-trained speech recognition model for processing to obtain the violent threat detection results, including: Preprocess the audio to be processed; Segment the preprocessed audio to be processed to obtain audio frames; Extract time domain features for each audio frame; Calculate the rate of change of the extracted features to obtain the dynamic time-domain feature vector; The dynamic time-domain feature vector is processed through a deep neural network to recognize the speech signal and obtain the violent threat detection result.

4. The method for detecting family member behavior according to claim 3, characterized in that: The results of violence behavior detection and violence threat detection are used to determine whether there is domestic violence in the current environment, including: Determine whether the probability of violent behavior exceeds a maximum threshold according to the violent behavior detection result; If so, it is determined that domestic violence exists in the current environment; If not, determine whether the probability of violent behavior is between the minimum threshold and the maximum threshold; If not, it is determined that there is no domestic violence in the current environment; if so, it is determined whether there is violent threatening language at present based on the violence threat detection result; if so, it is determined that there is domestic violence in the current environment; if not, it is determined that there is no domestic violence in the current environment.

5. The method for detecting the behavior of family members according to any one of claims 1 to 4, characterized in that: Send warning information to user members, including: Send SMS alert information to user members through the server.

6. The method for detecting the behavior of family members according to any one of claims 1 to 4, characterized in that: The image to be processed of the target area is obtained through the camera, including: Obtain camera configuration parameters, wherein the configuration parameters include a running time period; The timer is used to count the time. When the running time is reached, the camera is started to shoot the video to obtain the image to be processed in the target area.

7. The method for detecting the behavior of family members according to any one of claims 1 to 4, characterized in that: If it is determined that domestic violence exists in the current environment, the following steps are also performed: The video and voice data are stored within a preset time period before and after the domestic violence occurs.

8. A family member behavior detection system, characterized in that: include, Image acquisition unit: acquires the image to be processed of the target area through a camera; Audio acquisition unit: obtains the audio to be processed through the voice acquisition module; Violence detection unit: inputs the image to be processed into a pre-trained violence detection model for processing to obtain a violence detection result; Violence threat detection unit: inputs the audio to be processed into a pre-trained speech recognition model for processing to obtain a violence threat detection result; Violence identification unit: determines whether there is domestic violence in the current environment through the results of violence detection and violence threat detection; Alarm unit: If it exists, send alarm information to user members.

9. A set-top box, characterized in that: A camera is arranged on the set-top box, and a voice acquisition module, a memory and a processor are arranged inside the set-top box; the camera, the language acquisition module and the memory are electrically connected to the processor respectively; The memory is used to store a family member behavior detection program; The processor is used to implement the steps of the household behavior detection method as described in any one of claims 1-7 when executing the household behavior detection program.

10. The set-top box according to claim 9, characterized in that: The camera is arranged on the front side of the set-top box.

Citation Information

Cited By

  • Behavior detection method, system, device and equipment and storage medium

    CN119170009A

  • Security protection method and device, electronic equipment and readable storage medium

    CN119832684A