An industrial safety violation intention prediction and instant intervention method based on a large model
By using a multimodal large model fine-tuned by LoRA and three-dimensional risk factor calculation, the problems of low coverage, slow response and high false alarm rate of traditional industrial safety monitoring systems have been solved, achieving efficient identification and early warning of violations and forming a fully autonomous closed-loop safety management system.
Patent Information
- Application Number
- CN202611275797.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-20
AI Technical Summary
Traditional industrial safety monitoring systems rely on manual inspections, resulting in low monitoring coverage, high missed detection rates, and delayed responses. They also lack intelligent decision-making, have high false alarm rates, and cannot achieve multi-source data fusion and closed-loop processing.
A multimodal large model with LoRA fine-tuning is used to identify industrial safety violations. Combined with three-dimensional risk factor calculation and real-time intervention methods, it realizes multi-source data fusion and intelligent decision-making. Through video stream preprocessing, feature extraction, behavioral semantic reasoning and risk situation calculation, it can identify and warn of violations in real time.
It improved the accuracy of identifying violations, reduced the rate of missed detections and false alarms, enabled proactive intervention, formed a closed loop of safety management and control, and reduced the risk of accidents.
Smart Images

Figure CN123142152A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent monitoring and emergency response technology for industrial safety production, and in particular to an intelligent agent for industrial safety management based on a large model and a method for automatic identification of violations. Background Technology
[0002] High-risk industrial scenarios such as chemical, energy, and metallurgical industries commonly present safety hazards including leaks of toxic and harmful gases, malfunctions of high-temperature and high-pressure equipment, and personnel violations. Traditional safety management relies on manual inspections, fixed threshold alarms, and passive responses, resulting in low monitoring coverage, high missed detection rates, delayed response times, and insufficient intelligence. Existing industrial safety systems often employ single-sensor monitoring or simple video recognition, making it difficult to achieve multi-source data fusion and analysis; some systems can only issue alarms but cannot automatically handle incidents, missing the golden period for accident response; and they lack industry knowledge-driven intelligent decision-making, leading to high false alarm rates and weak compliance management capabilities. With the development of the Industrial Internet, artificial intelligence, and big data modeling technology, combining big data modeling decision-making, knowledge graphs, multimodal perception, and emergency response linkage to construct a proactive, intelligent, and closed-loop intelligent industrial safety management system has become a key technological direction for solving the safety pain points in high-risk scenarios. Summary of the Invention
[0003] Purpose of the invention: To address the problems of traditional industrial site violations, such as reliance on manual inspections, lack of intelligent analysis capabilities in monitoring systems, low accuracy of identification, delayed early warnings, and inability to handle violations in a closed loop, this invention proposes an intelligent agent for automatic identification of industrial safety violations based on a large model.
[0004] Technical Solution: In a first aspect, this invention proposes a method for predicting and intervening in industrial safety violations based on a large model, comprising the following steps:
[0005] The video stream of the work area is acquired, and the video stream is decoded into a continuous sequence of image frames. Standardized preprocessing is then performed to obtain the image frames to be identified.
[0006] The image frame to be identified is input into a multimodal large model fine-tuned by LoRA industrial safety scene monitoring data. The multimodal large model performs feature extraction, target detection and behavioral semantic reasoning, and outputs the identification result including the coordinates of the personnel target detection bounding box, the label of the violation behavior type and the corresponding confidence value.
[0007] The recognition results are filtered by confidence level, and recognition results with confidence levels below a preset threshold are discarded, while valid recognition results are retained.
[0008] For the effective identification results, three-dimensional risk factor calculation is performed in parallel: quantitative scores are obtained by classifying the violation type and hazard level; time cumulative scores are obtained by normalizing the cumulative hit time of the same violation type label in a continuous image frame sequence; and the trend of personnel entering the danger zone is inferred based on the temporal displacement change of the personnel target detection bounding box coordinates and the spatial relationship with the preset danger zone electronic fence to obtain the intention threat factor.
[0009] The quantitative score, the cumulative time score, and the intent threat factor are fused together to obtain the comprehensive risk situation.
[0010] Based on the comprehensive risk situation value, the final risk level is determined, and an early warning intervention action matching the final risk level is triggered.
[0011] Secondly, the present invention provides an electronic device, the electronic device comprising:
[0012] At least one processor;
[0013] and a memory communicatively connected to the at least one processor;
[0014] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform a method for predicting and intervening in industrial safety violations based on a large model.
[0015] Thirdly, the present invention proposes a computer-readable storage medium storing computer instructions that enable a processor to execute a method for predicting and intervening in industrial safety violations based on a large model.
[0016] Fourthly, a computer program product, characterized in that the computer program product includes a computer program, which, when executed by a processor, implements a method for predicting and intervening in industrial safety violations based on a large model.
[0017] Beneficial effects: Addressing the pain points of low efficiency and lagging safety management in manual inspections in high-risk industrial scenarios, this invention uses LoRA fine-tuning of multimodal large-scale model recognition and three-dimensional weighted risk assessment as its core innovations. It also incorporates optimized existing processes such as data collection, early warning, and data archiving to construct a closed-loop safety management system. Compared to existing technologies, its advantages are as follows:
[0018] (1) Industrial-specific LoRA fine-tuning multimodal large model recognition is highly accurate, lightweight and easy to deploy. Unlike traditional visual inspection which can only statically identify targets, this solution only fine-tunes the large model's vision and cross-attention layers, consumes less computing power and is compatible with edge devices; combined with spatiotemporal Transformer to analyze the temporal behavior of personnel, it integrates multi-source perception data to synchronously identify various violations and predict dangerous intentions, significantly reducing missed detections and false alarms; and it relies on on-site samples for continuous incremental fine-tuning to optimize the recognition effect in the long term.
[0019] (2) Three-dimensional factor-weighted risk assessment enables quantitative classification and early warning. Traditional systems rely solely on a single confidence level for alarms, resulting in one-sided assessments and delayed warnings. This invention simultaneously calculates the level of violation hazard, the duration of the violation, and the approaching danger level of personnel. Figure 3 The system uses a weighted formula to output a quantitative risk value and classify violations into three levels; it can predict the trend of people entering high-risk areas, enabling proactive intervention and seizing the golden window for accident handling.
[0020] (3) Video acquisition, hierarchical early warning, and event ledger are minor optimizations of existing security technologies, compatible with existing on-site hardware, and have low implementation costs. The system relies on two core innovations to form a fully autonomous closed loop, upgrading traditional post-event alarms to predictive intelligent control, reducing manual duty, and effectively reducing the risk of industrial safety accidents.
[0021] The system, storage medium, and product provided in the embodiments of this application also have the above-mentioned technical effects.
[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0024] Figure 1 This is a flowchart illustrating an automatic identification method for industrial safety violations proposed in an embodiment of the present invention.
[0025] Figure 2 A brief diagram illustrating the structure of the large model;
[0026] Figure 3 This is a schematic diagram of the three-dimensional risk assessment proposed in an embodiment of the present invention; Detailed Implementation
[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] This invention proposes a method for predicting and intervening in industrial safety violations based on a large model, such as... Figure 1 As shown, the main steps include:
[0030] Step 1: Video Acquisition and Preprocessing. Reusing existing surveillance cameras deployed in the industrial site, video streams from the work area are acquired in real-time via the RTSP protocol. Multiple video streams can be accessed in parallel, and uniform preprocessing is performed on videos of different resolutions and frame rates to decode the video streams into a continuous sequence of image frames. The decoded image frames are then subjected to size normalization and Gaussian filtering for noise reduction, resulting in standardized image frames to be identified, which are temporarily stored in a memory queue.
[0031] This invention's multimodal data acquisition module is compatible with multiple terminal devices such as explosion-proof cameras, infrared thermal imagers, gas sensors, and vibration sensors. It accesses comprehensive human-machine-environment perception data, including visible light video, infrared thermal imaging, UWB positioning, and temperature / pressure / vibration sensing. After unified temporal aggregation of multi-source data, a preprocessing pipeline performs standardized processing such as image cropping, Gaussian denoising, size normalization, and multimodal feature alignment.
[0032] The system calculates the image quality coefficient γ based on three indicators: weighted fusion of video source imaging intensity, network transmission smoothness, and on-site tunnel image capacity. The dynamic image quality threshold range [α, β] is generated by the system through self-learning, based on historical stable acquisition benchmark coefficients and link anomaly flow coefficients accumulated over long-term operation. The range value is automatically and periodically fine-tuned according to on-site lighting, network, and camera operating conditions, without the need for manual configuration. The system uses γ and [α, β] to classify and handle image degradation: when the image quality index is within the range, image quality enhancement is activated as needed; when the image quality is better than the upper limit of the range, a standardized image is directly output; when the image quality is lower than the lower limit, a link failure is determined, and alarms are triggered simultaneously, automatic reconnection is initiated, and backup cameras are dispatched to ensure monitoring coverage.
[0033] Qualified images after image quality optimization or fault self-healing are sent to the downstream recognition module; the acquisition link logs and image quality detection records are uniformly archived to the memory iteration module to complete the closed loop of the acquisition process and accumulate the sample data required for model iteration.
[0034] Step 2: Identification of Violations by the Large-Scale Model. This large-scale model is a dedicated industrial safety model integrating computer vision and natural language reasoning. It possesses integrated processing capabilities for image target detection, behavior classification, scene semantic understanding, and violation logic determination. It has been fine-tuned using LoRA data from industrial safety scene monitoring footage. The large-scale model performs feature extraction, target detection, and behavioral semantic reasoning for industrial safety violations, outputting violation identification results. Industrial safety violations include at least one of the following: personnel not wearing safety helmets, not wearing protective equipment, unauthorized entry into hazardous work areas, unauthorized operation of industrial equipment, presence of smoke or fire on site, exceeding operating limits, and operation of malfunctioning equipment. Feature extraction for these violations includes, but is not limited to, simultaneously determining the wearing status of personal protective equipment, the spatial relationship between the human body and the hazardous area, and the presence of abnormal visual features such as flames or smoke from a single frame image. After the large-scale model completes its reasoning, it outputs a violation type label and a confidence score.
[0035] A brief description of the large model structure is shown in the diagram below. Figure 2 As shown, it mainly includes the following steps:
[0036] The preprocessed industrial image frames are used as model inputs and fed into a general multimodal large model backbone network with the backbone weights completely frozen. Only the LoRA fine-tuning layer is opened for parameter training. The LoRA fine-tuning layer is divided into two parallel fine-tuning branches: visual encoder LoRA and cross-attention LoRA, to complete the optimization of visual features and cross-modal semantic fusion in industrial scenes.
[0037] The fine-tuned output features are fed into the spatiotemporal Transformer encoder, which extracts the temporal coordinates of 17 key points of the human body using a 3-second sliding window. This completes the long-term temporal action analysis of the person and predicts the person's intention to act in the next 3-5 seconds. The model ends with a dual-branch parallel output architecture, with one branch outputting the detection results of explicit violations and the other branch outputting the prediction results of the person's dangerous behavior intentions. The two structured data are then aggregated and sent to the downstream risk assessment module to complete the three-dimensional risk quantification and assessment.
[0038] Step 3: Large-scale three-dimensional risk assessment. For example... Figure 3 As shown, the main steps include:
[0039] The upper part of the three-dimensional risk assessment diagram illustrates the preliminary coarse-grained risk prediction process, which is the upstream link of the hierarchical and progressive three-dimensional risk assessment system of this invention, specifically including:
[0040] Based on a spatiotemporal Transformer encoder with 6 layers of self-attention and 2 layers of cross-attention, the three-dimensional coordinates of 17 key nodes of the human body are extracted (6 key points of the head are located at the sub-pixel level). Long-term action sequences are parsed through a 3-second sliding window (0.5-second step size). Existing obvious hidden dangers are identified simultaneously, and the behavioral intentions of personnel in the next 35 seconds are predicted. The large model performs multi-source feature fusion and normalization calculation on the predicted probability of personnel's illegal behavior intentions, the degree of abnormal equipment operation, and the degree of abnormal environmental parameters to generate a comprehensive hidden danger risk value in the range of 0-1. This comprehensive hidden danger risk value is the first-level coarse risk judgment index of this method, which is used to realize the rapid diversion and screening of process branches.
[0041] Level 3 risk classification assessment: Dynamically determined based on comprehensive hazard risk value and preset threshold.
[0042] Risk value < 0.3 (corresponding to an accident incidence rate < 0.01%): judged as normal state, enters routine continuous monitoring, and collects data cyclically;
[0043] Risk value 0.3~0.7 (corresponding to an accident incidence rate of 0.01%~0.5%): It is determined to be a state that needs attention. The in-depth hazard assessment process is initiated. The 12-dimensional hazard features are extracted by combining electronic fence, work SOP, and historical data of personnel and equipment (the safety helmet behavior feature accounts for 60%). The comprehensive hazard anomaly degree is calculated and the hazard evolution rate is measured.
[0044] Risk value > 0.7 (corresponding to an accident incidence rate > 5%): This is considered a high-risk situation, and an immediate warning will be triggered.
[0045] On-site closed-loop handling: Integrate in-depth analysis results and high-risk early warning information to implement tiered closed-loop intervention (level 1 core area access control gate interception, level 2 related area on-site voice reminder + security officer terminal push), and return to the data collection stage after the handling is completed, forming a full-process security control closed loop of "entry interception process monitoring intent prediction and real-time intervention".
[0046] The effective hazard identification information output from the preliminary coarse-grained risk prediction process is further fed into the refined three-dimensional risk classification sub-process. This sub-process is the downstream link of the hierarchical progressive three-dimensional risk assessment system of this invention. This step does not rely on the black-box output of the model, but instead constructs a three-dimensional risk assessment model that integrates the inherent hazard level of the violation, the cumulative effect of time, and the prediction of personnel behavioral intentions. First, the identification results are initially screened for confidence, filtering out low-quality data; then, the duration of the same violation in consecutive video frames is counted; simultaneously, based on the personnel's current spatial location, direction of movement, and speed, combined with the electronic fence delineation information of the dangerous area on site, it is inferred whether the personnel have the intention or tendency to enter a higher-risk area; finally, the hazard score of the violation type, the duration score, and the intent threat factor are weighted and fused to generate a comprehensive risk situation value and mapped to three levels: general violation, relatively serious violation, and serious violation. For example, general violation corresponds to behaviors of lack of personnel protection, relatively serious violation corresponds to behaviors of illegal operation, and serious violation corresponds to behaviors of smoking and entering high-risk areas.
[0047] The lower half of the schematic diagram of three-dimensional risk assessment shows the refined three-dimensional risk rating sub-process, which is the downstream link of the hierarchical and progressive three-dimensional risk assessment system of this invention, and specifically includes:
[0048] The structured recognition information output by the large model recognition module (including violation type label, confidence level, number of consecutive frames, timestamp, and camera number) enters the risk assessment module. First, it undergoes an initial confidence level screening. Recognition results with a confidence level below 0.6 are judged as low-quality data and discarded directly, with a discard log recorded. The recognition results that pass the initial screening then enter the 3D risk assessment model, which performs parallel calculations along three paths:
[0049] Path 1: Classification of Violation Types and Hazard Levels. Based on the "Classification Standard for Enterprise Employee Injury and Death Accidents," violations are mapped to three inherent hazard levels: borderline behaviors such as improper use of protective equipment are classified as Level 1, assigned a quantitative score of S=1; explicit violations such as entering the work area without wearing a safety helmet are classified as Level 2, assigned a quantitative score of S=2; and major hidden danger behaviors such as entering dangerous restricted areas or detecting open flames or dense smoke are classified as Level 3, assigned a quantitative score of S=3.
[0050] Path 2: Cumulative statistics of violation duration. The number of repeated hits of the same camera and the same violation type label in consecutive video frames is accumulated and counted, and the actual duration of the violation in seconds is converted in combination with the fixed frame rate, and the time cumulative score T is obtained after normalization mapping.
[0051] Path 3: Personnel behavior intention prediction. Based on the coordinates of the personnel target detection bounding boxes continuously output by the video acquisition module, the displacement change of the center point of the bounding box in consecutive frames is analyzed frame by frame to calculate the personnel movement speed vector and movement direction; at the same time, the pre-set coordinate information of the electronic fence of the dangerous area in the system is read to determine whether the personnel movement trajectory has an intersection trend with the boundary of the dangerous area, and the remaining time for entering the dangerous area is inferred according to the shortest distance, relative movement direction and movement speed, which is further quantified as an intention threat degree factor δ.
[0052] The three types of data are calculated through the weighted fusion formula R = 0.5·S + 0.3·T + 0.2·δ to obtain the comprehensive risk situation value R. The final risk level is mapped according to the numerical interval of R: R≤1.5 is determined as a general violation, 1.5<R≤2.5 is determined as a relatively serious violation, and R>2.5 is determined as a serious violation. The determination result and all process data are encapsulated into a risk determination result data packet, which is sent in parallel to the early warning execution module and the data archiving and model incremental update module, and are respectively used to trigger the graded alarm action and write to the event record database.
[0053] Step 4: Automatic execution of graded early warning and disposal prompts
[0054] According to the final risk level output by the risk determination module, combined with the type of early warning object (safety violation type / system equipment type), differentiated early warning and linked disposal actions are activated to form a closed-loop execution link of "risk identification - level determination - precise intervention".
[0055] The early warning actions include at least one combination of on-site sound and light alarm, management platform pop-up reminder, mobile terminal message push, short message notification, and industrial broadcast announcement; the disposal prompts include at least one of on-site immediate dissuasion prompt, immediate rectification prompt, equipment emergency shutdown prompt, personnel emergency evacuation prompt, hidden danger reporting prompt, and operation and maintenance work order dispatch prompt.
[0056] For early warnings of personnel violations and on-site danger situations, gradient disposal is executed according to the risk level:
[0057] General violation (R≤1.5): Directional voice reminder is performed through the on-site IP speaker column, and the event is recorded on the management platform synchronously, without triggering strong personnel intervention;
[0058] Serious violation (1.5<R≤2.5): Package and push the violation screenshot, occurrence time, location, violation type and disposal suggestion to the mobile terminals of on-site safety officers and team management personnel, so as to urge on-site verification and rectification;
[0059] Severe violation (R>2.5): Immediately trigger the on-site audible and visual alarm, send an equipment interlock control signal to the central control system (such as shutting down operation equipment in the corresponding area and locking the access control of high-risk areas), and simultaneously push the information to the person in charge of safety management and the emergency on-duty post, with clear emergency disposal procedures and personnel evacuation guidelines attached.
[0060] For system equipment type warnings (triggered by self-inspection of the video acquisition and preprocessing module), match the warning level according to the fault severity to realize unified scheduling with safety warnings:
[0061] Mild anomaly (image quality degradation is within the threshold range and can be recovered by self-healing): Trigger a platform prompt-level warning, record the image quality enhancement log, and no manual intervention is required;
[0062] Moderate anomaly (continuous image quality degradation exceeds the time limit, the link is temporarily interrupted and recovered by self-healing): Push a mild alarm to operation and maintenance personnel, prompting to check the transmission link and the working condition of the camera;
[0063] Severe anomaly (the link is completely interrupted, the main camera is offline and self-healing fails): Trigger a severe equipment alarm, simultaneously schedule the backup camera to fill the monitoring gap, and issue an emergency maintenance work order to the operation and maintenance person in charge to ensure the continuity of monitoring coverage.
[0064] In addition, the warning execution module and the video acquisition module form two-way linkage: when a high-level safety warning is triggered, a scheduling instruction can be issued to the acquisition module to control the corresponding camera to zoom and focus on the target area, call up the images of multiple associated surrounding cameras, and start continuous tracking of the target trajectory, so as to provide real-time visual support for emergency disposal.
[0065] Step 5: Record and archive violation events and generate ledgers. Summarize the video clips before and after the alarm is triggered, the violation type and confidence output by the large model, the risk judgment process data, the warning push timestamp and the disposal result feedback mark into a complete event record, and write it into the database. Automatically generate violation statistical ledgers archived by day, week and month based on the event records. The violation statistical ledgers support retrieval, screening, statistics and visual review by time period, operation area, violation type and responsible team, and also support violation data export and safety traceability. The accumulated event data is also used as feedback samples for periodic offline fine-tuning of the large model.
[0066] The module receives full event data from four business units: front-end video acquisition, hazard identification, risk assessment, and early warning execution. The data stream is sent into the memory iteration module from the left input port. Inside the memory iteration module, four core functional sub-units are sequentially connected along the data flow: the manual sample classification unit, the dataset processing unit, the LoRA lightweight fine-tuning unit, and the model performance measurement unit. These units are connected in sequence to form a model incremental optimization link. The model performance measurement unit has two data branches: qualified data is output to the edge to complete the edge model update, and unqualified data is fed back to the manual sample classification unit to realize the cyclic merging and retention of the dataset to be optimized.
[0067] The manual sample classification unit, relying on the on-site personnel's manual review of the warning results, accurately classifies the original identified samples into three categories: TP (True Positive), FP (False Positive), and FN (False Negative). It then binds these samples to corresponding monitoring video clips, identification confidence levels, and manually corrected labels, completing the collection of the original incremental dataset. The dataset processing unit receives the classified sample data and splits the dataset according to a training set:validation set:test set ratio of 8:1:1. Simultaneously, for rare violations with a low sample size, it employs image oversampling algorithms such as random cropping, brightness / contrast transformation, and Gaussian blur to augment the data, balancing the dataset sample distribution and avoiding overfitting due to small sample sizes. The LoRA lightweight fine-tuning unit fixes all weights of the industrial multimodal large model backbone network, allowing only the visual encoder and cross-attention layer to participate in parameter training, configured with a rank r=8 and a scaling factor. With hyperparameters α=16 and Dropout=0.1, multiple rounds of lightweight fine-tuning training are completed using the AdamW optimizer and cosine annealing learning rate, eliminating the need for overall updates to the large model weights and significantly reducing iteration computational overhead. The model performance measurement unit calculates the precision, recall, and F1 comprehensive evaluation index of the optimized model on the test set. When the model's F1 index improves by ≥2% or the system's false alarm rate decreases by ≥3%, it is determined to meet the online standard, and the module outputs the optimized model weights. The on-site edge recognition model is updated step by step using a 10% node gray-scale trial run. If the model performance does not reach the preset update threshold, the entire dataset generated this time is sent back to the manual sample classification unit, merged with the subsequently added samples, and postponed to the next training cycle for joint iteration optimization. Relying on the above closed-loop structure, the accuracy of the industrial recognition large model is continuously iterated and optimized based on the on-site measured data.
[0068] This invention enables fully autonomous closed-loop operation of the entire process, including multimodal data acquisition, violation identification, risk level determination, tiered early warning, closed-loop handling, and model iteration, without manual intervention. Through a built-in LoRA lightweight fine-tuning unit, the model can be rapidly iterated and optimized based on newly added violation samples in the industrial field. The tiered early warning execution module involved in this invention supports linkage with industrial field security and emergency equipment, enabling synchronous triggering of early warning signals and equipment control commands. The memory iteration module has functions for historical data retrieval, violation trend analysis, and model performance evaluation, and can periodically output industrial safety hazard analysis reports. This invention supports cloud-edge-device collaborative deployment, with the edge device completing real-time data processing and violation identification, and the cloud device completing model training, ledger management, and global scheduling.
[0069] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0070] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0071] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for predicting and intervening in industrial safety violations based on a large model, characterized in that: Includes the following steps: The video stream of the work area is acquired, and the video stream is decoded into a continuous sequence of image frames. Standardized preprocessing is then performed to obtain the image frames to be identified. The image frame to be identified is input into a multimodal large model fine-tuned by LoRA industrial safety scene monitoring data. The multimodal large model performs feature extraction, target detection and behavioral semantic reasoning, and outputs the identification result including the coordinates of the personnel target detection bounding box, the label of the violation behavior type and the corresponding confidence value. The recognition results are filtered by confidence level, and recognition results with confidence levels below a preset threshold are discarded, while valid recognition results are retained. For the effective identification results, three-dimensional risk factor calculation is performed in parallel: quantitative scores are obtained by classifying the violation type and hazard level; time cumulative scores are obtained by normalizing the cumulative hit time of the same violation type label in a continuous image frame sequence; and the trend of personnel entering the danger zone is inferred based on the temporal displacement change of the personnel target detection bounding box coordinates and the spatial relationship with the preset danger zone electronic fence to obtain the intention threat factor. The quantitative score, the cumulative time score, and the intent threat factor are fused together to obtain the comprehensive risk situation. Based on the comprehensive risk situation value, the final risk level is determined, and an early warning intervention action matching the final risk level is triggered.
2. The method for predicting and intervening in industrial safety violations based on a large model, as described in claim 1, is characterized in that: The quantitative score obtained by classifying violations according to their type and severity level includes: Improper use of protective equipment is classified as a borderline behavior in the first level and assigned a quantitative score of S=1. Entering the work area without wearing a safety helmet is classified as a clear violation of the second level and assigned a quantitative score of S=2. Entering dangerous restricted areas and detecting major hidden dangers such as open flames and thick smoke are classified as Level 3 and assigned a quantitative score of S=3.
3. The method for predicting and intervening in industrial safety violations based on a large model, as described in claim 1, is characterized in that: The method of normalizing the cumulative hit duration of the same violation type label in a continuous image frame sequence to obtain a cumulative time score includes: The number of times the same violation type tag is repeatedly hit in consecutive video frames in the video stream captured by the same camera is accumulated and counted; the accumulated count is converted into the actual duration of the violation in seconds by combining a fixed frame rate; the actual duration in seconds is normalized and mapped to obtain the time accumulation score.
4. The method for predicting and intervening in industrial safety violations based on a large model, as described in claim 1, is characterized in that: The method of inferring the trend of personnel entering the danger zone based on the temporal displacement change of the personnel target detection bounding box coordinates and the spatial relationship with the preset danger zone electronic fence to obtain the intention threat factor specifically includes: Based on the coordinates of the detected personnel bounding box, the displacement change of the bounding box center point in consecutive frames is analyzed frame by frame to calculate the personnel's moving speed vector and direction of motion. Read the preset coordinate information of the electronic fence of the danger zone to determine whether the movement trajectory of the personnel tends to intersect with the boundary of the danger zone; Based on the shortest distance between personnel and the danger zone, their relative direction of movement, and their speed of movement, the remaining time before entering the danger zone is estimated, and an intentional threat factor is generated accordingly.
5. The method for predicting and intervening in industrial safety violations based on a large model, as described in claim 1, is characterized in that: The process of acquiring the video stream of the work area involves decoding the video stream into a continuous sequence of image frames, performing standardized preprocessing, and obtaining the image frames to be identified. Specifically, this includes: Calculate the current image quality factor γ; If the current image quality index coefficient is greater than or equal to the dynamic image quality threshold range [α, β], then the video stream of the working area is acquired, and the video stream is decoded into a continuous sequence of image frames for standardization preprocessing and image quality enhancement processing to obtain the image frame to be identified. If the current image quality coefficient is better than the upper limit of the dynamic image quality threshold range, then the video stream of the working area is acquired, and the video stream is decoded into a continuous sequence of image frames for standardization preprocessing to obtain the image frame to be identified. If the current image quality coefficient is lower than the lower limit of the dynamic image quality threshold range, then the transmission link is determined to be abnormal, triggering link abnormality alarm, automatic link reconnection and backup camera scheduling actions, and repeating the above steps.
6. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, which is then executed by the at least one processor to enable the at least one processor to perform the method for predicting and intervening in industrial safety violations based on a large model, as described in any one of claims 1-5.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method for predicting and immediately intervening in industrial safety violations based on a large model, as described in any one of claims 1-5.
8. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the method for predicting and immediately intervening in industrial safety violations based on a large model, as described in any one of claims 1-5.
