High-altitude safety operation detection method and system based on Internet of Things and visual AI
Through the Internet of Things and visual AI technology, the wearing status of high-altitude workers is monitored in real time, which solves the problem of false alarms in the existing technology and achieves efficient, accurate monitoring and rapid response to the safety of high-altitude operations.
Patent Information
- Application Number
- CN202410915934.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-09
AI Technical Summary
Existing technology is difficult to accurately detect when workers working at heights do not wear safety helmets and safety ropes correctly, leading to false alarms.
A high-altitude safety operation detection method based on the Internet of Things and visual AI is adopted. By acquiring and preprocessing video data, the trained visual AI model is used to identify the wearing condition in real time, and the detection results are sent to the on-site alarm equipment for sound and light through IoT communication. Alerts, ensuring accurate identification and timely response.
It achieves real-time and accurate monitoring of the safety helmets and safety ropes worn by workers working at heights, reduces the possibility of human errors and omissions, and ensures rapid response and prevention of safety accidents.
Smart Images

Figure CN118470610B_ABST
Abstract
Description
Technical Field
[0001] Aerial work usually refers to work at height, which refers to work performed by people at a height with a certain position as a reference. The national standard GB / T3608-2008 "Classification of Work at Height" stipulates that work at height is: "Work performed at a height where there is a possibility of falling, 2m or more from the fall height reference plane (3.2)." When a flatbed truck is installing a awning in a designated area, the operator needs to work on the roof. The height work specifications require that when performing work at height, you must wear a safety rope and a safety helmet.
[0002] A Chinese patent application with publication number CN114821653A discloses a method for detecting behavioral norms for aerial work, comprising the following steps: S1, using the RTSP protocol to obtain the video stream of the camera in the construction area, and performing frame sampling on the video stream and inputting it into the detection system, S2, using a target detection algorithm to detect the human body, safety rope, safety belt, human head without a safety helmet, and human head wearing a safety helmet in the frame image; the present invention collects a large amount of data through a network crawler and self-shooting and annotates it, and the annotated categories include human body frame, human head wearing a safety helmet, human head not wearing a safety helmet, safety belt, safety rope, and computer image technology are used to detect the behavior of workers, and an alarm is issued if there is any irregular behavior, wherein the irregular behavior includes not wearing a safety helmet, safety rope, or safety belt correctly, thereby improving the factory safety management level.
[0003] Although the existing technology can identify whether the safety helmet, safety rope and safety belt are worn correctly, it is inconvenient to detect the time when the safety helmet and safety rope are not worn correctly, resulting in the problem of false alarms. Summary of the invention
[0004] In view of the shortcomings of the prior art, the present invention provides a high-altitude safety operation detection method and system based on the Internet of Things and visual AI, which solves the problem that the prior art is inconvenient to detect the time when the safety helmet and safety rope are not worn correctly, resulting in false alarms.
[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: a high-altitude safety operation detection method based on the Internet of Things and visual AI, comprising the following steps: obtaining and preprocessing the video data of high-altitude safety workers, and transmitting the preprocessed video data of high-altitude safety workers to a data processing center in real time based on the Internet of Things communication; the data processing center processes the received video data of high-altitude safety workers based on the trained visual AI model, and outputs the safety detection results; the safety detection results are sent to the on-site alarm equipment based on the Internet of Things communication, and the on-site alarm equipment issues an audible and visual alarm.
[0006] Furthermore, the process of preprocessing the video data of the high-altitude safety workers is to divide the video data of the high-altitude safety workers into frames based on the set time step to form a picture to be detected; the process of transmitting the preprocessed video data of the high-altitude safety workers to the data processing center in real time based on the Internet of Things communication is: compressing and encrypting the picture to be detected formed after preprocessing to form a data packet to be transmitted; marking the data packet to be transmitted based on the source area ID of the video data of the high-altitude safety workers; and sending the marked data packet to be transmitted to the data processing center through the Internet of Things communication.
[0007] Furthermore, the process of training the visual AI model is as follows: obtaining a video training data set and performing frame processing on the video data training set to form a picture training data set; dividing the picture training data set into multiple groups of picture training data subsets; performing enhancement processing on the picture training data subsets and dividing them into an enhanced picture training set and an enhanced picture verification set; training and verifying the visual AI model based on the enhanced picture training set and the enhanced picture verification set respectively, performing feature fusion on the enhanced picture training set and the enhanced picture verification set during the training process, and minimizing the loss function during the verification process; after completing the training of the visual AI model with the enhanced picture training set, verifying the trained visual AI model based on the enhanced picture verification set to obtain a verification data set; evaluating the trained visual AI model based on the verification data set to obtain an evaluation index; if the evaluation index is less than or equal to the set performance threshold, the training is completed; if the evaluation index is greater than the set performance threshold, the visual AI model is optimized and retrained, and the optimization includes adjusting the hyperparameters of the visual AI model, and the hyperparameters include learning rate, batch size, and regularization parameter.
[0008] Furthermore, enhancing the image training data subset includes rotating, scaling, cropping, color adjustment and deleting blurred images in the image training data subset, and also includes marking and timestamping each image in the image training data subset after rotation, scaling, cropping, color adjustment and deleting blurred images, and the markings include wearing a safety helmet, not wearing a safety helmet, wearing a safety rope and not wearing a safety rope.
[0009] Furthermore, during the training process, the process of performing feature fusion on the enhanced image training set and the enhanced image verification set is as follows: obtaining the features extracted by each convolutional layer from the training images in the enhanced image training set or the verification images in the enhanced image verification set; and fusing the features extracted by each convolutional layer based on the feature fusion algorithm to obtain the fused features.
[0010] Furthermore, the formula for obtaining the fused features is:
[0011] ;
[0012] In the formula, is a training image in the augmented image training set or a verification image in the augmented image verification set. The first convolutional feature layer is used to extract features of the training images in the enhanced image training set or the verification images in the enhanced image verification set. The second convolutional features are the second convolutional features that extract features from the training images in the enhanced image training set or the verification images in the enhanced image verification set. The third convolutional layer extracts features of the training images in the enhanced image training set or the verification images in the enhanced image verification set. is the first layer convolution feature weight factor, is the second layer convolution feature weight factor, is the weight factor of the third layer convolution feature.
[0013] Furthermore, the verification data set includes a verification data subset obtained after each enhanced image verification set verifies the trained visual AI model, and each of the verification data subsets includes accuracy, precision, recall, mean deviation time for not wearing a safety helmet, and mean deviation time for not wearing a safety rope; the trained visual AI model is evaluated based on the verification data set to obtain the evaluation index as follows: the verification data subsets in the verification data set are fused to obtain the mean accuracy, mean precision, mean recall, deviation time value for not wearing a safety helmet, and deviation time value for not wearing a safety rope; the mean accuracy, mean precision, mean recall, deviation time value for not wearing a safety helmet, and deviation time value for not wearing a safety rope are fused and analyzed to obtain the evaluation index based on the evaluation model.
[0014] Furthermore, the evaluation model for obtaining the evaluation index is as follows:
[0015] ;
[0016] In the formula, To evaluate the index, is the deviation time value when not wearing a helmet, is the deviation time value when the safety rope is not worn. is the mean accuracy, is the mean precision, is the mean recall rate, is a constant term.
[0017] Furthermore, the safety detection results include wearing a safety helmet, not wearing a safety helmet, wearing a safety rope, and not wearing a safety rope; the safety detection results are sent to the on-site alarm device based on the Internet of Things communication, and the process of the on-site alarm device making an sound and light alarm is as follows: if the safety detection result is not wearing a safety helmet or not wearing a safety rope, the violation time of the operator not wearing a safety helmet or not wearing a safety rope is determined, and the violation time starts from the time corresponding to the picture frame in which the safety helmet or the safety rope is detected. When the detection result changes to wearing a safety helmet or wearing a safety rope, the accumulated time is recorded, and the time accumulator is reset, and the accumulated time is recorded as the violation time; it is determined whether the violation time exceeds the set violation threshold: if the violation time exceeds the set violation threshold, the source area of the video data of the high-altitude safety operator corresponding to the safety detection result is obtained, and an alarm signal is sent to the on-site alarm device in the source area based on the Internet of Things communication; if the violation time does not exceed the set violation threshold, the video data of the high-altitude safety operator continues to be processed and the safety detection result is output.
[0018] A high-altitude safety operation detection system based on the Internet of Things and visual AI is used for the above-mentioned high-altitude safety operation detection method based on the Internet of Things and visual AI, including a data acquisition and upload module, a data processing module and an audio-visual alarm module, wherein: the data acquisition and upload module is used to obtain and pre-process the video data of high-altitude safety workers, and transmit the pre-processed video data of high-altitude safety workers to a data processing center in real time based on the Internet of Things communication; the data processing module is used for the data processing center to process the received video data of high-altitude safety workers based on a trained visual AI model, and output safety detection results; the audio-visual alarm module is used to send the safety detection results to an on-site alarm device based on the Internet of Things communication, and the on-site alarm device issues an audio-visual alarm.
[0019] The present invention has the following beneficial effects:
[0020] This high-altitude safety operation detection method based on the Internet of Things and visual AI can monitor in real time and accurately identify whether the operator is wearing a helmet and safety rope correctly through an automated visual AI detection system. This high-efficiency and high-accuracy monitoring greatly reduces the possibility of human error and omissions. Using the Internet of Things communication technology, once a violation is detected, an alarm can be quickly sent to the alarm device in the corresponding area, ensuring a rapid response, thereby preventing or mitigating safety accidents in a timely manner.
[0021] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1This is a flow chart of the high-altitude safety operation detection method based on the Internet of Things and visual AI of the present invention.
[0023] Figure 2 This is a flowchart of the high-altitude safety operation detection system based on the Internet of Things and visual AI of the present invention. DETAILED DESCRIPTION
[0024] The embodiments of the present application achieve the effects of real-time monitoring and safety warning through a high-altitude safety operation detection method and system based on the Internet of Things and visual AI.
[0025] High-altitude work area: When a flatbed truck is installing a canopy in a designated area, it is necessary to work on the roof of the truck. The height work regulations require that when working at height, you must wear a safety rope and a safety helmet.
[0026] The camera collects the situation on site, observes whether the workers are wearing safety ropes and helmets, and transmits the collected image information to the program host with computing power equipment through the network. The host determines whether the workers are wearing safety helmets and safety ropes in the image sent back through the program. If the program determines that the workers are wearing safety ropes and safety helmets, the access control lock of the high-altitude platform on site will be opened, and the workers can work normally. If it is determined that one of the safety helmets and safety ropes is not worn, first, there will be a sound prompt on site to remind the illegal operation and display the illegal image on the display device. The access control lock will not open the door. At the same time, the program host of the computing power equipment pushes the illegal information to the back-end information platform. The platform pushes the illegal information into a work order to the security administrator. The push methods include the WeChat end of the mobile phone and the information platform client on the computer.
[0027] Collect the front-end image to see if it is illegal and judge the program generation process:
[0028] A Camera installation requirements: The camera should be installed close to the top of the vehicle, and the illumination should be parallel as much as possible to avoid people on the ground appearing in the picture. At the same time, the distance should not be too far to ensure that the target is clearly visible;
[0029] B. After the camera is installed, it must be fixed in position without shaking or other position changes;
[0030] C. The camera's field of view should be appropriate, not too large or too small, and the image should be clear, the object should be clearly visible, and the target should not be blurred;
[0031] D. Camera pixel requirements: At 720P resolution, the target frame should be ≥32*32; other resolutions should be converted proportionally, for example: 1080p should be converted to 32 / 720*1080=48, which should be 48*48;
[0032] E. Material collection must be in actual application scenarios, using actual point cameras at different time periods. The target forms should be as rich as possible to cover the actual situation: all kinds of clothing, wearing safety ropes / not wearing safety ropes, wearing helmets / not wearing helmets, need to be collected. Outdoors are greatly affected by light, and targets in different light conditions in the morning and evening also need to be collected;
[0033] F. The collected materials need to be edited into pictures for video recording mode. The next step is to screen the pictures. Those that do not meet the pixel requirements, are blurred, and the features of the workers wearing helmets and safety ropes are not obvious in the pictures are excluded. In order to make the detected features obvious and easy to identify, the color of the safety rope is adjusted accordingly and replaced with a colorful safety rope. After the picture screening is completed, the tool is used to mark the features of the picture materials. The feature annotation content is whether the person's head and shoulders are wearing a helmet, and whether the upper body is wearing a safety rope. After the picture feature annotation is completed, it is provided to the AI large model library for program operation model training. After the training is completed, the program is obtained and imported into the program host of the computing power device.
[0034] The device detects people appearing on the screen in real time by configuring the "area target abnormal state detection" rule in the IED rule. When a person appears without a safety helmet or a safety rope and it lasts for a certain period of time (configurable), an alarm is generated and the on-site sound column is linked to remind the user to dress properly.
[0035] See also Figure 1 , the embodiment of the present invention provides a technical solution: a high-altitude safety operation detection method based on the Internet of Things and visual AI, comprising the following steps: obtaining and preprocessing the video data of high-altitude safety workers, transmitting the preprocessed video data of high-altitude safety workers to the data processing center in real time based on the Internet of Things communication; the data processing center processes the received video data of high-altitude safety workers based on the trained visual AI model and outputs the safety detection results; the safety detection results are sent to the on-site alarm device based on the Internet of Things communication, and the on-site alarm device issues an audible and visual alarm. The visual AI model can be established based on a convolutional neural network (CNN), and multiple convolution layers, pooling layers, and connection layers are set.
[0036] Cameras are installed in high-altitude work areas to collect video data of workers. After preliminary preprocessing, these data are transmitted to the data processing center in real time through IoT devices. Preprocessing includes format conversion, compression, etc. The data processing center uses the trained visual AI model to analyze the video data and determine whether the workers are wearing helmets and safety ropes correctly. The visual AI model can identify the equipment status and behavior patterns of personnel to ensure the accuracy of the analysis.
[0037] Based on the AI processing results, the data processing center sends the safety test results back to the site. If the test results meet the safety standards, that is, the operator is wearing a safety helmet and safety rope, the access control system will authorize entry to the work area; otherwise, if the safety equipment is not worn correctly, the access control system will prohibit entry.
[0038] The on-site alarm equipment will give corresponding sound and light alarms according to the received safety test results. In addition, the illegal operation will be notified to the safety administrator, and the illegal operation will be prompted through the on-site voice equipment to remind the operator to correct it.
[0039] Through real-time monitoring and AI analysis, safety hazards can be discovered immediately, accidents can be prevented, and the safety of aerial operations can be greatly improved. Through IoT technology, safety detection results and alarms can be instantly fed back to on-site workers and managers, making response measures faster and more effective. Violation prompts help regulate the behavior of workers and improve workers' safety awareness through continuous monitoring and reminders.
[0040] Specifically, in addition to format conversion, compression, etc., the process of preprocessing the video data of high-altitude safety workers also includes dividing the video data of high-altitude safety workers into frames based on the set time step to form a picture to be detected; the process of real-time transmission of the preprocessed video data of high-altitude safety workers to the data processing center based on the Internet of Things communication is: compressing and encrypting the picture to be detected formed after preprocessing to form a data packet to be transmitted; marking the data packet to be transmitted based on the source area ID of the video data of the high-altitude safety workers; and sending the marked data packet to be transmitted to the data processing center through the Internet of Things communication.
[0041] In this implementation, the video data is divided into frames based on the set time step to form separate images to be detected. This step is to convert the continuous video stream into static images that can be analyzed separately, which is convenient for the visual AI model to process and also provides convenience for the statistics of violation time. The images to be detected formed after framing are compressed to reduce the bandwidth and storage space required for data transmission, and encryption is performed to ensure the security and privacy of the data during transmission.
[0042] The data packets to be transmitted are labeled based on the source area ID of the video data, which ensures that the data processing center can identify and process data from different areas. The labeled information is critical for subsequent data analysis and security monitoring. The labeled data packets are sent to the data processing center through the Internet of Things technology. The Internet of Things devices can achieve efficient data transmission and also support remote monitoring and management.
[0043] Specifically, the process of training the visual AI model is as follows: obtaining a video training data set and performing frame processing on the video data training set to form a picture training data set; dividing the picture training data set into multiple groups of picture training data subsets; performing enhancement processing on the picture training data subsets and dividing them into an enhanced picture training set and an enhanced picture verification set; training and verifying the visual AI model based on the enhanced picture training set and the enhanced picture verification set respectively, performing feature fusion on the enhanced picture training set and the enhanced picture verification set during the training process, and minimizing the loss function during the verification process; after completing the training of the visual AI model with the enhanced picture training set, verifying the trained visual AI model based on the enhanced picture verification set to obtain a verification data set; evaluating the trained visual AI model based on the verification data set to obtain an evaluation index; if the evaluation index is less than or equal to the set performance threshold, the training is completed; if the evaluation index is greater than the set performance threshold, the visual AI model is optimized and retrained, and the optimization includes adjusting the hyperparameters of the visual AI model, and the hyperparameters include learning rate, batch size, and regularization parameter.
[0044] In this implementation scheme, the video training data set is framed to form a picture training data set, and the frame division can convert the dynamic video into a format suitable for model learning. The picture training data set is divided into multiple subsets for more detailed training and verification, which helps to manage and operate large amounts of data and ensure data diversity. The picture data subset is enhanced and then divided into an enhanced picture training set and an enhanced picture verification set. Data enhancement is to expand data diversity and improve the generalization ability of the model. The division ratio can be 7:3, that is, the enhanced picture training set accounts for 70% of the total number of picture training data subsets, or other ratios.
[0045] The model is trained using the enhanced image training set, and feature fusion is performed during the training process to improve the model's ability to understand and process data. The model is verified using the enhanced image validation set to evaluate the model's performance. Data enhancement and feature fusion help the model better understand data under various conditions, reduce overfitting, and enhance generalization capabilities. If the model's evaluation index meets or is below the performance threshold, the training is considered complete. Otherwise, the model is optimized.
[0046] For the helmet, the extracted features include but are not limited to color features, shape features, position and size features, etc. For the safety rope, the extracted features include but are not limited to color features, linear features, texture and pattern features, etc.
[0047] If the evaluation index does not meet the standard, the model needs to be optimized, including adjusting hyperparameters such as learning rate, batch size, and regularization parameters. This step is an iterative process and may require multiple adjustments and training until the model performance reaches the predetermined standard. By adjusting hyperparameters, the model training process can flexibly respond to different training conditions and requirements, improving the adaptability and efficiency of the model.
[0048] Specifically, the enhancement processing of the image training data subset includes rotating, scaling, cropping, color adjustment and deleting blurred images in the image training data subset, and also includes marking and timestamping each image in the image training data subset after rotation, scaling, cropping, color adjustment and deleting blurred images, and the marks include wearing a safety helmet, not wearing a safety helmet, wearing a safety rope and not wearing a safety rope.
[0049] In this implementation, the images are rotated, scaled, cropped, and color adjusted to simulate different scenes and perspectives to improve the model's ability to process images under various conditions. These operations help the model learn to recognize targets from different angles and scales. Blurred images may interfere with model learning, causing the model to learn incorrect or unclear features. Deleting these images can ensure the quality of training data and improve training results.
[0050] Labeling the enhanced images, such as whether a helmet or safety rope is worn, is the basis for training supervised learning models and provides the necessary ground truth for the model to learn. Adding timestamps to each image can help the model learn to recognize the effects of different time conditions, especially in environments with significant lighting changes, and also provides a basis for identifying violations.
[0051] Specifically, during the training process, the process of feature fusion of the enhanced image training set and the enhanced image verification set is as follows: obtain the features extracted by each convolutional layer from the training images in the enhanced image training set or the verification images in the enhanced image verification set; fuse the features extracted by each convolutional layer based on the feature fusion algorithm to obtain the fused features.
[0052] Extract features from different convolutional layers. Each convolutional layer extracts features at different levels of the image due to its different parameters and depth. Shallow layers may capture basic visual information such as edges and textures, while deeper layers can recognize more complex patterns and object features. These different levels of features are combined through a certain fusion algorithm to use the comprehensive information of these features for more accurate predictions.
[0053] Fusion of features at different levels can provide more comprehensive information and help visual AI models capture more complex patterns, thereby improving recognition accuracy. Combinations of features at different levels can help models better generalize to unseen data and reduce the risk of overfitting.
[0054] The formula for obtaining the fused features is:
[0055] ;
[0056] In the formula, is a training image in the augmented image training set or a verification image in the augmented image verification set. The first convolutional feature layer is used to extract features of the training images in the enhanced image training set or the verification images in the enhanced image verification set. The second convolutional features are the second convolutional features that extract features from the training images in the enhanced image training set or the verification images in the enhanced image verification set. The third convolutional layer extracts features of the training images in the enhanced image training set or the verification images in the enhanced image verification set. is the first layer convolution feature weight factor, is the second layer convolution feature weight factor, is the weight factor of the third layer convolution feature.
[0057] In this embodiment, the square term Enhanced the nonlinear expression ability of the first layer features; exponential term The important features in the second layer are emphasized, which helps to highlight the key information; linear items The original feature contribution of the third layer is retained. By adjusting the values of the first layer convolution feature weight factor, the second layer convolution feature weight factor, and the third layer convolution feature weight factor, the importance of features at different levels in decision making can be finely controlled. This adjustment is usually optimized based on the performance of the model on the validation set.
[0058] The values of the first layer convolution feature weight factor, the second layer convolution feature weight factor and the third layer convolution feature weight factor are determined by experiments, and hyperparameter search techniques such as grid search or random search, or Bayesian optimization can be used to find the optimal parameter combination by minimizing the loss function on the validation set.
[0059] Specifically, the verification data set includes a verification data subset obtained after each enhanced image verification set verifies the trained visual AI model, and each of the verification data subsets includes accuracy, precision, recall, mean deviation time for not wearing a safety helmet, and mean deviation time for not wearing a safety rope.
[0060] The process of obtaining the mean deviation time of not wearing a helmet is as follows: obtain the recognition time of not wearing a helmet identified in each enhanced image verification set. There may be multiple recognition times of not wearing a helmet. Difference is made between each recognition time of not wearing a helmet and the corresponding actual time of not wearing a helmet. All differences are averaged to obtain the mean deviation time of not wearing a helmet. The process of obtaining the mean deviation time of not wearing a safety rope is as follows: obtain the recognition time of not wearing a safety rope identified in each enhanced image verification set. There may be multiple recognition times of not wearing a safety rope. Difference is made between each recognition time of not wearing a safety rope and the corresponding actual time of not wearing a safety rope. All differences are averaged to obtain the mean deviation time of not wearing a safety rope.
[0061] Each validation data subset corresponds to an accuracy, precision, and recall rate, where the accuracy is the ratio of correctly predicted instances (whether positive or negative) to the total number of instances, the precision is the ratio of true positive instances to all predicted positive instances, and the recall is the ratio of true positive instances to all actual positive instances.
[0062] The trained visual AI model is evaluated based on the validation data set. The process of obtaining the evaluation index is as follows: the validation data subset in the validation data set is fused to obtain the mean accuracy, mean precision, mean recall, deviation time value for not wearing a helmet, and deviation time value for not wearing a safety rope. The mean accuracy is the average of all accuracy rates, the mean precision is the average of all precision rates, the mean recall is the average of all recall rates, the deviation time value for not wearing a helmet is the average of all deviation time values for not wearing a helmet, and the deviation time value for not wearing a safety rope is the average of all deviation time values for not wearing a safety rope.
[0063] The mean accuracy, mean precision, mean recall, deviation time value for not wearing a helmet, and deviation time value for not wearing a safety rope were fused and analyzed, and the evaluation index was obtained based on the evaluation model.
[0064] The logic of the verification process includes multi-dimensional performance evaluation, time accuracy evaluation, and fusion analysis and evaluation index calculation. Through multi-dimensional performance evaluation, we can fully understand the performance of the model in different aspects, such as accuracy, precision, and recall, which helps to determine the specific areas where the model needs to be improved before actual deployment. The time accuracy of the detection model in identifying key security violations is crucial for timely response and taking security measures. The verification of time accuracy ensures that the model can not only correctly identify events, but also report them in a timely manner, increasing the effectiveness of actual applications.
[0065] The evaluation model to obtain the evaluation index is as follows:
[0066] ;
[0067] In the formula, To evaluate the index, is the deviation time value when not wearing a helmet, is the deviation time value when the safety rope is not worn. is the mean accuracy, is the mean precision, is the mean recall rate, is a constant term used to prevent is 0.
[0068] In this implementation, the evaluation model combines the mean accuracy, mean precision, and mean recall, which are standard metrics for evaluating model performance. The higher these values, the better the overall performance of the model. The smaller the better, it provides a comprehensive perspective to evaluate the effectiveness of the model by combining time accuracy and standard performance metrics.
[0069] Specifically, the safety detection results include wearing a safety helmet, not wearing a safety helmet, wearing a safety rope, and not wearing a safety rope; the safety detection results are sent to the on-site alarm device based on the Internet of Things communication, and the process of the on-site alarm device making an sound and light alarm is as follows: if the safety detection result is not wearing a safety helmet or not wearing a safety rope, the violation time of the operator not wearing a safety helmet or not wearing a safety rope is determined, and the violation time starts from the time corresponding to the picture frame in which the safety helmet or the safety rope is detected. When the detection result changes to wearing a safety helmet or wearing a safety rope, the accumulated time is recorded, and the time accumulator is reset, and the accumulated time is recorded as the violation time; it is determined whether the violation time exceeds the set violation threshold: if the violation time exceeds the set violation threshold, the source area of the video data of the high-altitude safety operator corresponding to the safety detection result is obtained, and an alarm signal is sent to the on-site alarm device in the source area based on the Internet of Things communication; if the violation time does not exceed the set violation threshold, the video data of the high-altitude safety operator continues to be processed and the safety detection result is output.
[0070] In this implementation, when the visual AI detects that the operator is not wearing a helmet or a safety rope, the system starts timing and records the duration of the violation. If the operator starts wearing a helmet or a safety rope during the violation, the timing is stopped and the total duration of the violation is recorded. It is evaluated whether the violation time exceeds the preset violation threshold, which is set based on safety standards to determine when further safety measures should be taken.
[0071] If the violation time exceeds the threshold, the system will obtain the specific area where the violation occurred and send an alarm signal to the on-site alarm equipment in the area to prompt safety managers and operators to take immediate action. If the threshold is not exceeded, the system will continue to monitor and analyze the video data.
[0072] A high-altitude safety operation detection system based on the Internet of Things and visual AI is used for the above-mentioned high-altitude safety operation detection method based on the Internet of Things and visual AI, such as Figure 2 As shown, it includes a data acquisition and upload module, a data processing module and a sound and light alarm module, wherein: the data acquisition and upload module is used to acquire and pre-process the video data of high-altitude safety workers, and transmit the pre-processed video data of high-altitude safety workers to the data processing center in real time based on the Internet of Things communication; the data processing module is used for the data processing center to process the received video data of high-altitude safety workers based on the trained visual AI model, and output the safety detection results; the sound and light alarm module is used to send the safety detection results to the on-site alarm equipment based on the Internet of Things communication, and the on-site alarm equipment will issue a sound and light alarm.
[0073] An electronic device includes: a processor and a memory, wherein computer program instructions are stored in the memory, and when the computer program instructions are executed by the processor, the processor executes the high-altitude safety operation detection method based on the Internet of Things and visual AI as described above.
[0074] A computer-readable storage medium is used to store a program, which, when executed by a processor, implements the high-altitude safety operation detection method based on the Internet of Things and visual AI as described above.
[0075] In summary, this application has at least the following effects:
[0076] Through the automated visual AI detection system, it is possible to monitor in real time and accurately identify whether the workers are wearing helmets and safety ropes correctly. This highly efficient and accurate monitoring greatly reduces the possibility of human errors and omissions. Using IoT communication technology, once a violation is detected, an alarm can be quickly sent to the alarm equipment in the corresponding area, ensuring a rapid response, thereby preventing or mitigating safety accidents in a timely manner.
[0077] By continuously training, verifying and optimizing the model, combined with multi-level feature extraction and fusion, the generalization ability of the AI model and its ability to adapt to different environments are enhanced.
[0078] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0079] The present invention is described with reference to flowcharts and / or block diagrams of systems, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0080] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0081] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0082] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0083] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A high-altitude safety operation detection method based on the Internet of Things and visual AI, characterized in that: The following steps are involved: Obtain and pre-process the video data of high-altitude safety workers, and transmit the pre-processed video data of high-altitude safety workers to the data processing center in real time based on IoT communication; The data processing center processes the received video data of high-altitude safety workers based on the trained visual AI model and outputs the safety detection results; The safety detection results are sent to the on-site alarm device based on the Internet of Things communication, and the on-site alarm device issues an audible and visual alarm; The process of training the visual AI model is as follows: Obtain a video training data set and perform frame processing on the video data training set to form an image training data set; Divide the image training data set into multiple groups of image training data subsets; After enhancing the image training data subset, the image training set is divided into an enhanced image training set and an enhanced image verification set; The visual AI model is trained and verified based on the enhanced image training set and the enhanced image verification set respectively. During the training process, the features of the enhanced image training set and the enhanced image verification set are fused, and the loss function is minimized during the verification process. After the visual AI model is trained using the enhanced image training set, the trained visual AI model is verified based on the enhanced image verification set to obtain a verification data set; Evaluate the trained visual AI model based on the validation data set to obtain an evaluation index; If the evaluation index is less than or equal to the set performance threshold, the training is completed; If the evaluation index is greater than the set performance threshold, the visual AI model is optimized and then retrained, wherein the optimization includes adjusting the hyperparameters of the visual AI model, wherein the hyperparameters include the learning rate, batch size, and regularization parameters; During the training process, the process of feature fusion of the enhanced image training set and the enhanced image verification set is as follows: Obtain features extracted by each convolutional layer from the training images in the augmented image training set or the validation images in the augmented image validation set; Based on the feature fusion algorithm, the features extracted from each convolutional layer are fused to obtain the fused features; The formula for obtaining the fused features is: ; In the formula, is a training image in the augmented image training set or a verification image in the augmented image verification set. The first convolutional feature layer is used to extract features of the training images in the enhanced image training set or the verification images in the enhanced image verification set. The second convolutional features are the second convolutional features that extract features from the training images in the enhanced image training set or the verification images in the enhanced image verification set. The third convolutional layer extracts features of the training images in the enhanced image training set or the verification images in the enhanced image verification set. is the first layer convolution feature weight factor, is the second layer convolution feature weight factor, is the third-layer convolution feature weight factor; The verification data set includes a verification data subset obtained after each enhanced picture verification set verifies the trained visual AI model, and each of the verification data subsets includes accuracy, precision, recall, mean deviation time of not wearing a helmet, and mean deviation time of not wearing a safety rope; wherein, the process of obtaining the mean deviation time of not wearing a helmet is: obtaining the recognition time of not wearing a helmet identified in each enhanced picture verification set, subtracting each recognition time of not wearing a helmet from the corresponding actual time of not wearing a helmet, and averaging all the differences to obtain the mean deviation time of not wearing a helmet; the process of obtaining the mean deviation time of not wearing a safety rope is: obtaining the recognition time of not wearing a safety rope identified in each enhanced picture verification set, subtracting each recognition time of not wearing a safety rope from the corresponding actual time of not wearing a safety rope, and averaging all the differences to obtain the mean deviation time of not wearing a safety rope; The process of evaluating the trained visual AI model based on the validation dataset and obtaining the evaluation index is as follows: The validation data subset in the validation data set is fused to obtain the mean accuracy, mean precision, mean recall, deviation time value for not wearing a helmet, and deviation time value for not wearing a safety rope; The mean accuracy, mean precision, mean recall, deviation time value for not wearing a helmet, and deviation time value for not wearing a safety rope are integrated and analyzed, and the evaluation index is obtained based on the evaluation model; the evaluation model for obtaining the evaluation index is as follows: ; In the formula, To evaluate the index, is the deviation time value when not wearing a helmet, is the deviation time value when the safety rope is not worn. is the mean accuracy, is the mean precision, is the mean recall rate, is a constant term.
2. The high-altitude safety operation detection method based on the Internet of Things and visual AI according to claim 1 is characterized in that: The process of preprocessing the video data of the high-altitude safety workers is to divide the video data of the high-altitude safety workers into frames based on the set time step to form a picture to be detected; The process of real-time transmission of pre-processed video data of high-altitude safety workers to the data processing center based on IoT communication is as follows: Compressing and encrypting the image to be detected after preprocessing to form a data packet to be transmitted; The data packets to be transmitted are marked based on the source area ID of the video data of the high-altitude safety workers; The marked data packets to be transmitted are sent to the data processing center through IoT communication.
3. The high-altitude safety operation detection method based on the Internet of Things and visual AI according to claim 1 is characterized in that: The enhancement processing of the image training data subset includes rotating, scaling, cropping, color adjustment and deleting blurred images in the image training data subset, and also includes marking and timestamping each image in the image training data subset after rotation, scaling, cropping, color adjustment and deleting blurred images, and the marks include wearing a safety helmet, not wearing a safety helmet, wearing a safety rope and not wearing a safety rope.
4. The high-altitude safety operation detection method based on the Internet of Things and visual AI according to any one of claims 1-3 is characterized in that: The safety test results include wearing a safety helmet, not wearing a safety helmet, wearing a safety rope, and not wearing a safety rope; The safety detection results are sent to the on-site alarm device based on the Internet of Things communication, and the process of the on-site alarm device making an audible and visual alarm is as follows: If the safety detection result is that the operator is not wearing a safety helmet or a safety rope, the violation time of not wearing a safety helmet or a safety rope is determined, and the violation time is counted from the time corresponding to the picture frame in which the operator is not wearing a safety helmet or a safety rope. When the detection result changes to wearing a safety helmet or a safety rope, the accumulated time is recorded, and the time accumulator is reset. The accumulated time is recorded as the violation time; Determine whether the violation time exceeds the set violation threshold: If the violation time exceeds the set violation threshold, the source area of the video data of the high-altitude safety workers corresponding to the safety detection result is obtained, and an alarm signal is sent to the on-site alarm device in the source area based on the Internet of Things communication; If the violation time does not exceed the set violation threshold, the video data of the high-altitude safety workers will continue to be processed and the safety detection results will be output.
5. A high-altitude safe operation detection system based on the Internet of Things and visual AI, used in the high-altitude safe operation detection method based on the Internet of Things and visual AI according to any one of claims 1 to 4, characterized in that: It includes a data acquisition and upload module, a data processing module and an audible and visual alarm module, wherein: The data acquisition and uploading module is used to acquire and pre-process the video data of the high-altitude safety workers, and transmit the pre-processed video data of the high-altitude safety workers to the data processing center in real time based on the Internet of Things communication; The data processing module is used for the data processing center to process the received video data of high-altitude safety workers based on the trained visual AI model and output the safety detection results; The sound and light alarm module is used to send the safety detection results to the on-site alarm device based on the Internet of Things communication, and the on-site alarm device issues a sound and light alarm.
