Safety helmet wearing monitoring system and method

Through the combination of the target detection module and the data fusion module, the YOLO-ST model is used to identify the wearing status of the helmet in real time and issue an alarm, which solves the problems of low efficiency and high misjudgment rate of traditional manual supervision, and achieves efficient and reliable helmet wearing monitoring. , reducing safety risks and labor costs.

CN118587639APending Publication Date: 2024-09-03GUANGDONG POWER TELECOMMUNICATION TECHNOLOGY CO LTD

Patent Information

Application Number
CN202410539602.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Traditional helmet wearing detection relies on manual supervision, which has problems such as low efficiency, incomplete coverage, high misjudgment rate, and inability to monitor in real time, leading to increased safety risks.

Method used

The target detection module and the data fusion module are combined to identify the person's head and helmet wearing condition in real time through the camera and infrared sensor. The YOLO-ST model is used for data fusion and optimization, and real-time alarms and reminders are issued. Adaptive learning optimizes system performance.

Benefits of technology

It improves the accuracy and reliability of helmet wearing detection, reduces safety risks, improves workplace safety and production efficiency, reduces labor costs, and realizes automated monitoring and real-time feedback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587639A
    Figure CN118587639A
Patent Text Reader

Abstract

The invention belongs to the technical field of electric power, and relates to a method which comprises a first target detection module, a second target detection module, a data fusion module, a feedback and alarm function module and an optimization mechanism module.The safety awareness of workers and managers is improved by monitoring whether the workers wear safety helmets or not in real time, the accident rate is reduced, and the safety of the workers and the managers is improved. The system replaces manual inspection tour, saves labor cost, improves safety management efficiency and accuracy, ensures that safety measures are comprehensively executed, can timely send out alarm signals to help workers who do not wear safety helmets, reduces potential safety hazards, realizes prevention and control, avoids accidents, and meanwhile, improves safety management efficiency. Through adaptive learning and an optimization mechanism, the system continuously improves the self performance, adapts to different scenes and environments, keeps an efficient and stable operation state, and improves the accuracy and reliability of safety monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision and image processing, and in particular to a system and method for monitoring the wearing of a helmet. Background Art

[0002] During the power production operation, safety supervision is crucial to ensure the safety of the operators. At present, safety supervision at the power operation site mainly includes supervision by the supervisor of the operation team, on-site inspection by leaders or managers, safety supervision by safety professionals, and safety inspections by relevant personnel. However, these supervision methods are limited by the subjective initiative of the personnel, their professional level, and the coverage of supervision and inspection. With the development of artificial intelligence and Internet of Things technologies and the construction of power-related systems, on-site portable mobile terminals, substation in-station video and environmental monitoring systems can be used for remote supervision. This method can realize remote real-time monitoring, remote data access, and full-process video recording for reference, thereby improving the coverage and deterrence of supervision and inspection.

[0003] However, this method has some shortcomings, such as the inability to accurately monitor at close range and from multiple angles, the difficulty in concentrating on supervision for a long time, and the lack of online real-time intelligent analysis and risk warning functions. Compared with manual safety supervision, relying on intelligent means to carry out safety supervision systems can avoid negligence and uneven supervision levels. According to statistics, violations of regulations in power site operations are mainly violations of operating behavior. Behavior violations refer to unsafe behaviors of on-site operators in violation of safety regulations, rules, systems, and anti-accident measures during production activities such as power construction, operation, maintenance, and marketing services. The correct and standardized wearing of safety helmets is an issue that is easily overlooked. In order to effectively reduce unsafe behaviors of personnel, it is very necessary to detect the standardized wearing of safety helmets through intelligent means.

[0004] Traditional safety helmet wearing detection mainly relies on the supervision of on-site technicians and safety personnel, and has the following problems: relying on manual supervision to detect the wearing of safety helmets requires continuous inspections by technicians and safety personnel, which results in a large workload and low efficiency. In addition, manual supervision is easily affected by subjective factors, and there are problems of incomplete coverage and insufficient manpower, which cannot fully guarantee the wearing rate of safety helmets. Due to the lag of manual supervision, it is impossible to monitor in real time whether workers are wearing safety helmets. This means that during the work process, workers may take off their safety helmets for various reasons, and supervisors may not be able to discover it in time. Once a worker does not wear a safety helmet, they need to wait for personnel to discover and take action, resulting in delayed response, increased safety risks, and potential safety hazards. Summary of the invention

[0005] In view of the above existing problems, the present invention is proposed.

[0006] Therefore, the present invention provides a safety helmet wearing monitoring system. The present invention can accurately identify the head of a person and judge the wearing condition of a safety helmet through the joint action of target detection module one and target detection module two, combined with the data fusion module to integrate the output information. The feedback and alarm function module can send out an alarm in real time to remind the staff. The optimization mechanism module continuously improves the system performance through adaptive learning and optimization, continuously optimizes and updates the model to adapt to different scenarios, improves detection accuracy and reliability, reduces safety risks, and improves workplace safety and production efficiency. This system has important value in the fields of industrial production and construction, solves the problems of low efficiency and high misjudgment rate of safety helmet wearing monitoring in traditional safety management, and effectively improves the safety management level and workplace safety.

[0007] To solve the above technical problems, the present invention provides the following technical solutions: a safety helmet wearing monitoring system, comprising: a first target detection module, used to identify the head of a person in a real-time video sequence, and determine whether a safety helmet is worn through a safety helmet recognition model.

[0008] The second target detection module is used to identify the position of people in the real-time video sequence.

[0009] The data fusion module is used to fuse and compare the information respectively obtained by the first target detection module and the second target detection module.

[0010] The feedback and alarm function module, based on the results of data fusion, will issue an alarm or remind relevant staff to handle the situation when it detects that the person is not wearing a safety helmet.

[0011] The optimization mechanism module is used to perform adaptive learning and optimization on the data fusion module, update the model parameters and learning rate according to the real-time data situation, and dynamically adjust the system parameters and optimize the model.

[0012] As a preferred solution of the helmet wearing monitoring system described in the present invention, the first target detection module includes an image data acquisition unit, a subsequent processing unit and a helmet detection unit.

[0013] The image data acquisition unit includes a camera and an infrared sensor image acquisition device to obtain visual information of the monitoring scene, and adjusts the acquisition parameters according to the monitoring requirements, establishes a remote database to store real-time video streams, environmental lighting data, personnel positions and movement trajectories, helmet shapes, materials and logos, background scene data, and transmits the original image data captured by the image data acquisition unit to a subsequent processing unit for preprocessing to optimize image quality.

[0014] The subsequent processing unit includes preprocessing of the collected image data including denoising, contrast enhancement, color correction, gamma correction, and histogram equalization, which is used to adjust the brightness according to the ambient light data. The optimized image data output by the subsequent processing unit is sent to the helmet detection unit for target recognition and classification.

[0015] The helmet detection unit analyzes the preprocessed image, identifies the person's head and helmet, and determines whether the helmet is worn, and feeds back the result to the image data acquisition unit and the subsequent processing unit to guide parameter adjustment to form a closed-loop system.

[0016] As a preferred solution of the helmet wearing monitoring system described in the present invention, the helmet detection unit includes an image data acquisition unit and a subsequent processing unit to perform primary recognition, secondary recognition and tertiary recognition after processing.

[0017] The primary recognition includes recognizing the face and the shape of the helmet worn according to the processed image, matching the recognized face to the staff's intercom, and detecting the shape of the helmet through the recognition algorithm:

[0018]

[0019] When F(x)=0, the system displays that the staff member is not wearing a safety helmet. When F(x)=1, the system displays that the staff member is wearing a hat that matches the shape of a safety helmet, and inputs the result into the secondary identification. The infrared sensor receives the reflected spectrum in real time to determine whether it is a spectrum of polycarbonate. If the infrared spectrum output by the system is the same as the spectrum of the safety helmet material stored in the system database, the system displays that the staff member is wearing a safety helmet, and inputs the result into the tertiary identification. The safety standard mark on the safety helmet is obtained through the camera, and the personnel position is judged in combination with the second target detection module. If the safety standard mark matches the location environment of the staff member, the system determines that the safety helmet worn by the staff member meets the standard.

[0020] Among them, F(x) is the final helmet recognition function, x represents the feature vector in the real-time video sequence, t0 and t1 represent the time interval, and a i 、b i and c i The parameters designed based on actual data represent the weight, growth rate and key time point of the feature, c j is the weight coefficient, f j (t) is the feature extraction function based on the actual situation.

[0021] As a preferred solution of the helmet wearing monitoring system described in the present invention, the data fusion module includes a data fusion unit and a YOLO-ST model training unit.

[0022] The data fusion unit fuses and compares the helmet data from the target detection module one and the personnel position data from the target detection module two, inputs the fused target detection results and the labeled training data set into the YOLO-ST model training unit to train the YOLO-ST model, optimizes the YOLO-ST model parameters by minimizing the detection error, and evaluates the trained YOLO-ST model. Based on the evaluation results of the model, the data fusion unit adjusts the data fusion strategy and generates new training data sets, which will be sent back to the YOLO-ST model training unit for a new round of training.

[0023] As a preferred solution of the helmet wearing monitoring system described in the present invention, the YOLO-ST model training unit includes using the fused target detection result d when training the YOLO-ST model. merged And training with annotated data sets to accurately locate the person's head and helmet and reduce the error of the bounding box. The annotated data sets include annotation information of the person's head, helmet and overall position.

[0024] During training, the YOLO-ST model parameters are optimized using the bounding box position error:

[0025]

[0026] And evaluate the trained YOLO-ST model:

[0027]

[0028] Where L(θ) is the loss function of the bounding box position error, y i (t) is the ground-truth bounding box position, is the bounding box position predicted by the model, p is a hyperparameter controlling the impact of the bounding box position error, λ is a weight coefficient used to control the impact of different types of bounding box position errors, and w j is the weight for different types of bounding box position errors, z j (t) is the real labeled category information, is the category information predicted by the model, E(θ) evaluates the model performance, N represents the number of samples in the dataset, and M represents the positions of different types of bounding boxes.

[0029] Another object of the present invention is to provide a method for monitoring the wearing of a safety helmet, which can achieve unified data standardization and provide intelligent analysis and decision support for the operation, maintenance and optimization of the power grid system.

[0030] As a method of a helmet wearing monitoring system described in the present invention, it is characterized in that: the mutual fusion and comparison include fusing and comparing the results of the first target detection module and the second target detection module based on the information obtained, using YOLO-ST as the basic model of the first target detection module and the second target detection module, and using the collected labeled data set to train the YOLO-ST model to accurately identify the head, helmet and overall position of the person;

[0031] The target detected by the first target detection module is D1, including the target's bounding box B1 and the category probability P1. The target detected by the second target detection module is D2, including the target's bounding box B2 and the category probability P1.

[0032] For each detection result d1 of the first target detection module and the detection result d2 of the second target detection module, the overlap between the bounding boxes B1 and B2 is calculated using IoU:

[0033]

[0034]

[0035]

[0036] When IoU∈[0,1] exceeds 0.5, the two bounding boxes are considered to overlap, indicating that the detected worker is in an environment where he needs to wear a helmet. If the overlap is higher than I, the two detection results are fused into a new detection result d merged , the fused detection result d merged Generate a new training data set to train the YOLO-ST model;

[0037] Among them, S1 represents the intersection area, S2 represents the union area, and are the maximum and minimum coordinates of the bounding box B1 in the x-axis direction, and are the maximum and minimum coordinates of the bounding box B2 in the x-axis direction, and are the maximum and minimum coordinates of the bounding box B1 in the y-axis direction, and are the maximum and minimum coordinates of the bounding box B2 in the y-axis direction;

[0038] Take the minimum and maximum values ​​of B1 and B2 in the x-axis direction to determine the right boundary of the intersection on the x-axis;

[0039] Take the maximum and minimum values ​​of B1 and B2 in the x-axis direction to determine the left boundary of the intersection on the x-axis;

[0040] Take the minimum and maximum values ​​of B1 and B2 in the y-axis direction to determine the right boundary of the intersection on the y-axis;

[0041] Take the maximum and minimum values ​​of B1 and B2 in the y-axis direction to determine the left boundary of the intersection on the y-axis.

[0042] As a preferred solution of the method for monitoring the wearing of a safety helmet described in the present invention, the issuing of an alarm includes triggering an alarm or reminding relevant staff to handle the situation when it is detected that the safety helmet is not worn based on the result of data fusion.

[0043] When the first target detection module detects a person's head but the first recognition does not detect a helmet, and when the infrared spectrum output by the secondary recognition system is different from the spectrum of the helmet material stored in the system database, the system believes that the person is not wearing a standard helmet and triggers an alarm.

[0044] When the second target detection module detects that the person is in an environment where he needs to wear a helmet and the safety standard mark in the three identifications does not match the location environment of the worker, an alarm is triggered.

[0045] When the data fusion module compares the results of the first target detection module and the second target detection module and finds that a person who is not wearing a helmet is in an environment where a helmet is required, an alarm is triggered.

[0046] After the alarm is triggered, the system reminds personnel to wear safety helmets through the intercom, the system automatically records their information, generates a violation record in the database, and sends the alarm information of alarm time, location, and personnel information to the manager's mobile phone. The manager will not allow personnel who are not wearing safety helmets to enter the work site or leave the work site immediately. The system automatically locates the violators and makes them wear standard safety helmets or leave the work site, and the system automatically cancels the alarm status. For personnel with more than three violation records, the system prohibits them from entering the work site within one week. When the first detection module of the system detects the head of a person during the prohibition period, an alarm is triggered.

[0047] As a preferred solution of the helmet wearing monitoring method described in the present invention, the adaptive learning and optimization includes designing an adaptive learning strategy, dynamically adjusting model parameters and learning rate according to real-time data conditions, and using a reinforcement learning method to continuously optimize system parameters and models by interacting with the environment:

[0048] Ω(s,u,q,e,o,f)=R(s,u)·A(q,e)·V(o,f)

[0049]

[0050]

[0051]

[0052] The system adjusts parameters and learning rate with the value of Ω, where s is the current state, u is the action taken, r is the reward function, γ is the discount factor, α is the learning rate, q is the current learning rate, e is the error rate, o(t) is the change of the system output over time, and f(t) is the change of the feedback of the environment over time.

[0053] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and is characterized in that when the processor executes the computer program, steps of a helmet wearing monitoring system are implemented.

[0054] A computer-readable storage medium stores a computer program, wherein the computer program implements the steps of a helmet wearing monitoring system when executed by a processor.

[0055] The beneficial effects of the present invention are as follows: the present invention can improve the safety awareness of workers and managers by real-time monitoring whether personnel are wearing safety helmets, prompt them to develop a good habit of wearing safety helmets, and effectively reduce the incidence of accidents; the automated safety helmet monitoring system of the present invention can replace manual inspections, save labor costs, improve safety management efficiency and accuracy, and ensure that safety measures are fully implemented; the system of the present invention can send out alarm signals in time to help timely discover workers who are not wearing safety helmets, reduce safety hazards, achieve preventive control, and avoid accidents; through the adaptive learning and optimization mechanism of the present invention, the system can continuously improve its own performance, adapt to different scenarios and environments, maintain an efficient and stable operating state, and improve the accuracy and reliability of safety monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0057] Figure 1 A flowchart of a helmet wearing monitoring system provided by an embodiment of the present invention.

[0058] Figure 2 An overall flow chart of a method for monitoring wearing a safety helmet provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0060] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from the description, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0061] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.

[0062] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.

[0063] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0064] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0065] Example 1

[0066] Reference Figure 1 , which is the first embodiment of the present invention, provides a system for monitoring the wearing of a safety helmet, including: a first target detection module, used to identify the head of a person in a real-time video sequence, and determine whether a safety helmet is worn through a safety helmet recognition model.

[0067] The second target detection module is used to identify the position of people in the real-time video sequence.

[0068] The data fusion module is used to fuse and compare the information respectively obtained by the first target detection module and the second target detection module.

[0069] The feedback and alarm function module, based on the results of data fusion, will issue an alarm or remind relevant staff to handle the situation when it detects that the person is not wearing a safety helmet.

[0070] The optimization mechanism module is used to perform adaptive learning and optimization on the data fusion module, update the model parameters and learning rate according to the real-time data situation, and dynamically adjust the system parameters and optimize the model.

[0071] It should be noted that the first target detection module includes an image data acquisition unit, a subsequent processing unit and a helmet detection unit.

[0072] The image data acquisition unit includes obtaining visual information of the monitoring scene through a camera and an infrared sensor image acquisition device, and adjusting acquisition parameters according to monitoring requirements, establishing a remote database to store real-time video streams, ambient lighting data, personnel positions and movement trajectories, helmet shapes, materials and logos, background scene data, and transmitting the original image data captured by the image data acquisition unit to a subsequent processing unit for preprocessing and optimizing image quality. The visual information of the monitoring scene is obtained through a camera and an infrared sensor to achieve all-weather and all-round monitoring coverage. The acquisition parameters are adjusted according to monitoring requirements to ensure the stability and adaptability of image quality.

[0073] The subsequent processing unit includes preprocessing the collected image data including denoising, contrast enhancement, color correction, gamma correction, and histogram equalization, which is used to adjust the light intensity according to the ambient light data. The optimized image data output by the subsequent processing unit is sent to the helmet detection unit for target recognition and classification. The collected image data is preprocessed to remove noise, improve contrast, correct color and gamma values, and equalize the histogram. These operations help to improve the visibility and analyzability of the image and provide high-quality data for subsequent processing.

[0074] The helmet detection unit analyzes the preprocessed image, identifies the person's head and helmet, and determines whether the helmet is worn. The result is fed back to the image data acquisition unit and the subsequent processing unit to guide parameter adjustment to form a closed-loop system. The preprocessed image is analyzed to identify the person's head and helmet, and determine whether the helmet is worn. The purpose of this step is to ensure that workers wear helmets in high-risk environments to reduce the risk of accidents. The detection results are fed back to the image data acquisition unit and the subsequent processing unit to guide parameter adjustment. The establishment of a closed-loop system helps to achieve self-optimization of the system and improve the accuracy and efficiency of detection.

[0075] It should also be noted that the helmet detection unit includes an image data acquisition unit and a subsequent processing unit to perform primary recognition, secondary recognition and tertiary recognition after processing.

[0076] The primary recognition includes recognizing the face and the shape of the helmet worn according to the processed image, matching the recognized face to the staff's intercom, and detecting the shape of the helmet through the recognition algorithm:

[0077]

[0078] When F(x)=0, the system displays that the staff member is not wearing a safety helmet. When F(x)=1, the system displays that the staff member is wearing a hat that matches the shape of a safety helmet, and inputs the result into the secondary identification. The infrared sensor receives the reflected spectrum in real time to determine whether it is a spectrum of polycarbonate. If the infrared spectrum output by the system is the same as the spectrum of the safety helmet material stored in the system database, the system displays that the staff member is wearing a safety helmet, and inputs the result into the tertiary identification. The safety standard mark on the safety helmet is obtained through the camera, and the personnel position is judged in combination with the second target detection module. If the safety standard mark matches the location environment of the staff member, the system determines that the safety helmet worn by the staff member meets the standard.

[0079] Among them, F(x) is the final helmet recognition function, x represents the feature vector in the real-time video sequence, t0 and t1 represent the time interval, and a i 、bi and c i The parameters designed based on actual data represent the weight, growth rate and key time point of the feature, c j is the weight coefficient, f j (t) is the feature extraction function based on the actual situation.

[0080] Preferably, the first recognition can quickly determine whether the worker is wearing a helmet by recognizing the face and the shape of the helmet. This step helps to improve the detection speed and reduce false positives and missed positives; the second recognition detects the material of the helmet through an infrared sensor to ensure that the material of the helmet meets the standard. This step helps to improve the accuracy of the detection and avoid safety accidents caused by substandard materials; the third recognition obtains the safety standard mark on the helmet through the camera and makes a judgment based on the position of the person, which can ensure that the logo of the helmet is consistent with the environment in which the worker is located. This step helps to improve the comprehensiveness of the detection and ensure the compliance of the helmet.

[0081] Furthermore, the data fusion module includes a data fusion unit and a YOLO-ST model training unit.

[0082] The data fusion unit fuses and compares the helmet data from the target detection module one and the personnel position data from the target detection module two, inputs the fused target detection results and the labeled training data set into the YOLO-ST model training unit to train the YOLO-ST model, optimizes the YOLO-ST model parameters by minimizing the detection error, and evaluates the trained YOLO-ST model. Based on the evaluation results of the model, the data fusion unit adjusts the data fusion strategy and generates new training data sets, which will be sent back to the YOLO-ST model training unit for a new round of training.

[0083] Preferably, the YOLO-ST model training unit includes using the fused target detection result d when training the YOLO-ST model. merged And training with annotated data sets to accurately locate the person's head and helmet and reduce the error of the bounding box. The annotated data sets include annotation information of the person's head, helmet and overall position.

[0084] During training, the YOLO-ST model parameters are optimized using the bounding box position error:

[0085]

[0086] And evaluate the trained YOLO-ST model:

[0087]

[0088] Where L(θ) is the loss function of the bounding box position error, y i (t) is the ground-truth bounding box position, is the bounding box position predicted by the model, p is a hyperparameter controlling the impact of the bounding box position error, λ is a weight coefficient used to control the impact of different types of bounding box position errors, and w j is the weight for different types of bounding box position errors, z j (t) is the real labeled category information, is the category information predicted by the model, E(θ) evaluates the model performance, N represents the number of samples in the dataset, and M represents the positions of different types of bounding boxes.

[0089] Fusion and comparison of the helmet data from target detection module one and the personnel location data from target detection module two can improve data utilization efficiency and enhance detection accuracy; it helps to eliminate possible errors and uncertainties in a single data source and improve the reliability of detection results.

[0090] The YOLO-ST model is trained using the fused target detection results and the labeled training data set, and the YOLO-ST model parameters are optimized by minimizing the detection error; this can continuously improve the performance of the model and improve the accuracy and efficiency of detection.

[0091] Based on the evaluation results of the model, the data fusion unit adjusts the data fusion strategy and generates a new training data set; this helps to achieve self-optimization of the system and improve the accuracy and efficiency of detection.

[0092] The present invention trains the YOLO-ST model and introduces a reinforcement learning optimization mechanism to realize accurate detection of a person's head and a helmet in a video sequence. The fused target detection results and annotated data set are used in the training process, wherein the annotated data set includes information about the person's head, the helmet and the overall position. A reinforcement learning algorithm of Q-learning or DQN is used to continuously optimize system parameters and models through interactive learning with the environment, so as to dynamically adjust the model parameters and the learning rate, thereby realizing an adaptive learning strategy and improving the accuracy of the system.

[0093] Compared with traditional safety management methods, this safety helmet wearing monitoring system has higher efficiency and accuracy, because traditional safety management methods often rely on manual supervision, which is prone to missed detection and misjudgment. This monitoring system can realize automatic monitoring and real-time feedback, greatly improving the monitoring efficiency and accuracy. At the same time, the optimization mechanism module is introduced for adaptive learning and optimization, so that the system can continuously adapt to different scenarios and environments and maintain a high level of performance. In addition, the monitoring system is also intelligent and can automatically issue alarms or remind relevant staff to deal with it, timely prevent potential safety risks, and ensure the safety of the workplace. Compared with traditional safety management methods, this intelligent monitoring system has obvious advantages in improving safety management levels and work efficiency, which helps to play an important role in fields such as power production and construction, improve workplace safety and production efficiency, thereby reducing accident risks and ensuring the safety of workers.

[0094] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

[0095] Example 2

[0096] One embodiment of the present invention provides a helmet wearing monitoring system. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through experiments.

[0097] The experiment was conducted on a construction site with multiple work areas, including height work, electrical work, and general construction work. The goal of the experiment was to monitor whether workers wore hard hats when entering and leaving these areas.

[0098] First, multiple cameras and infrared sensors were installed to cover different work areas. These devices were connected to the image data acquisition unit of the monitoring system, and parameters were adjusted to ensure optimal data acquisition. The helmet detection unit used image processing technology to analyze the collected images to identify and classify whether a helmet was worn.

[0099] Secondly, to verify the accuracy of the system, 50 workers were invited to participate in the experiment. These workers were randomly assigned to different work areas and were told to enter and leave these areas at different times, sometimes wearing helmets and sometimes not. The monitoring system recorded all the workers' activities and generated relevant data.

[0100] Finally, the data fusion module is used to fuse the helmet data and the personnel location data to detect whether a worker who is not wearing a helmet enters an area where a helmet is required. When such an event is detected, the system triggers an alarm and notifies the relevant staff through the intercom.

[0101] Table 1

[0102]

[0103]

[0104] By analyzing the records in the data table, we can see that during the experiment, a total of 10 workers entered and left different work areas. The monitoring system successfully recorded their activities and accurately identified whether they were wearing safety helmets. In the case of 5 times when they were not wearing safety helmets, the system triggered the alarm in time and recorded the time when the alarm was triggered.

[0105] First, the system can accurately identify whether a worker is wearing a helmet in real time, which reduces the possibility of human error. Second, by fusing helmet data with personnel location data, the system can more accurately determine whether a worker who is not wearing a helmet has entered an area where a helmet is required, thereby reducing the number of false alarms. Finally, the system's adaptive learning and optimization module enables the system to dynamically adjust model parameters and learning rates based on real-time data, thereby further improving the accuracy of monitoring.

[0106] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

[0107] Example 3

[0108] The third embodiment of the present invention is different from the first two embodiments in that:

[0109] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0110] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0111] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0112] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0113] Example 4

[0114] Reference Figure 2 One embodiment of the present invention provides a method for monitoring wearing of a helmet, characterized in that:

[0115] Start the first target detection module and the second target detection module, load the YOLO-ST model and related parameters; collect video sequences through the camera and infrared sensor, and preprocess the collected images, including denoising, contrast enhancement, and color correction.

[0116] The results of the first target detection module and the second target detection module are compared and fused, and the overlap of the bounding boxes detected by the two modules is calculated using the IoU algorithm. The YOLO-ST model is trained using the fused target detection results and the labeled dataset, and the model parameters are optimized through the bounding box position error. The model is evaluated and tuned regularly to improve accuracy and generalization ability.

[0117] Based on the results of data fusion, the alarm logic and decision rules are designed. When it is detected that the helmet is not worn, the alarm is triggered or the relevant staff are reminded to handle it.

[0118] Design adaptive learning strategies, dynamically adjust model parameters and learning rates according to real-time data, conduct regular evaluations, adjust system parameters based on evaluation results, and optimize to improve system stability and reliability.

[0119] It should be noted that the mutual fusion and comparison includes fusing and comparing the results of the first target detection module and the second target detection module based on the information obtained, using YOLO-ST as the basic model of the first target detection module and the second target detection module, and using the collected labeled data set to train the YOLO-ST model to accurately identify the head, helmet and overall position of the person;

[0120] The target detected by the first target detection module is D1, including the target's bounding box B1 and the category probability P1. The target detected by the second target detection module is D2, including the target's bounding box B2 and the category probability P1.

[0121] For each detection result d1 of the first target detection module and the detection result d2 of the second target detection module, the overlap between the bounding boxes B1 and B2 is calculated using IoU:

[0122]

[0123]

[0124]

[0125] When IoU∈[0,1] exceeds 0.5, the two bounding boxes are considered to overlap, indicating that the detected worker is in an environment where he needs to wear a helmet. 0 means no overlap, and 1 means complete overlap. Generally speaking, if the IoU value is greater than 0.5, it means that the two bounding boxes have a high degree of overlap. Finally, if the overlap of the two bounding boxes exceeds the set threshold, the system will merge the two into a new bounding box. This ensures that the target is not counted repeatedly, which helps improve the accuracy and efficiency of the detection system. If the overlap is higher than I, the two detection results are merged into a new detection result d merged , the fused detection result d merged Generate a new training dataset to train the YOLO-ST model.

[0126] Among them, S1 represents the intersection area, S2 represents the union area, and are the maximum and minimum coordinates of the bounding box B1 in the x-axis direction, and are the maximum and minimum coordinates of the bounding box B2 in the x-axis direction, and are the maximum and minimum coordinates of the bounding box B1 in the y-axis direction, and are the maximum and minimum coordinates of the bounding box B2 in the y-axis direction;

[0127] Take the minimum and maximum values ​​of B1 and B2 in the x-axis direction to determine the right boundary of the intersection on the x-axis.

[0128] Take the maximum and minimum values ​​of B1 and B2 in the x-axis direction to determine the left boundary of the intersection on the x-axis.

[0129] Take the minimum and maximum values ​​of B1 and B2 in the y-axis direction and determine the right boundary of the intersection on the y-axis.

[0130] Take the maximum and minimum values ​​of B1 and B2 in the y-axis direction to determine the left boundary of the intersection on the y-axis.

[0131] Furthermore, issuing an alarm includes triggering an alarm or reminding relevant staff to handle the situation when it is detected that a helmet is not worn based on the result of data fusion.

[0132] When the first target detection module detects a person's head but the first recognition does not detect a helmet, and when the infrared spectrum output by the secondary recognition system is different from the spectrum of the helmet material stored in the system database, the system believes that the person is not wearing a standard helmet and triggers an alarm.

[0133] When the second target detection module detects that the person is in an environment where he needs to wear a helmet and the safety standard mark in the three identifications does not match the location environment of the worker, an alarm is triggered.

[0134] When the data fusion module compares the results of the first target detection module and the second target detection module and finds that a person who is not wearing a helmet is in an environment where a helmet is required, an alarm is triggered.

[0135] After the alarm is triggered, the system reminds personnel to wear safety helmets through the intercom, the system automatically records their information, generates a violation record in the database, and sends the alarm information of alarm time, location, and personnel information to the manager's mobile phone. The manager will not allow personnel who are not wearing safety helmets to enter the work site or leave the work site immediately. The system automatically locates the violators and makes them wear standard safety helmets or leave the work site, and the system automatically cancels the alarm status. For personnel with more than three violation records, the system prohibits them from entering the work site within one week. When the first detection module of the system detects the head of a person during the prohibition period, an alarm is triggered.

[0136] It should also be noted that adaptive learning and optimization include designing adaptive learning strategies, dynamically adjusting model parameters and learning rates according to real-time data conditions, and using reinforcement learning methods to continuously optimize system parameters and models through interaction with the environment:

[0137] Ω(s,u,q,e,o,f)=R(s,u)·A(q,e)·V(o,f)

[0138]

[0139]

[0140]

[0141] The system adjusts parameters and learning rate with the value of Ω, where s is the current state, u is the action taken, r is the reward function, γ is the discount factor, α is the learning rate, q is the current learning rate, e is the error rate, o(t) is the change of the system output over time, and f(t) is the change of the feedback of the environment over time.

[0142] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. A helmet wearing monitoring system, Features: include, The first target detection module is used to identify the head of a person in the real-time video sequence and determine whether the person is wearing a helmet through a helmet recognition model; A second object detection module is used to identify the location of people in the real-time video sequence; A data fusion module, used to fuse and compare the information respectively obtained by the first target detection module and the second target detection module; The feedback and alarm function module, based on the results of data fusion, will issue an alarm or remind relevant staff to handle the situation when it is detected that the helmet is not worn; The optimization mechanism module is used to perform adaptive learning and optimization on the data fusion module, update the model parameters and learning rate according to the real-time data situation, and dynamically adjust the system parameters and optimize the model.

2. A helmet wearing monitoring system as claimed in claim 1, Features: The first target detection module includes an image data acquisition unit, a subsequent processing unit and a helmet detection unit; The image data acquisition unit includes a camera and an infrared sensor image acquisition device to obtain visual information of the monitoring scene, and adjusts the acquisition parameters according to the monitoring requirements, establishes a remote database to store real-time video streams, environmental lighting data, personnel positions and movement trajectories, helmet shapes, materials and logos, background scene data, and transmits the original image data captured by the image data acquisition unit to the subsequent processing unit for preprocessing to optimize image quality; The subsequent processing unit includes preprocessing the collected image data including denoising, contrast enhancement, color correction, gamma correction, and histogram equalization, which is used to adjust the light intensity according to the ambient light data. The optimized image data output by the subsequent processing unit is sent to the helmet detection unit for target recognition and classification; The helmet detection unit analyzes the preprocessed image, identifies the person's head and helmet, and determines whether the helmet is worn, and feeds back the result to the image data acquisition unit and the subsequent processing unit to guide parameter adjustment to form a closed-loop system.

3. A helmet wearing monitoring system as claimed in claim 2, Features: The helmet detection unit includes an image data acquisition unit and a subsequent processing unit, and then performs primary recognition, secondary recognition and tertiary recognition; The primary recognition includes recognizing the face and the shape of the helmet worn according to the processed image, matching the recognized face to the staff's intercom, and detecting the shape of the helmet through the recognition algorithm: When F(x)=0, the system displays that the worker is not wearing a helmet. When F(x)=1, the system displays that the worker is wearing a helmet that matches the shape of a helmet, and inputs the result into the secondary recognition. The infrared sensor receives the reflection spectrum in real time to determine whether it is a spectrum of polycarbonate. If the infrared spectrum output by the system is the same as the spectrum of the helmet material stored in the system database, the system displays that the worker is wearing a helmet, and inputs the result into the tertiary recognition. The safety standard mark on the helmet is obtained through the camera, and the position of the person is determined in combination with the second target detection module. If the safety standard mark matches the position environment of the worker, the system determines that the helmet worn by the worker meets the standard. Among them, F(x) is the final helmet recognition function, x represents the feature vector in the real-time video sequence, t 0 and t 1 Indicates the time interval, a i 、b i and c i The parameters designed based on actual data represent the weight, growth rate and key time point of the feature, c j is the weight coefficient, f j (t) is the feature extraction function based on the actual situation.

4. A helmet wearing monitoring system as claimed in claim 3, Features: The data fusion module includes a data fusion unit and a YOLO-ST model training unit; The data fusion unit fuses and compares the helmet data from the target detection module one and the personnel position data from the target detection module two, inputs the fused target detection results and the labeled training data set into the YOLO-ST model training unit to train the YOLO-ST model, optimizes the YOLO-ST model parameters by minimizing the detection error, and evaluates the trained YOLO-ST model. Based on the evaluation results of the model, the data fusion unit adjusts the data fusion strategy and generates new training data sets, which will be sent back to the YOLO-ST model training unit for a new round of training.

5. A helmet wearing monitoring system as claimed in claim 4, Features: The YOLO-ST model training unit includes using the fused target detection result d when training the YOLO-ST model. merged and training with a labeled data set to accurately locate the person's head and helmet and reduce the error of the bounding box, wherein the labeled data set includes labeled information of the person's head, helmet and overall position; During training, the YOLO-ST model parameters are optimized using the bounding box position error: And evaluate the trained YOLO-ST model: Where L(θ) is the loss function of the bounding box position error, y i (t) is the bounding box position of the ground-truth annotation, is the bounding box position predicted by the model, p is a hyperparameter controlling the impact of the bounding box position error, λ is a weight coefficient used to control the impact of different types of bounding box position errors, and w j is the weight for different types of bounding box position errors, z j (t) is the real labeled category information, is the category information predicted by the model, E(θ) evaluates the model performance, N represents the number of samples in the dataset, and M represents the positions of different types of bounding boxes.

6. A method using a helmet wearing monitoring system as claimed in any one of claims 1 to 5, Features: The mutual fusion and comparison include fusing and comparing the results of the first target detection module and the second target detection module based on the information obtained by the first target detection module and the second target detection module, using YOLO-ST as the basic model of the first target detection module and the second target detection module, and using the collected labeled data set to train the YOLO-ST model to accurately identify the head, helmet and overall position of the person; The target detected by the first target detection module is D 1 , including the bounding box B of the target 1 , category probability P 1 , the target detected by the second target detection module is D 2 , including the bounding box B of the target 2 , category probability P 1 ; For each detection result d of the first target detection module 1 , and the detection result d of the second target detection module 2 , use IoU to calculate the bounding box B 1 and B 2 Overlap degree: When IoU∈[0,1] exceeds 0.5, the two bounding boxes are considered to overlap, indicating that the detected worker is in an environment where he needs to wear a helmet. If the overlap is higher than I, the two detection results are fused into a new detection result d merged , the fused detection result d merged Generate a new training data set to train the YOLO-ST model; Among them, S1 represents the intersection area, S2 represents the union area, and They are the bounding box B 1 The maximum and minimum coordinates in the x-axis direction, and They are the bounding box B 2 The maximum and minimum coordinates in the x-axis direction, and They are the bounding box B 1 The maximum and minimum coordinates on the y-axis, and They are the bounding box B 2 The maximum and minimum coordinates in the y-axis direction; Take B 1 and B 2 The minimum and maximum values ​​in the x-axis direction determine the right boundary of the intersection on the x-axis; Take B 1 and B 2 The maximum and minimum values ​​in the x-axis direction determine the left boundary of the intersection on the x-axis; Take B 1 and B 2 The minimum and maximum values ​​in the y-axis direction determine the right boundary of the intersection on the y-axis; Take B 1 and B 2 The maximum and minimum values ​​in the y-axis direction determine the left boundary of the intersection on the y-axis.

7. A method for monitoring the wearing of a helmet as claimed in claim 6, Features: The issuing of an alarm includes, according to the result of data fusion, triggering an alarm or reminding relevant staff to handle the situation when it is detected that the helmet is not worn; When the first target detection module detects a person's head, but the first recognition does not detect a helmet, and when the infrared spectrum output by the secondary recognition system is different from the spectrum of the helmet material stored in the system database, the system considers that the person is not wearing a standard helmet and triggers an alarm; When the second target detection module detects that the person is in an environment where a helmet is required to be worn and the safety standard mark in the three identifications does not match the location environment of the worker, an alarm is triggered; When the data fusion module compares the results of the first target detection module and the second target detection module and finds that a person who is not wearing a helmet is in an environment where a helmet is required to be worn, an alarm is triggered; After the alarm is triggered, the system reminds personnel to wear safety helmets through the intercom, the system automatically records their information, generates a violation record in the database, and sends the alarm information of alarm time, location, and personnel information to the manager's mobile phone. The manager will not allow personnel who are not wearing safety helmets to enter the work site or leave the work site immediately. The system automatically locates the violators and makes them wear standard safety helmets or leave the work site, and the system automatically cancels the alarm status. For personnel with more than three violation records, the system prohibits them from entering the work site within one week. When the first detection module of the system detects the head of a person during the prohibition period, an alarm is triggered.

8. A method for monitoring the wearing of a helmet as claimed in claim 7, Features: The adaptive learning and optimization includes designing an adaptive learning strategy, dynamically adjusting model parameters and learning rate according to real-time data conditions, and using reinforcement learning methods to continuously optimize system parameters and models by interacting with the environment: Ω(s,u,q,e,o,f)=R(s,u)·A(q,e)·V(o,f) The system adjusts parameters and learning rate with the value of Ω, where s is the current state, u is the action taken, r is the reward function, γ is the discount factor, α is the learning rate, q is the current learning rate, e is the error rate, o(t) is the change of the system output over time, and f(t) is the change of the feedback of the environment over time.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 6 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 6 to 7 are implemented.

Citation Information

Patent Citations

  • Intelligent safety helmet detection method and system

    CN108931198A

  • Grey Compounded Infrared Absorbing Faceshield

    US20150113712A1

Cited By

  • Security monitoring abnormal behavior identification method based on artificial intelligence

    CN120318767A

  • A security monitoring abnormal behavior recognition method based on artificial intelligence

    CN120318767B

  • Safety production management method and production safety management system based on safety helmet detection

    CN120635826A

  • Fire operation safety monitoring method and system based on computer vision and ontology

    CN120976870A

  • Computer vision and ontology-based fire operation safety monitoring method and system

    CN120976870B