A security monitoring method, device, storage medium, electronic equipment and air conditioner
The convolutional neural network model is used to extract body shape and behavioral features from image data, which solves the problem of low recognition rate in the existing technology, realizes intelligent security monitoring and automatic identification of criminal behaviors, and improves monitoring efficiency.
Patent Information
- Application Number
- CN202010657812.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-09
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-07-09
AI Technical Summary
Among existing security monitoring technologies, camera technology results in low recognition rates, the inability to automatically identify criminal acts, and the lack of intelligent monitoring capabilities.
Use a pre-trained convolutional neural network model to extract body shape features and classify behavior from the image data, match the body shape features through the first convolutional neural network model, and use the second convolutional neural network model to extract behavioral features when they do not match. and classification to realize the identification and behavior monitoring of non-security personnel.
It improves the identification ability of monitoring, realizes intelligent identification and behavior classification of non-security personnel, greatly improves the efficiency of security monitoring, and can automatically identify criminal behaviors and trigger security warnings.
Smart Images

Figure CN111881946B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image detection technology, and in particular to a security monitoring method, device, storage medium, electronic equipment and air conditioner. Background Art
[0002] With the development of technology and the improvement of living standards, people's awareness of security monitoring in their living spaces has gradually increased. In the prior art, cameras are usually used to monitor the target space for security, so that video data containing criminal acts or objects of criminal acts can be stored for subsequent use or for real-time monitoring. However, due to the limitations of camera technology, it usually leads to low recognition rate, inability to identify disguises, and the need for manual identification of whether there is criminal behavior, thus failing to achieve the effect of automatically identifying crimes and other behaviors and intelligently performing security monitoring. Summary of the invention
[0003] The technical problem to be solved by the present invention is: how to improve the recognition ability of monitoring to realize intelligent security monitoring.
[0004] In order to solve the above technical problems, the present invention provides a security monitoring method, device, storage medium, electronic equipment and air conditioner.
[0005] A first aspect of the present invention provides a security monitoring method, comprising:
[0006] Get image data;
[0007] Inputting the image data into a pre-trained first convolutional neural network model;
[0008] Extracting body shape features from the image data based on the first convolutional neural network model and determining whether the body shape features match data in a body shape feature library of security personnel;
[0009] When the recognition result output by the first convolutional neural network model is mismatched, inputting the mismatched image data into a pre-trained second convolutional neural network model;
[0010] The second convolutional neural network model is used to extract behavioral features and classify behaviors of the unmatched image data to obtain behavior classification results, wherein the behavior classification results include crime and normal.
[0011] Preferably, the Softmax activation function is used as the classification layer function of the second convolutional neural network model.
[0012] The second convolutional neural network model is used to extract behavioral features and classify behaviors of the unmatched image data to obtain a behavior classification result, including:
[0013] Using the second convolutional neural network model including the Softmax activation function, extracting behavior features from the unmatched image data and obtaining behavior categories and category probabilities of the behavior features;
[0014] Based on the behavior category and category probability of the behavior feature, a behavior classification result of the behavior feature is obtained.
[0015] Preferably, the acquiring of image data includes: acquiring multiple frames of image data within a first time period.
[0016] Preferably, obtaining a behavior classification result of the behavior feature based on the behavior category and category probability of the behavior feature includes:
[0017] Calculate the average category probability that the behavior characteristics belong to the criminal behavior category during the first time period;
[0018] Determining whether the average category probability of the behavior characteristic belonging to the criminal behavior category is greater than a first threshold;
[0019] When the average category probability that the behavior feature belongs to the criminal behavior category is greater than the first threshold, the behavior classification result in the first time period is determined to be a crime.
[0020] Preferably, the security monitoring method further comprises:
[0021] Acquire multiple frames of image data in a second time period and a third time period and behavior classification results corresponding to the second time period and the third time period respectively from the first time period in a time-delayed manner, wherein the first time period, the second time period and the third time period constitute a behavior classification acquisition time period;
[0022] Determine whether the percentage of the time periods in which the behavior classification results are crimes to the behavior classification collection time period is greater than a second threshold;
[0023] It is determined that the percentage of the number of time periods in which the behavior classification result is a crime in the behavior classification collection time period is greater than the second threshold, triggering a security warning;
[0024] It is determined that the percentage of time periods in which the behavior classification results are crimes in the behavior classification collection time period is less than or equal to the second threshold value, and multiple frames of image data in a fourth time period and the behavior classification results corresponding to the fourth time period are obtained in sequence from the third time period to determine whether to trigger a security warning based on the behavior classification results of the second time period, the third time period and the fourth time period.
[0025] Preferably, obtaining multiple frames of image data in a second time period and a third time period respectively along the time delay from the first time period includes: obtaining multiple frames of image data in a second time period and a third time period respectively along the time delay from the first time period, wherein the second time period and the third time period have the same length as the first time period.
[0026] Preferably, triggering the safety warning includes: sending warning information to a preset receiving end and / or activating an alarm device.
[0027] Preferably, the image data is acquired using an infrared camera.
[0028] A second aspect of the present invention provides a security monitoring device, comprising:
[0029] An image acquisition module, which is used to acquire image data;
[0030] An image input module, which is used to input the image data into a pre-trained first convolutional neural network model;
[0031] A data matching module, which is used to extract body shape features in the image data based on the first convolutional neural network model and determine whether the body shape features match data in a body shape feature library of security personnel;
[0032] A data input module, which is used to input the unmatched image data into a pre-trained second convolutional neural network model when the recognition result output by the first convolutional neural network model is unmatched;
[0033] A behavior classification module is used to use the second convolutional neural network model to extract behavior features and classify behavior of the unmatched image data to obtain a behavior classification result, wherein the behavior classification result includes crime and normal.
[0034] According to a third aspect of the present invention, a storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the security monitoring method as described above can be implemented.
[0035] A fourth aspect of the present invention provides an electronic device, which includes an image acquisition device, a processor and a memory, wherein the memory stores a computer program, and when the processor executes the computer program stored in the memory, the security monitoring method as described above can be implemented.
[0036] A fifth aspect of the present invention provides an air conditioner, which includes an air conditioner body, an image acquisition device, a processor and a memory, wherein a computer program is stored in the memory, and when the processor executes the computer program stored in the memory, the security monitoring method as described above can be implemented.
[0037] Compared with the prior art, one or more embodiments of the above scheme may have the following advantages or beneficial effects:
[0038] The security monitoring method, device, storage medium, electronic device and air conditioner of the present invention are applied, by acquiring image data, inputting the image data into a pre-trained first convolutional neural network model, extracting body features in the image data based on the first convolutional neural network model and judging whether the body features match the data in the body feature library of security personnel, when the recognition result output by the first convolutional neural network model is mismatched, inputting the mismatched image data into a pre-trained second convolutional neural network model, and then using the second convolutional neural network model to extract behavioral features and classify behaviors of the mismatched image data, obtaining behavior classification results, so as to realize security monitoring, wherein the behavior classification results include crime and normal. This method can improve the recognition ability of monitoring, realize the recognition of non-security personnel, and strengthen the behavior monitoring of non-security personnel and intelligent behavior classification, thereby greatly improving the efficiency of security monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The scope of the present disclosure may be better understood by reading the following detailed description of exemplary embodiments in conjunction with the accompanying drawings. The drawings included are:
[0040] Figure 1 A schematic diagram of a process flow of a security monitoring method provided by an embodiment of the present invention is shown;
[0041] Figure 2 A second convolutional neural network model provided by an embodiment of the present invention is shown;
[0042] Figure 3 A flow chart of a method for determining body shape characteristic behavior classification results provided by an embodiment of the present invention is shown;
[0043] Figure 4 A schematic diagram of a flow chart of a security monitoring method provided by another embodiment of the present invention is shown;
[0044] Figure 5 A schematic diagram of the structure of a security monitoring device provided by an embodiment of the present invention is shown;
[0045] Figure 6 A structural schematic diagram of an air conditioner provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0046] In order to make the objectives, technical solutions and advantages of the present invention clearer, the implementation method of the present invention will be described in detail below in conjunction with the accompanying drawings and embodiments, so that the implementation process of how the present invention applies technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.
[0047] With the development of technology and the improvement of living standards, people's awareness of security monitoring in their living spaces has gradually increased. In the prior art, cameras are usually used to monitor the target space for security, so that video data containing criminal acts or objects of criminal acts can be stored for subsequent use or for real-time monitoring. However, due to the limitations of camera technology, it usually leads to low recognition rate, inability to identify disguises, and the need for manual identification of whether there is criminal behavior, thus failing to achieve the effect of automatically identifying crimes and intelligent security monitoring.
[0048] In view of this, the present invention provides a security monitoring method, device, storage medium, electronic device and air conditioner, which obtain image data, input the image data into a pre-trained first convolutional neural network model, extract body features in the image data based on the first convolutional neural network model and judge whether the body features match the data in the body feature library of security personnel, when the recognition result output by the first convolutional neural network model is mismatched, input the mismatched image data into a pre-trained second convolutional neural network model, and then use the second convolutional neural network model to extract behavioral features and classify behaviors of the mismatched image data, and obtain the behavior classification results of the body features to achieve security monitoring, wherein the behavior classification results include crime and normal. This method can improve the recognition ability of monitoring, realize the identification of non-security personnel, and strengthen the behavior monitoring of non-security personnel and intelligent behavior classification, thereby greatly improving the efficiency of security monitoring.
[0049] The security monitoring method provided by the present invention can be applied to security monitoring in various scenarios. In the embodiments of the present invention, the security monitoring method provided by the present invention will be described by taking application in a room as an example.
[0050] Embodiment 1
[0051] See also Figure 1 As shown, Figure 1 A schematic flow chart of a security monitoring method provided by an embodiment of the present invention is shown.
[0052] Step S101: Acquire image data.
[0053] Step S102: input the image data into a pre-trained first convolutional neural network model.
[0054] Step S103: extracting body shape features from the image data based on the first convolutional neural network model and determining whether the body shape features match the data in the security personnel body shape feature library.
[0055] Step S104: When the recognition result output by the first convolutional neural network model is mismatched, the mismatched image data is input into a pre-trained second convolutional neural network model.
[0056] Step S105: Use the second convolutional neural network model to extract behavioral features and classify behaviors of the unmatched image data to obtain behavior classification results, which include crime and normal.
[0057] In the embodiment of the present invention, step S101 may specifically be to obtain image data using an infrared camera device, which can obtain clearer images and is suitable for collecting images in poor light environments such as at night. Step S101 may also be to directly obtain image data uploaded to a local computer via a transmission method such as Bluetooth or Wifi.
[0058] Wherein, acquiring the image data may be acquiring multiple frames of image data within a first time period, and inputting the multiple frames of image data as test data into the first convolutional neural network model. Acquiring the multiple frames of image data within the first time period may be randomly selected or selected in an interval frame manner. By acquiring multiple frames of image data as test data, the reliability of the recognition result can be improved.
[0059] In step S102, the pre-trained first convolutional neural network model (Convolutional Neural Networks, CNN) can collect the body features of the room owner and other family members to establish a security personnel body feature library, use the data in the security personnel body feature library as training data, and set training parameters to train the first convolutional neural network model. After obtaining the trained first convolutional neural network model, the acquired image data is input into the first convolutional neural network model as test data.
[0060] In step S103, the body shape features in the image data are extracted based on the first convolutional neural network model and it is determined whether the body shape features match the data in the body shape feature library of security personnel. As an example, the body shape features may include the body shape outline or height features of the person. When the body shape features match the data in the body shape feature library of security personnel, the person is identified as a family member. When the person is identified as a family member, the process returns to step S101 to reacquire the image data. When the body shape features do not match the data in the body shape feature library of security personnel, the person is identified as a stranger, and step S104 is further executed based on the body shape features of the stranger.
[0061] In the embodiment of the present invention, the Softmax activation function can be used as the classification layer function of the second convolutional neural network model. As an example, see Figure 2 As shown, Figure 2 A second convolutional neural network model provided by an embodiment of the present invention is shown, which includes an input layer, an activation layer, a classification layer and an output layer. Among them, the activation layer can select convolutional neural network features (CNN Features) according to needs, and the second convolutional neural network model can be trained by using the behavioral features of criminal behavior and the behavioral features of normal behavior as training data. As an example, the behavioral features can also include the posture of the monitored person or the actions that occur when performing criminal behaviors such as theft. The second convolutional neural network model can be used to distinguish the behavior category and the category probability of the behavior to which the behavioral features belong. In order to monitor the security of the room, in step S104, the unmatched image data can be input into the second convolutional neural network model as test data.
[0062] In an embodiment of the present invention, step S105 may be to use a second convolutional neural network model including a Softmax activation function to extract behavioral features from unmatched image data and obtain the behavioral categories and category probabilities of the behavioral features; based on the behavioral categories and category probabilities of the behavioral features, obtain the behavioral classification results of the behavioral features.
[0063] Among them, the behavior categories may include criminal behavior and normal behavior, and the classification results may include criminal and normal.
[0064] As an example, based on the behavior category and category probability of the behavior feature, the behavior classification result of the behavior feature can be obtained as follows: when the first convolutional neural network model is used to identify a body feature that does not match the data in the body feature library of the security personnel in a frame of image data, after the image data corresponding to the body feature is input into the second convolutional neural network model, the behavior feature in the image data is extracted using the second convolutional neural network model, and the behavior feature is classified using the Softmax activation function to obtain the behavior category and category probability, and the behavior category corresponding to the larger category probability in the output result of the second convolutional neural network model is selected as the behavior classification result of the behavior feature in the image data, thereby achieving security monitoring. As a specific example, when a frame of image data is input into the second neural network model, the output result may include: criminal behavior 70%, normal behavior 30%, wherein the behavior probability corresponding to the criminal behavior is greater than the normal behavior, and the behavior classification result of the behavior feature extracted from the image data is obtained as a crime.
[0065] As another example, see Figure 3 As shown, Figure 3A flow chart of a method for determining a behavior feature behavior classification result provided by an embodiment of the present invention is shown. When multiple frames of image data within a first time period are used as test data for a second convolutional neural network model, based on the behavior category and category probability of the behavior feature, the behavior classification result of the behavior feature may include:
[0066] Step S1051: Calculate the average category probability that the behavior feature belongs to the criminal behavior category in the first time period;
[0067] Step S1052: determining whether the average category probability that the behavior feature belongs to the criminal behavior category is greater than a first threshold;
[0068] Step S1053: When the average category probability that the behavior feature belongs to the criminal behavior category is greater than a first threshold, the behavior classification result in the first time period is determined to be a crime.
[0069] The first time period and the first threshold can be set as needed and are not limited in the embodiment of the present invention. Figure 2 The image data of each frame whose recognition result is not matched in the first time period is input into the second convolutional neural network model as test data. Each frame of image data can be expressed as x i , where i is a positive integer greater than or equal to 1. The Softmax activation function corresponding to the classification layer can be expressed as y i =Softmax(f i ), where f i Represents the image data x from each frame i The behavioral features extracted from i Represents the category probability corresponding to the behavior feature. When n frames of image data in the first time period are selected as the test data of the second convolutional neural network model, the average category probability of the behavior feature in the first time period belonging to the criminal behavior category calculated in step S1051 can be expressed as:
[0070]
[0071] Wherein, n represents the number of frames of image data selected from the first time period, and is a positive integer greater than or equal to 2.
[0072] As a specific example, the first time period is set to 1 minute, and 3 frames of image data within 1 minute are randomly extracted as test data. The behavior category probabilities of the criminal behaviors corresponding to the 3 frames of image data are 0.8, 0.7, and 0.6, respectively. Then, the average category probability of the criminal behaviors in this time period is:
[0073]
[0074] The first threshold is set to 0.6, and the average category probability in the time period is greater than 0.6, then the behavior classification result in the first time period can be determined as a crime. Thus, it is possible to automatically identify that a criminal behavior has occurred, and to achieve instant and effective security monitoring of the room.
[0075] In addition, when the average category probability that the behavior feature belongs to the criminal behavior category is less than or equal to the first threshold, the behavior classification result within the first time period is normal. In order to save storage space, the image data with a classification result of normal can be automatically deleted. Determining the behavior classification result based on the behavior classification of multiple frames of image data within the first time period can improve the reliability of identifying crimes. By using the second convolutional neural network model to classify the behavior of mismatched image data, in addition to intelligently identifying crimes and performing efficient security monitoring, data classified as crimes and normal can also be stored separately for subsequent viewing and data processing.
[0076] The above is a security monitoring method provided by an embodiment of the present invention, which obtains image data, inputs the image data into a pre-trained first convolutional neural network model, uses the first convolutional neural network model to extract body features in the image data and determines whether the body features match the data in the body feature library of security personnel. When the recognition result output by the first convolutional neural network model is mismatched, the mismatched image data is input into a pre-trained second convolutional neural network model, and the second convolutional neural network model is used to extract behavioral features and classify behaviors of the mismatched image data to obtain a behavior classification result, wherein the behavior classification result may include crime and normal. This method can improve monitoring and recognition capabilities, realize the identification of non-security personnel, and strengthen the behavioral monitoring of non-security personnel and intelligent behavior classification, thereby greatly improving the efficiency of security monitoring.
[0077] After obtaining the behavior classification result using the security monitoring method provided by the present invention, it is possible to further determine whether to issue a security warning based on the behavior classification result. For details, please refer to Example 2.
[0078] Embodiment 2
[0079] See also Figure 4 As shown, Figure 4 A schematic flow chart of a security monitoring method provided in another embodiment of the present invention is shown, including steps S201 to S209.
[0080] Among them, steps S201 to S205 may be the same as steps S101 to S105 in embodiment 1, and are not described here for brevity. For details, please refer to embodiment 1. This embodiment will focus on steps S206 to S209 of determining whether to trigger a security warning based on the behavior classification result.
[0081] Step S206: acquiring multiple frames of image data in the second time period and the third time period and the behavior classification results corresponding to the second time period and the third time period respectively from the first time period along the time delay, and the first time period, the second time period and the third time period constitute the behavior classification acquisition time period.
[0082] Step S207: Determine whether the percentage of the time periods in which the behavior classification results are crimes to the behavior classification collection time periods is greater than a second threshold.
[0083] Step S208: It is determined that the percentage of the time periods in which the behavior classification results are crimes in the behavior classification collection time periods is greater than a second threshold, and a security warning is triggered.
[0084] Step S209: Determine whether the percentage of time periods in which the behavior classification results are crimes in the behavior classification collection time period is less than or equal to a second threshold, and obtain multiple frames of image data in the fourth time period and the behavior classification results corresponding to the fourth time period from the third time period along the time delay to determine whether to trigger a security warning based on the behavior classification results of the second time period, the third time period and the fourth time period.
[0085] The second time period and the third time period can be set to be the same as the duration of the first time period. The time starting point of the second time period can be the time ending point of the first time period, or a time interval of a certain duration can be set between the time starting point of the second time period and the time ending point of the first time period, and the time interval can be set as needed. The third time period can be selected in a similar manner along the time delay.
[0086] As an example, image data with the same number of frames can be selected as test data in the first time period, the second time period, and the third time period. In step S206, the behavior classification results of the second time period and the behavior classification results of the third time period can be obtained by the same method as that of obtaining the behavior classification results of the first time period. For details, please refer to Example 1.
[0087] As a specific example, step S207 may be, when the behavior classification results of the first time period and the second time period are both crimes, and the behavior classification result of the third time period is normal, the number of time periods with the behavior classification results of crimes is 2, and the number of behavior collection time periods is 3. At this time, the number of time periods with the behavior classification results of crimes accounts for about 66.7% of the number of behavior collection time periods. If the number of time periods with the classification results of crimes accounts for more than 50% of the number of behavior collection time periods, a security warning is triggered.
[0088] In the embodiment of the present invention, triggering a security warning may include: sending a warning message to a preset receiving terminal and / or triggering an alarm device. Specifically, it may be sending a message reminder to a mobile terminal of the room owner or other family members, or triggering an alarm bell in the room, etc., so that a criminal act can be promptly reminded.
[0089] Step S209 may be specifically as follows: the second threshold may be set to 50%, and the percentage of the time periods in which the behavior classification results are crimes is determined to be greater than or equal to 50% of the behavior collection time periods. Multiple frames of image data within the fourth time period may be acquired in time sequence from the third time period. The duration of the fourth time period may be set to be the same as the duration of the third time period, and multiple frames of image data within the fourth time period may be selected, and the number of frames of image data selected may be the same as the number of frames of image data selected in the third time period. Further, it may be determined whether a security warning is triggered based on the second time period, the third time period, and the fourth time period. Similarly, multiple frames of data and behavior classification results of the next time period may be selected in time sequence according to this method to determine whether a security warning is triggered.
[0090] The above is a security monitoring method provided by an embodiment of the present invention. The method obtains multiple frames of image data in the first time period, the second time period and the third time period and the behavior classification results corresponding to each time period. The first time period, the second time period and the third time period constitute the behavior classification collection time period. It is determined whether the percentage of the number of time periods with the behavior classification results as crimes in the behavior classification collection time period is greater than the second threshold. When the percentage of the number of time periods with the behavior classification results as crimes in the behavior classification collection time period is greater than the second threshold, a security warning is triggered; when the percentage of the number of time periods with the behavior classification results as crimes in the behavior classification collection time period is less than or equal to the second threshold, the acquisition of multiple frames of image data in the fourth time period and the behavior classification results corresponding to the fourth time period can be delayed, and whether a security warning is triggered is determined based on the behavior classification results of the second time period, the third time period and the fourth time period. In addition to achieving the same beneficial effects as in the first embodiment of the present invention, this method can also trigger a security warning in a timely and effective manner.
[0091] Embodiment 3
[0092] See also Figure 5 As shown, Figure 5 The following is a schematic diagram of the structure of a security monitoring device provided by an embodiment of the present invention. It includes:
[0093] An image acquisition module 51, which is used to acquire image data;
[0094] An image input module 52, which is used to input image data into a pre-trained first convolutional neural network model;
[0095] A data matching module 53, which is used to extract body shape features in the image data based on the first convolutional neural network model and determine whether the body shape features match the data in the body shape feature library of security personnel;
[0096] A data input module 54, which is used to input the unmatched image data into a pre-trained second convolutional neural network model when the recognition result output by the first convolutional neural network model is unmatched;
[0097] The behavior classification module 55 is used to use the second convolutional neural network model to extract behavior features and classify behavior for the unmatched image data to obtain behavior classification results, which include crime and normal.
[0098] As an example, the security monitoring device provided by the present invention may also include a security warning module 56, which is used to send warning information to a preset receiving end and / or activate an alarm device when the percentage of time periods in which the behavior classification results are crimes in the behavior classification collection time periods is greater than a second threshold.
[0099] See also Figure 6 As shown, Figure 6 A schematic diagram of the structure of an air conditioner provided by an embodiment of the present invention is shown, and safety monitoring is performed using the method described in the above embodiment 1 or embodiment 2.
[0100] In an embodiment of the present invention, the air conditioner 60 may include an air conditioner body 61 , an image acquisition device 62 , a processor 63 and a memory 64 .
[0101] As an example, the image acquisition device 61 may be an infrared camera device. By acquiring image data using the infrared camera device, a clearer image can be acquired, and the device is suitable for acquiring images in poor light environments such as at night.
[0102] The air conditioner 60 provided in the embodiment of the present invention can improve the recognition ability of monitoring and realize safety monitoring by setting an infrared camera device and using a convolutional neural network model.
[0103] Another aspect of the present invention further provides a storage medium, in which a computer program is stored. When the computer program is executed by a processor, the security monitoring method as described in the first or second embodiment above can be implemented.
[0104] The processes, functions, methods and / or software described above may be recorded, stored or fixed in one or more computer-readable storage media, which include program instructions, which will be implemented by the computer so that the processor executes the program instructions. The medium may also include program instructions, data files, data structures, etc. alone, or a combination thereof. The medium or program instructions may be specifically designed and understood by a person skilled in the art of computer software, or the medium or instructions may be known and available to a person skilled in the art of computer software. Examples of computer-readable media include: magnetic media, such as hard disks, floppy disks, and tapes; optical media, such as CDROM disks and DVDs; magneto-optical media, such as optical disks; and hardware devices, specifically configured to store and execute program instructions, such as read-only memory (ROM), random access memory (RAM), flash memory, etc. Examples of program instructions include machine code (e.g., code generated by a compiler) and files containing high-level code, which can be executed by a computer using an interpreter. The described hardware devices may be configured to be used as one or more software modules to perform the operations and methods described above, and vice versa. In addition, the computer-readable storage medium may be distributed in networked computer systems, and computer-readable codes or program instructions may be stored and executed in a decentralized manner.
[0105] Another aspect of the present invention provides an electronic device, which includes an image acquisition device, a processor and a memory, wherein a computer program is stored in the memory, and when the processor executes the computer program in the memory, the security monitoring method described in the above-mentioned embodiment 1 or embodiment 2 can be implemented.
[0106] It should be noted that the electronic device may be an air conditioner or other electronic device. The device may include one or more processors and memory, and the processor and memory may be connected via a bus or other means. The memory, as a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer executable programs and modules. The processor executes various functional applications and data processing of the device by running the non-volatile software programs, instructions and modules stored in the memory, that is, realizing the security monitoring method as described above.
[0107] Although the embodiments disclosed in the present invention are as above, the contents described are only embodiments adopted for facilitating the understanding of the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed in the present invention, but the protection scope of the present invention shall still be subject to the scope defined in the attached claims.
Claims
1. A security monitoring method, characterized in that: include: Get image data; The acquiring of image data comprises: acquiring a plurality of frames of image data within a first time period; Inputting the image data into a pre-trained first convolutional neural network model; Extracting body shape features from the image data based on the first convolutional neural network model and determining whether the body shape features match data in a body shape feature library of security personnel, the body shape features including body shape outlines or height features of personnel; When the recognition result output by the first convolutional neural network model is mismatched, inputting the mismatched image data into a pre-trained second convolutional neural network model including a Softmax activation function; Using the second convolutional neural network model including the Softmax activation function, extracting behavior features from the unmatched image data and obtaining behavior categories and category probabilities of the behavior features; Based on the behavior category and category probability of the behavior feature, a behavior classification result of the behavior feature is obtained, wherein the behavior classification result includes crime and normal; Based on the behavior category and category probability of the behavior feature, a behavior classification result of the behavior feature is obtained, including: Calculate the average category probability that the behavior characteristics belong to the criminal behavior category during the first time period; Determining whether the average category probability of the behavior characteristic belonging to the criminal behavior category is greater than a first threshold; When the average category probability that the behavior feature belongs to the criminal behavior category is greater than the first threshold, the behavior classification result in the first time period is determined to be a crime.
2. The security monitoring method according to claim 1, characterized in that: Before extracting the body shape features in the image data based on the first convolutional neural network model and determining whether the body shape features match the data in the body shape feature library of security personnel, the method further includes: Collect the physical characteristics of family members to establish a physical characteristics database for security personnel.
3. The security monitoring method according to claim 1, characterized in that: The method further comprises: When the average category probability that the behavior feature belongs to the criminal behavior category is less than or equal to the first threshold, the behavior classification result in the first time period is obtained as normal, and the image data with the normal classification result is automatically deleted.
4. The security monitoring method according to claim 1, characterized in that: The method further comprises: Acquire multiple frames of image data in a second time period and a third time period and behavior classification results corresponding to the second time period and the third time period respectively from the first time period in a time-delayed manner, wherein the first time period, the second time period and the third time period constitute a behavior classification acquisition time period; Determine whether the percentage of the number of time periods in which the behavior classification result is a crime to the behavior classification collection time period is greater than a second threshold; It is determined that the percentage of the number of time periods in which the behavior classification results are crimes in the behavior classification collection time period is greater than the second threshold, triggering a security warning; It is determined that the percentage of time periods in which the behavior classification results are crimes in the behavior classification collection time period is less than or equal to the second threshold value, and multiple frames of image data in a fourth time period and the behavior classification results corresponding to the fourth time period are obtained in sequence from the third time period to determine whether to trigger a security warning based on the behavior classification results of the second time period, the third time period and the fourth time period.
5. The security monitoring method according to claim 4, characterized in that: Acquiring multiple frames of image data in a second time period and a third time period respectively along the time delay from the first time period, including: acquiring multiple frames of image data in a second time period and a third time period respectively along the time delay from the first time period, wherein the second time period and the third time period have the same length as the first time period.
6. The security monitoring method according to claim 4, characterized in that: The triggering of the safety warning includes: sending warning information to a preset receiving end and / or activating an alarm device.
7. The security monitoring method according to claim 1, characterized in that: The image data is acquired using an infrared camera.
8. A security monitoring device, characterized in that: include: An image acquisition module, which is used to acquire image data; An image input module, which is used to input the image data into a pre-trained first convolutional neural network model; a data matching module, which is used to extract body shape features in the image data based on the first convolutional neural network model and determine whether the body shape features match data in a body shape feature library of security personnel, wherein the body shape features may include body shape outlines or height features of personnel; A data input module, which is used to input the unmatched image data into a pre-trained second convolutional neural network model including a Softmax activation function when the recognition result output by the first convolutional neural network model is unmatched; A behavior classification module is used to use the second convolutional neural network model containing the Softmax activation function to extract behavior features from the unmatched image data and obtain the behavior category and category probability of the behavior features; based on the behavior category and category probability of the behavior features, obtain the behavior classification results of the behavior features, and the behavior classification results include crime and normal.
9. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, can implement the security monitoring method as described in any one of claims 1 to 7.
10. An electronic device, characterized in that: It comprises an image acquisition device, a processor and a memory, wherein the memory stores a computer program, and when the processor executes the computer program stored in the memory, it can implement the security monitoring method as described in any one of claims 1 to 7.
11. An air conditioner, characterized in that: It includes an air conditioner body, an image acquisition device, a processor and a memory, wherein the memory stores a computer program, and when the processor executes the computer program stored in the memory, it can implement the security monitoring method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device for alarm
CN108446649A
Indoor user behavior monitoring method and device, electric appliance equipment and home monitoring system
CN109765539A
Monitoring method and device, electronic device and storage medium
CN110674816A
Park construction safety detection method and device, computer equipment and storage medium
CN110738178A
Key target behavior prediction method, AI server and storage medium
CN111354024A
