Intelligent toxic and harmful gas alarm system for nitric acid preparation
The deep learning neural network model is used to explore the temporal correlation between gas detection results and temperature and humidity during the nitric acid preparation process, solving the problem of false alarms in gas detection during the nitric acid preparation process, and achieving accurate detection and safety warning of harmful gases.
Patent Information
- Application Number
- PCT/CN2023/120032
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-29
- Filing Date
- 2023-09-20
- Publication Date
- 2024-10-03
AI Technical Summary
During the preparation process of nitric acid, existing gas detectors are prone to false alarms due to their high sensitivity to environmental factors, and are difficult to accurately detect low-concentration harmful gases.
Using a neural network model based on deep learning, by mining the time-series collaborative correlation changes between gas detection result data and temperature and humidity, a temperature-humidity correlation feature matrix and a gas detection time-series feature vector are constructed, and the leakage warning of harmful gases is carried out after fusion.
It improves the accuracy of accurate detection of harmful gases, reduces false alarms, and ensures the safety of the nitric acid preparation process.
Smart Images

Figure CN2023120032_03102024_PF_FP_ABST
Abstract
Description
Intelligent toxic and harmful gas alarm system for the preparation of nitric acid Technical Field
[0001] The present application relates to the field of intelligent early warning, and more specifically, to an intelligent toxic and harmful gas alarm system for the preparation of nitric acid. Background Art
[0002] Nitric acid is an important basic chemical raw material, widely used in the chemical, pharmaceutical, dye, plastics, defense, and metallurgical industries, among many other sectors. The production principle of nitric acid involves oxidizing ammonia with air over a platinum-based reticulated platinum alloy catalyst to produce nitric oxide. The nitric oxide is then further oxidized to nitrogen dioxide, which is then absorbed into water to produce nitric acid.
[0003] The nitric acid production process produces harmful gases, such as nitrogen oxides and nitrogen dioxide. Therefore, detection of these gases is necessary. Currently, gas sensors are commonly used for gas detection. However, these detectors must be sensitive enough to detect even low concentrations of these gases. However, overly sensitive detectors can be affected by environmental factors (such as temperature and humidity), leading to false alarms.
[0004] Therefore, an optimized intelligent toxic and harmful gas alarm solution for the preparation of nitric acid is expected. Technical issues
[0005] In order to solve the above technical problems, the present application is proposed. The embodiment of the present application provides an intelligent toxic and harmful gas alarm system for the preparation of nitric acid, which mines the correlation characteristic distribution information between the temporal changes of gas detection result data and the temporal coordinated correlation changes of temperature and humidity during the preparation of nitric acid by using a deep learning-based neural network model, and comprehensively performs a warning of harmful gas leakage based on the temporal changes of temperature and humidity and the gas detection results, so as to ensure the safety of the nitric acid preparation process. Technical Solutions
[0006] According to one aspect of the present application, there is provided an intelligent toxic and harmful gas alarm system for the preparation of nitric acid, comprising:
[0007] A data acquisition module, configured to acquire humidity values and temperature values at a plurality of predetermined time points within a predetermined time period, as well as gas detection result data at the plurality of predetermined time points;
[0008] an association coding module, configured to arrange the humidity values and temperature values at the plurality of predetermined time points into a temperature input vector and a humidity input vector according to the time dimension, and then perform association coding on the temperature input vector and the humidity input vector to obtain a temperature-humidity association matrix;
[0009] a temperature and humidity correlation feature extraction module, configured to pass the temperature and humidity correlation matrix through a convolutional neural network model using mutually transposed convolution kernels in adjacent layers to obtain a temperature and humidity correlation feature matrix;
[0010] A gas detection time series feature extraction module is used to arrange the gas detection result data of the plurality of predetermined time points into an input vector according to the time dimension and then pass it through a multi-scale neighborhood feature extraction module to obtain a gas detection time series feature vector;
[0011] a feature fusion module, configured to fuse the temperature and humidity correlation feature matrix and the gas detection time series feature vector to obtain a classification feature vector; and
[0012] The early warning module is used to pass the classification feature vector through a classifier to obtain a classification result, and the classification result is used to indicate whether an alarm prompt is generated.
[0013] In the intelligent toxic and harmful gas alarm system for the preparation of nitric acid, the association coding module is used to perform association coding on the temperature input vector and the humidity input vector using the following association coding formula to obtain a temperature and humidity association matrix; wherein the formula is: in represents the temperature input vector, represents the transposed vector of the temperature input vector, represents the humidity input vector, represents the temperature and humidity correlation matrix, Represents vector multiplication.
[0014] In the above-mentioned intelligent toxic and harmful gas alarm system for the preparation of nitric acid, the temperature and humidity correlation feature extraction module is used to: use the first layer of the convolutional neural network model to perform convolution processing, pooling processing and nonlinear activation processing based on a first convolution kernel on the input data to obtain a first activation feature map; and use the second layer of the convolutional neural network model to perform convolution processing, pooling processing and nonlinear activation processing based on a second convolution kernel on the first activation feature map to obtain a second activation feature map, wherein the first convolution kernel and the second convolution kernel are transposed of each other.
[0015] In the above-mentioned intelligent toxic and harmful gas alarm system for the preparation of nitric acid, the multi-scale neighborhood feature extraction module includes: a first convolution layer, a second convolution layer parallel to the first convolution layer, and a multi-scale feature fusion layer connected to the first convolution layer and the second convolution layer, wherein the first convolution layer uses a one-dimensional convolution kernel with a first length, and the second convolution layer uses a one-dimensional convolution kernel with a second length.
[0016] In the above-mentioned intelligent toxic and harmful gas alarm system for the preparation of nitric acid, the gas detection time series feature extraction module includes: a first neighborhood scale feature extraction unit, which is used to arrange the gas detection result data of the multiple predetermined time points into an input vector according to the time dimension and then input it into the first convolution layer of the multi-scale neighborhood feature extraction module to obtain a first neighborhood scale gas detection time series feature vector, wherein the first convolution layer has a first one-dimensional convolution kernel of a first length; a second neighborhood scale feature extraction unit, which is used to arrange the gas detection result data of the multiple predetermined time points into an input vector according to the time dimension and then input it into the second convolution layer of the multi-scale neighborhood feature extraction module to obtain a second neighborhood scale gas detection time series feature vector, wherein the second convolution layer has a second one-dimensional convolution kernel of a second length, and the first length is different from the second length; and a multi-scale cascade unit, which is used to cascade the first neighborhood scale gas detection time series feature vector and the second neighborhood scale gas detection time series feature vector to obtain the gas detection time series feature vector. The first neighborhood-scale feature extraction unit is configured to use the first convolution layer of the multi-scale neighborhood feature extraction module to perform one-dimensional convolution encoding on the input vector of the gas detection result data of the plurality of predetermined time points arranged according to the time dimension using the following one-dimensional convolution formula to obtain a first neighborhood-scale gas detection time series feature vector; wherein the formula is: in, The first convolution kernel is Width in direction, is the first convolution kernel parameter vector, is the local vector matrix operated with the convolution kernel function, is the size of the first convolution kernel, represents the input vector of the gas detection result data at multiple predetermined time points arranged according to the time dimension, Indicates that one-dimensional convolution encoding is performed on the input vector of the gas detection result data of multiple predetermined time points arranged according to the time dimension; and the second neighborhood scale feature extraction unit is used to: use the second convolution layer of the multi-scale neighborhood feature extraction module to perform one-dimensional convolution encoding on the input vector of the gas detection result data of multiple predetermined time points arranged according to the time dimension using the following one-dimensional convolution formula to obtain the second neighborhood scale gas detection time series feature vector; wherein the formula is: in, The second convolution kernel is Width in direction, is the second convolution kernel parameter vector, is the local vector matrix operated with the convolution kernel function, is the size of the second convolution kernel, represents the input vector of the gas detection result data at multiple predetermined time points arranged according to the time dimension, It represents performing one-dimensional convolution coding on the input vector composed of gas detection result data at multiple predetermined time points arranged according to the time dimension.
[0017] In the above-mentioned intelligent toxic and harmful gas alarm system for the preparation of nitric acid, the feature fusion module includes: an initial feature fusion unit, which is used to multiply the temperature and humidity correlation feature matrix and the gas detection time series feature vector with a matrix to obtain an initial classification feature vector; a transfer response association unit, which is used to calculate the transfer matrix of the initial classification feature vector relative to the gas detection time series feature vector to obtain a transfer response feature matrix; a feature optimization unit, which is used to perform convolutional dictionary comparison response learning on the temperature and humidity correlation feature matrix based on the transfer response feature matrix to obtain an optimized temperature and humidity correlation feature matrix; and an optimization fusion unit, which is used to fuse the optimized temperature and humidity correlation feature matrix and the gas detection time series feature vector to obtain the classification feature vector.
[0018] In the intelligent toxic and harmful gas alarm system for the preparation of nitric acid, the transfer response association unit is used to calculate the transfer matrix of the initial classification feature vector relative to the gas detection time series feature vector using the following formula to obtain a transfer response feature matrix; wherein the formula is: ,in represents the initial classification feature vector, represents the gas detection time series feature vector, represents the transfer response feature matrix.
[0019] In the intelligent toxic and harmful gas alarm system for the preparation of nitric acid, the feature optimization unit is used to perform convolutional dictionary comparison response learning on the temperature and humidity correlation feature matrix based on the transfer response feature matrix using the following optimization formula to obtain the optimized temperature and humidity correlation feature matrix; wherein the formula is: ,in and are the transfer response characteristic matrix and the temperature and humidity correlation characteristic matrix, respectively, and represents the Frobenius norm of the matrix, represents matrix subtraction, represents matrix multiplication, Represents the optimized temperature and humidity correlation feature matrix.
[0020] In the intelligent toxic and harmful gas alarm system for the preparation of nitric acid, the optimization fusion unit is used to fuse the optimized temperature and humidity correlation feature matrix and the gas detection time series feature vector using the following formula to obtain the classification feature vector; wherein the formula is: ,in represents the gas detection time series feature vector, The optimized temperature and humidity correlation feature matrix is shown as follows: represents the classification feature vector.
[0021] In the intelligent toxic and harmful gas alarm system for the preparation of nitric acid, the early warning module is used to use the classifier to process the classification feature vector using the following formula to obtain a classification result, wherein the formula is: ,in, arrive is the weight matrix, arrive is the bias vector, is the classification feature vector.
[0022] According to another aspect of the present application, there is provided an intelligent toxic and harmful gas alarm method for the preparation of nitric acid, comprising:
[0023] Acquire humidity values and temperature values at a plurality of predetermined time points within a predetermined time period, as well as gas detection result data at the plurality of predetermined time points;
[0024] After arranging the humidity values and temperature values at the plurality of predetermined time points into a temperature input vector and a humidity input vector according to the time dimension, association coding is performed on the temperature input vector and the humidity input vector to obtain a temperature-humidity association matrix;
[0025] The temperature and humidity correlation matrix is passed through a convolutional neural network model using mutually transposed convolution kernels in adjacent layers to obtain a temperature and humidity correlation feature matrix;
[0026] Arranging the gas detection result data at the plurality of predetermined time points into an input vector according to the time dimension and then performing a multi-scale neighborhood feature extraction module to obtain a gas detection time series feature vector;
[0027] fusing the temperature and humidity correlation feature matrix and the gas detection time series feature vector to obtain a classification feature vector; and
[0028] The classification feature vector is passed through a classifier to obtain a classification result, and the classification result is used to indicate whether an alarm prompt is generated.
[0029] According to another aspect of the present application, an electronic device is provided, comprising: a processor; and a memory, wherein computer program instructions are stored in the memory, and when the computer program instructions are executed by the processor, the processor executes the intelligent toxic and harmful gas alarm method for the preparation of nitric acid as described above.
[0030] According to another aspect of the present application, a computer-readable medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes the intelligent toxic and harmful gas alarm method for the preparation of nitric acid as described above. Beneficial effects
[0031] Compared with the prior art, the present application provides an intelligent toxic and harmful gas alarm system for the preparation of nitric acid. It uses a deep learning-based neural network model to mine the correlation characteristic distribution information between the temporal changes in gas detection result data during the preparation of nitric acid and the temporal coordinated changes in temperature and humidity. It comprehensively provides a warning of harmful gas leakage based on the temporal changes in temperature and humidity and the gas detection results to ensure the safety of the nitric acid preparation process. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The above and other purposes, features, and advantages of the present application will become more apparent through a more detailed description of the embodiments of the present application in conjunction with the accompanying drawings. The accompanying drawings are intended to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the drawings, the same reference numerals generally represent the same components or steps.
[0033] FIG1 is a diagram illustrating an application scenario of an intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to an embodiment of the present application;
[0034] FIG2 is a block diagram of an intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to an embodiment of the present application;
[0035] FIG3 is a system architecture diagram of an intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to an embodiment of the present application;
[0036] FIG4 is a flow chart of convolutional neural network coding in an intelligent poisonous and harmful gas alarm system for the preparation of nitric acid according to an embodiment of the present application;
[0037] FIG5 is a block diagram of a gas detection time series feature extraction module in an intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to an embodiment of the present application;
[0038] FIG6 is a block diagram of a feature fusion module in an intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to an embodiment of the present application;
[0039] FIG7 is a flow chart of an intelligent toxic and harmful gas alarm method for the preparation of nitric acid according to an embodiment of the present application;
[0040] FIG8 is a block diagram of an electronic device according to an embodiment of the present application. Modes for Carrying Out the Invention
[0041] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described herein.
[0042] Application Overview: As discussed in the previous background art, harmful gases, such as nitrogen oxides and nitrogen dioxide, are produced during the nitric acid preparation process. Therefore, detection of these toxic and harmful gases is necessary during the nitric acid preparation process. Currently, gas sensors are commonly used for gas detection. However, these detectors must be sensitive enough to detect even low concentrations of these gases. However, overly sensitive detectors can be affected by environmental factors (such as temperature and humidity), leading to false alarms. Therefore, an optimized, intelligent, and toxic and harmful gas alarm solution for the preparation of nitric acid is desired.
[0043] Accordingly, considering that in the actual nitric acid preparation process, in order to be able to accurately detect toxic and harmful gases, it is necessary to pay attention to changes in surrounding environmental factors, such as changes in temperature and humidity, when using gas detectors to detect harmful gases. However, considering that there is a temporal collaborative correlation between the temporal changes in temperature and the temporal changes in humidity in the time dimension, the change information of the gas detection result data in the time dimension also has a correlation with the temporal collaborative correlation information of temperature and humidity. Therefore, when actually performing harmful gas detection, the difficulty lies in how to dig out the correlation characteristic distribution information between the temporal changes in the gas detection result data and the temporal collaborative correlation changes of the temperature and humidity, so as to comprehensively carry out harmful gas leakage warning based on the temporal changes in temperature and humidity and the gas detection results, so as to ensure the safety of the nitric acid preparation process.
[0044] In recent years, deep learning and neural networks have been widely used in computer vision, natural language processing, text signal processing and other fields. The development of deep learning and neural networks provides new solutions and solutions for mining the correlation feature distribution information between the temporal changes of the gas detection result data and the temporal coordinated correlation changes of the temperature and the humidity. Those skilled in the art should know that the deep neural network model based on deep learning can be trained through appropriate strategies, such as the back-propagation algorithm of gradient descent to adjust the parameters of the deep neural network model so that it can simulate the complex nonlinear associations between things, which is obviously suitable for simulating and mining the correlation feature distribution information between the temporal changes of the gas detection result data and the temporal coordinated correlation changes of the temperature and the humidity.
[0045] Specifically, in the technical solution of the present application, first, the humidity values and temperature values at multiple predetermined time points within a predetermined time period, as well as the gas detection result data at the multiple predetermined time points, are obtained. Next, considering that the temperature value and the humidity value not only have dynamic change rules in the time dimension, but also have time-series collaborative correlation feature information for harmful gas detection. Therefore, the humidity values and temperature values at the multiple predetermined time points are further arranged into temperature input vectors and humidity input vectors according to the time dimension to integrate the time-series information of the humidity value and the temperature value in the time dimension, and then the temperature input vector and the humidity input vector are associated and coded to obtain a temperature-humidity association matrix. Specifically, the temperature input vector and the humidity input vector are vector-multiplied to obtain the temperature-humidity association matrix, so as to perform association coding of the time-series change information of the temperature value and the time-series change information of the humidity value.
[0046] Then, a convolutional neural network model with excellent performance in extracting local implicit correlation features can be used to extract the temporal coordinated change features of the humidity value and the temperature value. However, considering that the humidity value and the temperature value have a considerable degree of correlation, they jointly affect the detection of harmful gases. Therefore, in order to fully extract the temporal coordinated correlation features of the humidity value and the temperature value to accurately detect harmful gases, in the technical solution of the present application, a convolutional neural network model with mutually transposed convolution kernels in adjacent layers is further used to perform feature mining on the temperature and humidity correlation matrix to extract deeper and more sufficient temporal coordinated correlation implicit feature information of the humidity value and the temperature value, thereby obtaining a temperature and humidity correlation feature matrix. In particular, here, the adjacent convolution layers of the convolutional neural network model use mutually transposed convolution kernels to simultaneously update the network parameters and search for the network parameter structure suitable for a specific data structure during training, thereby improving the accuracy of subsequent classification.
[0047] Furthermore, for the gas detection result data, considering that it has dynamic change characteristic information in the time dimension, and the gas detection result data also has volatility and uncertainty in the time series, it has different change model characteristics under different time period spans within the predetermined time period. Therefore, in the technical solution of the present application, in order to be able to fully and accurately express the temporal dynamic change characteristics of the gas detection result data, so as to improve the accuracy of harmful gas detection, the gas detection result data of the multiple predetermined time points are further arranged as input vectors according to the time dimension, and then feature mining is performed in the multi-scale neighborhood feature extraction module to extract the multi-scale neighborhood correlation features of the gas detection result data under different time spans, thereby obtaining the gas detection time series feature vector.
[0048] Next, the temperature and humidity correlation feature matrix and the gas detection time series feature vector are fused to fuse the time series multi-scale dynamic change characteristics of the gas detection result data with the time series coordinated dynamic correlation characteristics of the temperature and humidity, so as to obtain correlation feature distribution information with the time series change characteristics of the gas detection results and the time series coordinated change characteristics of the temperature and humidity, thereby obtaining a classification feature vector. Then, the classification feature vector is classified in a classifier to obtain a classification result indicating whether an alarm prompt is generated. That is, based on the gas detection result information and the time series coordinated correlation information of the temperature and humidity, toxic and harmful gas detection in the nitric acid preparation process is comprehensively performed to ensure the safety of the nitric acid preparation process.
[0049] In particular, in the technical solution of the present application, when the temperature-humidity correlation feature matrix and the gas detection time series feature vector are fused to obtain the classification feature vector, the classification feature vector can be viewed as a transfer response vector relative to the gas detection time series feature vector in the temperature-humidity correlation feature domain. Therefore, if the feature representation of the temperature-humidity correlation feature matrix can be further constrained based on the transfer response, the feature expression effect of the temperature-humidity correlation feature matrix can be improved, thereby improving the accuracy of the classification results of the classification feature vector.
[0050] Based on this, the applicant of this application first calculates the transfer matrix of the classification feature vector relative to the gas detection time series feature vector to obtain the transfer response feature matrix, for example, , then based on the transfer response characteristic matrix For the temperature and humidity correlation feature matrix, for example, Perform convolutional dictionary control response learning to optimize the temperature and humidity correlation feature matrix, for example, , specifically: in Represents the Frobenius norm of the matrix.
[0051] That is, based on the transfer response characteristic matrix The neighborhood operator properties of the convolution kernel representation of the convolutional neural network are used to learn the temperature and humidity correlation feature matrix through convolutional dictionary comparison based on the differential feature flow between the corresponding features. The n-hop neighbors of the eigenvalues are used to express the characteristic prior structure, and the prior knowledge under the low-rank representation is used as the characteristic response reference of the high-dimensional feature distribution, so as to learn the interpretable response between features. In this way, the optimized temperature and humidity correlation feature matrix is improved. The feature expression effect of the optimized temperature and humidity correlation feature matrix is improved. The accuracy of the classification result of the classification feature vector obtained from the gas detection time series feature vector is determined. In this way, a comprehensive warning of harmful gas leakage can be performed based on the time series changes of temperature and humidity and the gas detection results, thereby ensuring the accuracy of the warning and the safety of the nitric acid preparation process.
[0052] Based on this, the present application proposes an intelligent toxic and harmful gas alarm system for the preparation of nitric acid, which includes: a data acquisition module for obtaining humidity values and temperature values at multiple predetermined time points within a predetermined time period, as well as gas detection result data at the multiple predetermined time points; an association coding module for arranging the humidity values and temperature values at the multiple predetermined time points into a temperature input vector and a humidity input vector according to the time dimension, and then association coding the temperature input vector and the humidity input vector to obtain a temperature and humidity association matrix; a temperature and humidity association feature extraction module for passing the temperature and humidity association matrix through a convolutional neural network model with mutually transposed convolution kernels in adjacent layers to obtain a temperature and humidity association feature matrix; a gas detection time series feature extraction module for arranging the gas detection result data at the multiple predetermined time points into an input vector according to the time dimension and then passing it through a multi-scale neighborhood feature extraction module to obtain a gas detection time series feature vector; a feature fusion module for fusing the temperature and humidity association feature matrix and the gas detection time series feature vector to obtain a classification feature vector; and an early warning module for passing the classification feature vector through a classifier to obtain a classification result, and the classification result is used to indicate whether an alarm prompt is generated.
[0053] FIG1 is an application scenario diagram of an intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to an embodiment of the present application. As shown in FIG1 , in this application scenario. The humidity value at a plurality of predetermined time points within a predetermined time period is obtained by a humidity sensor (for example, V1 as shown in FIG1 ), the temperature value at a plurality of predetermined time points within a predetermined time period is obtained by a temperature sensor (for example, V2 as shown in FIG1 ), and the gas detection result data at the plurality of predetermined time points is obtained. Then, the above information is input into a server (for example, S in FIG1 ) that is deployed with an intelligent toxic and harmful gas alarm algorithm for the preparation of nitric acid, wherein the server can process the above input information with the intelligent toxic and harmful gas alarm algorithm for the preparation of nitric acid to generate a classification result indicating whether an alarm prompt is generated.
[0054] After introducing the basic principles of the present application, various non-limiting embodiments of the present application will be described in detail with reference to the accompanying drawings.
[0055] Exemplary System: Figure 2 is a block diagram of an intelligent toxic and hazardous gas alarm system for the preparation of nitric acid according to an embodiment of the present application. As shown in Figure 2, the intelligent toxic and hazardous gas alarm system 300 for the preparation of nitric acid according to an embodiment of the present application includes: a data acquisition module 310; an association coding module 320; a temperature and humidity correlation feature extraction module 330; a gas detection time series feature extraction module 340; a feature fusion module 350; and an early warning module 360.
[0056] Among them, the data acquisition module 310 is used to obtain the humidity values and temperature values at multiple predetermined time points within a predetermined time period, as well as the gas detection result data at the multiple predetermined time points; the association coding module 320 is used to arrange the humidity values and temperature values at the multiple predetermined time points into a temperature input vector and a humidity input vector respectively according to the time dimension, and then association code the temperature input vector and the humidity input vector to obtain a temperature and humidity association matrix; the temperature and humidity association feature extraction module 330 is used to pass the temperature and humidity association matrix through a convolutional neural network model using mutually transposed convolution kernels in adjacent layers to obtain a temperature and humidity association feature matrix; the gas detection time series feature extraction module 340 is used to arrange the gas detection result data at the multiple predetermined time points into an input vector according to the time dimension and then pass it through a multi-scale neighborhood feature extraction module to obtain a gas detection time series feature vector; the feature fusion module 350 is used to fuse the temperature and humidity association feature matrix and the gas detection time series feature vector to obtain a classification feature vector; and the early warning module 360 is used to pass the classification feature vector through a classifier to obtain a classification result, and the classification result is used to indicate whether an alarm prompt is generated.
[0057] FIG3 is a system architecture diagram of an intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to an embodiment of the present application. As shown in FIG3 , in the network architecture, first, the humidity value and temperature value at a plurality of predetermined time points within a predetermined time period are acquired through the data acquisition module 310, as well as the gas detection result data at the plurality of predetermined time points; then, the association coding module 320 arranges the humidity value and temperature value at the plurality of predetermined time points acquired by the data acquisition module 310 into a temperature input vector and a humidity input vector according to the time dimension, and then performs association coding on the temperature input vector and the humidity input vector to obtain a temperature and humidity association matrix; the temperature and humidity association feature extraction module 330 passes the temperature and humidity association matrix acquired by the association coding module 320 through a convolutional neural network model with mutually transposed convolution kernels in adjacent layers. model to obtain a temperature and humidity correlation feature matrix; then, the gas detection time series feature extraction module 340 arranges the gas detection result data of multiple predetermined time points obtained by the data acquisition module 310 into an input vector according to the time dimension and passes it through a multi-scale neighborhood feature extraction module to obtain a gas detection time series feature vector; the feature fusion module 350 fuses the temperature and humidity correlation feature matrix obtained by the temperature and humidity correlation feature extraction module 330 and the gas detection time series feature vector obtained by the gas detection time series feature extraction module 340 to obtain a classification feature vector; further, the early warning module 360 passes the classification feature vector through a classifier to obtain a classification result, and the classification result is used to indicate whether an alarm prompt is generated.
[0058] Specifically, during the operation of the intelligent toxic and harmful gas alarm system 300 for the preparation of nitric acid, the data acquisition module 310 is used to obtain humidity values and temperature values at multiple predetermined time points within a predetermined time period, as well as gas detection result data at the multiple predetermined time points. It should be understood that in the actual preparation process of nitric acid, harmful gases are generated. In order to accurately predict the harmful gases, considering that the temporal changes in temperature and humidity have a temporal synergistic relationship in the time dimension during the preparation process, and the change information of the gas detection result data in the time dimension is also associated with the temporal synergistic relationship of temperature and humidity, therefore, in the technical solution of the present application, a neural network model can be used to mine the correlation feature distribution information between the temporal changes in the gas detection result data during the preparation of nitric acid and the temporal synergistic changes in temperature and humidity, so as to comprehensively perform a warning of harmful gas leakage based on the temporal changes in temperature and humidity and the gas detection results, so as to ensure the safety of the nitric acid preparation process. In a specific example of the present application, first, the humidity value and temperature value at multiple predetermined time points within a predetermined time period can be obtained through a temperature sensor and a humidity sensor, and the gas detection result data at the multiple predetermined time points can be obtained.
[0059] Specifically, during the operation of the intelligent toxic and hazardous gas alarm system 300 for nitric acid preparation, the correlation coding module 320 is configured to arrange the humidity and temperature values at the plurality of predetermined time points into a temperature input vector and a humidity input vector, respectively, according to the time dimension, and then perform correlation coding on the temperature input vector and the humidity input vector to obtain a temperature-humidity correlation matrix. Considering that the temperature and humidity values not only exhibit dynamic variations in the time dimension but also exhibit temporal synergistic correlation characteristic information between the temperature and humidity values for hazardous gas detection, the humidity and temperature values at the plurality of predetermined time points are further arranged into a temperature input vector and a humidity input vector, respectively, according to the time dimension to integrate the temporal information of the humidity and temperature values in the time dimension, and then perform correlation coding on the temperature input vector and the humidity input vector to obtain a temperature-humidity correlation matrix. Specifically, the temperature input vector and the humidity input vector are vector-multiplied to obtain the temperature-humidity correlation matrix, thereby performing correlation coding on the temporal variation information of the temperature and humidity values. In a specific example of the present application, the temperature input vector and the humidity input vector are associated and encoded using the following association coding formula to obtain a temperature and humidity association matrix; wherein the formula is: in represents the temperature input vector, represents the transposed vector of the temperature input vector, represents the humidity input vector, represents the temperature and humidity correlation matrix, Represents vector multiplication.
[0060] Specifically, during the operation of the intelligent toxic and harmful gas alarm system 300 for the preparation of nitric acid, the temperature and humidity correlation feature extraction module 330 is used to pass the temperature and humidity correlation matrix through a convolutional neural network model using mutually transposed convolution kernels in adjacent layers to obtain a temperature and humidity correlation feature matrix. Considering that the humidity value and the temperature value have a considerable degree of correlation, they jointly affect the detection of harmful gases. Therefore, in order to fully extract the temporal synergistic correlation features of the humidity value and the temperature value for accurate detection of harmful gases, in the technical solution of the present application, feature mining is further performed on the temperature and humidity correlation matrix using a convolutional neural network model using mutually transposed convolution kernels in adjacent layers to extract deeper and more sufficient temporal synergistic correlation implicit feature information of the humidity value and the temperature value, thereby obtaining a temperature and humidity correlation feature matrix. In particular, here, the adjacent convolutional layers of the convolutional neural network model use mutually transposed convolution kernels to simultaneously update the network parameters and search for the network parameter structure suitable for a specific data structure during training, thereby improving the accuracy of subsequent classification. In one example, the convolutional neural network includes a plurality of neural network layers cascaded with each other, wherein each neural network layer includes a convolution layer, a pooling layer, and an activation layer. During the encoding process of the convolutional neural network, each layer of the convolutional neural network performs convolution processing based on a convolution kernel on input data using the convolution layer, performs pooling processing on the convolution feature map output by the convolution layer using the pooling layer, and performs activation processing on the pooled feature map output by the pooling layer using the activation layer during the forward pass of the layer.
[0061] FIG4 is a flow chart of convolutional neural network encoding in an intelligent toxic and hazardous gas alarm system for the preparation of nitric acid according to an embodiment of the present application. As shown in FIG4 , in the encoding process of the convolutional neural network, the following steps are included: S210, using the first layer of the convolutional neural network model to perform convolution processing, pooling processing, and nonlinear activation processing on the input data based on a first convolution kernel to obtain a first activation feature map; and, S220, using the second layer of the convolutional neural network model to perform convolution processing, pooling processing, and nonlinear activation processing on the first activation feature map based on a second convolution kernel to obtain a second activation feature map, wherein the first convolution kernel and the second convolution kernel are transposed to each other.
[0062] Specifically, during the operation of the intelligent toxic and harmful gas alarm system 300 for the preparation of nitric acid, the gas detection time series feature extraction module 340 is used to arrange the gas detection result data of the multiple predetermined time points into input vectors according to the time dimension and then pass them through the multi-scale neighborhood feature extraction module to obtain the gas detection time series feature vector. Considering that the gas detection result data has dynamic change feature information in the time dimension, and the gas detection result data also has volatility and uncertainty in the time series, it has different change model characteristics under different time period spans within the predetermined time period. Therefore, in the technical solution of the present application, in order to be able to fully and accurately express the time series dynamic change characteristics of the gas detection result data, so as to improve the accuracy of harmful gas detection, the gas detection result data of the multiple predetermined time points are further arranged into input vectors according to the time dimension and then passed through the multi-scale neighborhood feature extraction module for feature mining to extract the multi-scale neighborhood correlation features of the gas detection result data under different time spans, thereby obtaining the gas detection time series feature vector. In particular, the multi-scale neighborhood feature extraction module includes: a first convolutional layer, a second convolutional layer parallel to the first convolutional layer, and a multi-scale feature fusion layer connected to the first convolutional layer and the second convolutional layer, wherein the first convolutional layer uses a one-dimensional convolution kernel with a first length, and the second convolutional layer uses a one-dimensional convolution kernel with a second length.
[0063] FIG5 is a block diagram of a gas detection time series feature extraction module in an intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to an embodiment of the present application. As shown in FIG5 , the gas detection time series feature extraction module 340 includes: a first neighborhood scale feature extraction unit 341, which is used to arrange the gas detection result data of the plurality of predetermined time points into an input vector according to the time dimension and then input it into the first convolution layer of the multi-scale neighborhood feature extraction module to obtain a first neighborhood scale gas detection time series feature vector, wherein the first convolution layer has a first one-dimensional convolution kernel of a first length; a second neighborhood scale feature extraction unit 342, which is used to arrange the gas detection result data of the plurality of predetermined time points into an input vector according to the time dimension and then input it into the second convolution layer of the multi-scale neighborhood feature extraction module to obtain a second neighborhood scale gas detection time series feature vector, wherein the second convolution layer has a second one-dimensional convolution kernel of a second length, and the first length is different from the second length; and a multi-scale cascade unit 343, which is used to cascade the first neighborhood scale gas detection time series feature vector and the second neighborhood scale gas detection time series feature vector to obtain the gas detection time series feature vector. The first neighborhood-scale feature extraction unit 341 is configured to use the first convolution layer of the multi-scale neighborhood feature extraction module to perform one-dimensional convolution encoding on the input vector of the gas detection result data at multiple predetermined time points arranged according to the time dimension using the following one-dimensional convolution formula to obtain a first neighborhood-scale gas detection time series feature vector; wherein the formula is: in, The first convolution kernel is Width in direction, is the first convolution kernel parameter vector, is the local vector matrix operated with the convolution kernel function, is the size of the first convolution kernel, represents the input vector of the gas detection result data at multiple predetermined time points arranged according to the time dimension, Indicates that one-dimensional convolution encoding is performed on the input vector of the gas detection result data of multiple predetermined time points arranged according to the time dimension; and the second neighborhood scale feature extraction unit 342 is used to: use the second convolution layer of the multi-scale neighborhood feature extraction module to perform one-dimensional convolution encoding on the input vector of the gas detection result data of multiple predetermined time points arranged according to the time dimension using the following one-dimensional convolution formula to obtain the second neighborhood scale gas detection time series feature vector; wherein the formula is: in, The second convolution kernel is Width in direction, is the second convolution kernel parameter vector, is the local vector matrix operated with the convolution kernel function, is the size of the second convolution kernel, represents the input vector of the gas detection result data at multiple predetermined time points arranged according to the time dimension, It represents performing one-dimensional convolution coding on the input vector composed of gas detection result data at multiple predetermined time points arranged according to the time dimension.
[0064] Specifically, during the operation of the intelligent toxic and harmful gas alarm system 300 for the preparation of nitric acid, the feature fusion module 350 is used to fuse the temperature and humidity correlation feature matrix and the gas detection time series feature vector to obtain a classification feature vector. That is, in the technical solution of the present application, after obtaining the temperature and humidity correlation feature matrix and the gas detection time series feature vector, the two are further subjected to feature fusion, so as to fuse the time series multi-scale dynamic change characteristics of the gas detection result data with the time series coordinated dynamic correlation characteristics of the temperature and the humidity, so as to obtain correlation feature distribution information having the time series change characteristics of the gas detection result and the time series coordinated change characteristics of the temperature and humidity. In particular, in the technical solution of the present application, here, when fusing the temperature and humidity correlation feature matrix and the gas detection time series feature vector to obtain the classification feature vector, the classification feature vector can be regarded as a transfer response vector relative to the gas detection time series feature vector in the temperature and humidity correlation feature domain. Therefore, if the feature representation of the temperature and humidity correlation feature matrix can be further constrained based on the transfer response, the feature expression effect of the temperature and humidity correlation feature matrix can be improved, thereby improving the accuracy of the classification result of the classification feature vector. Based on this, the applicant of this application first calculates the transfer matrix of the classification feature vector relative to the gas detection time series feature vector to obtain the transfer response feature matrix, for example, recorded as , then based on the transfer response characteristic matrix For the temperature and humidity correlation feature matrix, for example, Perform convolutional dictionary control response learning to optimize the temperature and humidity correlation feature matrix, for example, , specifically: in and are the transfer response characteristic matrix and the temperature and humidity correlation characteristic matrix, respectively, and represents the Frobenius norm of the matrix, represents matrix subtraction, represents matrix multiplication, Represents the optimized temperature and humidity correlation characteristic matrix. That is, based on the transfer response characteristic matrix The neighborhood operator properties of the convolution kernel representation of the convolutional neural network are used to learn the temperature and humidity correlation feature matrix through convolutional dictionary comparison based on the differential feature flow between the corresponding features. The n-hop neighbors of the eigenvalues are used to express the characteristic prior structure, and the prior knowledge under the low-rank representation is used as the characteristic response reference of the high-dimensional feature distribution, so as to learn the interpretable response between features. In this way, the optimized temperature and humidity correlation feature matrix is improved. The feature expression effect of the optimized temperature and humidity correlation feature matrix is improved. The accuracy of the classification result of the classification feature vector obtained from the gas detection time series feature vector is determined. In this way, a comprehensive warning of harmful gas leakage can be performed based on the time series changes of temperature and humidity and the gas detection results, thereby ensuring the accuracy of the warning and the safety of the nitric acid preparation process.
[0065] Figure 6 is a block diagram of a feature fusion module in an intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to an embodiment of the present application. As shown in Figure 6, the feature fusion module 350 includes: an initial feature fusion unit 351, which is used to perform matrix multiplication of the temperature and humidity correlation feature matrix and the gas detection time series feature vector to obtain an initial classification feature vector; a transfer response association unit 352, which is used to calculate the transfer matrix of the initial classification feature vector relative to the gas detection time series feature vector to obtain a transfer response feature matrix; a feature optimization unit 353, which is used to perform convolutional dictionary comparison response learning on the temperature and humidity correlation feature matrix based on the transfer response feature matrix to obtain an optimized temperature and humidity correlation feature matrix; and an optimization fusion unit 354, which is used to fuse the optimized temperature and humidity correlation feature matrix and the gas detection time series feature vector to obtain the classification feature vector. Wherein, the transfer response association unit 352 is used to: calculate the transfer matrix of the initial classification feature vector relative to the gas detection time series feature vector according to the following formula to obtain a transfer response feature matrix; wherein, the formula is: ,in represents the initial classification feature vector, represents the gas detection time series feature vector, represents the transfer response feature matrix; and the optimization fusion unit 354 is used to: fuse the optimized temperature and humidity correlation feature matrix and the gas detection time series feature vector using the following formula to obtain the classification feature vector; wherein the formula is: ,in represents the gas detection time series feature vector, The optimized temperature and humidity correlation feature matrix is shown as follows: represents the classification feature vector.
[0066] Specifically, during the operation of the intelligent toxic and harmful gas alarm system 300 for the preparation of nitric acid, the early warning module 360 is used to pass the classification feature vector through a classifier to obtain a classification result, and the classification result is used to indicate whether an alarm prompt is generated. That is, the classification feature vector is passed through a classifier to obtain a classification result indicating whether an alarm prompt is generated, that is, based on the detection result information of the gas and the time series collaborative correlation information of the temperature and the humidity, the toxic and harmful gas detection in the nitric acid preparation process is comprehensively performed, thereby ensuring the safety of the nitric acid preparation process. Specifically, the classification feature vector is processed using the following formula using the classifier to obtain a classification result, wherein the formula is: ,in, arrive is the weight matrix, arrive is the bias vector, is a classification feature vector. Specifically, the classifier includes a plurality of fully connected layers and a Softmax layer cascaded with the last fully connected layer of the plurality of fully connected layers. In the classification processing of the classifier, the classification feature vector is fully connected multiple times using the plurality of fully connected layers of the classifier to obtain a coded classification feature vector; then, the coded classification feature vector is input into the Softmax layer of the classifier, that is, the coded classification feature vector is classified using the Softmax classification function to obtain a classification label. In the technical solution of the present application, the label of the classifier includes generating an alarm prompt (first label) and not generating an alarm prompt (second label), wherein the classifier determines which classification label the classification feature vector belongs to by using a soft maximum function. It is worth noting that the first label p1 and the second label p2 here do not contain artificially set concepts. In fact, during the training process, the computer model does not have the concept of "whether to generate an alarm prompt". It only has two classification labels and the probability of the output feature under these two classification labels, that is, the sum of p1 and p2 is one. Therefore, the classification result of whether an alarm is generated is actually converted from the classification label into a binary probability distribution that conforms to natural laws. Essentially, the physical meaning of the label's natural probability distribution is used, rather than the linguistic meaning of "whether an alarm is generated." It should be understood that in the technical solution of this application, the classification label of the classifier is the detection and evaluation label of whether an alarm is generated. Therefore, after obtaining the classification result, human vital signs can be accurately detected based on the classification result.
[0067] In summary, according to the embodiment of the present application, an intelligent toxic and harmful gas alarm system 300 for the preparation of nitric acid is explained. It adopts a neural network model based on deep learning to mine the correlation characteristic distribution information between the temporal changes of gas detection result data in the nitric acid preparation process and the temporal coordinated correlation changes of temperature and humidity, and comprehensively performs harmful gas leakage warning based on the temporal changes of temperature and humidity and the gas detection results to ensure the safety of the nitric acid preparation process.
[0068] As described above, the intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to the embodiment of the present application can be implemented in various terminal devices. In one example, the intelligent toxic and harmful gas alarm system 300 for the preparation of nitric acid according to the embodiment of the present application can be integrated into the terminal device as a software module and / or hardware module. For example, the intelligent toxic and harmful gas alarm system 300 for the preparation of nitric acid can be a software module in the operating system of the terminal device, or can be an application developed for the terminal device; of course, the intelligent toxic and harmful gas alarm system 300 for the preparation of nitric acid can also be one of the many hardware modules of the terminal device.
[0069] Alternatively, in another example, the intelligent toxic and harmful gas alarm system 300 for the preparation of nitric acid and the terminal device may also be separate devices, and the intelligent toxic and harmful gas alarm system 300 for the preparation of nitric acid may be connected to the terminal device via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.
[0070] Exemplary method: FIG7 is a flow chart of an intelligent toxic and harmful gas alarm method for the preparation of nitric acid according to an embodiment of the present application. As shown in Figure 7, the intelligent toxic and harmful gas alarm method for the preparation of nitric acid according to the embodiment of the present application includes the following steps: S110, obtaining the humidity value and temperature value of multiple predetermined time points within a predetermined time period, as well as the gas detection result data of the multiple predetermined time points; S120, arranging the humidity values and temperature values of the multiple predetermined time points into a temperature input vector and a humidity input vector according to the time dimension, and then performing association coding on the temperature input vector and the humidity input vector to obtain a temperature and humidity association matrix; S130, passing the temperature and humidity association matrix through a convolutional neural network model with mutually transposed convolution kernels in adjacent layers to obtain a temperature and humidity association feature matrix; S140, arranging the gas detection result data of the multiple predetermined time points into an input vector according to the time dimension and then passing through a multi-scale neighborhood feature extraction module to obtain a gas detection time series feature vector; S150, fusing the temperature and humidity association feature matrix and the gas detection time series feature vector to obtain a classification feature vector; and, S160, passing the classification feature vector through a classifier to obtain a classification result, and the classification result is used to indicate whether an alarm prompt is generated.
[0071] In one example, in the intelligent toxic and harmful gas alarm method for preparing nitric acid, step S120 includes: performing association coding on the temperature input vector and the humidity input vector using the following association coding formula to obtain a temperature and humidity association matrix; wherein the formula is: in represents the temperature input vector, represents the transposed vector of the temperature input vector, represents the humidity input vector, represents the temperature and humidity correlation matrix, Represents vector multiplication.
[0072] In one example, in the above-mentioned intelligent toxic and harmful gas alarm method for the preparation of nitric acid, the step S130 includes: using the first layer of the convolutional neural network model to perform convolution processing, pooling processing and nonlinear activation processing based on a first convolution kernel on the input data to obtain a first activation feature map; and, using the second layer of the convolutional neural network model to perform convolution processing, pooling processing and nonlinear activation processing based on a second convolution kernel on the first activation feature map to obtain a second activation feature map, wherein the first convolution kernel and the second convolution kernel are transposed of each other.
[0073] In one example, in the above-mentioned intelligent toxic and harmful gas alarm method for the preparation of nitric acid, the step S140 includes: arranging the gas detection result data of the multiple predetermined time points into an input vector according to the time dimension and then inputting the input into the first convolution layer of the multi-scale neighborhood feature extraction module to obtain a first neighborhood-scale gas detection time series feature vector, wherein the first convolution layer has a first one-dimensional convolution kernel of a first length; arranging the gas detection result data of the multiple predetermined time points into an input vector according to the time dimension and then inputting the input into the second convolution layer of the multi-scale neighborhood feature extraction module to obtain a second neighborhood-scale gas detection time series feature vector, wherein the second convolution layer has a second one-dimensional convolution kernel of a second length, and the first length is different from the second length; and cascading the first neighborhood-scale gas detection time series feature vector and the second neighborhood-scale gas detection time series feature vector to obtain the gas detection time series feature vector. The multi-scale neighborhood feature extraction module includes: a first convolution layer, a second convolution layer in parallel with the first convolution layer, and a multi-scale feature fusion layer connected to the first convolution layer and the second convolution layer, wherein the first convolution layer uses a one-dimensional convolution kernel with a first length, and the second convolution layer uses a one-dimensional convolution kernel with a second length. More specifically, the gas detection result data of the multiple predetermined time points are arranged as an input vector according to the time dimension and then input into the first convolution layer of the multi-scale neighborhood feature extraction module to obtain a first neighborhood-scale gas detection time series feature vector, including: using the first convolution layer of the multi-scale neighborhood feature extraction module to perform one-dimensional convolution encoding on the input vector of the gas detection result data of the multiple predetermined time points arranged according to the time dimension using the following one-dimensional convolution formula to obtain the first neighborhood-scale gas detection time series feature vector; wherein the formula is: in, The first convolution kernel is Width in direction, is the first convolution kernel parameter vector, is the local vector matrix operated with the convolution kernel function, is the size of the first convolution kernel, represents the input vector of the gas detection result data at multiple predetermined time points arranged according to the time dimension, Indicates performing one-dimensional convolution encoding on the input vector of the gas detection result data of multiple predetermined time points arranged according to the time dimension; and arranging the gas detection result data of the multiple predetermined time points according to the time dimension into an input vector and then inputting it into the second convolution layer of the multi-scale neighborhood feature extraction module to obtain a second neighborhood-scale gas detection time series feature vector, and using the second convolution layer of the multi-scale neighborhood feature extraction module to perform one-dimensional convolution encoding on the input vector of the gas detection result data of the multiple predetermined time points arranged according to the time dimension using the following one-dimensional convolution formula to obtain the second neighborhood-scale gas detection time series feature vector; wherein, the formula is: in, The second convolution kernel is Width in direction, is the second convolution kernel parameter vector, is the local vector matrix operated with the convolution kernel function, is the size of the second convolution kernel, represents the input vector of the gas detection result data at multiple predetermined time points arranged according to the time dimension, It represents performing one-dimensional convolution coding on the input vector composed of gas detection result data at multiple predetermined time points arranged according to the time dimension.
[0074] In one example, in the above-mentioned intelligent toxic and harmful gas alarm method for the preparation of nitric acid, the step S150 includes: multiplying the temperature and humidity correlation feature matrix and the gas detection time series feature vector by a matrix to obtain an initial classification feature vector; calculating the transfer matrix of the initial classification feature vector relative to the gas detection time series feature vector to obtain a transfer response feature matrix; performing convolutional dictionary comparison response learning on the temperature and humidity correlation feature matrix based on the transfer response feature matrix to obtain an optimized temperature and humidity correlation feature matrix; and fusing the optimized temperature and humidity correlation feature matrix and the gas detection time series feature vector to obtain the classification feature vector. Calculating the transfer matrix of the initial classification feature vector relative to the gas detection time series feature vector to obtain the transfer response feature matrix includes: calculating the transfer matrix of the initial classification feature vector relative to the gas detection time series feature vector using the following formula to obtain a transfer response feature matrix; wherein, the formula is: ,in represents the initial classification feature vector, represents the gas detection time series feature vector, Representing the transfer response feature matrix; and performing convolutional dictionary comparison response learning on the temperature and humidity correlation feature matrix based on the transfer response feature matrix to obtain an optimized temperature and humidity correlation feature matrix, comprising: performing convolutional dictionary comparison response learning on the temperature and humidity correlation feature matrix based on the transfer response feature matrix using the following optimization formula to obtain the optimized temperature and humidity correlation feature matrix; wherein the formula is: in and are the transfer response characteristic matrix and the temperature and humidity correlation characteristic matrix, respectively, and represents the Frobenius norm of the matrix, represents matrix subtraction, represents matrix multiplication, represents the optimized temperature and humidity correlation feature matrix; more specifically, fusing the optimized temperature and humidity correlation feature matrix and the gas detection time series feature vector to obtain the classification feature vector, including: fusing the optimized temperature and humidity correlation feature matrix and the gas detection time series feature vector to obtain the classification feature vector according to the following formula; wherein, the formula is: ,in represents the gas detection time series feature vector, The optimized temperature and humidity correlation feature matrix is shown as follows: represents the classification feature vector.
[0075] In one example, in the intelligent toxic and harmful gas alarm method for the preparation of nitric acid, step S160 includes: using the classifier to process the classification feature vector using the following formula to obtain a classification result, wherein the formula is: ,in, arrive is the weight matrix, arrive is the bias vector, is the classification feature vector.
[0076] In summary, according to the embodiment of the present application, an intelligent toxic and harmful gas alarm method for the preparation of nitric acid is explained. It adopts a neural network model based on deep learning to mine the correlation characteristic distribution information between the temporal changes of gas detection result data in the nitric acid preparation process and the temporal coordinated correlation changes of temperature and humidity, and comprehensively performs harmful gas leakage warning based on the temporal changes of temperature and humidity and the gas detection results to ensure the safety of the nitric acid preparation process.
[0077] Exemplary electronic device: Below, an electronic device according to an embodiment of the present application is described with reference to FIG8 .
[0078] FIG8 illustrates a block diagram of an electronic device according to an embodiment of the present application.
[0079] As shown in FIG. 8 , the electronic device 10 includes one or more processors 11 and a memory 12 .
[0080] The processor 11 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 10 to perform desired functions.
[0081] The memory 12 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 11 may execute the program instructions to implement the functions of the intelligent toxic and harmful gas alarm system for the preparation of nitric acid in the various embodiments of the present application described above and / or other desired functions. Various contents such as gas detection time series feature vectors may also be stored in the computer-readable storage medium.
[0082] In one example, the electronic device 10 may further include an input device 13 and an output device 14 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0083] The input device 13 may include, for example, a keyboard, a mouse, and the like.
[0084] The output device 14 can output various information to the outside, including classification results, etc. The output device 14 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.
[0085] Of course, for simplicity, FIG8 shows only some of the components of the electronic device 10 that are relevant to the present application, omitting components such as a bus, input / output interfaces, etc. In addition, the electronic device 10 may further include any other appropriate components depending on the specific application.
[0086] Exemplary computer program product and computer-readable storage medium: In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps in the functions of the intelligent toxic and harmful gas alarm method for the preparation of nitric acid according to various embodiments of the present application described in the above-mentioned "Exemplary System" section of this specification.
[0087] The computer program product may be written in any combination of one or more programming languages to implement the program code for performing the operations of the embodiments of the present application, including object-oriented programming languages such as Java, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0088] In addition, an embodiment of the present application may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to execute the steps in the functions of the intelligent toxic and harmful gas alarm method for the preparation of nitric acid according to various embodiments of the present application described in the above "Exemplary System" section of this specification.
[0089] The computer-readable storage medium may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0090] The basic principles of the present application have been described above in conjunction with specific embodiments. However, it should be noted that the advantages, strengths, and effects mentioned in this application are merely illustrative and not restrictive, and it should not be assumed that these advantages, strengths, and effects are required of each embodiment of this application. In addition, the specific details disclosed above are merely illustrative and facilitating understanding, and are not restrictive. The above details do not limit this application to necessarily being implemented using the above specific details.
[0091] The block diagrams of the devices, devices, equipment, and systems involved in this application are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, devices, equipment, and systems can be connected, arranged, or configured in any manner. Words such as "include," "comprise," "have," and the like are open-ended words, meaning "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or" and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0092] It should also be noted that in the apparatus, device, and method of the present application, each component or each step can be decomposed and / or recombined, and such decomposition and / or recombination should be regarded as equivalent solutions of the present application.
[0093] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present application. Therefore, the present application is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0094] The above description has been provided for the purpose of illustration and description. Furthermore, this description is not intended to limit the embodiments of the present application to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
Claims
1. An intelligent toxic and harmful gas alarm system for the preparation of nitric acid, characterized in that: include: A data acquisition module, used to obtain humidity values and temperature values at multiple predetermined time points within a predetermined time period, and gas detection result data at the multiple predetermined time points; an association coding module, configured to arrange the humidity values and the temperature values at the plurality of predetermined time points into a temperature input vector and a humidity input vector according to the time dimension, and then perform association coding on the temperature input vector and the humidity input vector to obtain a temperature-humidity association matrix; A temperature and humidity correlation feature extraction module, used to obtain a temperature and humidity correlation feature matrix by passing the temperature and humidity correlation matrix through a convolutional neural network model using mutually transposed convolution kernels in adjacent layers; A gas detection time series feature extraction module, used to arrange the gas detection result data of the plurality of predetermined time points into an input vector according to the time dimension and then pass it through a multi-scale neighborhood feature extraction module to obtain a gas detection time series feature vector; A feature fusion module, used for fusing the temperature and humidity correlation feature matrix and the gas detection time series feature vector to obtain a classification feature vector; as well as The early warning module is used to pass the classification feature vector through a classifier to obtain a classification result, and the classification result is used to indicate whether an alarm prompt is generated.
2. The intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to claim 1, characterized in that: The association coding module is used to: perform association coding on the temperature input vector and the humidity input vector according to the following association coding formula to obtain a temperature and humidity association matrix; Wherein, the formula is: in represents the temperature input vector, represents the transposed vector of the temperature input vector, represents the humidity input vector, represents the temperature and humidity association matrix, Represents vector multiplication.
3. The intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to claim 2, characterized in that: The temperature and humidity correlation feature extraction module is used to: Using the first layer of the convolutional neural network model, performing convolution processing, pooling processing, and nonlinear activation processing based on a first convolution kernel on the input data to obtain a first activation feature map; as well as Use the second layer of the convolutional neural network model to perform convolution processing, pooling processing and nonlinear activation processing based on a second convolution kernel on the first activation feature map to obtain a second activation feature map, wherein the first convolution kernel and the second convolution kernel are transposed of each other.
4. The intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to claim 3, characterized in that: The multi-scale neighborhood feature extraction module includes: a first convolution layer, a second convolution layer parallel to the first convolution layer, and a multi-scale feature fusion layer connected to the first convolution layer and the second convolution layer, wherein the first convolution layer uses a one-dimensional convolution kernel with a first length, and the second convolution layer uses a one-dimensional convolution kernel with a second length.
5. The intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to claim 4, characterized in that: The gas detection time series feature extraction module comprises: A first neighborhood scale feature extraction unit, configured to arrange the gas detection result data of the plurality of predetermined time points into an input vector according to a time dimension and then input the input vector into a first convolution layer of the multi-scale neighborhood feature extraction module to obtain a first neighborhood scale gas detection time series feature vector, wherein the first convolution layer has a first one-dimensional convolution kernel of a first length; A second neighborhood scale feature extraction unit, configured to arrange the gas detection result data of the plurality of predetermined time points into an input vector according to a time dimension and then input the input vector into a second convolution layer of the multi-scale neighborhood feature extraction module to obtain a second neighborhood scale gas detection time series feature vector, wherein the second convolution layer has a second one-dimensional convolution kernel of a second length, and the first length is different from the second length; and A multi-scale cascade unit is used to cascade the first neighborhood scale gas detection time series feature vector and the second neighborhood scale gas detection time series feature vector to obtain the gas detection time series feature vector.
6. Among them, The first neighborhood scale feature extraction unit is used to: use the first convolution layer of the multi-scale neighborhood feature extraction module to perform one-dimensional convolution encoding on the input vector of the gas detection result data of multiple predetermined time points arranged according to the time dimension using the following one-dimensional convolution formula to obtain a first neighborhood scale gas detection time series feature vector; Wherein, the formula is: in, is the first convolution kernel in Width in direction, is the first convolution kernel parameter vector, is the local vector matrix that operates with the convolution kernel function, is the size of the first convolution kernel, represents the input vector of the gas detection result data at multiple predetermined time points arranged according to the time dimension, Indicates that one-dimensional convolution coding is performed on the input vector composed of gas detection result data at multiple predetermined time points arranged according to the time dimension; and The second neighborhood scale feature extraction unit is used to: use the second convolution layer of the multi-scale neighborhood feature extraction module to perform one-dimensional convolution encoding on the input vector of the gas detection result data of multiple predetermined time points arranged according to the time dimension using the following one-dimensional convolution formula to obtain the second neighborhood scale gas detection time series feature vector; Wherein, the formula is: in, The second convolution kernel is Width in direction, is the second convolution kernel parameter vector, is the local vector matrix that operates with the convolution kernel function, is the size of the second convolution kernel, represents the input vector of the gas detection result data at multiple predetermined time points arranged according to the time dimension, It means that one-dimensional convolution coding is performed on the input vector composed of gas detection result data at multiple predetermined time points arranged according to the time dimension.
7. The intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to claim 5, characterized in that: The feature fusion module comprises: An initial feature fusion unit, used for performing matrix multiplication of the temperature and humidity correlation feature matrix and the gas detection time series feature vector to obtain an initial classification feature vector; A transfer response association unit, used for calculating a transfer matrix of the initial classification feature vector relative to the gas detection time series feature vector to obtain a transfer response feature matrix; a feature optimization unit, configured to perform convolutional dictionary comparison response learning on the temperature and humidity correlation feature matrix based on the transfer response feature matrix to obtain an optimized temperature and humidity correlation feature matrix; and The optimization fusion unit is used to fuse the optimized temperature and humidity correlation feature matrix and the gas detection time series feature vector to obtain the classification feature vector.
8. The intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to claim 6, characterized in that: The transfer response association unit is used to calculate the transfer matrix of the initial classification feature vector relative to the gas detection time series feature vector using the following formula to obtain a transfer response feature matrix; Wherein, the formula is: ,in represents the initial classification feature vector, represents the gas detection time series feature vector, represents the transfer response feature matrix.
9. The intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to claim 7, characterized in that: The feature optimization unit is used to: perform convolutional dictionary comparison response learning on the temperature and humidity correlation feature matrix based on the transfer response feature matrix using the following optimization formula to obtain the optimized temperature and humidity correlation feature matrix; Wherein, the formula is: ,in and are the transfer response characteristic matrix and the temperature and humidity correlation characteristic matrix, respectively, and represents the Frobenius norm of the matrix, represents matrix subtraction, represents matrix multiplication, Represents the optimized temperature and humidity correlation feature matrix.
10. The intelligent toxic and harmful gas alarm system for the preparation of nitric acid according to claim 8, characterized in that: The optimization fusion unit is used to: fuse the optimized temperature and humidity correlation feature matrix and the gas detection time series feature vector according to the following formula to obtain the classification feature vector; Wherein, the formula is: ,in represents the gas detection time series feature vector, The optimized temperature and humidity correlation feature matrix is shown. represents the classification feature vector.
11. The intelligent poisonous and harmful gas alarm system for the preparation of nitric acid according to claim 9, characterized in that: The early warning module is used to: use the classifier to process the classification feature vector according to the following formula to obtain a classification result, wherein the formula is: ,in, arrive is the weight matrix, arrive is the bias vector, is the classification feature vector.
Citation Information
Patent Citations
Intelligent toxic and harmful gas alarm system for preparing hexafluorobutadiene
CN115346345A
Gas monitoring system for hexafluorobutadiene storage place and monitoring method thereof
CN115356434A
Electromagnetic motor and moisture-proof control method thereof
CN115378344A
Indoor air quality prediction system based on Internet of Things and prediction method thereof
CN115392369A
Greenhouse lighting adjusting method and system
CN115457292A
Cited By
Winter jujube preservation control method and system based on IoT and AI
CN119128451A
Remote intelligent control method and system for thermostatic equipment
CN120406621A
