Intelligent identification method and system for abnormal behaviors of employees under edge computing architecture
By improving the YOLOv10n network to the IIDA network and combining it with the edge computing architecture, the problems of speed, accuracy and convenience in employee abnormal behavior detection are solved, and efficient and accurate employee abnormal behavior identification and monitoring are achieved.
Patent Information
- Application Number
- CN202410739522.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-06
AI Technical Summary
It is difficult for the existing technology to take into account detection speed, detection accuracy and detection convenience when detecting abnormal employee behavior. It is difficult for traditional manual inspection methods to achieve full coverage, and existing intelligent methods have problems of missed detections, false detections and limited improvement in model accuracy. .
Improve the YOLOv10n network to the IIDA network by replacing the Conv convolution layer with the DSConv convolution layer, the PSA layer with the Polarized Self-Attention layer, and add the YOLO-MS module between the neck network and the detection head, and deploy it to the edge computing architecture , to identify abnormal employee behaviors.
It improves detection speed, accuracy and robustness, realizes intelligent identification and monitoring of abnormal employee behavior, takes into account real-time performance and accuracy, and reduces the amount of calculation and model complexity.
Smart Images

Figure CN118609024A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image recognition, and in particular to a method and system for intelligently identifying abnormal behaviors of employees under an edge computing architecture. Background Art
[0002] With the gradual expansion of the production scale of modern smart factories, the factory area, number of factories and number of employees of enterprises have increased dramatically. As a result, due to the scattered factory areas and the wide range of employee activities, it is difficult to grasp the status of employees during work, such as standing in dangerous areas, not wearing safety helmets properly, not wearing safety clothes, being addicted to mobile phones during work, sudden fainting without anyone noticing, and other abnormal behaviors. Effective identification of employees' abnormal behaviors is crucial to standardizing enterprise management, ensuring employee safety and improving enterprise production efficiency. Traditional manual inspection methods are difficult to achieve full coverage of the factory area, and various abnormal behaviors are prone to missed detection and false detection. At the same time, there is a lack of effective prediction and judgment of various potential personnel safety, standardized management and production safety issues. Therefore, it is urgent to carry out research on intelligent identification and monitoring of abnormal personnel behaviors.
[0003] The R-CNN (Regions with Convolutional Neural Network) series based on deep convolutional neural networks, the SSD (Single Shot MultiBox Dector) series based on single-stage detectors, and the YOLO (You Only Look Once) series are the current mainstream target detection algorithms. Among them, the YOLO series target detection algorithms are highly favored due to their high efficiency and ease of use. They are also one of the research hotspots in industry and academia, and are widely used in production services and security management fields such as urban security, traffic management, smart retail, agricultural monitoring, environmental research, and map making. At the same time, edge computing has the advantage of near-end processing, which can provide computing, storage, and network bandwidth close to data input or users, and provide cloud services and IT environment services for application developers and service providers on the edge side of the network. It has the characteristics of fast system response speed and strong data processing capabilities, and can better adapt to the management requirements of modern factories such as real-time, accuracy, and efficiency. Therefore, under the edge computing architecture, conducting intelligent research on the recognition and monitoring of abnormal behavior of personnel is of great significance to the sustainable development of modern factories.
[0004] In order to understand the current status of the development of existing target detection algorithm configuration methods and technologies, we searched, compared and analyzed existing papers and patents, and screened out the following technical information that is highly relevant to the present invention:
[0005] Technical Solution 1: Patent Publication No. CN202210962497.X, "A Method and Device for Detecting Abnormal Personnel Behavior Based on Video Surveillance", discloses a method and device for detecting abnormal personnel behavior based on video surveillance. The detection method comprises the following steps: obtaining a video image of the surveillance area captured by a camera in real time; performing detection and tracking based on the video image to obtain a real-time changing human body detection frame; performing abnormal behavior detection based on the geometric size characteristics and motion state characteristics of the human body detection frame; and issuing an alarm if abnormal behavior exists. This detection method improves the accuracy of abnormal personnel detection to a greater extent.
[0006] Technical Solution 2: Patent Publication No. CN201910229246.9, "A Vision-Based Abnormal Behavior Detection Method for Operating Vehicle Personnel", discloses a video-based abnormal behavior detection method for operating vehicle personnel. The abnormal behavior detection method is: first, the image information of the driver and the surrounding personnel in the vehicle is collected in all directions; then, the 2D image is extracted, and the skeletal nodes of all personnel in the image are annotated using the deep learning algorithm in the OpenPose database; then, the interfering personnel and the interfered personnel are defined in combination with the vehicle driving status, and the dangerous distance threshold of each key limb part of the interfered personnel is calculated. Subsequently, the dangerous distance threshold of the wrist node of the interfering person and the key limb part of the interfered person is calculated based on the binocular ranging principle; finally, the abnormal behavior of the interfering person is detected by judging the time when the spatial distance is within the dangerous distance threshold. The detection method obtains the image information of the personnel in the vehicle in all directions through distributed cameras, provides the posture of the personnel in real time based on the OpenPose database, obtains the spatial relative position between the personnel in the vehicle in combination with the binocular ranging principle, and uses this to determine whether the personnel in the vehicle have abnormal behavior, which provides the possibility for the visual-based abnormal behavior detection of operating vehicle personnel.
[0007] Technical Solution 3: Patent Publication No. CN202310710806.9, "Method, Device and Related Equipment for Detecting Abnormal Behavior of Community Personnel", discloses a method, device and related equipment for detecting abnormal behavior of community personnel. The method steps for detecting abnormal behavior of personnel published in the patent are as follows: first, obtain the video stream of community monitoring, and perform frame extraction and scaling processing on the video to obtain a detection image set; perform human body detection on the detection image set through the pre-trained YOLO model to obtain a human body image containing a detection frame; use the OpenPose model to perform posture recognition on the human body image to obtain a human body posture image containing human body posture information; input the human body posture image into the preset TransReID model for posture information recognition and tracking, and output a structured data set saved in the form of structured data; input the structured data set into the preset behavior classification model for abnormal behavior recognition, determine whether the behavior of each detection object in the structured data set is abnormal behavior, mark the detection object belonging to abnormal behavior and perform target tracking in the video stream. This patent improves the efficiency of management personnel and reduces the possibility of risk events in the community.
[0008] Technical Solution 4: Patent Publication No. CN202211640713.5, "Abnormal Personnel Behavior Detection Method and System Based on Machine Vision and Target Detection", discloses a method and system for abnormal personnel behavior detection based on computer vision and target detection. The abnormal personnel behavior detection method disclosed in the patent includes the following steps: obtaining the unloading machine operation site image, the target person image and lighting data, and obtaining the operation feedback information of the unloading machine equipment itself; preprocessing the collected images; extracting the facial feature data of the target person image to determine whether it is an abnormal person. If the target person whose facial feature data cannot be extracted due to facial occlusion, the clothing features are extracted and it is determined whether it is an abnormal person; judging the unloading machine operation stage according to the operation feedback information, the abnormal person's operation site image and human body image are input into the lightweight network Mobilenetv2-YOLOv4 algorithm model to determine whether abnormal behavior occurs. This abnormal personnel behavior detection model greatly reduces the number of parameters and calculations, and improves the detection speed.
[0009] Technical Solution 1 acquires the video image of the monitoring area taken by the camera in real time; performs detection and tracking based on the video image to obtain a real-time changing human body detection frame; performs abnormal behavior detection based on the geometric size characteristics and motion state characteristics of the human body detection frame. This detection method improves the accuracy of personnel abnormality detection to a greater extent, but the detection speed is slow.
[0010] Technical Solution 2 provides the posture of people in real time based on the OpenPose database, and combines the binocular ranging principle to obtain the spatial relative positions of people in the car, and uses this to determine whether the people in the car have abnormal behavior. Although it provides the possibility of abnormal behavior detection of operating vehicle personnel based on vision, the detection steps are too cumbersome.
[0011] Technical Solution 3 inputs the structured data set into a preset behavior classification model to identify abnormal behaviors, determine whether the behavior of each detection object in the structured data set is abnormal behavior, mark the detection objects that belong to abnormal behavior and track the target in the video stream. Although this solution can improve the efficiency of managers, the improvement in model accuracy is limited.
[0012] Technical Solution 4 inputs the work site images and human body images of abnormal personnel into the lightweight network Mobilenetv2-YOLOv4 algorithm model to determine whether abnormal behavior occurs. This personnel abnormal behavior detection model greatly reduces the number of parameters and calculations, and improves the detection speed. However, the detection speed of this method is still low, and the detection accuracy is not high. Summary of the invention
[0013] In response to the above-mentioned deficiencies in the prior art, the method and system for intelligently identifying abnormal employee behaviors under the edge computing architecture provided by the present invention solve the problem that the prior art for detecting employee behaviors is difficult to balance detection speed, detection accuracy and detection convenience.
[0014] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:
[0015] A method for intelligently identifying abnormal employee behavior under an edge computing architecture is provided, which includes the following steps:
[0016] S1. Improve the YOLOv10n network to get the IIDA network:
[0017] Replace the remaining Conv convolutional layers in YOLOv10n except the first Conv convolutional layer in the backbone network with DSConv convolutional layers, replace the PSA layer in YOLOv10n with the Polarized Self-Attention layer, and add the YOLO-MS module between the neck network and the detection head of YOLOv10n to obtain the improved YOLOv10n network, namely the IIDA network;
[0018] S2, deploy the trained IIDA network to the edge computing architecture;
[0019] S3, obtaining the image to be identified and preprocessing it to obtain the preprocessed image to be identified;
[0020] S4, extracting features of different depths of the preprocessed image to be identified through the backbone network of the trained IIDA network;
[0021] S5, fusing the features of different depths extracted by the backbone network through the neck network of the trained IIDA network to obtain fused features of different depths;
[0022] S6. Enhance the fusion features of different depths through the YOLO-MS module to obtain enhanced features;
[0023] S7. The detection head of the trained IIDA network is used to classify and identify abnormal behaviors on the enhanced features to obtain abnormal behavior identification results of employees.
[0024] Furthermore, the edge computing architecture is the Atlas 200IDK A2 edge computing box.
[0025] Furthermore, the training method of IIDA network is:
[0026] Images of employees wearing helmets, falling, addicted to mobile phones, smoking, not wearing safety clothes, wearing safety clothes, and not wearing helmets during work are obtained as training images, and are labeled accordingly to form a training set; the IIDA network is trained using the training set until the number of training times is reached or the recognition readiness rate reaches a threshold, thereby obtaining a trained IIDA network.
[0027] Furthermore, the backbone network of the IIDA network includes a Conv convolutional layer, a first DSConv convolutional layer, a first C2f layer, a second DSConv convolutional layer, a second C2f layer, a first SCDown layer, a third C2f layer, a second SCDown layer, a fourth C2f layer, an SPPF layer and a Polarized Self-Attention layer connected in sequence; wherein the outputs of the second C2f layer, the third C2f layer and the PolarizedSelf-Attention layer are all features of the backbone network output.
[0028] Furthermore, the neck network of the IIDA network includes a first Upsample layer, a first Concat layer, a fifth C2f layer, a second Upsample layer, a second Concat layer, a sixth C2f layer, a third DSConv convolution layer, a third Concat layer, a seventh C2f layer, a third SCDown layer, a fourth Concat layer and a C2fCIB layer connected in sequence; wherein the input of the first Upsample layer and the other input of the fourth Concat layer are both the output of the Polarized Self-Attention layer; the other input of the first Concat layer is the output of the third C2f layer; the other input of the second Concat layer is the output of the second C2f layer; the other input of the third Concat layer is the output of the fifth C2f layer; the output of the sixth C2f layer, the output of the seventh C2f layer and the output of the C2fCIB layer are all fusion features.
[0029] Furthermore, there are three YOLO-MS modules, and the input ends of the three YOLO-MS modules are respectively connected to the output of the sixth C2f layer, the output of the seventh C2f layer, and the output of the C2fCIB layer.
[0030] Furthermore, the detection head of the IIDA network includes three detection units, and the input end of each detection unit is connected to the output end of a YOLO-MS module.
[0031] Provided is an intelligent identification system for abnormal employee behavior under an edge computing architecture, which includes an edge computing architecture, a data acquisition module, and a behavior identification module;
[0032] Edge computing architecture for deploying behavior recognition modules;
[0033] Data acquisition module, used to collect and pre-process the image to be identified.
[0034] The behavior recognition module is used to classify and identify abnormal behaviors of pre-processed images to be identified through the trained IIDA network to obtain the abnormal behavior recognition results of employees;
[0035] The construction method of the IIDA network is as follows: replace the Conv convolution layer in YOLOv10n with the DSConv convolution layer, replace the PSA layer in YOLOv10n with the Polarized Self-Attention layer, add a YOLO-MS module between the neck network and the detection head of YOLOv10n, and obtain the improved YOLOv10n network, namely the IIDA network.
[0036] The beneficial effects of the present invention are as follows: the present invention replaces the Conv convolution in YOLOv10n with DSConv convolution, and adopts DSConv to improve the memory efficiency and speed of the convolution layer; uses Polarized Self-Attention to replace the original PSA to improve the efficiency and accuracy of the IIDA network while reducing the amount of calculation; adds the YOLO-MS module, and adopts a hierarchical approach to fuse and enhance features from different levels of the network, which helps the performance of the model when processing fine-grained and coarse-grained information; uses convolution kernels of different sizes at different stages of the network to adapt to feature representations of different scales, thereby improving the robustness and generalization ability of the IIDA network in the process of identifying abnormal employee behaviors; the present invention deploys the trained IIDA network to the Atlas200IDK A2 edge computing box to ensure real-time data analysis and early warning, thereby realizing intelligent identification and monitoring of abnormal employee behaviors, and taking into account the detection speed, detection accuracy and detection convenience of employee behavior detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 is a schematic diagram of the process of this method;
[0038] Figure 2 It is a schematic diagram of the structure of the IIDA network;
[0039] Figure 3 It is the PR curve of IIDA network on the test set in the single target scenario;
[0040] Figure 4 It is the convergence curve of IIDA network in single target scenario;
[0041] Figure 5 Schematic diagram of helmet wearing detection by IIDA network in the embodiment;
[0042] Figure 6 It is the PR curve of IIDA network on the test set in multi-target scenario;
[0043] Figure 7 It is a visualized convergence curve for performance comparison of different algorithms in the embodiment;
[0044] Figure 8 Schematic diagram of the detection effect of the IIDA network in a mixed scenario. DETAILED DESCRIPTION
[0045] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0046] like Figure 1 and Figure 2 As shown, the method for intelligently identifying abnormal employee behavior under the edge computing architecture includes the following steps:
[0047] S1. Improve the YOLOv10n network to get the IIDA network:
[0048] Replace the remaining Conv convolutional layers in YOLOv10n except the first Conv convolutional layer in the backbone network with DSConv convolutional layers, replace the PSA layer in YOLOv10n with the Polarized Self-Attention layer, and add the YOLO-MS module between the neck network and the detection head of YOLOv10n to obtain the improved YOLOv10n network, namely the IIDA network;
[0049] S2, deploy the trained IIDA network to the edge computing architecture;
[0050] S3, obtaining the image to be identified and preprocessing it to obtain the preprocessed image to be identified;
[0051] S4, extracting features of different depths of the preprocessed image to be identified through the backbone network of the trained IIDA network;
[0052] S5, fusing the features of different depths extracted by the backbone network through the neck network of the trained IIDA network to obtain fused features of different depths;
[0053] S6. Enhance the fusion features of different depths through the YOLO-MS module to obtain enhanced features;
[0054] S7. The detection head of the trained IIDA network is used to classify and identify abnormal behaviors on the enhanced features to obtain abnormal behavior identification results of employees.
[0055] The DSConv convolution layer (DSConv2D) is a variant of the Depthwise SeparableConvolution, a lightweight convolution that splits the standard convolution into two steps: depthwise convolution and pointwise convolution. Depthwise convolution performs convolution only on a single channel and applies a separate convolution kernel to each channel. Pointwise convolution applies a convolution kernel to all channels to combine the results of the depthwise convolution. The advantage of DSConv over depthwise separable convolution is that it uses a learnable convolution kernel to further improve the performance of the model.
[0056] The YOLO-MS module (MSBlock) is a lightweight network structure whose basic principle is to improve the multi-scale feature representation capability of real-time object detectors. This structure effectively processes features of different scales at different stages of the network by adopting a hierarchical feature fusion strategy and a heterogeneous convolution kernel selection protocol. This design enables the detector to better identify and process objects of different sizes. MSBlock can effectively represent and fuse features of different scales, enhancing the ability of real-time object detectors to handle objects of different scales. The hierarchical approach to fusing features from different levels of the network helps the model perform better when processing fine-grained and coarse-grained information. Using convolution kernels of different sizes at different stages of the network to adapt to feature representations of different scales improves the robustness and generalization of the model.
[0057] Polarized Self-Attention is an improved self-attention mechanism that aims to improve the efficiency and accuracy of self-attention models. Traditional self-attention mechanisms usually need to calculate the attention of all positions to all positions, which will increase the computational complexity and extend the training time of the model. Polarized Self-Attention improves the efficiency of the self-attention model by introducing a polarization factor to reduce the attention between pairs of positions that need to be calculated. The polarization factor is a vector that can be dot-producted with the vector of each position to determine which positions need attention calculations. This approach can improve the efficiency of the self-attention mechanism model by reducing the amount of computation while maintaining accuracy.
[0058] The intelligent identification system for abnormal employee behavior under the edge computing architecture includes an edge computing architecture, a data collection module, and a behavior identification module;
[0059] Edge computing architecture for deploying behavior recognition modules;
[0060] Data acquisition module, used to collect and pre-process the image to be identified.
[0061] The behavior recognition module is used to classify and identify abnormal behaviors of pre-processed images to be identified through the trained IIDA network to obtain the abnormal behavior recognition results of employees;
[0062] The construction method of the IIDA network is as follows: replace the Conv convolution layer in YOLOv10n with the DSConv convolution layer, replace the PSA layer in YOLOv10n with the Polarized Self-Attention layer, add a YOLO-MS module between the neck network and the detection head of YOLOv10n, and obtain the improved YOLOv10n network, namely the IIDA network.
[0063] The edge computing architecture uses the Atlas 200IDK A2 edge computing box. The Atlas 200IDK A2 developer kit is a high-performance AI developer kit that provides 8TOPS INT8 computing power and can realize image, video and other data analysis and reasoning calculations; it uses the Ascend 310 series AI processor, and the encoding and decoding capabilities support a variety of hardware decoding; the system uses the Ubuntu 22.04 system to make the entire system more stable. The trained IIDA network is deployed on the edge computing box, and the real-time behavior information of personnel is collected through the intelligent terminal devices deployed in various areas of the factory. The information is input into the edge computing box for behavior recognition. If the recognition result is abnormal behavior, a voice alarm can be issued according to the type of abnormal behavior, and the abnormal behavior is uploaded to the cloud. If it is not an abnormal behavior, this behavior is skipped for the next detection.
[0064] The training method of the IIDA network is as follows: images of employees wearing helmets, falling, addicted to mobile phones, smoking, not wearing safety clothes, wearing safety clothes and not wearing helmets during work are obtained as training images, and they are marked with corresponding labels to form a training set; the IIDA network is trained with the training set until the number of training times is reached or the recognition readiness rate reaches a threshold, thereby obtaining a trained IIDA network.
[0065] The backbone network of the IIDA network includes the Conv convolutional layer, the first DSConv convolutional layer, the first C2f layer, the second DSConv convolutional layer, the second C2f layer, the first SCDown layer, the third C2f layer, the second SCDown layer, the fourth C2f layer, the SPPF layer and the Polarized Self-Attention layer, which are connected in sequence; the outputs of the second C2f layer, the third C2f layer and the Polarized Self-Attention layer are all features of the backbone network output.
[0066] The neck network of the IIDA network includes the first Upsample layer, the first Concat layer, the fifth C2f layer, the second Upsample layer, the second Concat layer, the sixth C2f layer, the third DSConv convolution layer, the third Concat layer, the seventh C2f layer, the third SCDown layer, the fourth Concat layer and the C2fCIB layer connected in sequence; the input of the first Upsample layer and the other input of the fourth Concat layer are both the output of the Polarized Self-Attention layer; the other input of the first Concat layer is the output of the third C2f layer; the other input of the second Concat layer is the output of the second C2f layer; the other input of the third Concat layer is the output of the fifth C2f layer; the output of the sixth C2f layer, the output of the seventh C2f layer and the output of the C2fCIB layer are all fusion features.
[0067] There are three YOLO-MS modules, and the input ends of the three YOLO-MS modules are connected to the output of the sixth C2f layer, the output of the seventh C2f layer, and the output of the C2fCIB layer respectively. The detection head of the IIDA network includes three detection units (v10Detect), and the input end of each detection unit is connected to the output end of a YOLO-MS module.
[0068] In one embodiment of the present invention, in order to verify the effectiveness of the present invention, for the common abnormal behaviors of employees in most factories during work, such as improper wearing of helmets, not wearing safety clothes, falling, mobile phone addiction, smoking, etc., a dataset is created based on the public dataset and combined with the method of extracting key frames in surveillance videos. The dataset contains 6,000 samples in total, which are annotated using Labelimg image annotation software. The annotation content is divided into seven categories, namely helmet, Safetyclothing, smoke, fall, phone, head and clothes, where helmet means wearing a helmet, Safetyclothing means wearing safety clothes, smoke means smoking, fall means falling, phone means mobile phone addiction, head means not wearing a helmet, and clothes means not wearing safety clothes. Finally, the samples are subdivided into training set, test set and verification set according to the ratio of 8:1:1. According to different actual needs, employee abnormal behaviors are identified and detected in two scenarios: single target and multi-target.
[0069] In a single-target scenario, the effectiveness of the present invention is verified by taking the recognition and detection of a helmet as an example. Figure 3The PR curve of the IIDA network is given. Generally speaking, the larger the area enclosed by the PR curve and the coordinate axis, the higher the AP value and the better the model performance. It can be seen that the area enclosed by the PR curve of the IIDA network and the coordinate axis is larger, so the IIDA network has a higher detection accuracy in the test set of this dataset.
[0070] Use IIDA network to train and test on the dataset. Figure 4 To visualize the convergence of the IIDA network in different indicators, it mainly involves the confidence loss, bounding box loss and category loss loss curves of the validation set and training set, as well as the convergence curves of the following four performance metrics (Precision, Recall, mAP@0.5, mAP@0.5:0.95). The horizontal axis represents the number of iterations epoch.
[0071] The visualization convergence curve analysis of the IIDA network shows that the Precision image, Recall image, mAP@0.5 image and mAP@0.5:0.95 image of the IIDA network are relatively stable; after 200 iterations, the loss curve of the classification loss tends to 0. From the four performance index curves, it can be seen that the various indicators of the IIDA network can converge at a very fast speed, and finally the mAP@0.5 is stable at 85.1%; the accuracy rate is close to 95.2%; and the recall rate is close to 93.0%.
[0072] The performance evaluation indicators of the IIDA network on the test set of the abnormal behavior dataset in the security service category are shown in Table 1. It can be seen that the performance of the IIDA network remains at a high level.
[0073] Table 1
[0074]
[0075] IIDA network detection results are as follows Figure 5 As shown in the figure, we can see that the detected target bounding box accurately surrounds the helmet, and the bounding box is not too loose or too tight. The category labels on each bounding box are all correct and consistent with the actual target. The detection results show that each helmet is detected without false detection, missed detection, and inaccurate positioning.
[0076] In the multi-target detection scenario, the main detection targets are abnormal behaviors such as not wearing a helmet or safety clothing correctly, falling, mobile phone addiction, smoking, etc. The PR curve of the IIDA network is as follows: Figure 6 As shown. It can be seen that Figure 3 Similarly, the area enclosed by the PR curve and the coordinate axis of the IIDA network for each behavior is large, so the IIDA network has a higher detection accuracy in the test set of this dataset.
[0077] In order to compare the performance of different algorithms, the original YOLOv5s algorithm, the YOLOv5s algorithm with SE attention mechanism, and the IIDA network were used for training and testing on the dataset respectively. Figure 7 It is a visualized convergence curve of the algorithm mentioned in this embodiment in different indicators, mainly involving the confidence loss, bounding box loss and category loss loss curves of the validation set and training set, and the convergence curves of the following four performance metrics (Precision, Recall, mAP@0.5, mAP@0.5:0.95), and the horizontal axis represents the number of iterations epoch.
[0078] It can be seen that the Precision image, Recall image, mAP@0.5 image and mAP@0.5:0.95 image of the IIDA network are more stable than those of the other three algorithms; after 100 iterations, the loss curve of the classification loss tends to 0. From the four performance index curves, it can be seen that the various indicators of the IIDA network can converge at a very fast speed, and finally the mAP@0.5 is stable at 69.6%; the accuracy rate is close to 82.3%; and the recall rate is close to 95.0%.
[0079] The performance evaluation indicators of the IIDA network on the test set of the dataset of abnormal behaviors such as helmets, safety clothing, falls, mobile phone addiction, smoking, etc. are compared in Table 2. It can be seen that the P value of each category in the IIDA network is relatively high, indicating that the reliability of the model prediction as a positive sample is relatively high. The recall rate of all categories is as high as 95.0%, indicating that the proportion of positive sample instances correctly predicted by the model is high, and the high recall rate can ensure that all potential threats are captured. The IIDA network achieved a mAP@0.5 of 69.6% on the dataset of abnormal behaviors such as helmets, safety clothing, falls, mobile phone addiction, smoking, etc., which means that the model has a fairly high accuracy in detecting various targets.
[0080] Table 2
[0081]
[0082]
[0083] As can be seen from Table 2, the present invention achieves 69.6% mAP@0.5 on the dataset of abnormal behaviors such as helmets, safety clothing, falls, mobile phone addiction, and smoking, which means that the present invention has a fairly high accuracy in detecting various targets.
[0084] The detection effect of IIDA network is as follows Figure 8As shown in the figure, due to the possibility of target overlap, occlusion and target size differences during the detection process, the single target detection effect is better than the multi-target detection effect. However, in both scenarios, the IIDA network performs well in evaluation indicators such as accuracy, recall rate and mAP@0.5 value, which verifies the effectiveness of the present invention.
[0085] In summary, the present invention meets the requirements of speed and accuracy in detecting abnormal behaviors of employees on the one hand, and at the same time has voice alarm and cloud visualization display functions, which provides convenience for managers.
Claims
1. A method for intelligently identifying abnormal employee behavior under an edge computing architecture, characterized in that: The following steps are involved: S1. Improve the YOLOv10n network to get the IIDA network: Replace the remaining Conv convolutional layers in YOLOv10n except the first Conv convolutional layer in the backbone network with DSConv convolutional layers, replace the PSA layer in YOLOv10n with the Polarized Self-Attention layer, and add the YOLO-MS module between the neck network and the detection head of YOLOv10n to obtain the improved YOLOv10n network, namely the IIDA network; S2, deploy the trained IIDA network to the edge computing architecture; S3, obtaining the image to be identified and preprocessing it to obtain the preprocessed image to be identified; S4, extracting features of different depths of the preprocessed image to be identified through the backbone network of the trained IIDA network; S5, fusing the features of different depths extracted by the backbone network through the neck network of the trained IIDA network to obtain fused features of different depths; S6. Enhance the fusion features of different depths through the YOLO-MS module to obtain enhanced features; S7. The detection head of the trained IIDA network is used to classify and identify abnormal behaviors on the enhanced features to obtain abnormal behavior identification results of employees.
2. The method for intelligently identifying abnormal employee behavior under the edge computing architecture according to claim 1 is characterized in that: The edge computing architecture is the Atlas 200IDK A2 edge computing box.
3. The method for intelligently identifying abnormal employee behavior under the edge computing architecture according to claim 1 is characterized in that: The training method of IIDA network is: Images of employees wearing helmets, falling, addicted to mobile phones, smoking, not wearing safety clothes, wearing safety clothes, and not wearing helmets during work are obtained as training images, and are labeled accordingly to form a training set; the IIDA network is trained using the training set until the number of training times is reached or the recognition readiness rate reaches a threshold, thereby obtaining a trained IIDA network.
4. The method for intelligently identifying abnormal employee behavior under the edge computing architecture according to claim 1 is characterized in that: The backbone network of the IIDA network includes the Conv convolutional layer, the first DSConv convolutional layer, the first C2f layer, the second DSConv convolutional layer, the second C2f layer, the first SCDown layer, the third C2f layer, the second SCDown layer, the fourth C2f layer, the SPPF layer and the Polarized Self-Attention layer, which are connected in sequence; the outputs of the second C2f layer, the third C2f layer and the Polarized Self-Attention layer are all features of the backbone network output.
5. The method for intelligently identifying abnormal employee behavior under the edge computing architecture according to claim 4 is characterized in that: The neck network of the IIDA network includes the first Upsample layer, the first Concat layer, the fifth C2f layer, the second Upsample layer, the second Concat layer, the sixth C2f layer, the third DSConv convolution layer, the third Concat layer, the seventh C2f layer, the third SCDown layer, the fourth Concat layer and the C2fCIB layer connected in sequence; the input of the first Upsample layer and the other input of the fourth Concat layer are both the output of the Polarized Self-Attention layer; the other input of the first Concat layer is the output of the third C2f layer; the other input of the second Concat layer is the output of the second C2f layer; the other input of the third Concat layer is the output of the fifth C2f layer; the output of the sixth C2f layer, the output of the seventh C2f layer and the output of the C2fCIB layer are all fusion features.
6. The method for intelligently identifying abnormal employee behavior under the edge computing architecture according to claim 5 is characterized in that: There are three YOLO-MS modules, and the input ends of the three YOLO-MS modules are respectively connected to the output of the sixth C2f layer, the output of the seventh C2f layer, and the output of the C2fCIB layer.
7. The method for intelligently identifying abnormal employee behavior under the edge computing architecture according to claim 6 is characterized in that: The detection head of the IIDA network consists of three detection units, and the input of each detection unit is connected to the output of a YOLO-MS module.
8. An intelligent identification system for abnormal employee behavior under edge computing architecture, characterized in that: Including edge computing architecture, data collection module, and behavior recognition module; Edge computing architecture for deploying behavior recognition modules; Data acquisition module, used to collect and pre-process the image to be identified. The behavior recognition module is used to classify and identify abnormal behaviors of pre-processed images to be identified through the trained IIDA network to obtain the abnormal behavior recognition results of employees; The construction method of the IIDA network is as follows: replace the Conv convolution layer in YOLOv10n with the DSConv convolution layer, replace the PSA layer in YOLOv10n with the Polarized Self-Attention layer, add a YOLO-MS module between the neck network and the detection head of YOLOv10n, and obtain the improved YOLOv10n network, namely the IIDA network.
