Gas supply control method, device, equipment and storage medium for gas storage device
By combining spectrum sensors and pressure sensors with a multi-modal neural network model, the reaction gas concentration is detected in real time and the gas supply of the gas storage device is adjusted. This solves the problem of inaccurate gas supply control in traditional methods and achieves more efficient monitoring and adjustment of the reaction process. .
Patent Information
- Application Number
- CN202410124090.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-30
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-01-30
AI Technical Summary
The gas supply control method of traditional gas storage devices is not accurate enough and cannot provide real-time reaction gas concentration information, which limits the timely adjustment and monitoring of the reaction process.
Spectral sensors and pressure sensors are used combined with multi-modal neural network sub-models and detection sub-models to detect the concentration of reaction gases in real time through spectral parameters and pressure parameters, and adjust the gas supply process of the gas storage device in real time based on the detection results.
It achieves accurate detection and real-time control of the reaction gas concentration, and improves the accuracy and flexibility of the gas supply process of the gas storage device.
Smart Images

Figure CN117847419B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of gas supply control, and in particular to a gas supply control method, device, equipment and storage medium for a gas storage device. Background Art
[0002] In industry and laboratories, controlling the concentration of each reaction gas in the reaction equipment through the gas supply control of the gas storage device is a key engineering requirement. Traditionally, this is usually achieved by regular sampling and offline analysis. However, this method is not only cumbersome but also cannot provide real-time reaction gas concentration information, which limits the timely adjustment and monitoring of the reaction process and makes the gas supply process of the gas storage device inaccurate. Summary of the invention
[0003] The main purpose of the present invention is to solve the technical problem that the gas supply process of the existing gas storage device is not accurate enough.
[0004] A first aspect of the present invention provides a gas supply control method for a gas storage device, wherein the gas storage device is applied to a reaction device, wherein the reaction device is equipped with a spectral sensor and a pressure sensor, and the gas supply control method for the gas storage device comprises:
[0005] Determining the target gas stored in the gas storage device, determining a gas concentration detection model according to the target gas, and controlling the gas storage device to supply gas to the reaction device according to preset initial control parameters;
[0006] Acquiring, by means of the spectral sensor and the pressure sensor, spectral parameters of each reaction gas in the reaction device and pressure parameters of the reaction device during the gas supply process of the gas storage device;
[0007] The spectral parameters of each reaction gas and the pressure parameters are input into the gas concentration detection model, wherein the gas concentration detection model includes a multimodal neural network sub-model and a detection sub-model corresponding to each reaction gas, and each detection sub-model is composed of a convolutional neural network and a bidirectional long short-term memory network;
[0008] Inputting the spectral parameters of each reaction gas into each detection sub-model corresponding to the gas concentration detection model, and obtaining the spectral characteristics of the corresponding reaction gas spectral parameters through the convolutional neural network in the corresponding detection sub-model;
[0009] Inputting the spectral features into the bidirectional long short-term memory network of the detection sub-model, and extracting the time series information of the corresponding spectral parameters through the bidirectional long short-term memory network;
[0010] Calculating the gas concentration of each reaction gas according to the time series information of each reaction gas and the pressure parameter through the multimodal neural network sub-model;
[0011] Calculating the gas supply parameters of the target gas according to the gas concentration of each reaction gas, and calculating the real-time control parameters of the gas storage device according to the gas supply parameters;
[0012] The gas supply process of the gas storage device to the reaction equipment is adjusted in real time according to the real-time control parameters.
[0013] Optionally, in a first implementation of the first aspect of the present invention, before determining the target gas stored in the gas storage device, determining a gas concentration detection model according to the target gas, and controlling the gas storage device to supply gas to the reaction device according to a preset initial control parameter, the method further includes:
[0014] Acquire training data of each of the reaction gases, wherein each of the reaction gases includes a first reaction gas and a second reaction gas, and the training data includes historical spectral parameters of the first reaction gas and the second reaction gas at each actual gas concentration and corresponding historical pressure parameters;
[0015] Initializing first and second characteristic representations of the first and second reactant gases;
[0016] Input each training data and the corresponding first characteristic representation or each training data and the corresponding second characteristic representation into the initial sub-model of the corresponding reaction gas, perform concentration detection on the input training data and the first characteristic representation or the input training data and the second characteristic representation through the initial sub-model, and obtain time series information corresponding to the first reaction gas and the second reaction gas respectively;
[0017] Inputting the time series information corresponding to the first reaction gas and the second reaction gas and the historical pressure parameter into a preset initial multimodal neural network model to obtain the current detection concentrations of the first reaction gas and the second reaction gas;
[0018] Calculating preset loss functions according to the current detected concentrations of the first reaction gas and the second reaction gas and the actual gas concentrations, respectively, to obtain loss function values of the first reaction gas and the second reaction gas, respectively;
[0019] Determining whether a loss function value of the first reaction gas and / or the second reaction gas is greater than a preset loss threshold;
[0020] If the loss function value of the first reaction gas is greater than a preset loss threshold, the model parameters of the corresponding detection sub-model and the initial multimodal neural network model are updated according to the loss function value, the current detection concentration of the second reaction gas is used as the first feature representation, and the method returns to the step of inputting each training data and the corresponding first feature representation / or second feature representation into the initial sub-model of the corresponding reaction gas, until the loss function value of the first reaction gas is not greater than the preset loss threshold;
[0021] If the loss function value of the second reaction gas is greater than a preset loss threshold, the model parameters of the corresponding detection sub-model and the initial multimodal neural network model are updated according to the loss function value, the current detection concentration of the first reaction gas is used as the second feature representation, and the method returns to the step of inputting each training data and the corresponding first feature representation / or second feature representation into the initial sub-model of the corresponding reaction gas, until the loss function value of the second reaction gas is not greater than the preset loss threshold;
[0022] When the loss function value of the first reaction gas and / or the second reaction gas is not greater than a preset loss threshold, using the corresponding initial sub-model as a detection sub-model, and using the initial multimodal neural network model as a multimodal neural network sub-model;
[0023] A gas concentration detection model for each of the reaction gases is constructed based on the detection sub-models of the first reaction gas and the second reaction gas and the multimodal neural network sub-model.
[0024] Optionally, in a second implementation of the first aspect of the present invention, the convolutional neural network is a one-dimensional convolutional neural network, and the one-dimensional convolutional neural network includes an input layer, a convolution layer, an activation layer, a pooling layer, a fully connected layer and a first output layer;
[0025] The step of inputting the spectral parameters of each reaction gas into each detection sub-model corresponding to the gas concentration detection model, and obtaining the spectral characteristics of the corresponding spectral parameters of the reaction gas through the convolutional neural network in the corresponding detection sub-model includes:
[0026] Inputting the spectral parameters of each reaction gas into each detection sub-model corresponding to the gas concentration detection model, and receiving the spectral parameters of the corresponding reaction gas through the input layer of the convolutional neural network in the corresponding detection sub-model;
[0027] Performing convolution calculation on the spectral parameters through the convolution layer to obtain a corresponding feature map;
[0028] Performing a nonlinear transformation on the feature map through the activation layer, and reducing the feature dimension of the feature map through the pooling layer to obtain a processed feature map;
[0029] The processed feature map is expanded into a one-dimensional vector, the one-dimensional vector is feature integrated through the fully connected layer to obtain a spectral feature, and the spectral feature is output through the first output layer.
[0030] Optionally, in a third implementation of the first aspect of the present invention, the multimodal neural network sub-model includes an input layer, an attention mechanism layer, a feature fusion layer, a classification layer, and a second output layer;
[0031] The calculating the gas concentration of each reaction gas according to the time series information of each reaction gas and the pressure parameter by the multimodal neural network sub-model includes:
[0032] Performing data preprocessing and data feature extraction on the pressure parameter through the input layer in the multimodal neural network sub-model to obtain a pressure feature;
[0033] Calculate the attention weight vectors of the pressure feature and the time series information respectively through the attention mechanism layer;
[0034] Performing weighted fusion of the pressure feature and the time series information according to the weight vector through the feature fusion layer to obtain a fused feature vector;
[0035] The fused feature vector is mapped to the concentration of the corresponding reaction gas through the classification layer to obtain the gas concentration of the corresponding reaction gas, and the gas concentration of the corresponding reaction gas is output through the second output layer.
[0036] Optionally, in a fourth implementation manner of the first aspect of the present invention, mapping the fused feature vector to the concentration of the corresponding reaction gas through the classification layer to obtain the gas concentration of the corresponding reaction gas, and outputting the gas concentration of the corresponding reaction gas through the second output layer includes:
[0037] Mapping the fused feature vector linearly to a high-dimensional feature space through the classification layer to obtain a linear transformation result;
[0038] Performing a nonlinear transformation on the linear transformation result through a preset activation function to obtain a nonlinear transformation result;
[0039] The nonlinear transformation result is mapped to the concentration of the corresponding reaction gas through the fully connected layer in the classification layer to obtain the gas concentration of the corresponding reaction gas, and the gas concentration of the corresponding reaction gas is output through the second output layer.
[0040] Optionally, in a fifth implementation of the first aspect of the present invention, the step of calculating the gas supply parameters of the target gas according to the gas concentrations of the reaction gases, and calculating the real-time control parameters of the gas storage device according to the gas supply parameters includes:
[0041] Determining a real-time set value of the gas supply parameter according to a preset closed-loop control algorithm, and determining a reaction deviation value between the real-time set value and the reaction data;
[0042] Acquiring a gas supply time of the target gas, and calculating a reaction correction value of the target gas according to the gas supply time and the reaction deviation value;
[0043] A control signal of the gas storage device is determined according to the reaction correction value.
[0044] Optionally, in a sixth implementation of the first aspect of the present invention, the reaction correction value includes a proportional deviation value, an integral deviation value, and a differential deviation value;
[0045] The step of obtaining the gas supply time of the target gas and calculating the reaction correction value of the target gas according to the gas supply time and the reaction deviation value comprises:
[0046] Acquiring the gas supply time of the target gas, and calculating the proportional deviation value according to the reaction deviation value and a preset proportional gain factor;
[0047] Accumulating the reaction deviation value according to the gas supply time of the target gas to obtain an integral deviation value;
[0048] The change rate of the reaction deviation value is calculated, and the differential deviation value is calculated according to the change rate and a preset differential gain factor.
[0049] A second aspect of the present invention provides a gas supply control device for a gas storage device, wherein the gas storage device is applied to a reaction device, wherein the reaction device is built with a spectral sensor and a pressure sensor, and the gas supply control device for the gas storage device comprises:
[0050] An initial control module, used to determine the target gas stored in the gas storage device, determine a gas concentration detection model according to the target gas, and control the gas storage device to supply gas to the reaction device according to preset initial control parameters;
[0051] A data acquisition module, used to obtain the spectrum parameters of each reaction gas in the reaction device and the pressure parameters of the reaction device during the gas supply process of the gas storage device through the spectrum sensor and the pressure sensor respectively;
[0052] A model input module, used to input the spectral parameters of each reaction gas and the pressure parameter into the gas concentration detection model, wherein the gas concentration detection model includes a multimodal neural network sub-model and a detection sub-model corresponding to each reaction gas, and each detection sub-model is composed of a convolutional neural network and a bidirectional long short-term memory network;
[0053] A spectral feature extraction module, used to input the spectral parameters of each reaction gas into each detection sub-model corresponding to the gas concentration detection model, and obtain the spectral features of the corresponding reaction gas spectral parameters through the convolutional neural network in the corresponding detection sub-model;
[0054] A time series extraction module, used for inputting the spectral features into the bidirectional long short-term memory network of the detection sub-model, and extracting the time series information of the corresponding spectral parameters through the bidirectional long short-term memory network;
[0055] A concentration calculation module, used to calculate the gas concentration of each reaction gas according to the time series information of each reaction gas and the pressure parameter through the multimodal neural network sub-model;
[0056] A control parameter calculation module, used to calculate the gas supply parameters of the target gas according to the gas concentration of each reaction gas, and calculate the real-time control parameters of the gas storage device according to the gas supply parameters;
[0057] The real-time adjustment module is used to adjust the gas supply process of the gas storage device to the reaction equipment in real time according to the real-time control parameters.
[0058] The third aspect of the present invention provides a gas supply control device for a gas storage device, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via lines; the at least one processor calls the instructions in the memory so that the gas supply control device of the gas storage device executes the steps of the above-mentioned gas supply control method for the gas storage device.
[0059] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the steps of the above-mentioned gas supply control method for a gas storage device.
[0060] The gas supply control method, device, equipment and storage medium of the gas storage device described above determine the target gas stored in the gas storage device, determine the gas concentration detection model according to the target gas, and control the gas storage device to supply gas to the reaction device according to the preset initial control parameters; obtain the spectral parameters of each reaction gas and the pressure parameters of the reaction device during the gas supply process of the gas storage device through the spectral sensor and the pressure sensor respectively, and input them into the gas concentration detection model to calculate the gas concentration of each reaction gas; calculate the gas supply parameters of the target gas according to the gas concentration of each reaction gas, and calculate the real-time control parameters of the gas storage device according to the gas supply parameters to adjust the gas supply process in real time. This method uses sensors to obtain the spectral parameters and pressure parameters of each reaction gas in the reaction device, and combines the multimodal neural network sub-model and the detection sub-model to more accurately detect and calculate the concentration of the reaction gas.
[0061] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0062] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 It is a schematic diagram of a first embodiment of a gas supply control method for a gas storage device according to an embodiment of the present invention;
[0064] Figure 2 A schematic diagram of an embodiment of a gas supply control device for a gas storage device in an embodiment of the present invention;
[0065] Figure 3 Schematic diagram of an embodiment of a gas supply control device for a gas storage device in an embodiment of the present invention. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0067] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0068] To facilitate understanding of this embodiment, a gas supply control method for a gas storage device disclosed in an embodiment of the present invention is first described in detail. Figure 1 As shown, the gas storage device is applied to a reaction device, and the reaction device is built with a spectrum sensor and a pressure sensor. The method includes the following steps:
[0069] 101. Determine a target gas stored in a gas storage device, determine a gas concentration detection model according to the target gas, and control the gas storage device to supply gas to the reaction device according to a preset initial control parameter;
[0070] In one embodiment of the present invention, the target gas stored in the gas storage device is determined, usually according to the needs of the reaction equipment and the production process requirements. Some common target gases include hydrogen, oxygen, nitrogen, methane, ethylene, etc. For example, in chemical production, if a hydrogen reduction reaction is required, the gas storage device will store hydrogen as the target gas. Depending on the target gas, a corresponding gas concentration detection model can be selected to ensure that the gas concentration in the gas storage device meets the requirements. When controlling the gas storage device to supply gas, it is first necessary to set preset initial control parameters, such as gas supply time, gas supply rate, etc. The specific control method can be determined according to the type of gas storage device and the actual situation. For example, for a volumetric gas storage device, the gas supply amount can be controlled by adjusting the opening and closing time of the intake valve; for a pressure gas storage device, the gas supply pressure and flow rate can be controlled by controlling the start and stop of the compressor.
[0071] Furthermore, before determining the target gas stored in the gas storage device, determining the gas concentration detection model according to the target gas, and controlling the gas storage device to supply gas to the reaction equipment according to the preset initial control parameters, it also includes: obtaining training data of each reaction gas, wherein each reaction gas includes a first reaction gas and a second reaction gas, and the training data includes historical spectral parameters of the first reaction gas and the second reaction gas at each actual gas concentration and corresponding historical pressure parameters; initializing the first characteristic representation and the second characteristic representation of the first reaction gas and the second reaction gas; inputting each training data and the corresponding first characteristic representation or each training data and the corresponding second characteristic representation into the corresponding reaction gas In the initial sub-model, the input training data and the first feature representation or the input training data and the second feature representation are detected by the initial sub-model to obtain time series information corresponding to the first reaction gas and the second reaction gas respectively; the time series information corresponding to the first reaction gas and the second reaction gas are respectively input into the preset initial multimodal neural network model with the historical pressure parameter to obtain the current detection concentration of the first reaction gas and the second reaction gas; the preset loss function is calculated according to the current detection concentration of the first reaction gas and the second reaction gas and the actual gas concentration, and the loss function values of the first reaction gas and the second reaction gas are obtained respectively; the first reaction gas is judged and / or whether the loss function value of the second reaction gas is greater than a preset loss threshold; if the loss function value of the first reaction gas is greater than the preset loss threshold, the corresponding detection sub-model and the model parameters of the initial multimodal neural network model are updated according to the loss function value, the current detection concentration of the second reaction gas is used as the first feature representation, and the step of inputting each training data and the corresponding first feature representation / or second feature representation into the initial sub-model of the corresponding reaction gas is returned to, until the loss function value of the first reaction gas is not greater than the preset loss threshold; if the loss function value of the second reaction gas is greater than the preset loss threshold, the corresponding detection sub-model and the initial multimodal neural network are updated according to the loss function value. The method comprises the following steps: adjusting the model parameters of the network model, taking the current detection concentration of the first reaction gas as the second feature representation, and returning to the step of inputting each training data and the corresponding first feature representation / or second feature representation into the initial sub-model of the corresponding reaction gas, until the loss function value of the second reaction gas is not greater than the preset loss threshold; when the loss function value of the first reaction gas and / or the second reaction gas is not greater than the preset loss threshold, taking the corresponding initial sub-model as the detection sub-model, and taking the initial multimodal neural network model as the multimodal neural network sub-model; and forming a gas concentration detection model of each reaction gas according to the detection sub-model of the first reaction gas and the second reaction gas and the multimodal neural network sub-model.
[0072] Specifically, a certain chemical reaction between each reaction gas in the mixed reaction gas may have a certain impact on the stability of the model. At the same time, in order to improve the accuracy of model prediction, a link relationship is established during the training of different initial sub-models, so as to transform the single-output regression model into a multi-output regression model, and reduce the impact of possible reactions of the mixed gas from the perspective of mathematical iteration. When the concentration of the first reaction gas is predicted in the first round of iteration, the remaining reaction gases are regarded as the second reaction gas, and the current reaction gas concentration predicted by the initial sub-model of the second reaction gas is added as a new feature to the initial sub-model of the first reaction gas for training and prediction. The same is true for the second reaction gas, and the iterative operation is performed and so on. Each subsequent round of iteration uses the iterative output of the remaining reaction gases in the previous round as the feature of the new round. Since different reaction gases may affect each other, the detection result of one reaction gas is used as the input feature of another reaction gas, which can better utilize the correlation information between multiple reaction gases and improve the expression ability of the model. In addition, since the spectral responses of different reaction gases are different, using only the information of a single reaction gas may cause the model to be inaccurate in some cases. By using the correlation information between multiple reaction gases, the inaccuracy of the single reaction gas model can be compensated and the stability and robustness of the model can be improved. Finally, all the detection sub-models obtained by training will be used as the concentration detection model of the corresponding mixed reaction gas.
[0073] 102. Acquire, through a spectrum sensor and a pressure sensor, spectrum parameters of each reaction gas in the reaction device and pressure parameters of the reaction device during the gas supply process of the gas storage device;
[0074] In one embodiment of the present invention, a spectrum sensor can be used to obtain the spectrum parameters of each reaction gas in the reaction device during the gas supply process. It uses optical principles to detect the composition and concentration of the substance based on the absorption, emission or scattering characteristics of the substance to light of different wavelengths. During the gas supply process, the spectrum sensor will emit a beam of light, usually visible light or infrared light. When the emitted light passes through the gas in the reaction device, it will interact with the gas. Different gases have different absorption, emission or scattering characteristics for light of different wavelengths. The sensor will receive the light signal after the gas in the reaction device acts. By analyzing the received light signal, the spectrum parameters of each reaction gas, such as the intensity and wavelength of the absorption peak, can be determined. Based on these parameters, the composition and concentration of the reaction gas can be inferred. The pressure sensor is used to obtain the pressure parameters of the reaction device. It is based on the influence of pressure on the electrical signal generated by the sensor, and the pressure is determined by measuring this electrical signal. Before the gas supply, the pressure sensor can be installed at an appropriate position of the reaction device, usually at the gas inlet and outlet of the device. When the gas is supplied to the reaction device, the pressure sensor will sense the pressure change. The sensor will convert the sensed pressure change into a corresponding electrical signal. By measuring the size and changes of electrical signals, the pressure parameters in the reaction equipment, such as system pressure, gas flow, etc., can be determined.
[0075] 103. Inputting the spectral parameters and pressure parameters of each reaction gas into a gas concentration detection model, wherein the gas concentration detection model includes a multimodal neural network sub-model and a detection sub-model corresponding to each reaction gas, wherein each detection sub-model is composed of a convolutional neural network and a bidirectional long short-term memory network;
[0076] In one embodiment of the present invention, in the gas concentration detection model, a multimodal neural network sub-model and a detection sub-model corresponding to each reaction gas are used. Among them, each detection sub-model is composed of a convolutional neural network (CNN) and a bidirectional long short-term memory network (BiLSTM). Each reaction gas has a corresponding detection sub-model for processing the concentration detection of the gas alone. The sub-model mainly includes a convolutional neural network and a bidirectional long short-term memory network. Among them, the convolutional neural network (CNN) is mainly responsible for extracting spatial features from the input spectral parameters. The convolution layer extracts local features of different sizes by sliding windows, and then downsamples through the pooling layer to reduce the feature dimension and the number of parameters. The bidirectional long short-term memory network (BiLSTM) is mainly responsible for processing time series features, namely pressure parameters. Bidirectional LSTM can better capture time dependencies by considering past and future contextual information at the same time. It can effectively process sequence data and extract key time series features. Finally, by using a multimodal neural network sub-model combined with the timing characteristics and the pressure characteristics of the pressure parameters for comprehensive detection, the accurate concentration of each reaction gas can be obtained to control the gas supply process.
[0077] 104. Input the spectral parameters of each reaction gas into each detection sub-model corresponding to the gas concentration detection model, and obtain the spectral characteristics of the corresponding reaction gas spectral parameters through the convolutional neural network in the corresponding detection sub-model;
[0078] In one embodiment of the present invention, the convolutional neural network is a one-dimensional convolutional neural network, and the one-dimensional convolutional neural network includes an input layer, a convolution layer, an activation layer, a pooling layer, a fully connected layer and a first output layer;
[0079] The step of inputting the spectral parameters of each reaction gas into each detection sub-model corresponding to the gas concentration detection model, and obtaining the spectral characteristics of the corresponding reaction gas spectral parameters through the convolutional neural network in the corresponding detection sub-model includes: inputting the spectral parameters of each reaction gas into each detection sub-model corresponding to the gas concentration detection model, and receiving the spectral parameters of the corresponding reaction gas through the input layer of the convolutional neural network in the corresponding detection sub-model; performing convolution calculation on the spectral parameters through the convolutional layer to obtain a corresponding feature map; performing nonlinear transformation on the feature map through the activation layer, and reducing the feature dimension of the feature map through the pooling layer to obtain a processed feature map; expanding the processed feature map into a one-dimensional vector, performing feature integration on the one-dimensional vector through the fully connected layer to obtain a spectral feature, and outputting the spectral feature through the first output layer.
[0080] Specifically, in the input layer, the spectral parameters of the corresponding reaction gas are received as input. In the convolution layer, the input spectral parameters are convoluted. The convolution operation extracts local features at different positions by sliding windows, and then multiplies the features in each window by the corresponding convolution kernel element by element and sums them to obtain the corresponding convolution result. The convolution layer can use multiple convolution kernels to extract different features. In the activation layer, the output of the convolution layer is nonlinearly transformed. Common activation functions include ReLU (Rectified Linear Unit), etc., which activate positive values by setting negative values to zero to enhance the nonlinear fitting ability of the network. The pooling layer reduces the size and dimension of the feature map. The pooling operation can be implemented by maximum pooling or average pooling, which extracts the most significant features from each area of the input feature map, thereby reducing the number of parameters and retaining important feature information. The fully connected layer integrates the features of the output of the pooling layer. The fully connected layer expands the feature map output by the pooling layer into a one-dimensional vector, and implements the fully connected operation by connecting each neuron with all neurons in the previous layer. The fully connected layer can learn more advanced feature representations. Finally, the first output layer: outputs spectral features. The first output layer receives the output of the fully connected layer and outputs the corresponding spectral features, which can be used for subsequent concentration prediction or classification tasks.
[0081] 105. Input the spectral features into the bidirectional long short-term memory network of the detection sub-model, and extract the time series information of the corresponding spectral parameters through the bidirectional long short-term memory network;
[0082] In one embodiment of the present invention, the spectral features are input into the bidirectional long short-term memory (BiLSTM) network of the detection sub-model, and the time series information of the corresponding spectral parameters can be extracted through the BiLSTM network. BiLSTM is a recursive neural network structure, which is further extended on the basis of the traditional LSTM (long short-term memory) network, and has cyclic connections in both forward and backward directions. This bidirectional connection allows the network to take into account both past and future contextual information, thereby better capturing the dependencies in the time series. Specifically, the spectral features are used as the input sequence, and the BiLSTM network processes the input at each moment. During the forward propagation process, the network captures the past contextual information by traversing each moment of the input sequence and using the input at the current moment and the hidden state at the previous moment for calculation. During the backward propagation process, the network starts from the last moment of the sequence, traverses the reverse order of the input sequence, and uses the input at the current moment and the hidden state at the next moment for calculation, thereby capturing the future contextual information. Through the forward and backward propagation processes, the BiLSTM network can comprehensively consider the contextual information of the entire spectral feature sequence and encode it into a new representation vector. This representation vector contains the time series information of the corresponding spectral parameters and can be used for subsequent model prediction or classification tasks.
[0083] 106. Calculate the gas concentration of each reaction gas according to the time series information and pressure parameters of each reaction gas through the multimodal neural network sub-model;
[0084] In one embodiment of the present invention, the multimodal neural network sub-model includes an input layer, an attention mechanism layer, a feature fusion layer, a classification layer and a second output layer; the calculation of the gas concentration of each reaction gas according to the time series information of each reaction gas and the pressure parameter by the multimodal neural network sub-model includes: performing data preprocessing and data feature extraction on the pressure parameter through the input layer in the multimodal neural network sub-model to obtain pressure features; calculating the attention weight vectors of the pressure features and the time series information respectively through the attention mechanism layer; performing weighted fusion of the pressure features and the time series information according to the weight vector through the feature fusion layer to obtain a fused feature vector; mapping the fused feature vector to the concentration of the corresponding reaction gas through the classification layer to obtain the gas concentration of the corresponding reaction gas, and outputting the gas concentration of the corresponding reaction gas through the second output layer.
[0085] Specifically, in the input layer, the pressure parameters are first preprocessed, including data cleaning, normalization and other operations. Then, the pressure parameters are feature extracted using methods such as convolutional neural network (CNN) or fully connected neural network (FCN) to obtain pressure features. In the attention mechanism layer, the attention weight vectors of the pressure features and time series information are calculated respectively. The specific calculation method is to establish an attention mechanism between the pressure features and the time series information, and calculate the weight vector by calculating the correlation between them. Specifically, a multi-head self-attention mechanism (Multi-Head Self-Attention) or other attention mechanism methods can be used. In the feature fusion layer, the pressure features and the time series information are weightedly fused according to the attention weight vector to obtain a fused feature vector. Specifically, methods such as weighted average can be used. In the classification layer, the fused feature vector is mapped to the concentration of the corresponding reaction gas to obtain the gas concentration of the corresponding reaction gas. Specifically, methods such as fully connected layer and support vector machine can be used. Finally, the gas concentration of the corresponding reaction gas is output through the second output layer.
[0086] Furthermore, mapping the fused feature vector to the concentration of the corresponding reaction gas through the classification layer to obtain the gas concentration of the corresponding reaction gas, and outputting the gas concentration of the corresponding reaction gas through the second output layer includes: linearly transforming and mapping the fused feature vector to a high-dimensional feature space through the classification layer to obtain a linear transformation result; performing a nonlinear transformation on the linear transformation result through a preset activation function to obtain a nonlinear transformation result; mapping the nonlinear transformation result to the concentration of the corresponding reaction gas through the fully connected layer in the classification layer to obtain the gas concentration of the corresponding reaction gas, and outputting the gas concentration of the corresponding reaction gas through the second output layer.
[0087] Specifically, first, the fused feature vector is linearly transformed and mapped to a high-dimensional feature space. This process can be achieved through matrix multiplication, that is, the fused feature vector is multiplied by the weight matrix to obtain the linear transformation result. Then, the linear transformation result is nonlinearly transformed, and a preset activation function, such as ReLU, sigmoid, tanh, etc., can be used to process the linear transformation result to obtain the nonlinear transformation result. This process can be achieved by nonlinearly transforming the matrix elements one by one. Finally, the nonlinear transformation result is mapped to the concentration of the corresponding reaction gas through the fully connected layer to obtain the gas concentration of the corresponding reaction gas. Similar to the linear transformation, this process can also be achieved through matrix multiplication, that is, the nonlinear transformation result is multiplied by the weight matrix to obtain the concentration of the corresponding reaction gas. Note that the fully connected layer needs to set the correct hyperparameters such as the number of neurons and weight initialization method according to the specific problem. Finally, the gas concentration of the corresponding reaction gas is output in the second output layer. The second output layer can be implemented using a softmax function, a linear function, etc.
[0088] 107. Calculate the gas supply parameters of the target gas according to the gas concentration of each reaction gas, and calculate the real-time control parameters of the gas storage device according to the gas supply parameters;
[0089] In one embodiment of the present invention, the gas supply parameters of the target gas are calculated according to the gas concentrations of the reaction gases, and the real-time control parameters of the gas storage device are calculated according to the gas supply parameters, including: determining the real-time set value of the gas supply parameter according to a preset closed-loop control algorithm, and determining a reaction deviation value between the real-time set value and the reaction data; obtaining the gas supply time of the target gas, and calculating a reaction correction value for the reaction of the target gas according to the gas supply time and the reaction deviation value; and determining a control signal of the gas storage device according to the reaction correction value.
[0090] Specifically, first, the real-time set value of the gas supply parameter is determined by a preset closed-loop control algorithm. This process can be optimized and adjusted according to factors such as the demand for the target reaction and the current system state. Then, the reaction deviation value is determined according to the reaction deviation value between the real-time set value and the reaction data. The reaction deviation value can be calculated by comparing the difference between the real-time set value and the reaction data. After determining the reaction deviation value, the gas supply time of the target gas is obtained. Then, according to the gas supply time and the reaction deviation value, the reaction correction value of the target gas reaction is calculated. Specifically, the reaction correction value can be calculated using methods such as the PID (Proportional-Integral-Derivative) control algorithm. Finally, after calculating the reaction correction value, the control signal of the gas storage device, such as switching and adjusting the gas flow, is determined according to the reaction correction value. Specifically, the control signal can be determined according to factors such as the demand for the target gas and the system state.
[0091] Furthermore, the reaction correction value includes a proportional deviation value, an integral deviation value and a differential deviation value; the step of obtaining the gas supply time of the target gas and calculating the reaction correction value of the target gas according to the gas supply time and the reaction deviation value includes: obtaining the gas supply time of the target gas, and calculating the proportional deviation value according to the reaction deviation value and a preset proportional gain factor; accumulating the reaction deviation value according to the gas supply time of the target gas to obtain an integral deviation value; calculating the rate of change of the reaction deviation value, and calculating the differential deviation value according to the rate of change and a preset differential gain factor.
[0092] Specifically, a proportional-integral-differential (PID) control algorithm can be used as a closed-loop control algorithm. The control algorithm calculates correction values for three control modes, including proportional control, integral control, and differential control, corresponding to proportional deviation values, integral deviation values, and differential deviation values, respectively, wherein proportional control is adjusted according to the difference between the reaction data and the set value. Specifically, the reaction deviation is calculated based on the reaction data collected in real time, and then the deviation is multiplied by a preset proportional gain factor to obtain a proportional correction value, i.e., a control signal. Integral control is used to eliminate persistent static errors. It accumulates the reaction deviation and multiplies the accumulated error by a preset integral gain factor to obtain an integral correction value, which changes with time. Differential control is used to predict reaction trends and suppress over-regulation. It calculates the rate of change of the reaction deviation and multiplies the rate of change by a preset differential gain factor to obtain a differential correction value. Combining the above three control modes, the PID control algorithm can calculate the control signal in the following way:
[0093] Control signal = proportional correction value + integral correction value + differential correction value
[0094] In practical applications, it is necessary to adjust the proportional, integral and differential gain factors to balance the sensitivity, stability and anti-interference ability of the system response. By calculating the reaction data in real time and applying the PID control algorithm, the pumps and valves in the fluid path equipment can be dynamically adjusted according to the reaction state and the mixing and reaction process can be iteratively optimized.
[0095] 108. Adjust the gas supply process of the gas storage device to the reaction equipment in real time according to the real-time control parameters.
[0096] In one embodiment of the present invention, then, the reaction state is judged according to the real-time control parameters, such as whether the reaction reaches the ideal state, whether there are abnormal conditions, etc. This step can be judged in combination with a preset reaction model and empirical knowledge. After judging the reaction state, if it is found that the reaction state is not ideal or there are abnormal conditions, it is necessary to correct it by adjusting the gas supply process of the gas storage device to the reaction equipment. Specifically, the gas supply time, gas flow rate and pressure of the gas storage device can be adjusted according to information such as real-time control parameters and reaction models to achieve an ideal reaction state. After adjusting the gas supply process, it is necessary to monitor the changes in the reaction state in real time, and adjust the gas supply process in real time according to the feedback information. This step can be monitored in real time by sensors and other equipment, the monitoring results are transmitted to the control system, and the gas supply parameters of the gas storage device are adjusted according to the feedback information to achieve a more accurate and stable control effect.
[0097] In this embodiment, the target gas stored in the gas storage device is determined, the gas concentration detection model is determined according to the target gas, and the gas storage device is controlled to supply gas to the reaction device according to the preset initial control parameters; the spectral parameters of each reaction gas and the pressure parameters of the reaction device during the gas supply process of the gas storage device are obtained by the spectral sensor and the pressure sensor respectively, and the gas concentration of each reaction gas is calculated by inputting them into the gas concentration detection model; the gas supply parameters of the target gas are calculated according to the gas concentration of each reaction gas, and the real-time control parameters of the gas storage device are calculated according to the gas supply parameters to adjust the gas supply process in real time. This method uses sensors to obtain the spectral parameters and pressure parameters of each reaction gas in the reaction device, and combines the multimodal neural network sub-model and the detection sub-model to more accurately detect and calculate the concentration of the reaction gas.
[0098] The above describes the gas supply control method of the gas storage device in the embodiment of the present invention. The following describes the gas supply control device of the gas storage device in the embodiment of the present invention. The gas storage device is applied to a reaction device, and the reaction device is built with a spectral sensor and a pressure sensor. Figure 2 , an embodiment of the gas supply control device of the gas storage device in the embodiment of the present invention includes:
[0099] An initial control module 201 is used to determine the target gas stored in the gas storage device, determine a gas concentration detection model according to the target gas, and control the gas storage device to supply gas to the reaction device according to preset initial control parameters;
[0100] The data acquisition module 202 is used to obtain the spectrum parameters of each reaction gas in the reaction device and the pressure parameters of the reaction device during the gas supply process of the gas storage device through the spectrum sensor and the pressure sensor respectively;
[0101] A model input module 203, used to input the spectral parameters of each reaction gas and the pressure parameter into the gas concentration detection model, wherein the gas concentration detection model includes a multimodal neural network sub-model and a detection sub-model corresponding to each reaction gas, and each detection sub-model is composed of a convolutional neural network and a bidirectional long short-term memory network;
[0102] The spectral feature extraction module 204 is used to input the spectral parameters of each reaction gas into each detection sub-model corresponding to the gas concentration detection model, and obtain the spectral features of the corresponding spectral parameters of the reaction gas through the convolutional neural network in the corresponding detection sub-model;
[0103] A time series extraction module 205 is used to input the spectral features into the bidirectional long short-term memory network of the detection sub-model, and extract the time series information of the corresponding spectral parameters through the bidirectional long short-term memory network;
[0104] A concentration calculation module 206, configured to calculate the gas concentration of each reaction gas according to the time series information of each reaction gas and the pressure parameter through the multimodal neural network sub-model;
[0105] A control parameter calculation module 207, used to calculate the gas supply parameters of the target gas according to the gas concentration of each reaction gas, and calculate the real-time control parameters of the gas storage device according to the gas supply parameters;
[0106] The real-time adjustment module 208 is used to adjust the gas supply process of the gas storage device to the reaction equipment in real time according to the real-time control parameters.
[0107] In an embodiment of the present invention, the gas supply control device of the gas storage device runs the gas supply control method of the gas storage device, the gas supply control device of the gas storage device determines the target gas stored in the gas storage device, determines the gas concentration detection model according to the target gas, and controls the gas storage device to supply gas to the reaction device according to the preset initial control parameters; obtains the spectral parameters of each reaction gas and the pressure parameters of the reaction device during the gas supply process of the gas storage device through the spectral sensor and the pressure sensor respectively, and inputs them into the gas concentration detection model to calculate the gas concentration of each reaction gas; calculates the gas supply parameters of the target gas according to the gas concentration of each reaction gas, and calculates the real-time control parameters of the gas storage device according to the gas supply parameters to adjust the gas supply process in real time. This method uses sensors to obtain the spectral parameters and pressure parameters of each reaction gas in the reaction device, and combines the multimodal neural network sub-model and the detection sub-model to more accurately detect and calculate the concentration of the reaction gas.
[0108] above Figure 2The gas supply control device of the gas storage device in the embodiment of the present invention is described in detail from the perspective of modular functional entity, and the gas supply control device of the gas storage device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0109] Figure 3 3 is a schematic diagram of the structure of a gas supply control device for a gas storage device provided in an embodiment of the present invention. The gas supply control device 300 of the gas storage device may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 310 (for example, one or more processors) and a memory 320, and one or more storage media 330 (for example, one or more mass storage devices) storing application programs 333 or data 332. Among them, the memory 320 and the storage medium 330 may be short-term storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the gas supply control device 300 of the gas storage device. Furthermore, the processor 310 may be configured to communicate with the storage medium 330, and execute a series of instruction operations in the storage medium 330 on the gas supply control device 300 of the gas storage device to implement the steps of the gas supply control method of the gas storage device.
[0110] The gas supply control device 300 of the gas storage device may also include one or more power supplies 340, one or more wired or wireless network interfaces 350, one or more input and output interfaces 360, and / or one or more operating systems 331, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 3 The structure of the air supply control device of the air storage device shown does not constitute a limitation on the air supply control device of the air storage device provided by the present invention, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0111] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the gas supply control method of the gas storage device.
[0112] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0113] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0114] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A gas supply control method for a gas storage device, It is characterized in that The gas storage device is applied to a reaction device, wherein a spectrum sensor and a pressure sensor are built in the reaction device, and the gas supply control method of the gas storage device includes: Determining the target gas stored in the gas storage device, determining a gas concentration detection model according to the target gas, and controlling the gas storage device to supply gas to the reaction device according to preset initial control parameters; Acquiring, by means of the spectral sensor and the pressure sensor, spectral parameters of each reaction gas in the reaction device and pressure parameters of the reaction device during the gas supply process of the gas storage device; Inputting the spectral parameters of each reaction gas and the pressure parameters into the gas concentration detection model, wherein the gas concentration detection model includes a multimodal neural network sub-model and a detection sub-model corresponding to each reaction gas, and each detection sub-model is composed of a convolutional neural network and a bidirectional long short-term memory network; Inputting the spectral parameters of each reaction gas into each detection sub-model corresponding to the gas concentration detection model, and obtaining the spectral characteristics of the corresponding reaction gas spectral parameters through the convolutional neural network in the corresponding detection sub-model; Inputting the spectral features into the bidirectional long short-term memory network of the detection sub-model, and extracting the time series information of the corresponding spectral parameters through the bidirectional long short-term memory network; Calculating the gas concentration of each reaction gas according to the time series information of each reaction gas and the pressure parameter through the multimodal neural network sub-model; Calculating the gas supply parameters of the target gas according to the gas concentration of each reaction gas, and calculating the real-time control parameters of the gas storage device according to the gas supply parameters; According to the real-time control parameters, the gas supply process of the gas storage device to the reaction equipment is adjusted in real time; Before determining the target gas stored in the gas storage device, determining the gas concentration detection model according to the target gas, and controlling the gas storage device to supply gas to the reaction device according to the preset initial control parameters, the method further includes: obtaining training data of each reaction gas, wherein each reaction gas includes a first reaction gas and a second reaction gas, and the training data includes historical spectral parameters and corresponding historical pressure parameters of the first reaction gas and the second reaction gas at each actual gas concentration; initializing a first characteristic representation and a second characteristic representation of the first reaction gas and the second reaction gas; inputting each training data and the corresponding first characteristic representation or each training data and the corresponding second characteristic representation into the initial sub-data of the corresponding reaction gas; In the model, the concentration of the input training data and the first characteristic representation or the input training data and the second characteristic representation is detected by the initial sub-model to obtain the time series information corresponding to the first reaction gas and the second reaction gas respectively; the time series information corresponding to the first reaction gas and the second reaction gas and the historical pressure parameter are respectively input into the preset initial multimodal neural network model to obtain the current detection concentration of the first reaction gas and the second reaction gas; the preset loss function is calculated according to the current detection concentration of the first reaction gas and the second reaction gas and the actual gas concentration, and the loss function values of the first reaction gas and the second reaction gas are respectively obtained; it is judged that the first reaction gas and / or whether the loss function value of the second reaction gas is greater than a preset loss threshold; if the loss function value of the first reaction gas is greater than the preset loss threshold, the model parameters of the corresponding detection sub-model and the initial multimodal neural network model are updated according to the loss function value, the current detection concentration of the second reaction gas is used as the first feature representation, and the step of inputting each training data and the corresponding first feature representation / or second feature representation into the initial sub-model of the corresponding reaction gas is returned to, until the loss function value of the first reaction gas is not greater than the preset loss threshold; if the loss function value of the second reaction gas is greater than the preset loss threshold, the corresponding detection sub-model and the initial multimodal neural network model are updated according to the loss function value. The model parameters of the type are set, the current detection concentration of the first reaction gas is used as the second characteristic representation, and the step of inputting each training data and the corresponding first characteristic representation / or second characteristic representation into the initial sub-model of the corresponding reaction gas is returned, until the loss function value of the second reaction gas is not greater than the preset loss threshold; when the loss function value of the first reaction gas and / or the second reaction gas is not greater than the preset loss threshold, the corresponding initial sub-model is used as the detection sub-model, and the initial multimodal neural network model is used as the multimodal neural network sub-model; according to the detection sub-models of the first reaction gas and the second reaction gas and the multimodal neural network sub-model, a gas concentration detection model of each reaction gas is formed.
2. The gas supply control method of the gas storage device according to claim 1, It is characterized in that The convolutional neural network is a one-dimensional convolutional neural network, which includes an input layer, a convolution layer, an activation layer, a pooling layer, a fully connected layer and a first output layer; The step of inputting the spectral parameters of each reaction gas into each detection sub-model corresponding to the gas concentration detection model, and obtaining the spectral characteristics of the corresponding spectral parameters of the reaction gas through the convolutional neural network in the corresponding detection sub-model includes: Inputting the spectral parameters of each reaction gas into each detection sub-model corresponding to the gas concentration detection model, and receiving the spectral parameters of the corresponding reaction gas through the input layer of the convolutional neural network in the corresponding detection sub-model; Performing convolution calculation on the spectral parameters through the convolution layer to obtain a corresponding feature map; Performing a nonlinear transformation on the feature map through the activation layer, and reducing the feature dimension of the feature map through the pooling layer to obtain a processed feature map; The processed feature map is expanded into a one-dimensional vector, the one-dimensional vector is feature integrated through the fully connected layer to obtain a spectral feature, and the spectral feature is output through the first output layer.
3. The gas supply control method of the gas storage device according to claim 1, It is characterized in that The multimodal neural network sub-model includes an input layer, an attention mechanism layer, a feature fusion layer, a classification layer and a second output layer; The calculating the gas concentration of each reaction gas according to the time series information of each reaction gas and the pressure parameter by the multimodal neural network sub-model includes: Performing data preprocessing and data feature extraction on the pressure parameter through the input layer in the multimodal neural network sub-model to obtain a pressure feature; Calculate the attention weight vectors of the pressure feature and the time series information respectively through the attention mechanism layer; Performing weighted fusion of the pressure feature and the time series information according to the weight vector through the feature fusion layer to obtain a fused feature vector; The fused feature vector is mapped to the concentration of the corresponding reaction gas through the classification layer to obtain the gas concentration of the corresponding reaction gas, and the gas concentration of the corresponding reaction gas is output through the second output layer.
4. The gas supply control method of the gas storage device according to claim 3, It is characterized in that Mapping the fused feature vector to the concentration of the corresponding reaction gas through the classification layer to obtain the gas concentration of the corresponding reaction gas, and outputting the gas concentration of the corresponding reaction gas through the second output layer includes: Mapping the fused feature vector linearly to a high-dimensional feature space through the classification layer to obtain a linear transformation result; Performing a nonlinear transformation on the linear transformation result through a preset activation function to obtain a nonlinear transformation result; The nonlinear transformation result is mapped to the concentration of the corresponding reaction gas through the fully connected layer in the classification layer to obtain the gas concentration of the corresponding reaction gas, and the gas concentration of the corresponding reaction gas is output through the second output layer.
5. The gas supply control method of the gas storage device according to claim 1, It is characterized in that The step of calculating the gas supply parameters of the target gas according to the gas concentration of each reaction gas, and calculating the real-time control parameters of the gas storage device according to the gas supply parameters includes: Determining a real-time set value of the gas supply parameter according to a preset closed-loop control algorithm, and determining a reaction deviation value between the real-time set value and the reaction data; Acquiring a gas supply time of the target gas, and calculating a reaction correction value of the target gas according to the gas supply time and the reaction deviation value; A control signal of the gas storage device is determined according to the reaction correction value.
6. The gas supply control method of the gas storage device according to claim 4, It is characterized in that The reaction correction value includes a proportional deviation value, an integral deviation value and a differential deviation value; The step of obtaining the gas supply time of the target gas and calculating the reaction correction value of the target gas according to the gas supply time and the reaction deviation value comprises: Acquiring the gas supply time of the target gas, and calculating the proportional deviation value according to the reaction deviation value and a preset proportional gain factor; Accumulating the reaction deviation value according to the gas supply time of the target gas to obtain an integral deviation value; The change rate of the reaction deviation value is calculated, and the differential deviation value is calculated according to the change rate and a preset differential gain factor.
7. A gas supply control device for a gas storage device, It is characterized in that The gas storage device is applied to a reaction device, in which a spectrum sensor and a pressure sensor are built-in, and the gas supply control device of the gas storage device includes: An initial control module, used to determine the target gas stored in the gas storage device, determine a gas concentration detection model according to the target gas, and control the gas storage device to supply gas to the reaction device according to preset initial control parameters; A data acquisition module, used to obtain the spectrum parameters of each reaction gas in the reaction device and the pressure parameters of the reaction device during the gas supply process of the gas storage device through the spectrum sensor and the pressure sensor respectively; A model input module, used to input the spectral parameters of each reaction gas and the pressure parameter into the gas concentration detection model, wherein the gas concentration detection model includes a multimodal neural network sub-model and a detection sub-model corresponding to each reaction gas, and each detection sub-model is composed of a convolutional neural network and a bidirectional long short-term memory network; A spectral feature extraction module, used to input the spectral parameters of each reaction gas into each detection sub-model corresponding to the gas concentration detection model, and obtain the spectral features of the corresponding reaction gas spectral parameters through the convolutional neural network in the corresponding detection sub-model; A time series extraction module, used for inputting the spectral features into the bidirectional long short-term memory network of the detection sub-model, and extracting the time series information of the corresponding spectral parameters through the bidirectional long short-term memory network; A concentration calculation module, used to calculate the gas concentration of each reaction gas according to the time series information of each reaction gas and the pressure parameter through the multimodal neural network sub-model; A control parameter calculation module, used to calculate the gas supply parameters of the target gas according to the gas concentration of each reaction gas, and calculate the real-time control parameters of the gas storage device according to the gas supply parameters; A real-time adjustment module, used for adjusting the gas supply process of the gas storage device to the reaction equipment in real time according to the real-time control parameters; Before determining the target gas stored in the gas storage device, determining the gas concentration detection model according to the target gas, and controlling the gas storage device to supply gas to the reaction device according to the preset initial control parameters, the method further includes: obtaining training data of each reaction gas, wherein each reaction gas includes a first reaction gas and a second reaction gas, and the training data includes historical spectral parameters and corresponding historical pressure parameters of the first reaction gas and the second reaction gas at each actual gas concentration; initializing a first characteristic representation and a second characteristic representation of the first reaction gas and the second reaction gas; inputting each training data and the corresponding first characteristic representation or each training data and the corresponding second characteristic representation into the initial sub-data of the corresponding reaction gas; In the model, the concentration of the input training data and the first characteristic representation or the input training data and the second characteristic representation is detected by the initial sub-model to obtain the time series information corresponding to the first reaction gas and the second reaction gas respectively; the time series information corresponding to the first reaction gas and the second reaction gas and the historical pressure parameter are respectively input into the preset initial multimodal neural network model to obtain the current detection concentration of the first reaction gas and the second reaction gas; the preset loss function is calculated according to the current detection concentration of the first reaction gas and the second reaction gas and the actual gas concentration, and the loss function values of the first reaction gas and the second reaction gas are respectively obtained; it is judged that the first reaction gas and / or whether the loss function value of the second reaction gas is greater than a preset loss threshold; if the loss function value of the first reaction gas is greater than the preset loss threshold, the model parameters of the corresponding detection sub-model and the initial multimodal neural network model are updated according to the loss function value, the current detection concentration of the second reaction gas is used as the first feature representation, and the step of inputting each training data and the corresponding first feature representation / or second feature representation into the initial sub-model of the corresponding reaction gas is returned to, until the loss function value of the first reaction gas is not greater than the preset loss threshold; if the loss function value of the second reaction gas is greater than the preset loss threshold, the corresponding detection sub-model and the initial multimodal neural network model are updated according to the loss function value. The model parameters of the type are set, the current detection concentration of the first reaction gas is used as the second characteristic representation, and the step of inputting each training data and the corresponding first characteristic representation / or second characteristic representation into the initial sub-model of the corresponding reaction gas is returned, until the loss function value of the second reaction gas is not greater than the preset loss threshold; when the loss function value of the first reaction gas and / or the second reaction gas is not greater than the preset loss threshold, the corresponding initial sub-model is used as the detection sub-model, and the initial multimodal neural network model is used as the multimodal neural network sub-model; according to the detection sub-models of the first reaction gas and the second reaction gas and the multimodal neural network sub-model, a gas concentration detection model of each reaction gas is formed.
8. A gas supply control device for a gas storage device, It is characterized in that The gas supply control device of the gas storage device comprises: a memory and at least one processor, wherein the memory stores instructions; The at least one processor calls the instructions in the memory to enable the gas supply control device of the gas storage device to execute the steps of the gas supply control method for the gas storage device as described in any one of claims 1-6.
9. A computer-readable storage medium having instructions stored thereon, It is characterized in that When the instructions are executed by the processor, the steps of the gas supply control method for the gas storage device as described in any one of claims 1-6 are implemented.
