Detection and cooperative early warning method and system for mixed gas in limited space
The multi-level Kalman wavelet gas concentration signal is processed by the Kalman-wavelet filtering method, which solves the noise and cross-interference problems in mixed gas detection in a limited space, and achieves high-precision gas concentration detection and safety risk assessment.
Patent Information
- Application Number
- CN202410648099.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-10-23
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-13
AI Technical Summary
The existing technology has problems with complex calculations and inaccurate detection results when detecting mixed gases in a limited space. In particular, detection errors caused by noise interference and cross-interference between multiple gases are difficult to effectively handle.
The Kalman-wavelet filtering method is used to process the multi-level Kalman wavelet gas concentration signal. Through wavelet decomposition, iterative update and reconstruction, the gas concentration is calculated and early warning is determined based on the survival risk coefficient, thereby reducing noise errors and improving detection accuracy.
It achieves high-precision detection of mixed gas concentration, reduces the impact of cross-interference between sensors, improves detection accuracy, and enables timely safety risk assessment and early warning.
Smart Images

Figure CN118643267A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of gas detection, and more specifically, to a mixed gas detection and coordinated early warning method and system in a confined space. Background Art
[0002] At present, the detection of mixed gases mostly uses electrochemical methods, which are low-cost, fast and small in size. The principle of the electrochemical reaction device is to use an electrode sensor to measure the electromotive force or current formed by the redox reaction and convert it into the concentration of the measured gas. The electrochemical method has the advantages of high accuracy, wide linear range, small zero drift in the air, and stable output when measuring gas concentration. However, the output signal of the sensor itself is weak, and the effective information in the signal may be covered by the existing noise, and cannot effectively reflect the gas concentration.
[0003] The present invention uses a four-electrode electrochemical sensor, which has better sensitivity and stability than the commonly used three-electrode electrochemical sensor. However, when the sensor measures the electromotive force or current formed by the redox reaction of the electrode, some three-electrode system gas sensors are susceptible to interference, while the four-electrode structure is an electrochemical sensor structure with a compensation electrode. The four-electrode structure theoretically has better performance in low-range, high-precision, and interference-existing applications, and the detection range achieved covers from tens to thousands of ppm.
[0004] When the existing technology detects mixed gases, there are many factors that affect the change of gas concentration in the atmosphere, and its noise characteristics are consistent with the characteristics of random processes. Traditional single filtering methods such as median filtering and mean filtering have little effect on eliminating interference in the process of mixed gas detection. Kalman filtering can be used to handle such random processes very well. Kalman filtering is widely used in multi-sensor fusion systems. Kalman filtering is used in any dynamic system containing uncertain information to make a well-founded prediction of the next direction of the system. Wavelet filtering, like Kalman filtering, is a frequency domain filtering method. Wavelet filtering is suitable for filtering noise with a specific frequency range. Since the noise and signal in the existing sensor system may have frequency differences, and the change process of the sensor output signal conforms to the characteristics of random processes, the study of Kalman-wavelet filtering methods is important for processing a variety of mixed gas detection methods.
[0005] Using the same type of sensors for collaborative sensing to achieve reliable acquisition of single gas concentration status information can increase the dimension of the measurement space and reduce the impact of cross-interference. It can also improve the reliability of predicting the gas concentration at the next moment. At the same time, the system does not completely rely on all sensors to provide information, which increases the system's survivability, improves credibility, and achieves comprehensive and accurate detection of the current situation.
[0006] In addition, in power grid applications, many sensors work together in coordination, and the information sensed by each sensor usually has different characteristics: fuzziness, error, mutual destruction, competition, etc. The appearance of these different information may also make it difficult for any single information to accurately judge the true state of the measured object, so sensors often need to sense collaboratively.
[0007] When performing multiple gas concentration detection in a limited space, it is generally necessary to go through three steps: signal acquisition, signal processing, and early warning sending. In the signal acquisition process: the commonly used methods in the prior art include air pump collection gas analysis and sensor detection, which have the following technical defects:
[0008] An air pump is used to collect gas samples in the current working space. When the space contains multiple gases, the sensor that detects the concentration of a single gas may be interfered by other gases in the environment due to the accumulation of multiple toxic gases in the limited space; or chemical reactions occur between certain gases. When the environment in the space changes slightly, the gas concentration also changes to a certain extent, resulting in inaccurate detection results. The detection data cannot directly reflect the actual gas concentration in the limited space.
[0009] In addition, when using the sensor for detection, electrical noise will also be introduced into the sensor. The reference electrode potential in the sensor is provided by the operational amplifier of the constant potential circuit. The output of the operational amplifier will produce certain small fluctuations due to factors such as power supply ripple and electromagnetic interference, which will affect the sensor. When the electrolyte and the electrode undergo chemical reactions, there will be ion adsorption-detachment and disturbance diffusion processes. This process will cause the resistance of the sensor itself to change and form noise, which will also affect the accuracy of the detection results. However, the existing gas concentration calculations have not been able to effectively deal with the noise. Summary of the invention
[0010] In order to solve the deficiencies in the prior art, the present invention provides a method for detecting mixed gases in a confined space and a coordinated early warning method, which can solve the technical problems of complex calculations and inaccurate detection results in the prior art for detecting mixed gases in a confined space.
[0011] The present invention adopts the following technical solution.
[0012] A mixed gas detection and coordinated early warning method in a confined space comprises the following steps:
[0013] Obtain data of various types of gases in the space to be detected, and fuse the data according to the gas types to obtain fused data corresponding to various types of gases;
[0014] Perform wavelet decomposition on the fused data of various types of gases to obtain the multi-level Kalman wavelet gas concentration signal vector at the current moment;
[0015] Based on the Kalman filter and the multi-level Kalman wavelet gas concentration signal at the current moment, the best estimate of the Kalman wavelet sequence at the next moment is obtained in combination with the influence of noise, and the best estimate of the Kalman wavelet sequence at each moment is calculated by iteratively updating the parameters;
[0016] Perform wavelet reconstruction on the best estimate of the Kalman wavelet sequence, restore the gas concentration signal decomposed by multi-level wavelets to a gas concentration filter signal, and calculate the gas concentration in the space to be detected based on the gas concentration filter signal;
[0017] Set the survival risk coefficient of each gas, calculate the survival risk coefficient of the confined space according to the gas concentration and the corresponding survival risk coefficient, and judge whether the space to be detected is safe based on the preset survival risk coefficient threshold. If it is not safe, issue an early warning.
[0018] Preferably, obtaining the fusion data corresponding to the gas specifically includes:
[0019] Through the gas sensor, m data in the sensor array of gas X are obtained at time k, and the data are fused to obtain the fused data corresponding to gas X. Fusion Data satisfy:
[0020]
[0021] Where N is the initial order of wavelet transform; x1, x2, ..., x m Respectively represent the gas data collected by each gas sensor.
[0022] Preferably, performing wavelet decomposition on the fused data of various types of gases respectively specifically includes:
[0023] The transformation matrix T of the N-order wavelet transform is obtained (N-3|N) as follows:
[0024]
[0025] In the formula, G N-3 , G N-2 are the scaling operators of the third-order and second-order Haar wavelet transform matrices, H N-3 , H N-2 are the wavelet operators of the Haar wavelet transform matrices of the third and second order, respectively;
[0026] After the third-order wavelet transform, based on the transformation matrix T (N-3|N) and fused data The obtained multi-level Kalman wavelet gas concentration signal vector at the current moment for:
[0027]
[0028] In the formula, is the Kalman wavelet sequence corresponding to the low-frequency part at the third-order resolution at time k, They are the Kalman wavelet sequences corresponding to the high-frequency part at the third-order resolution, second-order resolution, and first-order resolution at time k respectively.
[0029] Preferably, based on the Kalman filter and the multi-level Kalman wavelet gas concentration signal at the current moment, the best estimate of the Kalman wavelet sequence at the next moment is obtained in combination with the influence of noise, and the best estimate of the Kalman wavelet sequence at each moment is iterated according to the best estimate of the Kalman wavelet sequence at the next moment, specifically including:
[0030] Use the state estimation equation of the Kalman filter prediction part to estimate the Kalman wavelet gas concentration sequence vector at the next moment based on the multi-level Kalman wavelet gas concentration signal vector at the current moment, and calculate the noise covariance, and obtain the measurement noise based on the noise covariance;
[0031] The probability distribution estimation equation of the Kalman filter prediction part is used, based on the noise covariance Q, the state transfer matrix A, and the covariance P between the current real gas concentration value and the optimal estimated gas concentration value k Estimate the covariance matrix of the actual gas concentration and the predicted concentration at the next moment P k+1 ;
[0032] Calculate the state observation matrix, and calculate the gain K of the Kalman filter algorithm by combining the covariance matrix of the actual gas concentration and the predicted concentration at the next moment, the state transfer matrix, and the noise covariance measured at the current moment;
[0033] The actual observation of the state matrix at the current moment is calculated by combining the state observation matrix, measurement noise and the multi-level Kalman wavelet gas concentration signal vector at the current moment
[0034] According to the state transfer matrix A, the multi-level Kalman wavelet gas concentration sequence vector at the next moment, the gain K, and the actual observation value of the state matrix at the current moment The state observation matrix C and the best estimate of the Kalman wavelet sequence at the current moment Calculate the best estimate of the Kalman wavelet sequence at the next moment
[0035] Preferably, the iterative update parameters specifically include:
[0036] Based on the gain K, the state observation matrix C and the next moment covariance matrix P k+1Calculate the covariance of the actual gas concentration value and the optimal estimated gas concentration value in the Kalman-wavelet filtering algorithm at the next moment
[0037] The covariance between the actual gas concentration value at the next moment and the optimal estimated gas concentration value is obtained and the best estimate of the Kalman wavelet sequence at the next moment Update it to the next iterative calculation as a calculation parameter to solve the optimal estimate of the Kalman wavelet sequence at each subsequent moment.
[0038] Preferably, the Kalman wavelet gas concentration sequence vector is obtained at the next moment as follows:
[0039] Use the state estimation equation of the Kalman filter prediction part, input the current multi-level Kalman wavelet gas concentration signal vector, and estimate the multi-level Kalman wavelet gas concentration sequence vector at the next moment
[0040]
[0041] In the formula, is the Kalman wavelet sequence corresponding to the low-frequency part at the third-order resolution at time k+1, is the Kalman wavelet sequence corresponding to the high-frequency part at the third-order resolution, second-order resolution, and first-order resolution at time k+1, A is the state transfer matrix in the Kalman-wavelet filter, is the process noise;
[0042] State transition matrix A and process noise The calculation formula is as follows:
[0043]
[0044]
[0045] In the formula, the original data collected in step 1 is divided into original data blocks, ω1, ω2, ω3, and ω4 are the process noises of each original data block respectively;
[0046] According to process noise The noise covariance Q is calculated as follows:
[0047]
[0048] Where E{·} represents the covariance calculation, and Q represents the noise covariance predicted at the next moment.
[0049] Preferably, the covariance matrix of the actual gas concentration and the predicted concentration in the next state is Pk+1 satisfy:
[0050] P k+1 =AP k A T +Q
[0051] Among them, P k is the covariance between the true gas concentration value and the optimal estimated gas concentration value at time k, and P is set k The value of is 0 at the initial moment, and in the iteration process, the covariance of the true gas concentration value and the optimal estimated gas concentration value is calculated. k The value of is updated.
[0052] Preferably, the state observation matrix is calculated, and the gain K of the Kalman filter algorithm is calculated by combining the covariance matrix of the actual gas concentration and the predicted concentration at the next moment, the state transfer matrix, and the noise covariance measured at the current moment. Specifically, the following is included:
[0053] According to the transformation matrix T of the third-order wavelet transform (N-3|N) Calculate the state observation matrix C:
[0054]
[0055] The Kalman-wavelet filter algorithm is updated, and the gain K of the Kalman filter algorithm is calculated based on the state observation matrix C:
[0056] K= P k+1 C T (C P k+1 A T +R) -1
[0057] In the formula, R represents the noise covariance of the current measurement moment, and R satisfies:
[0058]
[0059] In the formula, represents the measurement noise, which represents the measurement uncertainty. The measurement noise is set by a person skilled in the art according to the sensor, and
[0060] Preferably, according to the state transfer matrix A, the multi-level Kalman wavelet gas concentration sequence vector at the next moment The gain K of the Kalman filter algorithm and the actual observation value of the state matrix at the current moment The state observation matrix C and the best estimate of the Kalman wavelet sequence at the current moment Calculate the best estimate of the Kalman wavelet sequence at the next moment
[0061]
[0062] in, is the Kalman wavelet sequence that best estimates the k moment at k-1; when k is the initial moment, the best estimate of the Kalman wavelet sequence at the current moment is the zero vector.
[0063] Preferably, the survival risk coefficient of the confined space is calculated according to the gas concentration and the corresponding survival risk coefficient, specifically including:
[0064] Perform wavelet reconstruction on the best estimate of the Kalman wavelet sequence at the next moment after filtering to obtain the gas concentration filtering signal of the sensor;
[0065] Assuming that a certain gas has m sensors for concentration measurement, the average value is calculated as the final gas concentration ρ based on the gas concentration filter signals obtained by the m sensors after Kalman wavelet filtering. x :
[0066] Calculate the final gas concentration of each type of gas, and assign survival risk coefficients to gases of different toxicity levels. Assuming there are p types of gases in total, the survival risk coefficients assigned to the concentrations of p types of gases are as follows:
[0067] [β1,β2,β3,…,β p ]
[0068] Among them, β i represents the survival risk coefficient corresponding to the i-th gas, and i∈[1,p];
[0069] According to the gas concentration and the corresponding survival risk coefficient, the survival risk coefficient β of the confined space is calculated:
[0070]
[0071] In the formula, ρ i represents the gas concentration of the i-th gas.
[0072] The present invention also provides a mixed gas detection and coordinated early warning system in a confined space using the mixed gas detection and coordinated early warning method in a confined space, comprising: a data acquisition module, a data processing module and an early warning module;
[0073] The data acquisition module includes various gas sensors arranged in a limited space, and the sensor data corresponding to different gases are acquired through the gas sensors;
[0074] The data processing module iteratively processes the sensor data of each gas through wavelet decomposition, Kalman filtering and wavelet reconstruction to obtain the concentration of each gas in a limited space;
[0075] The early warning module sets the survival risk coefficient of each gas and the survival risk threshold of the confined space, calculates the survival risk coefficient of the confined space based on the concentration of each gas in the confined space, and determines whether the confined space needs an early warning.
[0076] The present invention also provides a terminal, including a processor and a storage medium;
[0077] The storage medium is used to store instructions;
[0078] The processor is used to operate according to the instructions to execute the steps of the mixed gas detection and coordinated early warning method in a confined space.
[0079] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the mixed gas detection and coordinated early warning method in a confined space are implemented.
[0080] The beneficial effect of the present invention is that, compared with the prior art, the present invention proposes a high-precision collaborative sensing detection method for mixed toxic gases in confined space operations, which effectively improves the noise in the sensor output signal, improves the noise existing when the electrochemical sensor detects multiple mixed gases and the influence of cross-interference between multiple sensors through the multi-sensor data fusion compensation algorithm of Kalman-wavelet filtering, and performs fusion compensation for the cross-interference problem between different sensors, thereby realizing real-time concentration detection of multiple gases, improving the detection accuracy of mixed toxic gases, and providing efficient, accurate and comprehensive detection for power operations in confined spaces; further, based on the detection results, the hazard degree of the toxic gas in the mixed gas is comprehensively considered, the risk coefficient is quantified for the hazard degree of different toxic gases, and the current safety risk of confined space operations is quantitatively evaluated, which plays an important role in the safety early warning of the working environment;
[0081] The present invention uses a Kalman filter to estimate and track the system state; and uses a wavelet transform to analyze and process the time-frequency characteristics of the signal, so that the method proposed by the present invention can more effectively process complex signals, especially when there are complex sensor noise and nonlinear characteristics of gas concentration. The multi-sensor data fusion compensation algorithm of Kalman-wavelet filtering is used to improve the noise existing when the electrochemical sensor detects multiple mixed gases and the influence of cross-interference between multiple sensors, so as to achieve high-precision gas detection and early warning. The present invention has at least the following beneficial effects:
[0082] 1. The present invention uses electrochemical sensors for detection, and there is noise interference. The mixed gas concentration sensing signal in a limited space is filtered by Kalman-wavelet filtering, and data fusion is performed on multiple electrochemical sensors to reduce the noise error of the mixed gas concentration, and the concentration values of various toxic gases or other gases in the mixed gas can be measured more accurately.
[0083] 2. The present invention can predict the concentrations of various mixed gases, conduct survival risk assessments on the dangerousness and concentration values of different toxic gases, comprehensively consider other gases that are beneficial to survival, assess the survival risks of workers in a mixed gas environment when working in a confined space, and conduct safety detection and early warning in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0084] Figure 1 It is a flow chart of the mixed gas concentration prediction and safety early warning method in the present invention;
[0085] Figure 2 It is a structural diagram of the mixed gas concentration prediction and safety warning system in the present invention. DETAILED DESCRIPTION
[0086] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in this application are only part of the embodiments of the present invention, not all of them. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without creative work are all within the scope of protection of the present invention.
[0087] like Figure 1 As shown, the present invention proposes a method for mixed gas detection and coordinated early warning in a confined space. The application scenarios of this method include the detection and early warning of gases in confined spaces such as underground deep foundation pits of power transmission lines, cable power wells, and cable tunnels. The accumulation of toxic gases, the thin oxygen concentration, and the uncertainty of gas changes in confined spaces seriously threaten the personal safety of workers, causing dangers during the construction process and inducing safety accidents. With the development of information technology, a large number of underground constructions require safe, reliable, accurate, and intelligent detection technologies. The method specifically includes the following steps:
[0088] Step 1, obtaining data from gas sensors installed in the space to be detected, and fusing the sensor data according to the gas type to obtain fused data corresponding to each gas;
[0089] Specifically, the gas to be tested may include common gases such as O2 and CO2, or toxic gases such as CO, H2S, NOx, and SO. A gas sensor array for detecting various gases is arranged in the space to be tested, and the original gas concentration signal data is collected through the sensor.
[0090] Assume that the current time is time k, obtain m data from the sensor array of a certain gas X at time k, and fuse the data to obtain the fused data corresponding to the gas Fusion Data satisfy:
[0091]
[0092] Among them, N represents the initial order of wavelet transform, x1,x2,…,x m Respectively represent the gas data collected by each sensor.
[0093] Similarly, the concentration data of other types of gases such as gas Y and gas Z are collected and fused, and the concentration of each gas is predicted according to the following steps for each type of gas.
[0094] Step 2, performing wavelet decomposition on the fused data of each gas to obtain a multi-level Kalman wavelet gas concentration signal vector;
[0095] The data collected by the gas concentration sensor array is subjected to wavelet decomposition. After wavelet decomposition, the wavelet coefficient amplitude of the gas concentration signal is greater than the coefficient amplitude of the noise. The more wavelet decomposition layers of the gas concentration signal, the higher the resolution and the better the filtering effect. However, the number of decomposition layers cannot be increased without constraints. The increase in the number of multi-resolution decomposition layers will cause the amount of calculation to grow exponentially. Due to the limited space used by the measurement and control system, the selected MCU has limited computing power, and there are a large number of parallel detection calculations for mixed gas concentration detection. Too many decomposition layers increase the cost of computing processing time and reduce the real-time performance of predicting gas concentration. In the present invention, three-layer wavelet decomposition is selected as a preferred embodiment.
[0096] Taking gas X as an example, the fusion data of gas X Perform three-layer wavelet decomposition. In the present invention, the Haar function is selected as the wavelet mother function in the Kalman-wavelet filtering algorithm, where the high-pass filter is H and the low-pass filter is G. The transformation of the first-order wavelet transform is:
[0097]
[0098]
[0099] in, is the Kalman wavelet sequence corresponding to the low-frequency part after a wavelet transform at time k, is the Kalman wavelet sequence corresponding to the high-frequency part after a wavelet transform at time k, H N-1 is the scaling operator of the first-order Haar wavelet transform matrix, G N-1 is the scaling operator of the first-order Haar wavelet transform matrix.
[0100] The transformation matrix T of the third-order wavelet transform is obtained (N-3|N) as follows:
[0101]
[0102] In the formula, G N-3 , G N-2 are the scaling operators of the third-order and second-order Haar wavelet transform matrices, H N-3 , H N-2 The wavelet operators are the Haar wavelet transform matrices of the third and second order, respectively.
[0103] After the third-order wavelet transform, based on the transformation matrix T (N-3|N) and fused data The obtained multi-level Kalman wavelet gas concentration signal vector at the current moment for:
[0104]
[0105] In the formula, is the Kalman wavelet sequence corresponding to the low-frequency part at the third-order resolution at time k, They are the Kalman wavelet sequences corresponding to the high-frequency part at the third-order resolution, second-order resolution, and first-order resolution at time k respectively.
[0106] Step 3, using the state estimation equation of the Kalman filter prediction part, estimating the Kalman wavelet gas concentration sequence vector at the next moment based on the obtained multi-level Kalman wavelet gas concentration signal vector, and calculating the noise covariance;
[0107] Use the state estimation equation of the Kalman filter prediction part, input the current multi-level Kalman wavelet gas concentration signal vector obtained in step 2, and estimate the next state (k+1 time) multi-level Kalman wavelet gas concentration sequence vector
[0108]
[0109] In the formula, is the Kalman wavelet sequence corresponding to the low-frequency part at the third-order resolution at time k+1, is the Kalman wavelet sequence corresponding to the high-frequency part at the third-order resolution, second-order resolution, and first-order resolution at time k+1, A is the state transfer matrix in the Kalman-wavelet filter, is the process noise;
[0110] State transition matrix A and process noise The calculation formula is as follows:
[0111]
[0112]
[0113] Where ω1, ω2, ω3, and ω4 are the process noises of the original data blocks collected in step 1. The original data collected in step 1 is divided into original data blocks. The process noise after calculation is There will be process noise in the Kalman wavelet sequence corresponding to different wavelet transform orders.
[0114] In the state estimation equation, process noise manifests itself as uncertainty in the prediction of the system state, which comes from dynamic changes that are not captured in the model, such as random disturbances or incomplete understanding of the internal process of the system. By incorporating the impact of process noise into the state prediction, the true state can be estimated more accurately. The noise covariance Q is calculated as follows:
[0115]
[0116] Where E{·} represents the covariance calculation, and Q represents the noise covariance predicted at the next moment (time k+1).
[0117] Step 4: Use the probability distribution estimation equation of the Kalman filter prediction part, according to the noise covariance Q, the state transfer matrix A, and the covariance P between the current real gas concentration value and the optimal estimated gas concentration value k Estimate the covariance matrix of the actual and predicted gas concentrations in the next state P k+1 ;
[0118] The next-state covariance matrix is a prediction of the uncertainty of the state estimate at the next time step. It reflects the possible size and direction of the estimation error and describes the uncertainty and prediction error of the predicted concentration, including the correlation between concentration predictions and the estimation error of the true concentration. The prediction takes into account the influence of environmental factors, so the noise covariance is taken into account in the calculation.
[0119] Covariance matrix of the actual and predicted concentrations of the next-state gas P k+1 satisfy:
[0120] P k+1 =AP k A T +Q
[0121] Among them, P kis the covariance between the true gas concentration value and the optimal estimated gas concentration value at time k, and P is set k The value at the initial moment is 0, and then the covariance of the true gas concentration value and the optimal estimated gas concentration value is used to calculate P k The value of is updated.
[0122] Step 5, calculate the state observation matrix, and calculate the gain K of the Kalman filter algorithm by combining the covariance matrix of the actual gas concentration and the predicted concentration at the next moment, the state transfer matrix, and the noise covariance under the current state;
[0123] Calculate the state observation matrix C, and use multiple gas concentration sensors to measure the state of the current system. These sensors have more or less inevitable errors. In the original estimation, each state can correspond to a sensor reading within a certain range.
[0124] Specifically, according to the transformation matrix T of the third-order wavelet transform (N-3|N) Calculate the state observation matrix C:
[0125]
[0126] Considering the inconsistency of the units and sizes of the sensor readings, the state observation matrix C is used to calculate the probability distribution around the predicted gas concentration value with the same units and sizes as the sensor readings.
[0127] The Kalman-wavelet filter algorithm is updated, and the gain K of the Kalman filter algorithm is calculated based on the state observation matrix C:
[0128] K= P k+1 C T (C P k+1 A T +R) -1 .
[0129] In the formula, R represents the noise covariance of the current measurement moment, and R satisfies:
[0130]
[0131] In the formula, represents the measurement noise, which represents the measurement uncertainty. The measurement noise is set by a person skilled in the art according to the sensor, and
[0132] Step 6: Combine the state observation matrix C and the measurement noise and the current multi-level Kalman wavelet gas concentration signal vector Calculate the actual observations of the state matrix at time k
[0133]
[0134] Step 7: Update the Kalman wavelet sequence under the best state estimate at time k+1, and calculate the best estimate of the Kalman wavelet sequence at time k+1 by combining the best estimate of the Kalman wavelet sequence at the current time
[0135] According to the state transfer matrix A, the multi-level Kalman wavelet gas concentration sequence vector at the next moment The gain K of the Kalman filter algorithm and the actual observation value of the state matrix at the current moment The state observation matrix C and the best estimate of the Kalman wavelet sequence at the current moment Calculate the best estimate of the Kalman wavelet sequence at the next moment
[0136]
[0137] in, is the Kalman wavelet sequence that best estimates the k moment at k-1 moment.
[0138] In order to obtain the optimal solution for all given information, when time k is the initial time, the best estimate of the Kalman wavelet sequence at the current time is is the zero vector.
[0139] This step fuses the reading distribution of the gas concentration sensor with the probability distribution near the predicted value to obtain a common and reliable true concentration state in the measured value and the predicted value, thereby realizing data fusion and reducing the impact of measurement noise and model noise on gas concentration prediction.
[0140] In the present invention, Kalman filtering is performed on gas concentration sequences of different frequencies. Since the errors between the system and the sensor conform to the Gaussian white noise model, Kalman filtering is used to fuse redundant data of real-time dynamic multi-gas concentration sensors, and recursively uses the Kalman wavelet sequence of the current state gas concentration to provide the optimal estimate of the Kalman wavelet sequence of the gas concentration at the next moment in statistical significance. This method enables system processing without the need for large amounts of data storage and calculation, and can achieve fast calculation.
[0141] Step 8: Based on the gain K, the state observation matrix C and the next state covariance matrix P k+1 Update the covariance P of the true gas concentration value and the optimal estimated gas concentration value in the Kalman-wavelet filtering algorithm at time k+1 k+1 :
[0142] P k+1 =(I-KC) P k+1
[0143] Among them, I is the unit matrix, and its order is the same as that of the state observation matrix C.
[0144] The covariance P of the updated real gas concentration value and the optimal estimated gas concentration value at time k+1 k+1 Used to update the covariance between the real gas concentration value and the optimal estimated gas concentration value at time k+1, that is, in the next iterative calculation, when calculating the covariance matrix of the real gas concentration and the predicted concentration at time k+2 P k+2 The covariance P between the actual gas concentration value at time k+1 and the optimal estimated gas concentration value calculated here is needed. k+1 , so this parameter is iterated and used in the calculation of the next moment.
[0145] Step 9: Save the best estimate and covariance of the Kalman wavelet sequence at time k+1 generated in this iterative calculation process to the next iterative process.
[0146] The best estimate of the Kalman wavelet sequence at time k+1 In the next iteration, after the next data collection and wavelet decomposition, the best estimate of the Kalman wavelet sequence at time k+2 is required to predict the best estimate of the Kalman wavelet sequence at time k+1.
[0147] Step 10: The best estimate of the Kalman wavelet sequence at time k+1 obtained in step 7 Perform wavelet reconstruction to restore the gas concentration signal decomposed by multi-level wavelet to a gas concentration filter signal, and take the average value of m gas concentration sensors as the final gas X concentration;
[0148] The best estimate of the filtered Kalman wavelet sequence at time k+1 Perform wavelet reconstruction to obtain the gas concentration filter signal of the sensor The reconstruction process is the inverse process of wavelet decomposition:
[0149]
[0150]
[0151]
[0152] In the formula, is the high frequency component of the gas concentration filter signal; They represent the low-frequency components of the gas concentration filter at the second-order resolution and the first-order resolution at time k+1, respectively. is the best estimate of the Kalman wavelet sequence at time k+1
[0153] For gas X, calculate the average value as the final gas concentration ρ based on the original gas concentration signals obtained by processing the signals of m sensors through Kalman wavelet filtering. x :
[0154]
[0155] Based on the above method, calculate the final gas concentrations of various gases, and assign survival risk coefficients to gases with different poisoning levels. Suppose there are p kinds of gases, and the survival risk coefficients assigned to the concentrations of p kinds of gases are as follows:
[0156] [β1, β2, β3, …, β p
[0157] Among them, β i represents the survival risk coefficient corresponding to the i-th gas, and i ∈ [1, p].
[0158] Preferably, those skilled in the art assign survival risk coefficients to gases according to the types of gases. The higher the poisoning degree of the gas, the greater the assigned survival risk coefficient. For example, the survival risk coefficients of toxic gases are high, especially gases with high toxicity or asphyxiating gases, including CO, H2S, NOx, SO2, etc.; the survival risk coefficients of harmful gases are relatively high, such as N2, CO2, etc., and concentrations exceeding a certain range will have an adverse impact on the human body. At the same time, consider beneficial gases such as oxygen and assign a safety risk coefficient less than 0 to them.
[0159] Step 11, calculate the survival risk coefficient β of the confined space according to the gas concentration and the corresponding survival risk coefficient:
[0160]
[0161] In the formula, ρ i represents the gas concentration of the i-th gas, and β i represents the survival risk coefficient corresponding to the i-th gas, i ∈ [1, p], and p is the number of types of gases.
[0162] Set the safety threshold as T, compare the survival risk coefficient β of the confined space with the safety threshold T, and judge whether a warning needs to be issued according to the comparison result. Specifically:
[0163] When β ≥ T, it indicates that the environment in the confined space is unsafe and a safety warning is issued;
[0164] When β < T, it indicates that the environment in the confined space is safe and confined space operations can be carried out.
[0165] Such as Figure 2 As shown, the present invention also proposes a mixed gas detection and coordinated early warning system in a confined space, which can be used to implement the mixed gas detection and coordinated early warning method in a confined space, and the system includes: a data acquisition module, a data processing module and an early warning module;
[0166] The data acquisition module includes various gas sensors arranged in a limited space, and the sensor data corresponding to different gases are acquired through the gas sensors;
[0167] The data processing module processes the sensor data of each gas through wavelet decomposition, Kalman filtering and wavelet reconstruction to obtain the concentration of each gas in a limited space;
[0168] The early warning module sets the survival risk coefficient of each gas and the survival risk threshold of the confined space, calculates the survival risk coefficient of the confined space based on the concentration of each gas in the confined space, and determines whether the confined space needs an early warning.
[0169] The beneficial effect of the present invention is that, compared with the prior art, the present invention improves the noise existing in multiple sensors when detecting multiple mixed gases and the influence of cross-interference between multiple sensors through the multi-sensor data fusion compensation algorithm of Kalman-wavelet filtering, and fuses and compensates for the cross-interference problem between different sensors, thereby realizing real-time concentration detection of multiple gases and improving the detection accuracy of mixed toxic gases.
[0170] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0171] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0172] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0173] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0174] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A mixed gas detection and coordinated early warning method in a confined space, characterized in that: The steps include: Obtain data of various types of gases in the space to be detected, and fuse the data according to the gas types to obtain fused data corresponding to various types of gases; Perform wavelet decomposition on the fused data of various types of gases to obtain the multi-level Kalman wavelet gas concentration signal vector at the current moment; Based on the Kalman filter and the multi-level Kalman wavelet gas concentration signal at the current moment, the best estimate of the Kalman wavelet sequence at the next moment is obtained in combination with the influence of noise, and the best estimate of the Kalman wavelet sequence at each moment is calculated by iteratively updating the parameters; Perform wavelet reconstruction on the best estimate of the Kalman wavelet sequence, restore the gas concentration signal decomposed by multi-level wavelets to a gas concentration filter signal, and calculate the gas concentration in the space to be detected based on the gas concentration filter signal; Set the survival risk coefficient of each gas, calculate the survival risk coefficient of the confined space according to the gas concentration and the corresponding survival risk coefficient, and judge whether the space to be detected is safe based on the preset survival risk coefficient threshold. If it is not safe, issue an early warning.
2. The method for detecting mixed gases in a confined space and for coordinated early warning according to claim 1, characterized in that: Obtaining the fusion data corresponding to the gas specifically includes: Through the gas sensor, m data in the sensor array of gas X are obtained at time k, and the data are fused to obtain the fused data corresponding to gas X. Fusion Data satisfy: Where N is the initial order of wavelet transform; x1, x2, ..., x m Respectively represent the gas data collected by each gas sensor.
3. The method for detecting mixed gases in a confined space and providing coordinated early warning according to claim 1, characterized in that: The wavelet decomposition of the fusion data of various types of gases includes: The transformation matrix T of the N-order wavelet transform is obtained (N-3|N) as follows: In the formula, G N-3 , G N-2 are the scaling operators of the third-order and second-order Haar wavelet transform matrices, H N-3 , H N-2 are the wavelet operators of the Haar wavelet transform matrices of the third and second order, respectively; After the third-order wavelet transform, based on the transformation matrix T (N-3|N) and fused data The obtained multi-level Kalman wavelet gas concentration signal vector at the current moment for: In the formula, is the Kalman wavelet sequence corresponding to the low-frequency part at the third-order resolution at time k, They are the Kalman wavelet sequences corresponding to the high-frequency part at the third-order resolution, second-order resolution, and first-order resolution at time k respectively.
4. The method for detecting mixed gases in a confined space and for coordinated early warning according to claim 1, characterized in that: Based on the Kalman filter and the multi-level Kalman wavelet gas concentration signal at the current moment, combined with the influence of noise, the best estimate of the Kalman wavelet sequence at the next moment is obtained. The best estimate of the Kalman wavelet sequence at each moment is iterated according to the best estimate of the Kalman wavelet sequence at the next moment, which includes: Use the state estimation equation of the Kalman filter prediction part to estimate the Kalman wavelet gas concentration sequence vector at the next moment based on the multi-level Kalman wavelet gas concentration signal vector at the current moment, and calculate the noise covariance, and obtain the measurement noise based on the noise covariance; The probability distribution estimation equation of the Kalman filter prediction part is used, based on the noise covariance Q, the state transfer matrix A, and the covariance P between the current real gas concentration value and the optimal estimated gas concentration value k Estimate the covariance matrix of the actual gas concentration and the predicted concentration at the next moment Calculate the state observation matrix, and calculate the gain K of the Kalman filter algorithm by combining the covariance matrix of the actual gas concentration and the predicted concentration at the next moment, the state transfer matrix, and the noise covariance measured at the current moment; The actual observation of the state matrix at the current moment is calculated by combining the state observation matrix, measurement noise and the multi-level Kalman wavelet gas concentration signal vector at the current moment According to the state transfer matrix A, the multi-level Kalman wavelet gas concentration sequence vector at the next moment, the gain K, and the actual observation value of the state matrix at the current moment The state observation matrix C and the best estimate of the Kalman wavelet sequence at the current moment Calculate the best estimate of the Kalman wavelet sequence at the next moment 5. The method for detecting mixed gases in a confined space and for coordinated early warning according to claim 4, characterized in that: The iterative update parameters specifically include: Based on the gain K, the state observation matrix C and the next moment covariance matrix Calculate the covariance of the actual gas concentration value and the optimal estimated gas concentration value in the Kalman-wavelet filtering algorithm at the next moment The covariance between the actual gas concentration value at the next moment and the optimal estimated gas concentration value is obtained and the best estimate of the Kalman wavelet sequence at the next moment Update it to the next iterative calculation as a calculation parameter to solve the optimal estimate of the Kalman wavelet sequence at each subsequent moment.
6. The method for detecting mixed gases in a confined space and for coordinated early warning according to claim 4, characterized in that: The acquisition of the Kalman wavelet gas concentration sequence vector at the next moment is as follows: Use the state estimation equation of the Kalman filter prediction part, input the current multi-level Kalman wavelet gas concentration signal vector, and estimate the multi-level Kalman wavelet gas concentration sequence vector at the next moment In the formula, is the Kalman wavelet sequence corresponding to the low-frequency part at the third-order resolution at time k+1, is the Kalman wavelet sequence corresponding to the high-frequency part at the third-order resolution, second-order resolution, and first-order resolution at time k+1, A is the state transfer matrix in the Kalman-wavelet filter, is the process noise; State transition matrix A and process noise The calculation formula is as follows: In the formula, the original data collected in step 1 is divided into original data blocks, ω1, ω2, ω3, and ω4 are the process noises of each original data block respectively; According to process noise The noise covariance Q is calculated as follows: Where E{·} represents the covariance calculation, and Q represents the noise covariance predicted at the next moment.
7. The method for detecting mixed gases in a confined space and for coordinated early warning according to claim 6, characterized in that: Covariance matrix of the actual and predicted concentrations of the next-state gas satisfy: Among them, P k is the covariance between the true gas concentration value and the optimal estimated gas concentration value at time k, and P is set k The value of is 0 at the initial moment, and in the iteration process, the covariance of the true gas concentration value and the optimal estimated gas concentration value is calculated. k The value of is updated.
8. The method for detecting mixed gases in a confined space and for coordinated early warning according to claim 4, characterized in that: Calculate the state observation matrix, and combine the covariance matrix of the actual gas concentration and the predicted concentration at the next moment, the state transfer matrix, and the noise covariance measured at the current moment to calculate the gain K of the Kalman filter algorithm. Specifically include: According to the transformation matrix T of the third-order wavelet transform (N-3|N) Calculate the state observation matrix C: The Kalman-wavelet filter algorithm is updated, and the gain K of the Kalman filter algorithm is calculated based on the state observation matrix C: In the formula, R represents the noise covariance of the current measurement moment, and R satisfies: In the formula, represents the measurement noise, which represents the measurement uncertainty. The measurement noise is set by a person skilled in the art according to the sensor, and 9. The method for detecting mixed gases in a confined space and for coordinated early warning according to claim 4, characterized in that: According to the state transfer matrix A, the multi-level Kalman wavelet gas concentration sequence vector at the next moment The gain K of the Kalman filter algorithm and the actual observation value of the state matrix at the current moment The state observation matrix C and the best estimate of the Kalman wavelet sequence at the current moment Calculate the best estimate of the Kalman wavelet sequence at the next moment in, is the Kalman wavelet sequence that best estimates the k moment at k-1; when k is the initial moment, the best estimate of the Kalman wavelet sequence at the current moment is the zero vector.
10. The method for detecting mixed gases in a confined space and for coordinated early warning according to claim 5, characterized in that: The survival risk coefficient of the confined space is calculated based on the gas concentration and the corresponding survival risk coefficient, including: Perform wavelet reconstruction on the best estimate of the Kalman wavelet sequence at the next moment after filtering to obtain the gas concentration filtering signal of the sensor; Assuming that a certain gas has m sensors for concentration measurement, the average value is calculated as the final gas concentration ρ based on the gas concentration filter signals obtained by the m sensors after Kalman wavelet filtering. x : Calculate the final gas concentration of each type of gas, and assign survival risk coefficients to gases of different toxicity levels. Assuming there are p types of gases in total, the survival risk coefficients assigned to the concentrations of p types of gases are as follows: [β1,β2,β3,…,β p ] Among them, β i represents the survival risk coefficient corresponding to the i-th gas, and i∈[1,p]; According to the gas concentration and the corresponding survival risk coefficient, the survival risk coefficient β of the confined space is calculated: In the formula, ρ i represents the gas concentration of the i-th gas.
11. A mixed gas detection and coordinated early warning system in a confined space using the mixed gas detection and coordinated early warning method in a confined space as claimed in any one of claims 1 to 10, characterized in that: include: Data collection module, data processing module and early warning module; The data acquisition module includes various gas sensors arranged in a limited space, and the sensor data corresponding to different gases are acquired through the gas sensors; The data processing module iteratively processes the sensor data of each gas through wavelet decomposition, Kalman filtering and wavelet reconstruction to obtain the concentration of each gas in a limited space; The early warning module sets the survival risk coefficient of each gas and the survival risk threshold of the confined space, calculates the survival risk coefficient of the confined space based on the concentration of each gas in the confined space, and determines whether the confined space needs an early warning.
12. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1-10.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Kalman smoothing filtering method and smoothing filter based on time domain and frequency domain
CN113204038A
Special vehicle positioning correction method based on data preprocessing
CN113360840A
Gas concentration detection method
CN115598081A
Cited By
Detection method applying Kalman algorithm
CN119202516A
Intelligent agricultural machine operation speed monitoring method and system based on multi-sensing information fusion
CN119596362A
Gas monitoring adaptive alarm device and method based on 5G communication
CN122416684A
