Method and device for early warning decision of hot work shop
By constructing a safety monitoring digital twin model using digital twin technology, and combining data mining and deep learning algorithms, the assembly process of pyrotechnic products can be monitored and warned in real time. This solves the problem of inaccurate safety supervision during the assembly process of pyrotechnic products and achieves real-time and accurate safety monitoring and warning.
Patent Information
- Application Number
- CN202311523928.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-15
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-11-15
AI Technical Summary
In existing technologies, safety supervision, hazard analysis, and emergency response decision-making during the assembly process of pyrotechnics are inaccurate, incomplete, and untimely, resulting in high labor costs and limited monitoring scope.
A digital twin model for safety monitoring is constructed using digital twin technology. By combining data mining algorithms and deep learning algorithms, the assembly process of pyrotechnic products is monitored and warned in real time. Through perception acquisition, analysis and decision-making, and application execution, a three-dimensional monitoring and management system that combines virtual and real elements is achieved.
It enables real-time monitoring and early warning of the pyrotechnics production process, improves the accuracy and timeliness of monitoring, reduces labor costs, and ensures the safety and visual monitoring of the pyrotechnics assembly process.
Smart Images

Figure CN117557095B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of early warning technology for pyrotechnic assembly operations, and in particular to an early warning decision-making method and device for pyrotechnic work workshops. Background Technology
[0002] Pyrotechnics are devices containing gunpowder or explosives that are prone to combustion or explosion upon exposure to external stimuli. Strict monitoring and management are required during the assembly of pyrotechnics. Previously, safety during assembly was maintained manually, consuming significant manpower. Traditional methods for monitoring the safety of pyrotechnic assembly include video surveillance, manual inspections, sensor monitoring, and process packaging. While these methods can ensure the safety of pyrotechnics to a certain extent, they suffer from high labor costs and limited monitoring scope. Furthermore, traditional methods based on single-factor hazard control are insufficient for effective hazard identification and early warning. Therefore, the inaccurate, incomplete, and untimely safety supervision, hazard analysis, and emergency response decision-making during the assembly and production of pyrotechnics urgently need to be addressed. Summary of the Invention
[0003] The purpose of this application is to provide a method and apparatus for early warning decision-making in pyrotechnic workshops, in order to solve the problem of inaccurate monitoring and prediction of pyrotechnic products during the assembly and production process in the prior art.
[0004] To achieve the above objectives, embodiments of this application provide a method for early warning decision-making in a workshop with a fire, including:
[0005] Obtain an initial model with safety monitoring and early warning decision-making functions; the initial model is the initial design model for monitoring and early warning of the workshop with live fire operation;
[0006] Based on the initial model, the sensing acquisition, analysis and decision-making, and application execution are sequentially performed on the fire-operated workshop.
[0007] After completing the perception acquisition, analysis and decision-making, and application execution, a digital twin model for safety monitoring corresponding to the workshop with the fire is established.
[0008] Optionally, the method of this application further includes:
[0009] A physical workshop and a virtual workshop are constructed; the physical workshop includes workshop environment data, pyrotechnic equivalent data, and personnel image data; the virtual workshop is a geometric model of the physical workshop using 3D modeling technology.
[0010] Based on data mining and deep learning algorithms, hazard analysis and early warning decision processing are performed on the environmental data and personnel image data of the physical workshop.
[0011] The results of hazard analysis and early warning decision processing, the physical workshop, and the virtual workshop are combined to determine the hazard element data;
[0012] The initial model is determined based on the hazard factor data.
[0013] Optionally, based on the initial model, the sensing and acquisition, analysis and decision-making, and application execution processes are sequentially performed on the workshop with the fire working, including:
[0014] Based on the initial model, perception acquisition is performed to identify and analyze the dangerous links, sources and elements in the ignition operation process, and at least one of the following data is acquired during the assembly process: visual data, pyrotechnic equivalent, smoke density and temperature and humidity.
[0015] The data acquired through perception is analyzed and used for decision-making to construct a multi-dimensional digital twin;
[0016] The initial model is applied and executed to complete the virtual-real mapping of the multi-dimensional digital twin.
[0017] Optionally, after establishing the security monitoring digital twin model, the method further includes:
[0018] Using the aforementioned digital twin model for safety monitoring, synchronous modeling, dynamic visual monitoring of workshops with ignition operations, and early warning decision-making are performed.
[0019] Optionally, the aforementioned safety monitoring digital twin model is used to synchronously model the workshop where work is carried out with flames, including:
[0020] Using the aforementioned security monitoring digital twin model, production resource information can be obtained from the static model data resources of the manufacturing system;
[0021] The model library resources corresponding to the production resource information are called to construct a logical model of the ignition operation workshop, and a three-dimensional static model of the ignition operation workshop is generated simultaneously using the logical model of the ignition operation workshop.
[0022] Optionally, the aforementioned safety monitoring digital twin model is used to perform dynamic visual monitoring of workshops where work is carried out with flames, including:
[0023] Using the aforementioned safety monitoring digital twin model, static configuration data and real-time dynamic information of the pyrotechnic assembly process are obtained; the static configuration data includes at least one of the following: maximum number of personnel, temperature threshold, humidity threshold, and smoke density threshold; the real-time dynamic information includes at least one of the following: real-time temperature, real-time humidity, pyrotechnic equivalent, and personnel clothing status.
[0024] Based on the static configuration data and the real-time dynamic information, dynamic visual monitoring of the workshop with live flame operation is performed.
[0025] Optionally, the security monitoring digital twin model is used to make early warning decisions, including:
[0026] The aforementioned security monitoring digital twin model is used to predict environmental factors in gray systems and to make early warning decisions based on personnel clothing identification.
[0027] Optionally, environmental factor prediction for the grey system is performed, including:
[0028] Historical temperature data was obtained at unequal intervals;
[0029] The historical data is sorted to obtain the original data sequence;
[0030] A grey system model is established based on the original data sequence.
[0031] Optionally, personnel attire recognition and early warning decisions may be made, including:
[0032] An attention mechanism is combined with an object detection algorithm to establish a people's clothing recognition model; the loss function of the object detection algorithm adopts the width and height value regression loss function.
[0033] Based on the personnel clothing recognition model, make personnel clothing recognition early warning decisions.
[0034] To achieve the above objectives, embodiments of this application provide an early warning and decision-making device for workshops operating with fire, comprising:
[0035] The acquisition module is used to acquire an initial model with security monitoring and early warning decision-making functions;
[0036] The first processing module is used to sequentially perform perception acquisition, analysis and decision-making, and application execution on the fire-operated workshop according to the initial model.
[0037] The second processing module is used to establish a digital twin model of safety monitoring corresponding to the workshop with the fire after completing the perception acquisition, analysis and decision-making and application execution.
[0038] The beneficial effects of the above technical solution in this application are as follows:
[0039] In the method of this application embodiment, an initial model with safety monitoring and early warning decision-making functions is obtained; the initial model is an initial design model for monitoring and early warning of the pyrotechnics workshop; according to the initial model, perception acquisition, analysis and decision-making, and application execution are sequentially performed on the pyrotechnics workshop; after the perception acquisition, analysis and decision-making, and application execution are completed, a safety monitoring digital twin model corresponding to the pyrotechnics workshop is established. This application takes the pyrotechnics workshop as a specific object and establishes a safety monitoring digital twin model corresponding to the pyrotechnics workshop. Through this safety monitoring digital twin model, the production environment of the pyrotechnics workshop is accurately simulated and predicted, realizing real-time monitoring and early warning of the pyrotechnics production process. Attached Figure Description
[0040] Figure 1 A flowchart of the early warning decision-making method for a workshop with ignition provided in this application embodiment;
[0041] Figure 2 A schematic diagram of the overall architecture of the initial model provided for embodiments of this application;
[0042] Figure 3 A flowchart illustrating the design of a security monitoring system provided in this application embodiment;
[0043] Figure 4 This is a schematic diagram illustrating the structural composition of the security monitoring digital twin model provided in the embodiments of this application;
[0044] Figure 5 A schematic diagram illustrating the functional components of the security monitoring digital twin model provided in this application embodiment.
[0045] Figure 6 This application schematic diagram illustrates the use of synchronous modeling in an embodiment of this application.
[0046] Figure 7 This is a schematic diagram illustrating the principle of visual monitoring provided in the embodiments of this application;
[0047] Figure 8 This is a schematic diagram of the network structure of the existing YOLOv5 technology;
[0048] Figure 9 An improved CBAM structure diagram provided for embodiments of this application;
[0049] Figure 10 This is a structural diagram of the early warning and decision-making device for a workshop with a burning operation provided in an embodiment of this application; Detailed Implementation
[0050] To make the technical problems, technical solutions and advantages of this application clearer, a detailed description will be provided below in conjunction with the accompanying drawings and specific embodiments.
[0051] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments.
[0052] In the various embodiments of this application, it should be understood that the sequence number of each process described below does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0053] like Figure 1 As shown in the embodiment of this application, a method for early warning decision-making in a workshop with a fire is provided, including:
[0054] Step 11: Obtain an initial model with safety monitoring and early warning decision-making functions; the initial model is the initial design model for monitoring and early warning of the workshop with live fire operation.
[0055] Step 12: Based on the initial model, perform perception acquisition, analysis and decision-making, and application execution sequentially on the workshop with fire operation.
[0056] Step 13: After completing the perception acquisition, analysis and decision-making, and application execution, establish a digital twin model for safety monitoring corresponding to the workshop with ignition.
[0057] This application, based on the application of digital twins in safety monitoring and early warning systems for pyrotechnic operations, constructs a corresponding digital twin model for safety monitoring of the pyrotechnic operation workshop by sequentially performing perception acquisition, analysis and decision-making, and application execution on an initial model. Through existing sensor data, Manufacturing Execution System (MES) data, and camera input images from this digital twin model, a three-dimensional monitoring and management function combining virtual and real elements is achieved. This accurately simulates and predicts the production environment of the pyrotechnic operation workshop, realizing real-time monitoring and early warning of the pyrotechnic production process. This application provides new ideas and support for the application of digital twins in the field of production safety monitoring and early warning, promoting the widespread adoption and application of digital twin technology in this field.
[0058] Optionally, the early warning decision-making method for workshops with fire in this application also includes:
[0059] A physical workshop and a virtual workshop are constructed; the physical workshop includes workshop environment data, pyrotechnic equivalent data, and personnel image data; the virtual workshop is a geometric model of the physical workshop using 3D modeling technology.
[0060] Based on data mining and deep learning algorithms, hazard analysis and early warning decision processing are performed on the environmental data and personnel image data of the physical workshop.
[0061] The results of hazard analysis and early warning decision processing, the physical workshop, and the virtual workshop are combined to determine the hazard element data;
[0062] The initial model is determined based on the hazard factor data.
[0063] It should be noted that digital twins are a key technology for realizing cyber-physical systems (CPS). The safety monitoring and intelligent early warning decision-making of fire-related work workshops based on digital twins is essentially an intelligent safety production management and control model that integrates information space and physical space.
[0064] In this embodiment, a physical workshop and a virtual workshop are constructed, and hazard analysis and early warning decision processing are performed to obtain hazard element data, forming the basic framework of the initial model of this application. (Refer to...) Figure 2 As shown, the five dimensions of the initial model for safety monitoring and early warning decision-making in a workshop with live flame operations—the physical workshop, the virtual environment of the live flame operations, the data on hazardous elements, the hazard analysis and early warning decision processing, and the connection between each function—are the core elements for determining the initial model for safety monitoring and early warning decision-making in a workshop with live flame operations.
[0065] The physical workshop for ignition operations encompasses the workshop's operational environment. It forms the foundation for the virtual workshop model and serves as the source of hazard data collection. The physical workshop for ignition operations consists of assembly lines for pyrotechnic products, product storage areas, material areas, and changing areas, as well as personnel and the environment. The physical workshop provides essential data for hazard analysis and early warning decision-making services and data display dashboards. Correspondingly, the decision data from the virtual workshop and services enables the monitoring and control of the physical workshop. Therefore, the physical workshop is the foundation and prerequisite for digital twins and is also the basis of the initial model in this application. The virtual workshop for ignition operations is a combination of the geometric and rule models of the physical workshop. First, virtual reality engine software (such as Unity3D) is used to create a 3D model of the workshop, achieving geometric modeling of the physical workshop. Then, through statistical analysis of historical data patterns, corresponding rule models are designed to assess and issue alarms for hazard data. Hazard analysis and early warning decision-making services utilize data mining models and deep learning algorithms for real-time monitoring and prediction of environmental data and employee image data. The data mining model employs a grey system prediction method. Grey system prediction uses a grey model to make short-term predictions of environmental data such as temperature and humidity, and then returns the data to the rule model for further early warning decisions. The deep learning algorithm uses a convolutional neural network model based on YOLOv5 to detect employee clothing status images in real time, returning the detection results to the rule model, and then displaying them through a data dashboard. Hazard factor data is a collection of physical workshop data, virtual workshop data, and data from the hazard analysis and early warning decision service prediction model. Physical workshop data mainly includes workshop environmental data, explosive equivalent data, and employee image data, collected through devices such as programmable logic controllers (PLCs), sensors, cameras, and industrial control computers. Virtual workshop data includes geometric model-related data such as model dimensions and relative positions. The early warning decision service prediction model data includes environmental prediction results and employee clothing detection results. The connection enables the interconnection and interoperability of the above-mentioned modules. Sensor data is mainly communicated through the Transmission Control Protocol (TCP) and Universal Serial Bus (USB) serial port. Camera data is transmitted through the Software Development Kit (SDK) protocol, and pyrotechnic data is transmitted through the Open Database Connectivity (ODBC) database interface.
[0066] Optionally, step 12 of this application includes:
[0067] Based on the initial model, perception acquisition is performed to identify and analyze the dangerous links, sources and elements in the ignition operation process, and at least one of the following data is acquired during the assembly process: visual data, pyrotechnic equivalent, smoke density and temperature and humidity.
[0068] The data acquired through perception is analyzed and used for decision-making to construct a multi-dimensional digital twin;
[0069] The initial model is applied and executed to complete the virtual-real mapping of the multi-dimensional digital twin.
[0070] In this embodiment, based on the initial model of safety monitoring and intelligent early warning decision-making for workshops with live flame operations described above, the digital twin system for safety monitoring of workshops with live flame operations is designed sequentially according to the route of perception acquisition (which can also be understood as process perception) - analysis and decision-making - application execution - application verification. Its overall design flowchart is as follows: Figure 3 As shown.
[0071] The perception and acquisition (also known as process perception) layer mainly involves designing and constructing an efficient and reliable safety sensor network based on the identification and analysis of hazardous links, sources, and elements in the ignition operation process. This network acquires various data in real time, such as visual data, pyrotechnic equivalent, smoke density, temperature, and humidity, during the assembly process.
[0072] The analysis and decision-making layer, based on the identification of hazardous factors and data acquisition in the perception and acquisition layer, constructs a multi-dimensional, multi-scale digital twin of the assembly and firing zone, integrating geometry and rules. The digital twin's analysis and decision-making are grounded in a safety production factor model library and a hazard situation analysis library. Based on these, the virtual-real mapping mechanism of the firing zone is studied. Driven by real-time data, dynamic modeling of the digital twin of the firing workshop and hazard situation analysis, prediction, and early warning based on deep learning are achieved.
[0073] The application execution layer is a digital twin-based safety monitoring system for workshops operating with open flames. The monitoring system primarily uses the analysis and decision-making layer to map the digital twin to the real world, and then visualizes and controls the decision data in a closed loop. It provides 3D display and real-time monitoring of the production process and its safety elements, promptly displays key areas, presents predictions and analysis results, and manages them.
[0074] Optionally, after establishing the security monitoring digital twin model, the method of this application further includes:
[0075] Using the aforementioned digital twin model for safety monitoring, synchronous modeling of workshops with live flame operations, dynamic visual monitoring of workshops with live flame operations, and early warning decision-making are carried out.
[0076] Following step 12, based on the aforementioned overall system framework, this application establishes a digital twin model for integrated verification of safety production monitoring in a workshop with live flame operations. This model enables the application and verification of all research content. The safety monitoring digital twin model can be referenced... Figure 4As shown, the system comprises modules such as a safety sensor network and data acquisition (environmental temperature and humidity, smoke data acquisition, product grounding status data acquisition, on-site personnel clothing data acquisition, propellant loading and leakage data acquisition), digital twin safety production monitoring (environmental status monitoring, safety facility operation status monitoring, product grounding status monitoring), hazard situation analysis and prediction early warning, and system configuration management (user access management, database management, virtual model library management, hazard factor knowledge base management). Functionally, this safety monitoring digital twin model can be divided into a synchronous modeling module, a visualization monitoring module, and an intelligent decision-making module, as shown in the functional structure diagram. Figure 5 As shown. Therefore, the aforementioned digital twin model for safety monitoring can be used for synchronous modeling of workshops with live flame operations, dynamic visual monitoring of workshops with live flame operations, and early warning decision-making.
[0077] Optionally, the aforementioned safety monitoring digital twin model is used to synchronously model the workshop where work is carried out with flames, including:
[0078] Using the aforementioned security monitoring digital twin model, production resource information can be obtained from the static model data resources of the manufacturing system;
[0079] The model library resources corresponding to the production resource information are called to construct a logical model of the ignition operation workshop, and a three-dimensional static model of the ignition operation workshop is generated simultaneously using the logical model of the ignition operation workshop.
[0080] This application, based on real-time perception information of hazardous factors in pyrotechnic assembly, studies real-time information-driven synchronous modeling technology for pyrotechnic assembly, and constructs a dynamic digital twin model for safety monitoring that reflects the actual production status. This enables the synchronous mapping of the digital twin of the pyrotechnic area in the information space to the actual pyrotechnic area's production safety elements (including people, materials, and environment) and safe operation processes in the physical space. This allows supervisors to know the on-site situation and the quantified degree of danger and harm in a timely, accurate, comprehensive, blind-spot-free, and all-time manner, achieving dynamic, real-time, and visual monitoring of safe production in pyrotechnic assembly.
[0081] Specifically, synchronous modeling using a digital twin model for safety monitoring combines safety monitoring equipment, such as sensors and cameras, to collect real-time data on production safety elements (including personnel, materials, and environment) and safe operating procedures in the pyrotechnic area. This real-time data is then uploaded to an information center and compared with a modeling database, thereby achieving dynamic, real-time, and visual monitoring of the workshop where pyrotechnic operations are conducted. A real-time information-driven synchronous modeling technology solution for the assembly process of pyrotechnic products is as follows: Figure 6 As shown.
[0082] First, based on the production resource information (such as workshop site information and equipment information) in the static model data resources of the manufacturing system, the corresponding model library resources are directly called from the simulation software platform to construct the logical model of the production workshop. Then, through a supported middleware format (such as FBX files), the 3D static model of external 3D drawing software (such as CAD software) is imported via a software interface to construct the 3D static model of the production workshop. This simultaneously generates the 3D static model of the ignition operation workshop from the logical model of the ignition operation workshop. Finally, the model is appropriately optimized and processed to complete the 3D static modeling of the manufacturing system.
[0083] The key to dynamic modeling of a digital twin system lies in the dynamic operation of the interface between the simulation software platform and real-time data. The dynamic operation of the interface in this application mainly involves data transmission between the software platform and external hardware devices (such as PLCs, USB sensors, cameras, etc.), as well as data transmission via network interfaces (such as MES databases, TCP sensors, etc.), to read real-time production data and environmental data.
[0084] By cleaning and processing the above data, dynamic real-time data with a unified descriptive structure is obtained, including information on safety production elements such as people, objects, and environment. The processed real-time data is then transmitted to the established static model. The processed data is mapped in real time through a visual data panel, constructing a dynamic mapping of the digital twin system. Ultimately, this ensures the accuracy and consistency of the synchronous modeling of the digital twin system and the data from the actual assembly workshop.
[0085] Optionally, the aforementioned safety monitoring digital twin model is used to perform dynamic visual monitoring of workshops where work is carried out with flames, including:
[0086] Using the aforementioned safety monitoring digital twin model, static configuration data and real-time dynamic information of the pyrotechnic assembly process are obtained; the static configuration data includes at least one of the following: maximum number of personnel, temperature threshold, humidity threshold, and smoke density threshold; the real-time dynamic information includes at least one of the following: real-time temperature, real-time humidity, pyrotechnic equivalent, and personnel clothing status.
[0087] Based on the static configuration data and the real-time dynamic information, dynamic visual monitoring of the workshop with live flame operation is performed.
[0088] In this embodiment of the application, the dynamic visualization monitoring technology for ignition-based work workshops collects safety element information of the pyrotechnic assembly process based on synchronous modeling of the workshop, and displays the workshop safety status in real time. It uses static configuration data (such as maximum number of personnel, temperature threshold, humidity threshold, smoke density threshold, etc.) and real-time dynamic information (such as real-time temperature, real-time humidity, pyrotechnic equivalent, personnel clothing status, etc.) as input to perform dynamic visualization monitoring of ignition-based work workshops, such as constructing a dynamic visualization monitoring model of ignition-based work workshops.
[0089] Based on the analysis of workshop safety production factors and requirements, this application establishes a visual monitoring model that combines multi-dimensional monitoring with intelligent monitoring. The schematic diagram of the visual monitoring model is shown below. Figure 7 As shown. Multi-dimensional monitoring refers to monitoring multiple safety elements and data sources. Safety monitoring elements include people, objects, and the environment. Intelligent monitoring refers to using data mining and deep learning to monitor and predict hazards from the collected multi-dimensional data. It mainly uses real-time collected data and historical data stored in the database to predict the future state of the workshop to a certain extent.
[0090] Multi-dimensional monitoring refers to the safety monitoring of the pyrotechnic work workshop, which focuses on three safety elements: people, materials, and environment. It uses various safety data related to these three elements, such as temperature and humidity, pyrotechnic intensity, and personnel status, as monitoring content. Through the provided equipment model and the constructed factory model, a static 3D model of the digital twin system is established to achieve dynamic simulation of the pyrotechnic work workshop, resulting in a highly mapped virtual simulation animation. Simultaneously, it calls upon real-time transmitted dynamic monitoring information and corresponding static configuration information, visualizing them in the form of charts and other formats. This forms a dynamic and visual monitoring interface for the pyrotechnic assembly process, achieving a high degree of mapping between the actual operation of pyrotechnic assembly and the results of synchronous modeling and simulation, as well as background monitoring.
[0091] Intelligent monitoring refers to the core of workshop visualization monitoring, which involves data sources and processing. Real-time data collection of the workshop environment is achieved through a sensor network deployed throughout the workshop. Multiple data collection methods are employed, utilizing the existing MES system and cameras. Real-time data and historical data stored in the database together form the input data for the prediction model. This model, primarily based on data mining techniques and deep learning methods, is capable of real-time prediction of environmental data and personnel status. The prediction results are then stored in the database and displayed in real-time through a data dashboard. Furthermore, the prediction results can be used to adjust the actual physical environment and personnel status of the workshop, achieving a fusion of virtual and real elements and enabling real-world control of the virtual.
[0092] This application, based on digital twins, provides dynamic visualization monitoring of workshops operating with ignition. Starting from the monitoring needs of the workshop, it establishes a monitoring mode that combines multi-dimensional monitoring and intelligent monitoring, taking people, objects, and the environment as monitoring objects. It realizes bidirectional mapping between physical objects and virtual models, improves the intelligence level of workshop monitoring, and achieves real-time and predictive alarms for dangerous factors, ensuring the safety of production in the workshop's ignition area.
[0093] In this application, based on safety monitoring data for pyrotechnic assembly, hazard factors are quantitatively characterized from three levels: human, material, and environmental, constructing a hazard factor knowledge base. Within a digital twin virtual-real interaction system, hazard factors related to human, material, and environmental hazards are identified and predicted from macro and micro perspectives using deep learning and data mining techniques. Based on this, critical states of hazard factor indicators are set, and hazard warning thresholds are studied, thereby achieving predictive early warning of hazard factors. Optionally, the aforementioned safety monitoring digital twin model is used for early warning decision-making, including:
[0094] The aforementioned security monitoring digital twin model is used to predict environmental factors in gray systems and to make early warning decisions based on personnel clothing identification.
[0095] In this application, common time-series prediction algorithms include Long Short-Term Memory (LSTM) neural networks, convolutional neural networks, and grey system prediction. Due to the unstable and nonlinear characteristics of environmental data, and considering the short-term trend of temperature, humidity, smoke levels, and other environmental factors, this application employs a grey system model for environmental data prediction, taking into account the limitations of prediction speed and computer performance. While the grey system model has a lower prediction accuracy compared to LSTM neural networks, it offers advantages in prediction speed. The following example uses temperature data to demonstrate the construction of a grey system model for short-term temperature prediction. By predicting environmental factors such as temperature and humidity, this application can effectively monitor and warn of temperature and humidity changes during the assembly of pyrotechnic products, promptly identifying and addressing potential safety hazards. Simultaneously, it can provide necessary temperature and humidity control and environmental regulation measures for the production process, ensuring the safety of pyrotechnic product manufacturing and assembly. This application can also utilize a digital twin model for safety monitoring to make personnel clothing recognition and early warning decisions. For example, for personnel feature data, cameras can be used to acquire images of people for standardized detection and prediction of personnel clothing.
[0096] Specifically, environmental factor prediction for grey systems includes:
[0097] Historical temperature data was obtained at unequal intervals;
[0098] The historical data is sorted to obtain the original data sequence;
[0099] A grey system model is established based on the original data sequence.
[0100] This application uses sensor-collected data as its data source. It retrieves historical data stored in a database and arranges the environmental data chronologically, then uses unequal-interval sampling to collect temperature data. Unequal-interval sampling typically refers to collecting data according to actual changes in temperature, such as when the temperature changes. Because temperature changes are random and can be influenced by many factors, such as weather and environmental conditions, unequal-interval sampling can better reflect actual temperature changes and provide more accurate data. Furthermore, unequal-interval sampling provides a better data foundation for grey system models, improving the accuracy and precision of predictions.
[0101] Grey system model is a mathematical model whose basic idea is to describe the regularity of the phenomenon under study by establishing a grey differential equation. Currently, the most widely used grey system model is the GM(1,1) model. To establish a grey system model, the original data sequence is first processed by arranging temperature data obtained through unequal interval sampling. Perform one accumulation to generate an accumulation sequence: ,in, ,right Establish a first-order differential equation, The whitening differential equation is the GM(1,1) model.
[0102] The solution to the whitening differential equation is: , ; This leads to the corresponding restored predicted value: .
[0103] Grey system models are widely used in practical applications because they can model and predict using limited data. However, traditional grey system models also have some shortcomings, such as sensitivity to extreme values and limited prediction accuracy. Moreover, factors related to data preprocessing have a significant impact on the prediction accuracy of the model. In response to the abnormal data that occurs when temperature sensors collect temperature data, this application uses a sigmoid function to remove noise from the data, thereby smoothing the temperature curve.
[0104] S-type functions are Where a and b are parameters that adjust the shape and smoothness of the curve. The data is processed point-by-point, meaning the function is applied to each element of the original data sequence to obtain a new sequence: ,in, This leads to the corresponding whitening equation: Then its time response sequence is: , ; Therefore, the predicted value of the new data sequence under the S-shaped curve smoothing effect can be obtained as follows: .
[0105] After obtaining the predicted values from the data sequence optimized using an S-shaped curve, the relative errors of the predicted values are calculated. And the average relative error was calculated: The smaller the average relative error, the better the prediction effect.
[0106] Specifically, in the process of temperature prediction, the grey model establishes grey differential equations and performs weighted operations on temperature time series data to obtain the estimated results of temperature prediction, thereby realizing the prediction of future temperatures. Compared with other prediction models, the grey system model has the following advantages: (1) It does not have high requirements for data and is suitable for small sample prediction; (2) It is simple to establish the model and can be applied to various nonlinear and complex time series prediction problems; (3) It has high prediction accuracy and can predict relatively accurate future temperature values.
[0107] Specifically, making early warning decisions based on personnel attire includes:
[0108] An attention mechanism is combined with an object detection algorithm to establish a people's clothing recognition model; the loss function of the object detection algorithm adopts the width and height value regression loss function.
[0109] Based on the personnel clothing recognition model, make personnel clothing recognition early warning decisions.
[0110] It should be noted that YOLOv5 is an object detection algorithm. Its network structure mainly consists of four parts: input, backbone, neck, and head. Its main structure is as follows: Figure 8As shown. The functions of each part are as follows: ① Input: The input end is responsible for preprocessing the input image and converting it into a form that the model can process. YOLOv5 supports multiple input sizes, and the input end will perform operations such as cropping or scaling the input image to match the model input size. ② Backbone: YOLOv5 uses CSPDarknet53 as the backbone network, which is a compact convolutional neural network. CSPDarknet53 consists of residual blocks and a Content Safety Policy (CSP) module, which can efficiently extract image features. The output of the backbone network is used in the FPN and Head network. ③ Neck: Combines image features and transmits the image features to the Head module for prediction. ④ Output: The output end is mainly responsible for detecting targets in the image and outputting information such as the target's location, category, and confidence level.
[0111] Because safety helmets are small in size in images, their features are easily affected by the shooting angle and lighting, making them less noticeable. Traditional YOLOv5 networks do not consider the impact of channel and positional information on prediction performance. Therefore, this application introduces the CBAM (Convolutional Block Attention Module) attention mechanism and makes certain modifications to the original CBAM. CBAM combines channel attention and spatial attention, thereby improving the representational power and discriminative power of features. In the channel attention part, the original CBAM performs global average pooling and max pooling on each channel, generating two feature maps of size B×1×1×C. However, pooling each channel's feature map into a single value may lose some important information. Therefore, this application, based on the original approach, pools the original feature map into a 2×2 feature map, and then convolves the B×2×2×C feature map into a B×1×1×C feature map through two convolution operations. Figure 9 As shown, the results of average pooling and max pooling are added together, followed by a Sigmoid activation operation (one of the activation functions used here as an example) to obtain channel attention weights. These weights are multiplied with the input feature map to generate a new feature map. In the spatial attention channel, the feature maps generated by channel attention are subjected to average pooling and max pooling respectively, followed by convolution and Sigmoid normalization to obtain spatial attention weights. These spatial attention weights are then multiplied with the input feature map channel by channel to obtain the final feature map. The improved CBAM attention module is added after the C3 module in Backbone to enhance the features learned from residual learning.
[0112] The original YOLOv5 model uses CIoU_loss as the loss function for the bounding boxes. CIoU considers the overlap, relative position, and aspect ratio of the bounding boxes. This loss function consists of three parts: overlap loss, center distance loss, and aspect ratio loss, as shown in formulas (1), (2), and (3). This refers to the intersection-union ratio (IUR) of bounding boxes A and B. Let v be the ratio of the square of the distance between the center points of A and B to the square of the diagonal length of the smallest bounding box C, and let v be the normalized value of the difference in aspect ratio between the predicted and ground truth bounding boxes. This is a balancing factor to weigh the loss caused by aspect ratio against the loss caused by IoU. Although the aspect ratio penalty term in CIoU considers the difference in aspect ratio between the predicted and ground truth boxes, it does not consider the true difference between the length and width and their confidence scores. If the target shape has a variable or unbalanced aspect ratio distribution, the aspect ratio penalty term in CIoU may lead to unnecessary restrictions, thereby reducing the model's degrees of freedom when optimizing similarity.
[0113] To address this issue, this application uses EioU_loss instead of CioU_loss as the loss function for the YOLOv5 model. The calculation methods for overlap loss and center distance loss continue the methods in CIoU, but the width and height loss uses the difference between the width and height of the predicted box and the ground truth box as a penalty, as shown in formula (4). and These are the width and height of the smallest bounding box that covers both boxes, respectively. It is the square of the difference in width between the two boxes. It is the square of the height difference between the two frames.
[0114] , formula (1); , formula (2); , formula (3); , formula (4).
[0115] This application utilizes the improved target detection algorithm to establish a personnel clothing recognition model; the loss function of the target detection algorithm adopts the width and height value regression loss function; and based on the personnel clothing recognition model, it makes personnel clothing recognition early warning decisions.
[0116] In this application, during model training, the number of training iterations can be set to 300, the mini-batch size to 16, and the input image size to 640×640. The training set images are collected on-site and manually labeled using the LabelImg tool. The model is evaluated using precision and recall. Precision P and recall R are defined by the following formulas: ; .
[0117] The relationship between TP, FP, and FN is shown in Table 1 below: Table 1: Relationship diagram of TP, FP, FN, TN
[0118] TP represents the number of correctly predicted positive samples, FP represents the number of samples that were actually negative but were incorrectly predicted as positive samples, FN represents the number of samples that were actually positive but were incorrectly predicted as negative samples, and TN represents the number of samples that were actually negative and were predicted as negative samples.
[0119] The datasets were trained using both the original YOLOv5 model and the improved YOLOv5 model, and the training results were obtained based on evaluation metrics. The accuracy and recall curves show that the model tends to stabilize after 60 training iterations, with accuracy exceeding 0.8 and recall remaining above 0.9. As shown in Table 2 below, in the final training round, the improved YOLOv5 algorithm achieved an accuracy of 91.7%, a 2.3% improvement over the original YOLOv5 algorithm, and a 0.7% improvement in recall. This demonstrates that the YOLOv5 algorithm based on the improved CABM attention mechanism and EIoU loss function is effective and can improve the accuracy of safety clothing and helmet recognition to a certain extent. Table 2: Comparison of Algorithm Before and After Improvement
[0120] In summary, this application presents a safety monitoring and intelligent early warning decision-making system for the assembly process of pyrotechnic devices in a pyrotechnic work workshop. Based on digital twin technology, this system enables automated identification and real-time monitoring of hazardous factors in the pyrotechnic area, transforming traditional safety management that focuses on hazard alarms, enhancing the enterprise's digital manufacturing level, and ensuring the mass production of important weaponry and equipment.
[0121] To achieve safety monitoring and intelligent early warning in workshops with live flame operations, based on the overall system architecture proposed above, and following the safety monitoring system design process, a digital twin-based safety monitoring and intelligent early warning system for workshops with live flame operations was designed, focusing on three key technologies. From a functional perspective, the digital twin system was validated by examining the three key technologies mentioned above.
[0122] The first part is the real-time information-driven synchronous modeling of the workshop for ignition operations. This part is based on the establishment of a static virtual workshop model. On this basis, multi-source safety element data of the workshop is collected to realize the real-time data-driven model, such as real-time updating of data on the visualization dashboard, generating prefabricated human figures, and generating prefabricated pyrotechnic devices based on the pyrotechnic device equivalent data. In addition, it can also judge the alarm data content according to the preset script and generate alarm information prefabricated devices in real time.
[0123] The second part is the dynamic visualization monitoring of the workshop. This visualization monitoring uses a data dashboard for display and is driven by multi-dimensional safety element data. Visualization can include: real-time display and prediction of environmental data such as smoke level, temperature, and humidity in the workshop; calculation of the equivalent data and proportions of different types and locations of pyrotechnics based on the detection of their equivalent in the assembly workshop, and reflecting this data in the dashboard; display of the number of workshop employees and the results of employee attire inspections, and statistical display of this information. This application can also include an alarm information panel to describe and reflect hazard alarms within the workshop, realizing real-time dynamic visualization monitoring of workshops with open flame operations.
[0124] The third part is the hazard analysis and early warning decision-making section. To achieve hazard analysis and early warning decision-making, alarm thresholds for each hazard element must first be set in advance. Based on the gray system-based environmental prediction method proposed in this application, historical environmental data stored in the database is used for prediction. The prediction results are then called through a script and further judged. If the set threshold is exceeded, a hazard alarm is triggered, enabling staff to adjust the workshop environment in a timely manner. For pyrotechnic equivalent data, it can be obtained from the MES system, and a script can be used to determine whether the threshold is exceeded, displaying the judgment result on the alarm information panel. Since this digital twin system is developed based on the Unity engine, and YOLOv5 runs on a Python interpreter, the Process class under the System.Diagnostics namespace in C# is used to start the Python process. The input and output streams of this process are used to interact with the Python process, passing input parameters and obtaining output results. A Unity script is designed to display the recognition results in the form of a visual dashboard.
[0125] Based on the three key technologies mentioned above, the digital twin model for safety monitoring constructed in this application has basically achieved safety monitoring and intelligent early warning decision-making for workshops with open flame operations. In addition to real-time monitoring and display of hazardous factors, this system also includes basic information about the workshop and the system, and adds a scene roaming function to facilitate more objective and realistic monitoring of the internal situation of the virtual workshop.
[0126] Reference Figure 10 As shown in the embodiment of this application, an early warning and decision-making device for a workshop with a fire is also provided, including:
[0127] Module 101 is used to acquire an initial model with security monitoring and early warning decision-making functions;
[0128] The first processing module 102 is used to sequentially perform perception acquisition, analysis and decision-making, and application execution on the fire-operated workshop according to the initial model.
[0129] The second processing module 103 is used to establish a digital twin model of safety monitoring corresponding to the workshop with fire operation after the perception acquisition, analysis and decision-making and application execution are completed.
[0130] In this embodiment of the application, the aforementioned early warning and decision-making device for a workshop with a fire also includes:
[0131] The first construction module is used to construct a physical workshop and a virtual workshop; the physical workshop includes workshop environment data, pyrotechnic equivalent data, and personnel image data; the virtual workshop is a geometric model of the physical workshop using 3D modeling technology.
[0132] The third processing module is used to perform hazard analysis and early warning decision processing on the environmental data and personnel image data of the physical workshop based on data mining algorithms and deep learning algorithms;
[0133] The first determining module is used to combine the results of hazard analysis and early warning decision processing, the physical workshop and the virtual workshop to determine hazard element data;
[0134] The second determining module is used to determine the initial model based on the hazard element data.
[0135] Optionally, the first processing module 102 described above includes:
[0136] The first processing unit is used to perform perception acquisition based on the initial model, identify and analyze the dangerous links, sources and elements in the ignition operation process, and perceive and acquire at least one of the following data in the assembly process: visual data, pyrotechnic equivalent, smoke density and temperature and humidity.
[0137] The second processing unit is used to analyze and make decisions on the data acquired by the perception, and to construct a multi-dimensional digital twin.
[0138] The third processing unit is used to execute the application of the initial model and complete the virtual-real mapping of the multi-dimensional digital twin.
[0139] In this embodiment of the application, the aforementioned early warning and decision-making device for a workshop with a fire also includes:
[0140] The fourth processing module is used to perform synchronous modeling of the workshop with live flame operations, dynamic visual monitoring of the workshop with live flame operations, and early warning decision-making using the aforementioned safety monitoring digital twin model.
[0141] Optionally, the fourth processing module described above includes:
[0142] The fourth processing unit is used to obtain production resource information from the static model data resources of the manufacturing system using the security monitoring digital twin model.
[0143] The fifth processing unit is used to call the model library resources corresponding to the production resource information, construct the logical model of the ignition operation workshop, and simultaneously use the logical model of the ignition operation workshop to generate a three-dimensional static model of the ignition operation workshop.
[0144] Optionally, the fourth processing module described above includes:
[0145] The sixth processing unit is used to acquire static configuration data and real-time dynamic information of the pyrotechnic assembly process using the aforementioned safety monitoring digital twin model; the static configuration data includes at least one of the following: maximum number of personnel, temperature threshold, humidity threshold, and smoke density threshold; the real-time dynamic information includes at least one of the following: real-time temperature, real-time humidity, pyrotechnic equivalent, and personnel clothing status.
[0146] The seventh processing unit is used to perform dynamic visual monitoring of the workshop with live flame operation based on the static configuration data and the real-time dynamic information.
[0147] Optionally, the fourth processing module described above includes:
[0148] The eighth processing unit is used to use the security monitoring digital twin model to predict environmental factors of the gray system and to make early warning decisions based on personnel clothing identification.
[0149] Optionally, the eighth processing unit described above includes:
[0150] The first processing subunit is used to acquire historical temperature data at unequal intervals.
[0151] The second processing subunit is used to sort the historical data to obtain the original data sequence;
[0152] The third processing subunit is used to establish a gray system model based on the original data sequence.
[0153] Optionally, the eighth processing unit described above further includes:
[0154] The fourth processing subunit is used to combine the attention mechanism with the target detection algorithm to establish a personnel clothing recognition model; the loss function of the target detection algorithm adopts the width and height value regression loss function.
[0155] The fifth processing subunit is used to make personnel clothing recognition early warning decisions based on the personnel clothing recognition model.
[0156] The implementation embodiments of the above-mentioned early warning decision-making method for workshops with ignition are all applicable to the embodiments of the early warning decision-making device for workshops with ignition, and can achieve the same technical effect.
[0157] An embodiment of this application provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the steps in the fire-related work workshop early warning decision method described above and achieve the same technical effect. To avoid repetition, the details will not be repeated here.
[0158] The processor mentioned above is the processor described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0159] The exemplary embodiments described above are with reference to the accompanying drawings. Many different forms and embodiments are feasible without departing from the spirit and teachings of this application. Therefore, this application should not be construed as limiting the exemplary embodiments set forth herein. Rather, these exemplary embodiments are provided to make this application complete and convey the scope of this application to those skilled in the art. In these drawings, component dimensions and relative dimensions may be exaggerated for clarity. The terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. As used herein, unless clearly indicated otherwise, the singular forms “a,” “an,” and “the” are intended to include all such forms. It will be further understood that the terms “comprising” and / or “including”, when used in this specification, indicate the presence of the stated features, integers, steps, operations, components, and / or elements, but do not exclude the presence or addition of one or more other features, integers, steps, operations, components, and / or groups thereof. Unless otherwise indicated, when stated, a range of values includes the upper and lower limits of the range and any subranges in between.
[0160] The above description is the preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principles described in this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for early warning and decision-making in a workshop with a fire, characterized in that, include: Obtain an initial model with security monitoring and early warning decision-making capabilities; The initial model is the initial design model for monitoring and early warning of workshops with live fire operations; Based on the initial model, the following steps are performed sequentially in the ignition-based work workshop: perception acquisition, analysis and decision-making, and application execution. These steps include: performing perception acquisition based on the initial model to identify and analyze hazardous links, sources, and elements in the ignition-based work process, and acquiring at least one data point from the assembly process, including visual data, pyrotechnic equivalent data, smoke density, and temperature and humidity; analyzing and making decisions based on the acquired data to construct a multi-dimensional digital twin; and executing the application of the initial model to complete the virtual-real mapping of the multi-dimensional digital twin. The analysis and decision-making steps include: using a sigmoid function-smooth, unequal-interval grey system model GM(1,1) to predict environmental data, and employing a CBAM attention mechanism with an improved convolutional block attention module and a loss function of E0. The YOLOv5 model with IoU is used for clothing recognition. The improved CBAM attention mechanism includes: in channel attention, average pooling and max pooling are performed on the input feature map to generate a 2×2 feature map, and two convolution operations are performed on each map to compress the spatial dimension from 2×2 to 1×1; the convolution outputs of the two paths are summed and subjected to corresponding activation operations to obtain channel attention weights; the channel attention weights are multiplied element-wise with the input feature map to generate a channel attention-enhanced feature map; in spatial attention, average pooling and max pooling are performed on the feature map generated by channel attention, followed by convolution operations and normalization to generate spatial attention weights; the spatial attention weights are multiplied channel-wise with the input feature map to obtain the final output feature map. After completing the perception acquisition, analysis and decision-making, and application execution, a digital twin model for safety monitoring corresponding to the workshop with the fire is established; After establishing a digital twin model for safety monitoring, the model is used to perform synchronous modeling of the workshop where work is carried out with fire, dynamic visualization monitoring of the workshop where work is carried out with fire, and early warning decision-making. The method further includes: constructing a physical workshop and a virtual workshop; the physical workshop includes workshop environmental data, pyrotechnic equivalent data, and personnel image data; the virtual workshop is a geometric model of the physical workshop using 3D modeling technology; performing hazard analysis and early warning decision processing on the environmental data and personnel image data of the physical workshop based on data mining algorithms and deep learning algorithms; combining the results of hazard analysis and early warning decision processing with the physical workshop and the virtual workshop to determine hazard element data; and determining the initial model based on the hazard element data.
2. The method according to claim 1, characterized in that, Using the aforementioned digital twin model for safety monitoring, synchronous modeling of the workshop where work is carried out with flames is performed, including: Using the aforementioned security monitoring digital twin model, production resource information can be obtained from the static model data resources of the manufacturing system; The model library resources corresponding to the production resource information are called to construct a logical model of the ignition operation workshop, and a three-dimensional static model of the ignition operation workshop is generated simultaneously using the logical model of the ignition operation workshop.
3. The method according to claim 1, characterized in that, Using the aforementioned digital twin model for safety monitoring, dynamic and visual monitoring of workshops where fire is being carried out is performed, including: Using the aforementioned safety monitoring digital twin model, static configuration data and real-time dynamic information of the pyrotechnic assembly process are obtained; the static configuration data includes at least one of the following: maximum number of personnel, temperature threshold, humidity threshold, and smoke density threshold; the real-time dynamic information includes at least one of the following: real-time temperature, real-time humidity, pyrotechnic equivalent, and personnel clothing status. Based on the static configuration data and the real-time dynamic information, dynamic visual monitoring of the workshop with live flame operation is performed.
4. The method according to claim 1, characterized in that, Using the aforementioned security monitoring digital twin model to make early warning decisions includes: The aforementioned security monitoring digital twin model is used to predict environmental factors in gray systems and to make early warning decisions based on personnel clothing identification.
5. The method according to claim 4, characterized in that, Environmental factor prediction for grey systems includes: Historical temperature data was obtained at unequal intervals; The historical data is sorted to obtain the original data sequence; A grey system model is established based on the original data sequence.
6. The method according to claim 4, characterized in that, Making early warning decisions based on personnel attire includes: An attention mechanism is combined with an object detection algorithm to establish a people's clothing recognition model; the loss function of the object detection algorithm adopts the width and height value regression loss function. Based on the personnel clothing recognition model, make personnel clothing recognition early warning decisions.
7. A fire-prone workshop early warning and decision-making device, characterized in that, The apparatus, used in any one of claims 1 to 6, comprises: The acquisition module is used to acquire an initial model with security monitoring and early warning decision-making functions; The first processing module is used to sequentially perform perception acquisition, analysis and decision-making, and application execution on the fire-operated workshop according to the initial model. The second processing module is used to establish a digital twin model of safety monitoring corresponding to the workshop with the fire after completing the perception acquisition, analysis and decision-making and application execution.
