A hazardous chemical product warehouse status monitoring method and early warning system

Through the improved MPA algorithm, the multimodal Autoformer model is optimized, combined with STM32 microcontroller and sensors, the flame and smoke monitoring problems in hazardous chemical products warehouses are solved, and the warehouse status is accurately monitored and the risk of safety accidents is reduced.

CN116486338BActive Publication Date: 2024-11-05HUAIYIN INSTITUTE OF TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310455832.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2024-11-05
Estimated Expiration
2043-04-25

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively monitor potential hazard factors such as flame and smoke in hazardous chemical product warehouses, especially hazardous chemical products with volatile properties cannot be directly judged through image monitoring in the early stage of leakage, resulting in a high risk of safety accidents.

Method used

The improved MPA algorithm is used to optimize the multimodal Autoformer model, combine STM32 microcontroller, webcam and sensor to collect video, audio, and sensor signals, and use multi-layer perception heads and VMD decomposition units to achieve accurate status of hazardous chemical products warehouses. monitor.

Benefits of technology

It realizes rapid and accurate monitoring of the warehouse status of hazardous chemical products, reduces the probability of safety accidents, and improves the robustness and accuracy of the monitoring system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116486338B_ABST
    Figure CN116486338B_ABST
Patent Text Reader

Abstract

The present invention discloses a state monitoring method and early warning system for hazardous chemical product warehouses, which include four parts: dangerous situation data collection, on-site data collection, multimodal data fusion and monitoring analysis, and front-end display and early warning. According to the types of dangerous situations in hazardous chemical product warehouses, a dangerous chemical product dangerous situation data set is established; according to the environmental characteristics of hazardous chemical product warehouses, a data acquisition node based on STM32 and network cameras is designed to collect and identify the video, audio and sensor signal information required; an improved multimodal Autoformer model is established, and the hyperparameters of the multimodal Autoformer are optimized through the improved MPA algorithm to improve the model performance; finally, the monitoring and analysis results are displayed on the front end, and the dangerous situation is processed accordingly. Compared with the prior art, the present invention can accurately and effectively monitor the status in the hazardous chemical product warehouse in real time, and can more accurately identify abnormal conditions such as flames, smoke, and leakage, achieve effective early warning, and provide safety protection for the storage of hazardous chemical products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of chemical safety and information technology, and specifically relates to a hazardous chemical product warehouse status monitoring method and an early warning system. Background Art

[0002] As my country's economic development continues to expand, the demand for chemical raw materials in all walks of life continues to increase, and the production scale of chemical companies is getting larger and larger. Most hazardous chemicals are highly toxic, corrosive, or flammable and explosive chemicals. If there are problems with the storage environment, it is easy to cause major safety accidents, causing serious environmental pollution and casualties. Therefore, it is necessary to reliably monitor hazardous chemical warehouses, eliminate safety hazards in a timely manner, and avoid safety accidents.

[0003] Among many chemical safety accidents, fire and explosion are extremely dangerous, so the monitoring of flames and smoke is particularly important in the monitoring of hazardous chemical product warehouses. An accurate status monitoring system can promptly detect dangerous factors in the warehouse, provide supervisors with rich and reliable on-site information, and assist supervisors in eliminating safety hazards and reducing the probability of safety accidents.

[0004] In recent years, image-based monitoring methods have become a hot topic of research due to their strong adaptability to the environment, low cost, and good real-time performance. However, in the actual production process, the process from leakage, smoke to flame generation for some hazardous chemicals is very short. In addition, some hazardous chemicals with volatile properties are colorless at the beginning of leakage and cannot be directly judged by image monitoring methods. Therefore, environmental information can be collected through specific gas sensors, temperature and humidity sensors, and light intensity sensors, combined with image monitoring methods and audio judgment, and finally the information under multiple modes can be integrated to establish an Autoformer model with an autocorrelation mechanism to accurately monitor the status of hazardous chemical product warehouses, and implement corresponding early warning plans based on the status monitoring results. Summary of the invention

[0005] Purpose of the invention: In order to effectively monitor the status of hazardous chemical product warehouses and reduce the probability of safety accidents during the storage of chemical products, the present invention discloses a hazardous chemical product warehouse status monitoring method and early warning system. The improved multimodal Autoformer model is optimized by an improved MPA algorithm to achieve accurate monitoring of the hazardous chemical product warehouse status.

[0006] Technical solution: The present invention discloses a method for monitoring the status of a hazardous chemical product warehouse, comprising the following steps:

[0007] Step 1: According to the types of hazardous situations in hazardous chemical warehouses, collect on-site data on hazardous situation in hazardous chemical warehouses, including warehouse data information under normal circumstances, and establish a hazardous chemical warehouse hazard data set;

[0008] Step 2: According to the environmental characteristics of hazardous chemical product warehouses, design the on-site data acquisition part based on STM32 microcontroller and network camera to collect the video, audio and sensor signal information required for identification;

[0009] Step 3: Encode the hazardous product hazard data set, video, audio, and sensor signal information data collected in steps 1 and 2 respectively, and fuse them to obtain the training data and input data of the model;

[0010] Step 4: Establish an improved multimodal Autoformer model, wherein the improved multimodal Autoformer model is to add a multi-layer perception head MLP Head to the Autoformer model, change the sequence prediction structure of the Autoformer to a state classification structure, and improve the sequence decomposition unit of the Autoformer to VMD decomposition;

[0011] Step 5: Send the training data obtained in step 3 to the improved multimodal Autoformer model in step 4, and use the improved marine predator algorithm MPA to optimize the hyperparameters in the improved multimodal Autoformer model to obtain a hazardous product warehouse status monitoring and analysis model; the improved MPA algorithm uses Latin hypercube initialization instead of its original random initialization during the initialization process of the MPA algorithm, and introduces the global leading harmony strategy and the adaptive collaboration strategy in the position update strategy for position correction;

[0012] Step 6: Use the hazardous chemical product monitoring and analysis model trained and optimized in step 5 to monitor and analyze the model input data obtained in step 3 to obtain the status monitoring results of the hazardous chemical product warehouse.

[0013] Furthermore, the on-site data collection part in step 2 includes the following specific steps:

[0014] Step 2.1: Use multiple network cameras to collect video and audio data from different nodes in the hazardous chemical product warehouse, and upload the data directly to the monitoring platform through the industrial gateway;

[0015] Step 2.2: The STM32 acquisition terminal is equipped with a light sensor, a harmful gas sensor, a temperature and humidity sensor, and a ZigBee communication module, which is responsible for collecting various types of information at the warehouse site. The number of these sensors matches the number of network cameras.

[0016] Step 2.3: The STM32 communication terminal is only equipped with a ZigBee communication module, which is responsible for quickly integrating the sensor information of multiple STM32 acquisition terminals through ZigBee communication, and uploading the sensor information to the monitoring platform through the industrial gateway.

[0017] Furthermore, the data encoding and fusion described in step 3 may be performed in the following specific steps:

[0018] Step 3.1: Encode the collected video information in blocks according to the selected time interval to obtain a set of three-dimensional feature tensors;

[0019] Step 3.2: Encode the collected audio information in segments according to the selected time intervals to obtain a set of two-dimensional feature tensors;

[0020] Step 3.3: Encode the collected sensor information at selected time intervals to obtain a set of two-dimensional feature tensors;

[0021] Step 3.4: Map the tensors in steps 3.2 and 3.3 to three dimensions to obtain two sets of three-dimensional feature tensors, and perform weighted addition with the three-dimensional feature tensor in step 3.1 to complete data fusion.

[0022] Furthermore, the improved multimodal Autoformer model in step 4 has the following steps:

[0023] Step 4.1: Replace the decoding layer in the multimodal Autoformer model with a multi-layer perceptron to achieve the monitoring status classification task in monitoring analysis. The high-dimensional feature tensor obtained by the encoding layer of the multimodal Autoformer model is input into the multi-layer perceptron. After passing through the hidden layer, the sigmod function is used for activation and connected to the output layer to output the status classification results. The specific formula of the multi-layer perceptron is as follows:

[0024] y l =f(W l f(W l-1 x l-2 +B l-1 )+B l ) (1)

[0025]

[0026] Among them, y l is the output of the l-th layer model, W l is the weight between the lth layer network and the previous layer network, B l is the bias of the lth layer network, x l is the input of the lth layer network, and f is the sigmoid activation function;

[0027] Step 4.2: In order to accurately decompose the feature tensor, the decomposition unit in the multimodal autoformer is improved to a VMD decomposition unit to extract more accurate feature trends.

[0028] Furthermore, the improved marine predator algorithm in step 5 comprises the following specific steps:

[0029] Step 5.1: Set the objective function of the MPA algorithm to the accuracy of monitoring status classification and initialize relevant parameters, including: maximum number of iterations, population size, dimension size, upper and lower bounds of the search space;

[0030] Step 5.2: Use the Latin hypercube initialization method instead of the random initialization method in the MPA algorithm. The formula is as follows:

[0031]

[0032] Among them, lb j,i is the lower bound of the jth dimension of the ith population, ub j,i is the upper bound of the jth dimension of the ith population, A j represents the sub-search space where the i-th population is located, RFP is the full permutation operation, n represents the population size, d represents the problem dimension, X i represents the initialization value of the i-th population, rand is a random value ranging from [0,1];

[0033] Step 5.3: Calculate the fitness value according to the objective function, and select the optimal solution according to the fitness value;

[0034] Step 5.4: According to the speed ratio of predators and prey, the three iteration modes of the population in the search space are as follows:

[0035] Step 5.4.1: The predator is much faster than the prey, and the prey uses Brownian motion to avoid the predator's attack. The mathematical formula of this process is expressed as:

[0036]

[0037] Among them, Iter is the current number of iterations, Maxiter is the maximum number of iterations set, and R B is a random vector that follows a normal distribution, P is a constant of 0.5, R is a random vector in the range of 0 to 1, Prey is the prey matrix, which contains all current populations, Elite is the predator matrix, which contains the population currently considered as the optimal solution, and stepsize is the step size of the population position update in the search space;

[0038] Step 5.4.2: When the predator's speed is close to that of the prey, the prey uses levy flight to avoid the predator's pursuit, while the predator uses Brownian motion to pursue the prey. The mathematical formula of this process is expressed as:

[0039]

[0040] Among them, R L is a random vector based on levy distribution, and CF is an adaptive parameter that controls the predator's movement step size;

[0041] Step 5.4.3: When the predator's speed is much lower than that of the prey, the predator chases the prey in levy flight. This process can be expressed mathematically as follows:

[0042]

[0043] Step 5.5: Improve the position update strategy of the MPA algorithm, introduce the global leading harmony search strategy and the adaptive collaborative search strategy to correct the position of the MPA population, set the selection tendency parameter ST to a constant of 0.5, and use the global leading harmony search strategy when the random value is greater than ST. On the contrary, when the random value is less than 0.5, use the adaptive collaborative search strategy. The specific steps of the two search strategies are as follows:

[0044] Step 5.5.1: The mathematical formula for the global leading harmony update strategy is as follows:

[0045]

[0046] Among them, X α,j represents the j-th dimension of the predator, m and n are two different individuals randomly selected, and satisfy i≠m≠n, is an adaptive variable with a value between 0 and 2, rand1 and rand are random numbers with a value between 0 and 1, and j rand is a dimension randomly selected in the predator vector, with a constant GR of 0.2;

[0047] Step 5.5.2: The formula for the adaptive collaborative search strategy is as follows:

[0048]

[0049] Where X β,j , X γ,j represents the second and third agents in fitness, SR is a constant of 0.5, and rand2 and rand are random numbers ranging from 0 to 1;

[0050] Step 5.6: The MPA algorithm is affected by the eddy current and fish school effect, so that the predator has a small probability of making a spatial jump to jump out of the local optimal solution. This process is expressed in the following mathematical formula:

[0051]

[0052] Among them, FADs is a constant of 0.2, which indicates the probability of predators making space jumps; U is a Boolean vector, which indicates the affected individuals in the population; Prey r1 and Prey r2 represents two population vectors randomly selected in the prey matrix;

[0053] Step 5.7: Continuously update the current solution through steps 5.3 to 5.6, and simultaneously update the global optimal solution;

[0054] Step 5.8: Determine whether the algorithm termination condition is reached through the given maximum number of iterations. If not, go to step 5.3 and finally output the optimal result within the maximum number of iterations.

[0055] The present invention also discloses a hazardous chemical product warehouse monitoring and early warning system, comprising:

[0056] The hazard data collection part is used to collect the hazard field data of hazardous chemical warehouses according to the hazard types of hazardous chemical warehouses, including warehouse data information under normal circumstances, and establish a hazardous chemical warehouse hazard data set;

[0057] In the field data collection part, according to the environmental characteristics of hazardous chemical product warehouses, the field data collection part based on STM32 single-chip microcomputer and network camera is designed to collect the video, audio and sensor signal information required for identification. The STM32 acquisition end is equipped with light sensor, harmful gas sensor, temperature and humidity sensor and ZigBee communication module; the STM32 communication end is only equipped with ZigBee communication module, which is responsible for quickly integrating the sensor information of multiple STM32 acquisition ends through ZigBee communication;

[0058] The multimodal state monitoring and analysis part is used to establish an improved multimodal Autoformer model, and use the improved marine predator algorithm MPA to optimize the hyperparameters in the improved multimodal Autoformer model to obtain a hazardous chemical product warehouse state monitoring and analysis model; the trained and optimized hazardous chemical product monitoring and analysis model is used to monitor and analyze the model input data;

[0059] The front-end displays early warnings, which are used to display the status monitoring results of hazardous chemical product warehouses on the front-end interface, and to implement different early warning plans according to different levels of danger.

[0060] Beneficial effects:

[0061] (1) The present invention uses multiple STM32 microcontrollers and network cameras to obtain environmental information of hazardous chemical product warehouses. The collection process is comprehensive, fast, accurate, and robust.

[0062] (2) Establishing an improved multimodal Autoformer hazardous chemical product warehouse status monitoring and analysis model can quickly decompose the input data to obtain warehouse environment characteristics and improve the accuracy of status monitoring by fusing multimodal data.

[0063] (3) During the model training process, an improved MPA algorithm is used for parameter optimization. In order to enable the MPA algorithm to reasonably take into account the global development capabilities during the local development process, an improved strategy is proposed. The population is initialized through Latin hypercube, and the global leading harmony strategy and adaptive collaboration strategy are introduced during the population update process to correct the position, thereby improving the algorithm's optimization ability in the local optimization process. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 is a system flow chart of the present invention;

[0065] Figure 2 The structural diagram of the field data collection part;

[0066] Figure 3 Improved multimodal Autoformer model structure diagram;

[0067] Figure 4 Flowchart of the improved MPA algorithm. DETAILED DESCRIPTION

[0068] The present invention is further described in detail with reference to the following drawings. The process, conditions and implementation methods of the present invention, except for the contents specifically mentioned below, are all common knowledge in the art and are not particularly limited by the present invention.

[0069] The present invention provides a hazardous chemical product warehouse status monitoring and early warning system. The system consists of a hazardous situation data collection part, an on-site data acquisition part, a multi-modal status monitoring and analysis part, and a front-end display and early warning part.

[0070] The present invention is directed to the above-mentioned early warning system and proposes a method for monitoring the status of hazardous chemical product warehouses using the above-mentioned system. Figure 1 The flowchart of the method specifically includes the following steps:

[0071] Step 1: According to the types of hazardous situations in hazardous chemical warehouses, collect on-site data on hazardous chemical warehouse situations and establish a hazardous chemical warehouse situation data set. In addition to data information on various types of hazards such as flames, smoke, and leakage, it is also necessary to add some warehouse data information under normal conditions for model training.

[0072] Step 2: According to the environmental characteristics of hazardous chemical product warehouses, the field data acquisition part based on STM32 microcontroller and network camera is designed to collect the image, sound and sensor signal information required for recognition and upload it to the monitoring platform through the industrial gateway. The structure diagram of the field data acquisition part is as follows: Figure 2 shown.

[0073] (1) Use multiple network cameras to collect video and audio data from different nodes in the hazardous chemical warehouse, and upload the data directly to the monitoring platform through the industrial gateway.

[0074] (2) The STM32 microcontroller is divided into a communication end and a collection end. The STM32 collection end is equipped with a light sensor, a harmful gas sensor, a temperature and humidity sensor, and a ZigBee communication module, which is responsible for collecting various types of information from various nodes on the warehouse site. The number of such sensors matches the number of network cameras. The STM32 communication end is only equipped with a ZigBee communication module, which is responsible for quickly integrating the sensor information of multiple STM32 collection ends through ZigBee communication, and uploading the sensor information to the monitoring platform through the industrial gateway.

[0075] Step 3: Encode the collected multimodal data of images, sounds, and sensor signals respectively, and fuse them to obtain the training data and input data of the model.

[0076] (1) The collected video information is captured once every τ and block-coded, i.e., block transform coding. The image is divided into small blocks of equal size and non-overlapping, and each block is mapped to a set of transform coefficients using a reversible linear transform. These transform coefficients are quantized and encoded to obtain a set of three-dimensional tensors. The formula for the quantization process of DCT transform is expressed as:

[0077]

[0078] Where q represents the quantization step size, round represents rounding, Q(u,v) represents the quantization weight matrix, F(u,v) represents the DCT coefficient before quantization, and F Q (u,v) represents the quantized DCT coefficients.

[0079] (2) The collected audio information is frame-intercepted once every time interval τ, the audio information with a frame length of τ' is intercepted and the signal is transformed from the time domain to the frequency domain, and then the LPC coefficients are calculated and converted into LSF coefficients, and finally the LSF coefficients are quantized to obtain a set of two-dimensional tensors.

[0080] (3) Encode the collected sensor signals and obtain a set of two-dimensional tensors.

[0081] (4) Use the Gaussian kernel to map the two-dimensional tensors in (2) and (3) to three dimensions, and perform weighted addition with the three-dimensional tensor in (1) according to the weight to obtain the fused data, which is used as the input model to analyze and judge the warehouse status.

[0082] Step 4: Build an improved multimodal Autoformer model. The specific improvement operation is to add a multi-layer perception head to the Autoformer model, change the sequence prediction structure of the Autoformer to a state classification structure, and improve the sequence decomposition unit of the Autoformer to VMD decomposition. The improved multimodal Autoformer structure is shown in the figure below. Figure 3 shown.

[0083] (1) The decoding layer in the multimodal Autoformer model is replaced with a multi-layer perceptron to achieve the monitoring status classification task in monitoring analysis. The high-dimensional feature tensor obtained by the encoding layer of the multimodal Autoformer model is input into the multi-layer perceptron, activated by the sigmod function after passing through the hidden layer, and connected to the output layer to output the status classification results. The specific formula of the multi-layer perceptron is as follows:

[0084] y l =f(W l f(W l-1 x l-2 +B l-1 )+B l ) (2)

[0085]

[0086] Among them, y l is the output of the l-th layer model, W l is the weight between the lth layer network and the previous layer network, B l is the bias of the lth layer network, x l is the input of the lth layer network, and f is the sigmoid activation function.

[0087] (2) In order to accurately decompose the feature tensor, the decomposition unit in the multimodal autoformer is replaced with the VMD decomposition unit to extract more accurate feature trends.

[0088] Step 5: Input the training data into the improved multimodal Autoformer model, and use the improved marine predator algorithm MPA to optimize the hyperparameters in the multimodal Autoformer model to obtain a hazardous chemical warehouse monitoring and analysis model. The improved MPA algorithm flow chart is as follows: Figure 4As shown, in the initialization process of the MPA algorithm, Latin hypercube initialization is used instead of its original random initialization, and the global leading harmony strategy and adaptive cooperation strategy are introduced in the position update strategy for position correction.

[0089] The improved marine predator algorithm MPA has the following specific steps:

[0090] Step 5.1: Set the objective function of the MPA algorithm to the accuracy of monitoring status classification and initialize relevant parameters, including: maximum number of iterations, population size, dimension size, upper and lower bounds of the search space.

[0091] Step 5.2: Use the Latin hypercube initialization method instead of the random initialization method in the MPA algorithm. The formula is as follows:

[0092]

[0093] Among them, lb j,i is the lower bound of the jth dimension of the ith population, ub j,i is the upper bound of the jth dimension of the ith population, A j represents the sub-search space where the i-th population is located, RFP is the full permutation operation, n represents the population size, d represents the problem dimension, X i represents the initialization value of the i-th population, and rand is a random value in the range [0,1].

[0094] Step 5.3: Calculate the fitness value according to the objective function, and select the optimal solution based on the fitness value.

[0095] Step 5.4: According to the speed ratio of predators and prey, the three iteration modes of the population in the search space are as follows:

[0096] (1) The predator is much faster than the prey, and the prey uses Brownian motion to avoid the predator's attack. The mathematical formula of this process is:

[0097]

[0098] Among them, Iter is the current number of iterations, Maxiter is the maximum number of iterations set, and R B is a random vector that follows a normal distribution, P is a constant of 0.5, R is a random vector in the range of 0 to 1, Prey is the prey matrix, which contains all current populations, Elite is the predator matrix, which contains the population currently considered as the optimal solution, and stepsize is the step size of the population position update in the search space.

[0099] (2) When the predator's speed is close to that of the prey, the prey uses levy flight to avoid the predator's pursuit, while the predator uses Brownian motion to pursue the prey. The mathematical formula of this process is expressed as:

[0100]

[0101] Among them, R L is a random vector based on levy distribution, and CF is an adaptive parameter that controls the predator's movement step size;

[0102] (3) When the predator's speed is much lower than that of the prey, the predator will chase the prey in levy flight. This process can be expressed in mathematical formula as follows:

[0103]

[0104] Step 5.5: Improve the position update strategy of the MPA algorithm, introduce the global leading harmony search strategy and the adaptive collaborative search strategy to correct the position of the MPA population, set the selection tendency parameter ST to a constant of 0.5, and use the global leading harmony search strategy when the random value is greater than ST. On the contrary, when the random value is less than 0.5, use the adaptive collaborative search strategy. The specific steps of the two search strategies are as follows:

[0105] (1) The mathematical formula for the global leading harmony update strategy is as follows:

[0106]

[0107] Among them, X α,j represents the j-th dimension of the predator, m and n are two different individuals randomly selected, and satisfy i≠m≠n, is an adaptive variable with a value between 0 and 2, rand1 and rand are random numbers with a value between 0 and 1, and j rand is a dimension randomly picked in the predator vector, with a constant GR of 0.2.

[0108] (2) The formula of the adaptive collaborative search strategy is as follows:

[0109]

[0110] Where X β,j , X γ,j represents the second and third agents in fitness, SR is a constant of 0.5, and rand2 and rand are random numbers ranging from 0 to 1.

[0111] Step 5.6: The MPA algorithm is affected by the eddy current and fish school effect, so that the predator has a small probability of making a spatial jump to jump out of the local optimal solution. This process is expressed in the following mathematical formula:

[0112]

[0113] Among them, FADs is a constant of 0.2, which indicates the probability of predators making space jumps; U is a Boolean vector, which indicates the affected individuals in the population; Prey r1 and Prey r2 Represents two population vectors randomly selected from the prey matrix.

[0114] Step 5.7: Continuously update the current solution through steps 5.3 to 5.6, and simultaneously update the global optimal solution.

[0115] Step 5.8: Determine whether the algorithm termination condition is reached through the given maximum number of iterations. If not, go to step 5.3 and finally output the optimal result within the maximum number of iterations.

[0116] Step 6: Use the hazardous chemical product warehouse status monitoring and analysis model trained and optimized in step 5 to conduct real-time analysis of the status of the hazardous chemical product warehouse. The warehouse environment data collected in real time is sent to the trained hazardous chemical product warehouse status monitoring and analysis model in the monitoring platform for analysis to obtain the status monitoring results and store them in the monitoring platform database.

[0117] Step 7: Display and warn the status monitoring results obtained in step 6 on the front-end interface, which is used to display all video, sound and sensor information in the hazardous chemical warehouse monitoring process in real time, and display the status monitoring analysis results evaluated by the established multimodal Autoformer model. Judge various types of information and status monitoring analysis results. If the danger threshold is reached, execute the corresponding processing plan and notify the supervisor. For situations with a very small possibility of misjudgment, set up a danger relief function, and the supervisor can terminate the currently executing processing plan after authorization authentication.

[0118] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent transformation or modification made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for monitoring the status of a hazardous chemical product warehouse, characterized in that: The steps include: Step 1: According to the types of hazardous situations in hazardous chemical warehouses, collect on-site data on hazardous situation in hazardous chemical warehouses, including warehouse data information under normal circumstances, and establish a hazardous chemical warehouse hazard data set; Step 2: According to the environmental characteristics of hazardous chemical product warehouses, design on-site data collection points based on STM32 microcontrollers and network cameras to collect video, audio and sensor signal information required for identification; Step 3: Encode the hazardous product hazard data set, video, audio, and sensor signal information data collected in steps 1 and 2 respectively, and fuse them to obtain the training data and input data of the model; Step 4: Establish an improved multimodal Autoformer model, wherein the improved multimodal Autoformer model is to add a multi-layer perception head MLP Head to the Autoformer model, change the sequence prediction structure of the Autoformer to a state classification structure, and improve the sequence decomposition unit of the Autoformer to VMD decomposition; Step 5: Send the training data obtained in step 3 to the improved multimodal Autoformer model in step 4, and use the improved marine predator algorithm MPA to optimize the hyperparameters in the improved multimodal Autoformer model to obtain a hazardous chemical product warehouse status monitoring and analysis model; the improved MPA algorithm uses Latin hypercube initialization instead of its original random initialization during the initialization process of the MPA algorithm, and introduces the global leading harmony search strategy and the adaptive collaborative search strategy in the position update strategy for position correction; Step 5.1: Set the objective function of the MPA algorithm to the accuracy of monitoring status classification and initialize relevant parameters, including: maximum number of iterations, population size, dimension size, upper and lower bounds of the search space; Step 5.2: Use the Latin hypercube initialization method instead of the random initialization method in the MPA algorithm. The formula is as follows: Among them, lb j,i is the lower bound of the jth dimension of the ith population, ub j,i is the upper bound of the jth dimension of the ith population, A j represents the sub-search space where the i-th population is located, RFP is the full permutation operation, n represents the population size, d represents the problem dimension, X i represents the initialization value of the i-th population, rand is a random value ranging from [0,1]; Step 5.3: Calculate the fitness value according to the objective function, and select the optimal solution according to the fitness value; Step 5.4: According to the speed ratio of predators and prey, the three iteration modes of the population in the search space are as follows: Step 5.4.1: The predator is much faster than the prey, and the prey uses Brownian motion to avoid the predator's attack. The mathematical formula of this process is expressed as: Among them, Iter is the current number of iterations, Maxiter is the maximum number of iterations set, and R B is a random vector that follows a normal distribution, P is a constant of 0.5, R is a random vector in the range of 0 to 1, Prey is the prey matrix, which contains all current populations, Elite is the predator matrix, which contains the population currently considered as the optimal solution, and stepsize is the step size of the population position update in the search space; Step 5.4.2: When the predator's speed is close to that of the prey, the prey uses levy flight to avoid the predator's pursuit, while the predator uses Brownian motion to pursue the prey. The mathematical formula of this process is expressed as: Among them, R L is a random vector based on levy distribution, and CF is an adaptive parameter that controls the predator's movement step size; Step 5.4.3: When the predator's speed is much lower than that of the prey, the predator chases the prey in levy flight. This process can be expressed mathematically as follows: Step 5.5: Improve the position update strategy of the MPA algorithm, introduce the global leading harmony search strategy and the adaptive collaborative search strategy to correct the position of the MPA population, set the selection tendency parameter ST to a constant of 0.5, and use the global leading harmony search strategy when the random value is greater than ST. On the contrary, when the random value is less than 0.5, use the adaptive collaborative search strategy. The specific steps of the two search strategies are as follows: Step 5.5.1: The mathematical formula for the global leading harmony update strategy is as follows: Among them, X α,j represents the j-th dimension of the predator, m and n are two different individuals randomly selected, and satisfy i≠m≠n, is an adaptive variable with a value between 0 and 2, rand1 and rand are random numbers with a value between 0 and 1, and j rand is a dimension randomly selected in the predator vector, with a constant GR of 0.2; Step 5.5.2: The formula for the adaptive collaborative search strategy is as follows: Where X β,j , X γ,j represents the second and third agents in fitness, SR is a constant of 0.5, and rand2 and rand are random numbers ranging from 0 to 1; Step 5.6: The MPA algorithm is affected by the eddy current and fish school effect, so that the predator has a small probability of making a spatial jump to jump out of the local optimal solution. This process is expressed in the following mathematical formula: Among them, FADs is a constant of 0.2, which indicates the probability of predators making space jumps; U is a Boolean vector, which indicates the affected individuals in the population; Prey r1 and Prey r2 represents two population vectors randomly selected in the prey matrix; Step 5.7: Continuously update the current solution through steps 5.3 to 5.6, and simultaneously update the global optimal solution; Step 5.8: Determine whether the algorithm termination condition is reached by the given maximum number of iterations. If not, go to step 5.3 and finally output the optimal result within the maximum number of iterations; Step 6: Use the hazardous chemical product warehouse status monitoring and analysis model trained and optimized in step 5 to monitor and analyze the model input data obtained in step 3 to obtain the status monitoring results of the hazardous chemical product warehouse.

2. A method for monitoring the status of a hazardous chemical product warehouse according to claim 1, characterized in that: The on-site data collection point in step 2 performs on-site data collection, and the specific steps are as follows: Step 2.1: Use multiple network cameras to collect video and audio data from different nodes in the hazardous chemical product warehouse, and upload the data directly to the monitoring platform through the industrial gateway; Step 2.2: The STM32 acquisition terminal is equipped with a light sensor, a harmful gas sensor, a temperature and humidity sensor, and a ZigBee communication module, which is responsible for collecting various information at the warehouse site. The number of the STM32 acquisition terminals matches the number of network cameras; Step 2.3: The STM32 communication terminal is only equipped with a ZigBee communication module, which is responsible for quickly integrating the sensor information of multiple STM32 acquisition terminals through ZigBee communication, and uploading the sensor information to the monitoring platform through the industrial gateway.

3. A method for monitoring the status of a hazardous chemical product warehouse according to claim 1, characterized in that: In step 3, the hazardous product hazard data set, video, audio, and sensor signal information data collected in steps 1 and 2 are encoded and processed, and the training data and input data of the model are obtained by fusion. The specific steps are as follows: Step 3.1: Encode the collected video information in blocks according to the selected time interval to obtain a set of three-dimensional feature tensors; Step 3.2: Encode the collected audio information in segments according to the selected time intervals to obtain a set of two-dimensional feature tensors; Step 3.3: Encode the collected sensor information at selected time intervals to obtain a set of two-dimensional feature tensors; Step 3.4: Map the tensors in steps 3.2 and 3.3 to three dimensions to obtain two sets of three-dimensional feature tensors, and perform weighted addition with the three-dimensional feature tensor in step 3.1 to complete data fusion.

4. A method for monitoring the status of a hazardous chemical product warehouse according to claim 1, characterized in that: The improved multimodal Autoformer model in step 4 has the following steps: Step 4.1: Replace the decoding layer in the multimodal Autoformer model with a multi-layer perceptron to achieve the monitoring status classification task in monitoring analysis. The high-dimensional feature tensor obtained by the encoding layer of the multimodal Autoformer model is input into the multi-layer perceptron. After passing through the hidden layer, the sigmod function is used for activation and connected to the output layer to output the status classification results. The specific formula of the multi-layer perceptron is as follows: y l =f(W l f(W l-1 x l-2 +B l-1 )+B l ) (1) Among them, y l is the output of the l-th layer model, W l is the weight between the lth layer network and the previous layer network, B l is the bias of the lth layer network, x l is the input of the lth layer network, and f is the sigmoid activation function; Step 4.2: In order to accurately decompose the feature tensor, the decomposition unit in the multimodal autoformer is improved to a VMD decomposition unit to extract more accurate feature trends.

5. An early warning system based on a hazardous chemical product warehouse status monitoring method according to any one of claims 1 to 4, characterized in that: include: The hazard data collection part is used to collect the hazard field data of hazardous chemical warehouses according to the hazard types of hazardous chemical warehouses, including warehouse data information under normal circumstances, and establish a hazardous chemical warehouse hazard data set; In the field data collection part, according to the environmental characteristics of hazardous chemical product warehouses, the field data collection part based on STM32 single-chip microcomputer and network camera is designed to collect the video, audio and sensor signal information required for identification. The STM32 acquisition end is equipped with light sensor, harmful gas sensor, temperature and humidity sensor and ZigBee communication module; the STM32 communication end is only equipped with ZigBee communication module, which is responsible for quickly integrating the sensor information of multiple STM32 acquisition ends through ZigBee communication; The multimodal state monitoring and analysis part is used to establish an improved multimodal Autoformer model, and use the improved marine predator algorithm MPA to optimize the hyperparameters in the improved multimodal Autoformer model to obtain a hazardous chemical product warehouse state monitoring and analysis model; the trained and optimized hazardous chemical product warehouse state monitoring and analysis model is used to monitor and analyze the model input data; The front-end displays early warnings, which are used to display the status monitoring results of hazardous chemical product warehouses on the front-end interface, and to implement different early warning plans according to different levels of danger.