Dangerous behavior detection method, device, electronic device and storage medium
By using the convolutional layer and the attention layer to extract feature maps in the dangerous behavior detection method, and combining it with the face recognition results, the problem of low accuracy of dangerous behavior detection and reliance on manual inspection in the existing technology is solved, and the operation is realized. Real-time, comprehensive detection and detailed alarms for personnel.
Patent Information
- Application Number
- CN202311678929.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-08
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-12-08
AI Technical Summary
The accuracy of dangerous behavior detection in the existing technology is low, and the reliance on manual inspection cannot comprehensively detect the behavior of all workers at the same time, resulting in reduced efficiency and accuracy.
A dangerous behavior detection method is adopted. By inputting the image to be detected into the feature extraction layer, the convolution layer and the attention layer are used to extract the feature map, and combined with the face recognition results to generate comprehensive detection results, it can realize real-time detection of dangerous behaviors of workers. , comprehensive inspection.
It improves the accuracy and efficiency of dangerous behavior detection, can comprehensively detect all workers at the same time, and generates detailed comprehensive detection results of dangerous behaviors, making it easier for users to understand the situation and send alarm information in a timely manner.
Smart Images

Figure CN117671592B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer vision technology, and in particular to a dangerous behavior detection method, device, electronic device and storage medium. Background Art
[0002] In the operation scene, there are usually certain standard requirements for the operation of operators. However, in actual work, some operators do not strictly follow the standards and even make certain dangerous behaviors.
[0003] Usually, manual inspection is used to determine whether the operators have dangerous behaviors. However, this method is too dependent on manpower and cannot fully detect the behaviors of all operators at the same time. Therefore, the efficiency of detecting dangerous behaviors is low and one-sided, which leads to a decrease in the accuracy of dangerous behavior detection. Summary of the invention
[0004] The present invention provides a dangerous behavior detection method, device, electronic device and storage medium, which are used to solve the problem of low accuracy of dangerous behavior detection in the prior art.
[0005] The present invention provides a dangerous behavior detection method, comprising:
[0006] Inputting the image to be detected into the feature extraction layer in the dangerous behavior detection model to obtain a target feature map output by the feature extraction layer, wherein the feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any of the sub-feature extraction layers includes a convolution layer and an attention layer connected in sequence;
[0007] Inputting the target feature map into the detection layer in the dangerous behavior detection model to obtain the dangerous behavior detection result output by the detection layer;
[0008] In a case where the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected, a comprehensive dangerous behavior detection result is generated based on the dangerous behavior detection result and the face recognition result of the image to be detected.
[0009] According to a dangerous behavior detection method provided by the present invention, any of the attention layers performs feature extraction based on the following method:
[0010] Inputting the input feature map of the attention layer into the global average pooling layer in the attention layer to obtain a first feature map output by the global average pooling layer;
[0011] Inputting the first feature map to the multi-channel feature extraction layer in the attention layer to obtain a second feature map output by the multi-channel feature extraction layer; the second feature map is used to indicate the channel weights of each channel in the input feature map, and the scale of the second feature map is the same as that of the first feature map;
[0012] Inputting the second feature map into a normalization layer in the attention layer to obtain a third feature map output by the normalization layer;
[0013] Fusion the third feature map with the input feature map to obtain a fourth feature map;
[0014] The fourth feature map is used as the output feature map of the attention layer.
[0015] According to a dangerous behavior detection method provided by the present invention, any of the sub-feature extraction layers includes a convolution layer, an attention layer, an activation layer and a pooling layer connected in sequence.
[0016] According to a dangerous behavior detection method provided by the present invention, generating a comprehensive dangerous behavior detection result based on the dangerous behavior detection result and the face recognition result of the image to be detected includes:
[0017] Based on the face recognition result, obtaining the identity information of the target person in the image to be detected;
[0018] Based on the identity information and the dangerous behavior detection result, generating a comprehensive dangerous behavior detection result;
[0019] The comprehensive detection result of the dangerous behavior includes at least one of the following: the identity information of the target person, the type of the dangerous behavior, the time when the dangerous behavior occurred, and the address where the dangerous behavior occurred.
[0020] According to a dangerous behavior detection method provided by the present invention, the face recognition result is determined based on the following method:
[0021] Performing face detection on the image to be detected to obtain a face image;
[0022] Performing super-resolution processing on the facial image to obtain a processed facial image;
[0023] Performing face recognition on the processed face image to obtain the face recognition result.
[0024] According to a dangerous behavior detection method provided by the present invention, the comprehensive dangerous behavior detection result includes the identity information of the target person in the image to be detected; after generating the comprehensive dangerous behavior detection result based on the dangerous behavior detection result and the face recognition result of the image to be detected, the method further includes:
[0025] In the case where the preset personnel database includes the identity information, sending dangerous behavior warning information to the target person based on the identity information;
[0026] In the case that the personnel database does not include the identity information, dangerous behavior prompt information is sent to the supervisor.
[0027] According to a dangerous behavior detection method provided by the present invention, after inputting the target feature map into the detection layer in the dangerous behavior detection model to obtain the dangerous behavior detection result output by the detection layer, the method further includes:
[0028] In the case where the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected, the duration of the dangerous behavior is determined based on the acquisition time of the image to be detected and the start time of the dangerous behavior; wherein the start time is determined based on the acquisition time of the start detection image, and the start detection image is the image corresponding to the first detection of the dangerous behavior;
[0029] When the duration exceeds a preset duration threshold, a dangerous behavior reminder message is sent to the supervisor.
[0030] The present invention also provides a dangerous behavior detection device, comprising:
[0031] A feature extraction module, used for inputting the image to be detected into the feature extraction layer in the dangerous behavior detection model to obtain a target feature map output by the feature extraction layer, wherein the feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any of the sub-feature extraction layers includes a convolution layer and an attention layer connected in sequence;
[0032] A detection module, used for inputting the target feature map into the detection layer in the dangerous behavior detection model to obtain the dangerous behavior detection result output by the detection layer;
[0033] A comprehensive detection result generating module, configured to generate a comprehensive dangerous behavior detection result based on the dangerous behavior detection result and the face recognition result of the image to be detected, when the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected;
[0034] The dangerous behavior detection model is trained based on sample images and dangerous behavior detection result labels corresponding to the sample images.
[0035] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the above-mentioned dangerous behavior detection methods is implemented.
[0036] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the dangerous behavior detection method as described in any one of the above is implemented.
[0037] The dangerous behavior detection method, device, electronic device and storage medium provided by the present invention input the image to be detected into the feature extraction layer in the dangerous behavior detection model to obtain the target feature map output by the feature extraction layer, the feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any sub-feature extraction layer includes a convolution layer and an attention layer connected in sequence; in this way, an attention layer can be added after the convolution layer of each sub-feature extraction layer, so as to adjust the attention between the channel information of each channel of the feature map output by each convolution layer, improve the expressiveness of the feature map output by the convolution layer, so that the network can focus on more important channels and reduce the attention to irrelevant or redundant information The accuracy of dangerous behavior detection is improved by removing the reliance on the target feature map; the target feature map is input into the detection layer in the dangerous behavior detection model to obtain the dangerous behavior detection result output by the detection layer; when the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected, a comprehensive dangerous behavior detection result is generated based on the dangerous behavior detection result and the face recognition result of the image to be detected; in this way, dangerous behavior detection can be performed based on a more expressive feature map, thereby improving the accuracy of dangerous behavior detection; in addition, a more comprehensive dangerous behavior detection result is generated based on the dangerous behavior detection result and the face recognition result, so that users can understand more detailed situations. Based on this, on the one hand, the present invention adds an attention layer after the convolution layer of each sub-feature extraction layer, so as to reset the weights of each channel of the feature map output by each convolution layer, so that the network can focus on more important channels, reduce the reliance on irrelevant or redundant information, and improve the accuracy of detection. On the other hand, the present invention does not rely on manpower, and can perform comprehensive detection of the behavior of all operators at the same time, thereby improving the efficiency and comprehensiveness of dangerous behavior detection, thereby improving the accuracy of dangerous behavior detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the present invention or 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 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.
[0039] Figure 1 One of the flow charts of the dangerous behavior detection method provided by the present invention;
[0040] Figure 2A schematic diagram of the structure of the dangerous behavior detection model provided by the present invention;
[0041] Figure 3 A schematic diagram of the structure of the attention layer provided by the present invention;
[0042] Figure 4 The second flowchart of the dangerous behavior detection method provided by the present invention;
[0043] Figure 5 The third flowchart of the dangerous behavior detection method provided by the present invention;
[0044] Figure 6 The fourth flowchart of the dangerous behavior detection method provided by the present invention;
[0045] Figure 7 A schematic diagram of the structure of the face super-resolution processing model provided by the present invention;
[0046] Figure 8 A schematic diagram of the structure of a dangerous behavior detection device provided by the present invention;
[0047] Fig. 9 This is a schematic structural diagram of an electronic device provided by the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] As described in the background art, in an operation scenario, to ensure the safety of operators, operators are usually subject to certain operation specifications. However, in actual work, some operators do not strictly follow the specifications and may even perform certain dangerous behaviors.
[0050] Usually, manual inspection is used to determine whether the operators have dangerous behaviors. However, this method is too dependent on manpower and cannot fully detect the behaviors of all operators at the same time. Therefore, the efficiency of detecting dangerous behaviors is low and one-sided, which leads to a decrease in the accuracy of dangerous behavior detection.
[0051] In view of the above problems, the present invention proposes the following embodiments. Figure 1 One of the flow charts of the dangerous behavior detection method provided by the present invention is as follows: Figure 1 As shown, the dangerous behavior detection method includes:
[0052] Step S110: input the image to be detected into the feature extraction layer in the dangerous behavior detection model to obtain a target feature map output by the feature extraction layer, wherein the feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any sub-feature extraction layer includes a convolution layer and an attention layer connected in sequence.
[0053] Here, the image acquisition range of the image to be detected covers the area where the dangerous behavior detection is expected. Exemplarily, the image acquisition range of the image to be detected can cover the working scene of the operator; for example, the image acquisition range can cover the working scaffolding area, the high-altitude guardrail area, and the area below the hoisting operation, etc.
[0054] The image to be detected is collected by a camera device, which can be installed near the area where dangerous behavior detection is expected.
[0055] In one embodiment, the image captured by the camera in real time can be directly used as the image to be detected. Based on this, dangerous behavior detection can be performed on each frame of image captured by the camera, thereby improving the accuracy of dangerous behavior detection.
[0056] In another embodiment, an image captured by the camera device in real time is obtained as an image to be detected at a preset time interval. Based on this, frame skipping detection can be performed on the image captured by the camera device to reduce the amount of image data processing and improve the efficiency of dangerous behavior detection. In a specific example, the setting of the preset time length is related to the rate of dangerous behavior detection; for example, when the rate of dangerous behavior detection is 0.2 seconds / frame, the preset time length is greater than 0.2 seconds.
[0057] Here, the dangerous behavior detection model is trained based on sample images and dangerous behavior detection result labels corresponding to the sample images.
[0058] In a specific example, the dangerous behavior detection result label is used to mark at least one of the following information: whether there is a dangerous behavior in the sample image, the type of dangerous behavior existing in the sample image, the number of dangerous behaviors, dangerous behavior identification, dangerous behavior risk attributes, dangerous behavior risk level, and dangerous behavior traces, etc.
[0059] Here, the dangerous behavior detection model includes a feature extraction layer and a detection layer. The feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any sub-feature extraction layer includes a convolution layer and an attention layer connected in sequence. Based on this, by adding an attention layer, the inter-channel information of each channel of the feature map output by each convolution layer can be adjusted to improve the accuracy of dangerous behavior detection. It should be noted that the specific structure of the feature extraction layer, the attention layer, and the detection layer can be referred to the description below and will not be described in detail here.
[0060] Here, the target feature map is the output feature map of the feature extraction layer. In a specific example, the target feature map is a multi-dimensional feature map (also called a high-dimensional feature map) output by the feature extraction layer.
[0061] Step S120: input the target feature map into the detection layer in the dangerous behavior detection model to obtain the dangerous behavior detection result output by the detection layer.
[0062] Here, the dangerous behavior detection result includes information indicating whether there is a dangerous behavior in the image to be detected.
[0063] In some embodiments, the dangerous behavior detection result may also include at least one of the following: the type of dangerous behavior, the number of dangerous behaviors, the dangerous behavior identifier, the dangerous behavior risk attribute, the dangerous behavior risk level, and the dangerous behavior trace, etc. Among them, the dangerous behavior identifier is used to uniquely identify a single dangerous behavior, for example, the dangerous behavior identifier can be a dangerous behavior serial number or a dangerous behavior ID, etc.
[0064] Here, for ease of understanding, Figure 2 A schematic diagram of the structure of a dangerous behavior detection model is shown in FIG. Figure 2 , the dangerous behavior detection model includes a feature extraction layer and a detection layer. The detection layer includes a region proposal network (RPN) layer, a region of interest pooling (ROIPooling) layer, a fully connected layer, a regression branch, and a classification branch. Among them, the RPN layer, the ROIPooling layer, and the fully connected layer are connected in sequence, and the fully connected layer is connected to the regression branch and the classification branch respectively.
[0065] The RPN layer is connected to the feature extraction layer. The RPN layer can generate candidate regions based on the target feature map input by the feature extraction layer. In one embodiment, the RPN layer also includes a normalized exponential function layer (not shown in the figure), which is used to determine whether the content of the candidate region belongs to the foreground or the background to generate a more accurate candidate region.
[0066] The ROIPooling layer is also connected to the feature extraction layer and the RPN layer respectively. The ROIPooling layer can determine a fixed-size candidate region feature map based on the candidate region generated by the RPN layer, the target feature map output by the feature extraction layer, and the image information of the image to be detected. The image information includes at least pixel information.
[0067] The fully connected layer can process the candidate region feature map input by the ROIPooling layer, and input the processing results into the classification branch and the regression branch.
[0068] The regression branch may determine the position adjustment parameters of the candidate region based on the processing result, so as to optimize the candidate region determined by the RPN.
[0069] The classification branch may determine the dangerous behavior detection result of the image to be detected based on the processing result. For example, the type of dangerous behavior present in the image to be detected may be determined.
[0070] Step S130: When the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected, a comprehensive dangerous behavior detection result is generated based on the dangerous behavior detection result and the face recognition result of the image to be detected.
[0071] Here, the relevant contents of the dangerous behavior detection result can refer to the description in step S120, which will not be described in detail here.
[0072] In one embodiment, the face recognition result includes face information in the image to be detected.
[0073] In another embodiment, the face recognition result includes the identity information of the person in the image to be detected. The identity information includes but is not limited to at least one of the following: face information, name, gender, age, job type, job number, contact information, department, and professional qualification certificate.
[0074] In one embodiment, the face recognition result of the image to be detected is determined based on the following method: performing face detection on the image to be detected to obtain a face image; and directly performing face recognition on the face image to obtain a face recognition result.
[0075] In another embodiment, the face recognition result of the image to be detected is determined based on the following method: performing face detection on the image to be detected to obtain a face image; performing super-resolution processing on the face image to obtain a processed face image; performing face recognition on the processed face image to obtain a face recognition result. It should be understood that super-resolution processing can improve the clarity of the face image. Based on this, the accuracy of the obtained face recognition result can be improved.
[0076] In one embodiment, when the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected, face recognition is performed on the image to be detected to obtain a face recognition result of the image to be detected. Based on this, face recognition can be performed only when there is a dangerous behavior, rather than performing face recognition on the image to be detected in all cases, which reduces the amount of data processing and saves computing resources.
[0077] In another embodiment, while inputting the image to be detected into the feature extraction layer in the dangerous behavior detection model, face recognition is performed on the image to be detected to obtain the face recognition result of the image to be detected. Based on this, dangerous behavior detection and face recognition can be performed simultaneously, that is, face recognition is performed in advance while dangerous behavior detection is performed, thereby improving the efficiency of generating comprehensive dangerous behavior detection results.
[0078] Here, dangerous behavior refers to behavior that is not conducive to personal safety.
[0079] In a specific example, dangerous behaviors include but are not limited to at least one of the following: not wearing a safety rope, leaning on a high-altitude guardrail, being in the area below the hoisting operation, and climbing over the cordon, etc. It should be noted that the content of the dangerous behavior is related to the specific operation scene, and the present invention does not specifically limit the specific content of the dangerous behavior.
[0080] Here, the comprehensive detection result of dangerous behavior is generated based on the dangerous behavior detection result and the face recognition result of the image to be detected. It can be understood that the comprehensive detection result of dangerous behavior can reflect the existence of dangerous behavior from the two perspectives of dangerous behavior and personnel. Compared with a single dangerous behavior detection result and a single face recognition result, the comprehensive detection result of dangerous behavior can indicate more dangerous behavior information.
[0081] In one embodiment, the comprehensive detection result of dangerous behavior includes but is not limited to at least one of the following: identity information of the target person, type of dangerous behavior, time of occurrence of the dangerous behavior, and address where the dangerous behavior occurs.
[0082] The target person is a person who has dangerous behavior in the image to be detected.
[0083] The target person's identity information is determined based on the face recognition result of the image to be detected. In a specific example, the identity information includes but is not limited to at least one of the following: face information, name, gender, age, job type, job number, contact information, department, and professional qualification certificate.
[0084] In another embodiment, the comprehensive detection result of dangerous behaviors may further include at least one of the following: the number of dangerous behaviors, dangerous behavior identification, dangerous behavior risk attributes, dangerous behavior risk levels, and dangerous behavior traces, etc.
[0085] The dangerous behavior detection method provided by the embodiment of the present invention inputs the image to be detected into the feature extraction layer in the dangerous behavior detection model to obtain the target feature map output by the feature extraction layer, the feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any sub-feature extraction layer includes a convolution layer and an attention layer connected in sequence; in this way, an attention layer can be added after the convolution layer of each sub-feature extraction layer, so as to adjust the attention between the channel information of each channel of the feature map output by each convolution layer, and improve the expressiveness of the feature map output by the convolution layer, so that the network can focus on more important channels, reduce the dependence on irrelevant or redundant information, and improve the accuracy of dangerous behavior detection; the target feature map is input into the detection layer in the dangerous behavior detection model to obtain the dangerous behavior detection result output by the detection layer; when the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected, a comprehensive dangerous behavior detection result is generated based on the dangerous behavior detection result and the face recognition result of the image to be detected; in this way, dangerous behavior detection can be performed based on a more expressive feature map, thereby improving the accuracy of dangerous behavior detection; in addition, a more comprehensive dangerous behavior detection result is generated based on the dangerous behavior detection result and the face recognition result, so that users can understand the details. Based on this, on the one hand, the present invention adds an attention layer after the convolution layer of each sub-feature extraction layer, so as to reset the weights of each channel of the feature map output by each convolution layer, so that the network can focus on more important channels, reduce dependence on irrelevant or redundant information, and improve the accuracy of detection. On the other hand, the present invention does not rely on manpower, and can comprehensively detect the behavior of all operators at the same time, thereby improving the efficiency and comprehensiveness of dangerous behavior detection, and thus improving the accuracy of dangerous behavior detection.
[0086] Based on any of the above embodiments, Figure 3 This is a schematic diagram of the structure of the attention layer provided by the present invention. Figure 3 , the attention layer includes a global average pooling layer, a multi-channel feature extraction layer and a normalization layer connected in sequence. The input feature map of the attention layer is input into the attention layer to obtain the corresponding output feature map.
[0087] Further, based on Figure 3 The attention layer shown, Figure 4 This is a second flow chart of the dangerous behavior detection method provided by the present invention. Figure 4 As shown, any attention layer extracts features based on the following method:
[0088] Step S410: Input the input feature map of the attention layer to the global average pooling layer in the attention layer to obtain the first feature map output by the global average pooling layer.
[0089] In a specific example, step S410 can be implemented as follows: inputting the input feature map into the global average pooling layer; for each channel in the input feature map, in the global average pooling layer, calculating the pixel average of all pixels in the channel; generating a first feature map based on the pixel averages of each channel, the number of channels of the first feature map is the same as the number of channels of the input feature map.
[0090] Step S420: Input the first feature map to the multi-channel feature extraction layer in the attention layer to obtain a second feature map output by the multi-channel feature extraction layer, wherein the second feature map is used to indicate the channel weights of each channel in the input feature map, and the scale of the second feature map is the same as that of the first feature map.
[0091] In a specific example, step S420 can be implemented as follows: input the first feature map to the multi-channel feature extraction layer in the attention layer; based on the number of channels of the first feature map, generate a one-dimensional convolution kernel in the multi-channel feature extraction layer, the length of which is positively correlated with the number of channels of the first feature map; and convolve the first feature map based on the one-dimensional convolution kernel to obtain a second feature map. Based on this, the length of the one-dimensional convolution kernel can be reasonably set to ensure that the scale of the obtained second feature map is the same as that of the first feature map.
[0092] It can be understood that when the scale of the second feature map is the same as that of the first feature map, feature dimensionality reduction is avoided, that is, information loss is avoided, thereby improving the accuracy of feature extraction and further improving the accuracy of dangerous behavior detection.
[0093] Step S430: input the second feature map into the normalization layer in the attention layer to obtain a third feature map output by the normalization layer.
[0094] In a specific example, each element in the second feature map is normalized based on the sigmoid formula to obtain the third feature map.
[0095] In another specific example, other normalization formulas (such as Z-Score, etc.) may also be used to normalize each element in the second feature map to obtain a third feature map.
[0096] Based on this, the value range of each element in the third feature map can be limited to between 0 and 1, which facilitates the subsequent feature map fusion.
[0097] Step S440: Fuse the third feature map with the input feature map to obtain a fourth feature map, and use the fourth feature map as the output feature map of the attention layer.
[0098] In a specific example, step S440 includes: multiplying the third feature map with the input feature map to obtain a fourth feature map, and using the fourth feature map as the output feature map of the attention layer.
[0099] It is understandable that other methods (such as convolution, etc.) can also be used to achieve the fusion of the third feature map and the input feature map, and the present invention does not impose specific limitations on this.
[0100] In the dangerous behavior detection method provided by the embodiment of the present invention, since the second feature map is used to indicate the channel weights of each channel in the input feature map, the third feature map after normalization of the second feature map can also indicate the channel weights of each channel in the input feature map; and then the third feature map can be fused with the input feature map to adjust the weights of each channel in the input feature map, and obtain a more expressive output feature map. Based on this, the attention adjustment of each channel of the input feature map is achieved, so that the network can focus on more important channels, reduce dependence on irrelevant or redundant information, improve the accuracy of feature extraction, and thus improve the accuracy of dangerous behavior detection.
[0101] Based on any of the above embodiments, any sub-feature extraction layer includes a convolution layer, an attention layer, an activation layer and a pooling layer connected in sequence.
[0102] In one embodiment, any sub-feature extraction layer only includes one convolution layer, one attention layer, one activation layer, and one pooling layer connected in sequence.
[0103] In another embodiment, any sub-feature extraction layer includes a pooling layer, and a plurality of sequentially connected convolutional layers, attention layers, and activation layers; the pooling layer is connected after the last activation layer in the sub-feature extraction layer.
[0104] Based on any of the above embodiments, Figure 5 This is a flow chart of the third method for detecting dangerous behaviors provided by the present invention. Figure 5 As shown, based on the dangerous behavior detection results and the face recognition results of the image to be detected, a comprehensive dangerous behavior detection result is generated, including:
[0105] Step S510: Based on the face recognition result, the identity information of the target person in the image to be detected is obtained.
[0106] Here, the target person is a person who has dangerous behavior in the image to be detected.
[0107] Here, identity information includes but is not limited to at least one of the following: facial information, name, gender, age, job type, work number, contact information, department, and professional qualification certificate, etc.
[0108] In a specific example, the face recognition result includes the identity information of the target person; step S510 includes: directly obtaining the identity information of the target person from the face recognition result.
[0109] In another specific example, the face recognition result includes face information of the target person, and step S510 includes: based on the face information of the target person, matching the identity information corresponding to the face information from a preset person database. The preset person database stores the identity information of multiple persons, and the identity information of each person includes at least the face information of the person.
[0110] Step S520: Generate a comprehensive dangerous behavior detection result based on the identity information and the dangerous behavior detection result.
[0111] Here, the comprehensive dangerous behavior detection result is generated based on the dangerous behavior detection result and the face recognition result of the image to be detected.
[0112] In one embodiment, the comprehensive detection result of dangerous behavior includes but is not limited to at least one of the following: identity information of the target person, the type of dangerous behavior, the time when the dangerous behavior occurred, and the address where the dangerous behavior occurred. The target person is a person who has dangerous behavior in the image to be detected.
[0113] In another embodiment, the comprehensive detection result of dangerous behaviors may further include: the number of dangerous behaviors, dangerous behavior identifiers, dangerous behavior risk attributes, dangerous behavior risk levels, and dangerous behavior traces, etc.
[0114] In one embodiment, after step S520, it also includes: generating a dangerous behavior analysis report based on the comprehensive detection results of dangerous behaviors, the dangerous behavior analysis report including: the name, gender, age, type of work, work number, contact information, department, type of dangerous behavior, time of occurrence of the dangerous behavior, and address where the dangerous behavior occurs of the target person.
[0115] Furthermore, the dangerous behavior analysis report can be stored, and / or the acquired dangerous behavior analysis report can be sent to the supervisor. Based on this, the management of dangerous behaviors can be achieved.
[0116] In another embodiment, the risky behavior comprehensive detection result may be understood as the risky behavior analysis report itself.
[0117] Furthermore, the dangerous behavior analysis report can be stored, and / or the acquired dangerous behavior analysis report can be sent to the supervisor. Based on this, the management of dangerous behaviors can be achieved.
[0118] The dangerous behavior detection method provided by the embodiment of the present invention can generate a comprehensive dangerous behavior detection result based on the dangerous behavior detection result and the face recognition result of the image to be detected. It can be understood that the comprehensive dangerous behavior detection result can reflect the existing dangerous behavior from the two perspectives of dangerous behavior and personnel. Compared with a single dangerous behavior detection result and a single face recognition result, the comprehensive dangerous behavior detection result can prompt more dangerous behavior information, allowing users to understand a more comprehensive situation, thereby improving the comprehensiveness and accuracy of dangerous behavior detection.
[0119] Based on any of the above embodiments, Figure 6 This is a fourth flow chart of the dangerous behavior detection method provided by the present invention. Figure 6 As shown, the face recognition result is determined based on the following method:
[0120] Step S610: Perform face detection on the image to be detected to obtain a face image.
[0121] Step S620: perform super-resolution processing on the face image to obtain a processed face image.
[0122] In one embodiment, a super-resolution technique based on interpolation (such as a nearest neighbor interpolation algorithm, a bilinear interpolation algorithm, and a bicubic interpolation algorithm, etc.) may be used to perform super-resolution processing on the face image to obtain a processed face image.
[0123] In another embodiment, a super-resolution technique based on reconstruction may be used to perform super-resolution processing on the face image to obtain a processed face image. Exemplarily, a non-local iterative back-projection (NLIBP) algorithm or a projection on convex set (POCS) algorithm may be used to perform reconstruction processing on the face image to obtain a processed face image.
[0124] In another embodiment, a super-resolution technology based on deep learning can be used to perform super-resolution processing on a facial image to obtain a processed facial image. Exemplarily, the facial image can be input into a facial super-resolution processing model to obtain a processed facial image. The facial super-resolution processing model is constructed based on a convolutional neural network.
[0125] To explain the scheme more clearly, Figure 7 A structural diagram of a face super-resolution processing model is shown in FIG. The face super-resolution processing model is constructed based on a deep face super-resolution (FSR) algorithm. The specific structure and processing principle of the face super-resolution processing model are briefly introduced below.
[0126] Reference Figure 7 ,The face super-resolution processing model includes: a recursive face super-resolution branch and a recursive face alignment branch.
[0127] The recursive face super-resolution branch includes a low-resolution feature extraction layer, a first fusion layer, a first convolution layer, a second fusion layer, a recursive layer, a high-resolution feature extraction layer, and a third fusion layer connected in sequence. Among them, the low-resolution feature extraction layer includes a second convolution layer and a pixel shuffling layer (also called a sub-pixel convolution layer) connected in sequence.
[0128] The second convolution layer is used to preliminarily extract image features. Exemplarily, a low-resolution image (e.g., the face image obtained in step S610) can be input into the second convolution layer to obtain a fifth feature map of the low-resolution image. For example, a 3*3 convolution kernel can be used in the second convolution layer to convolve the input low-resolution image to obtain the fifth feature map.
[0129] The pixel shuffling layer is used to increase the dimension of image features. Exemplarily, the fifth feature map output by the second convolutional layer can be input to the pixel shuffling layer to obtain a sixth feature map output by the pixel shuffling layer, and the dimension of the sixth feature map is higher than that of the fifth feature map.
[0130] The first fusion layer connects the pixel shuffle layer and the recursive layer. The first fusion layer can fuse the first feedback feature map output by the recursive layer and the sixth feature map output by the pixel shuffle layer to obtain the seventh feature map. The first feedback feature map is obtained by processing the feature map output by the first fusion layer through the first convolution layer, the second fusion layer and the recursive layer in sequence.
[0131] The first feedback feature map output by the recursive layer is input into the high-resolution feature extraction layer to obtain the eighth feature map output by the high-resolution feature extraction layer.
[0132] Still refer to Figure 7 , the recursive face super-resolution branch also includes an upsampling layer. The upsampling layer can upsample the input low-resolution image to obtain the ninth feature map.
[0133] The third fusion layer connects the recursive layer and the upsampling layer. The third fusion layer can fuse the eighth feature map output by the recursive layer and the ninth feature map output by the upsampling layer to obtain a first high-resolution image.
[0134] The recursive face alignment branch includes a pre-processing layer, a fourth fusion layer, a third convolutional layer, a recurrent hourglass layer, and a post-processing layer, which are connected sequentially.
[0135] The preprocessing layer is used to convert the input image (eg, the first high-resolution image) into high-dimensional features.
[0136] The fourth fusion layer is used to fuse the high-dimensional features output by the preprocessing layer and the second feedback feature map output by the cyclic hourglass layer to obtain the tenth feature map.
[0137] The third convolutional layer is used to extract features from the tenth feature map output by the fourth fusion layer to obtain an eleventh feature map.
[0138] The cyclic hourglass layer is used to process the eleventh feature map output by the third convolutional layer to obtain the twelfth feature map, which is a feature map related to the final facial key points for estimating the final facial key points. The facial key points are key points related to facial features (such as eyes, mouth, nose, and jaw line, etc.). The cyclic hourglass layer can enable the post-processing layer to generate a higher quality and more accurate feature map.
[0139] The post-processing layer is used to process the twelfth feature map output by the cyclic hourglass layer, and map the twelfth feature map into the final face key point feature map, which is the above-mentioned final face key point related feature map, and can also be called the face composition feature map.
[0140] Furthermore, the post-processing layer can also be connected to the second fusion layer in the recursive face super-resolution branch. Furthermore, the facial composition feature map output by the recursive face alignment branch can be input into the second fusion layer to implement iteration of the recursive face super-resolution branch and the recursive face alignment branch until a second high-resolution image with a sufficiently high resolution is generated (e.g., the processed face image obtained in step S620).
[0141] Based on this, super-resolution processing of low-resolution images can be achieved to improve the clarity of low-resolution images.
[0142] Step S630: performing face recognition on the processed face image to obtain a face recognition result.
[0143] In one embodiment, the face recognition result includes face information in the image to be detected.
[0144] In another embodiment, the face recognition result includes the identity information of the person in the image to be detected. The specific content of the identity information can be referred to the above description and will not be described in detail here.
[0145] The dangerous behavior detection method provided by the embodiment of the present invention, on the one hand, only performs super-resolution processing on the face image, which reduces the amount of data processing and improves the efficiency of face recognition compared to processing the complete image to be detected. On the other hand, the clarity of the face image is improved by super-resolution processing, and the accuracy of face recognition is improved, which provides data support for the subsequent determination of the identity information of the target person (that is, the person with dangerous behavior), and improves the accuracy of the identity information determined subsequently.
[0146] Based on any of the above embodiments, when the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected, the dangerous behavior detection method further includes: issuing a dangerous behavior warning.
[0147] In one embodiment, the dangerous behavior warning includes: warning in the form of voice broadcast or buzzer alarm. The device for playing the voice broadcast or buzzer alarm can be set near the camera that collects the image to be detected.
[0148] Based on this, an alarm can be issued at the scene where dangerous behavior occurs, so as to promptly urge the target personnel to regulate their behavior as soon as possible and improve the safety of the operation. It should be noted that the above-mentioned dangerous behavior alarm can also have other alarm forms, such as controlling the flashing of the warning light, etc., and the present invention does not make specific restrictions on this.
[0149] In another embodiment, the dangerous behavior warning includes: sending dangerous behavior prompt information to the supervisor.
[0150] Based on this, when dangerous behavior is detected, supervisors can be notified in a timely manner so that they can understand or intervene in the dangerous behavior.
[0151] The dangerous behavior detection method provided by the embodiment of the present invention can issue a dangerous behavior alarm when the presence of dangerous behavior is detected. Based on this, the detected dangerous behavior can be intervened to improve the safety of the operation. In addition, since an alarm is issued when the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected, an alarm can be issued in advance before the comprehensive detection result of the dangerous behavior is generated, thereby improving the alarm efficiency and thus improving the safety of the operation.
[0152] Based on any of the above embodiments, the comprehensive detection result of dangerous behavior includes the identity information of the target person in the image to be detected; after the comprehensive detection result of dangerous behavior is generated based on the dangerous behavior detection result and the face recognition result of the image to be detected, it also includes:
[0153] In the case where the preset personnel database includes the identity information, based on the identity information, sending dangerous behavior warning information to the target person;
[0154] If the personnel database does not include the identity information, a dangerous behavior reminder message is sent to the supervisor.
[0155] In a specific example, the identity information of the target person includes at least the contact information of the target person, and sending the dangerous behavior warning information to the target person based on the identity information includes: sending the dangerous behavior warning information to the target person based on the contact information of the target person.
[0156] In another specific example, the identity information of the target person includes at least the name of the target person, and the comprehensive detection result of the dangerous behavior includes at least the type of the dangerous behavior; the above-mentioned sending of dangerous behavior warning information to the target person based on the identity information includes: based on the name of the target person and the type of dangerous behavior, the target person is warned of dangerous behavior in the form of broadcast. For example, when the name of the target person is A and the type of dangerous behavior is C, the following message is broadcasted: "Employee A, for your life safety, please pay attention to correct behavior C!".
[0157] The dangerous behavior detection method provided by the embodiment of the present invention can be understood that in some cases, the target person himself may not be aware that he has dangerous behavior; for example, in the case of a large-scale dangerous behavior alarm, if there are multiple operators in the operation scene, the target person may not know that it is himself who has dangerous behavior, and therefore may not make corrections. This will pose a greater safety hazard. The embodiment of the present invention can send warning information to individuals more accurately to improve the accuracy and reliability of dangerous behavior warnings. In addition, when the identity information of the target person cannot be detected from the personnel database, dangerous behavior prompt information is sent to the supervisor, so as to promptly notify the monitoring personnel; in this way, it can be ensured that regardless of whether there is identity information of the target person, accurate dangerous behavior warnings can be issued to the target person to improve the safety of the operation.
[0158] Based on any of the above embodiments, after inputting the target feature map into the detection layer in the dangerous behavior detection model and obtaining the dangerous behavior detection result output by the detection layer, the method further includes:
[0159] In the case where the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected, the duration of the dangerous behavior is determined based on the acquisition time of the image to be detected and the start time of the dangerous behavior; wherein the start time is determined based on the acquisition time of the start detection image, and the start detection image is the image corresponding to the first detection of the dangerous behavior;
[0160] If the duration exceeds the preset time threshold, a dangerous behavior reminder message will be sent to the supervisor.
[0161] The dangerous behavior detection method provided by the embodiment of the present invention can send dangerous behavior prompt information to the supervisor when the dangerous behavior lasts too long (for example, when it exceeds a preset time threshold). It is understandable that after the dangerous behavior occurs, some target persons may have a fluke mentality and do not correct the dangerous behavior. In the case that the dangerous behavior lasts too long, it can be considered that the target person has not made substantial corrections to the dangerous behavior, so the supervisor can be prompted to intervene and improve the safety of the operation.
[0162] Based on any of the above embodiments, the dangerous behavior detection method provided by the embodiment of the present invention can be executed by default. Based on this, dangerous behaviors can be monitored in real time at all times to improve the safety of operators.
[0163] Based on any of the above embodiments, the dangerous behavior detection method provided by the present invention is executed only when the preset conditions are met.
[0164] In a specific example, the dangerous behavior detection method provided by the present invention is executed only when a dangerous behavior detection instruction is received.
[0165] In another specific example, the dangerous behavior detection method provided by the present invention is executed only when it is identified that there is a person in the image acquisition range of the image to be detected. For example, infrared detection, thermal detection, radar detection or image detection can be used to identify whether there is a person in the image acquisition range of the image to be detected.
[0166] In another specific example, the dangerous behavior detection method provided by the present invention is executed only when the current moment belongs to working time.
[0167] In this way, dangerous behavior detection can be performed only when the user needs it, so as to meet the different needs of users; in addition, the amount of image detection calculation can be reduced, saving computing power resources.
[0168] It can be seen that the above mainly introduces the solution provided by the embodiment of the present invention from the perspective of the method. In order to achieve the above functions, the embodiment of the present invention provides a hardware structure and / or software module corresponding to each function. It should be easy for those skilled in the art to realize that, in combination with the modules and algorithm steps of each example described in the embodiment disclosed in this article, the embodiment of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0169] The dangerous behavior detection device provided by the present invention is described below. The dangerous behavior detection device described below and the dangerous behavior detection method described above can be referred to each other.
[0170] Figure 8 The schematic diagram of the structure of the dangerous behavior detection device provided by the present invention is as follows: Figure 8 As shown, the dangerous behavior detection device includes:
[0171] A feature extraction module 810 is used to input the image to be detected into a feature extraction layer in the dangerous behavior detection model to obtain a target feature map output by the feature extraction layer, wherein the feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any of the sub-feature extraction layers includes a convolution layer and an attention layer connected in sequence;
[0172] A detection module 820, configured to input the target feature map into a detection layer in the dangerous behavior detection model to obtain a dangerous behavior detection result output by the detection layer;
[0173] A comprehensive detection result generating module 830, configured to generate a comprehensive dangerous behavior detection result based on the dangerous behavior detection result and the face recognition result of the image to be detected, when the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected;
[0174] The dangerous behavior detection model is trained based on sample images and dangerous behavior detection result labels corresponding to the sample images.
[0175] It should be noted that Figure 8 The division of modules in the example is schematic and is only a logical function division. There may be other division methods in actual implementation. For example, two or more functions may be integrated into one processing module. The above integrated modules may be implemented in the form of hardware or software function modules.
[0176] Fig. 9 An example of a physical structure diagram of an electronic device is shown in FIG. Fig. 9 As shown, the electronic device may include: a processor 910, a communication interface 920, a memory 930 and a communication bus 940, wherein the processor 910, the communication interface 920 and the memory 930 communicate with each other through the communication bus 940. The processor 910 may call the logic instructions in the memory 930 to execute the dangerous behavior detection method described in any of the above embodiments.
[0177] In addition, the logic instructions in the above-mentioned memory 930 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0178] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the dangerous behavior detection method provided by the above-mentioned methods.
[0179] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0180] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0181] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A dangerous behavior detection method, characterized in that: include: Inputting the image to be detected into the feature extraction layer in the dangerous behavior detection model to obtain a target feature map output by the feature extraction layer, wherein the feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any of the sub-feature extraction layers includes a convolution layer and an attention layer connected in sequence; Inputting the target feature map into the detection layer in the dangerous behavior detection model to obtain the dangerous behavior detection result output by the detection layer; In a case where the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected, generating a comprehensive dangerous behavior detection result based on the dangerous behavior detection result and the face recognition result of the image to be detected; Wherein, the dangerous behavior detection model is obtained by training based on sample images and dangerous behavior detection result labels corresponding to the sample images; The comprehensive detection result of dangerous behavior includes the identity information of the target person in the image to be detected; after the comprehensive detection result of dangerous behavior is generated based on the dangerous behavior detection result and the face recognition result of the image to be detected, it also includes: In the case where the preset personnel database includes the identity information, sending dangerous behavior warning information to the target person based on the identity information; In the case where the personnel database does not include the identity information, sending a dangerous behavior reminder message to the supervisor; After inputting the target feature graph into the detection layer in the dangerous behavior detection model to obtain the dangerous behavior detection result output by the detection layer, the method further includes: In the case where the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected, the duration of the dangerous behavior is determined based on the acquisition time of the image to be detected and the start time of the dangerous behavior; wherein the start time is determined based on the acquisition time of the start detection image, and the start detection image is the image corresponding to the first detection of the dangerous behavior; When the duration exceeds a preset duration threshold, a dangerous behavior reminder message is sent to the supervisor.
2. The dangerous behavior detection method according to claim 1, characterized in that: Any of the above attention layers performs feature extraction based on: Inputting the input feature map of the attention layer into the global average pooling layer in the attention layer to obtain a first feature map output by the global average pooling layer; Inputting the first feature map to the multi-channel feature extraction layer in the attention layer to obtain a second feature map output by the multi-channel feature extraction layer; the second feature map is used to indicate the channel weights of each channel in the input feature map, and the scale of the second feature map is the same as that of the first feature map; Inputting the second feature map into a normalization layer in the attention layer to obtain a third feature map output by the normalization layer; Fusion the third feature map with the input feature map to obtain a fourth feature map; The fourth feature map is used as the output feature map of the attention layer.
3. The dangerous behavior detection method according to claim 1, characterized in that: Any of the sub-feature extraction layers includes a convolutional layer, an attention layer, an activation layer and a pooling layer connected in sequence.
4. The dangerous behavior detection method according to claim 1, characterized in that: The generating of a comprehensive dangerous behavior detection result based on the dangerous behavior detection result and the face recognition result of the image to be detected includes: Based on the face recognition result, obtaining the identity information of the target person in the image to be detected; Based on the identity information and the dangerous behavior detection result, generating a comprehensive dangerous behavior detection result; The comprehensive detection result of the dangerous behavior includes at least one of the following: the identity information of the target person, the type of the dangerous behavior, the time when the dangerous behavior occurred, and the address where the dangerous behavior occurred.
5. The dangerous behavior detection method according to claim 1, characterized in that: The face recognition result is determined based on the following method: Performing face detection on the image to be detected to obtain a face image; Performing super-resolution processing on the facial image to obtain a processed facial image; Performing face recognition on the processed face image to obtain the face recognition result.
6. A dangerous behavior detection device, characterized in that: include: A feature extraction module, used for inputting the image to be detected into the feature extraction layer in the dangerous behavior detection model to obtain a target feature map output by the feature extraction layer, wherein the feature extraction layer includes a plurality of sub-feature extraction layers connected in sequence, and any of the sub-feature extraction layers includes a convolution layer and an attention layer connected in sequence; A detection module, used for inputting the target feature map into the detection layer in the dangerous behavior detection model to obtain the dangerous behavior detection result output by the detection layer; A comprehensive detection result generating module, configured to generate a comprehensive dangerous behavior detection result based on the dangerous behavior detection result and the face recognition result of the image to be detected, when the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected; Wherein, the dangerous behavior detection model is obtained by training based on sample images and dangerous behavior detection result labels corresponding to the sample images; The comprehensive detection result of dangerous behavior includes the identity information of the target person in the image to be detected; the device also includes: an information sending module; The information sending module is used to send dangerous behavior warning information to the target person based on the identity information when the preset personnel database includes the identity information; The information sending module is further used to send dangerous behavior prompt information to the supervisor when the personnel database does not include the identity information; The device also includes: A duration determination module, for determining the duration of the dangerous behavior based on the acquisition time of the image to be detected and the start time of the dangerous behavior when the dangerous behavior detection result indicates that there is a dangerous behavior in the image to be detected; wherein the start time is determined based on the acquisition time of the start detection image, and the start detection image is the image corresponding to the first detection of the dangerous behavior; The information sending module is also used to send dangerous behavior prompt information to the supervisor when the duration exceeds a preset duration threshold.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the dangerous behavior detection method according to any one of claims 1 to 5 are implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the dangerous behavior detection method according to any one of claims 1 to 5 are implemented.
