A mixed gas identification method, system, terminal device and readable storage medium

Through one-dimensional convolution and neural network technology, the types and concentrations of complex mixed gases are identified and predicted, which solves the challenging problems of identification and prediction in the existing technology and achieves efficient identification and prediction effects in practical applications.

CN114707598BInactive Publication Date: 2024-09-06XI AN JIAOTONG UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210335225.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

It is difficult for existing technologies to effectively identify and predict the types and concentrations of complex and random gas mixtures in practical applications, especially when the reaction is not fully recovered, resulting in identification challenges and inaccuracies.

Method used

A mixed gas identification method is used to obtain multi-channel one-dimensional time series data, perform one-dimensional convolution operations and pooling, and combine convolutional neural networks and recurrent neural networks to achieve mixed gas type identification and real-time concentration prediction.

Benefits of technology

It realizes mixed gas type identification and concentration prediction under random conditions, improves the identification accuracy and prediction effect, and is especially better than traditional methods in natural gas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114707598B
    Figure CN114707598B
Patent Text Reader

Abstract

The present invention discloses a mixed gas identification method, system, terminal device and storage medium, including: obtaining multi-channel one-dimensional time series data of mixed gas; performing one-dimensional convolution operation on the multi-channel one-dimensional time series data, splicing the features after the one-dimensional convolution operation, and extracting the overall features; performing convolution and pooling operations on the overall features to obtain feature extraction results; identifying the type of mixed gas from the result of feature extraction; using convolutional neural networks and recurrent neural networks to predict the concentration of mixed gas in real time. The present invention can automatically extract features and classify the extracted features to identify the type of mixed gas for the one-dimensional convolutional neural network mixed gas type identification method under random conditions, without separating feature extraction and classification training. The present invention labels gas types in a multi-label manner, reducing the dimensional space brought by a single-label method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of gas identification, and relates to a mixed gas identification method, system, terminal equipment and storage medium. Background Art

[0002] The intelligent gas identification system is a system that uses the olfactory perception mechanism of animals or humans to achieve qualitative and quantitative analysis of the detected gas. With the vigorous development of society, the industrial field has grown rapidly, and gas identification technology has also developed rapidly. It can detect gases quickly and accurately, and plays an important role in many fields of society, including industrial pollution monitoring, food safety, and medical fields. The system generates electrical signals by adsorbing gas molecules through sensors, and uses AD conversion circuits to quantify and collect electrical signals to complete feature extraction, and finally completes gas category identification and concentration determination. As an important clean energy, natural gas has a wide range of uses in the chemical and fuel fields. In the process of striving for efficient, clean and diversified use of natural gas, the quality of natural gas affects every aspect of subsequent processing. Therefore, the analysis of the gas composition content in natural gas is helpful for natural gas development and transportation, as well as further processing and full utilization of energy. Natural gas is a mixture of the vast majority of methane, a small amount of ethane, propane and other alkane gases, and a small amount of impurity gases.

[0003] In recent years, many studies on mixed gas identification have emerged, and these studies have also achieved relatively good results in the identification of mixed gas types. However, these studies are generally carried out under relatively stable conditions, and most of the input data use stable characteristics such as response time, recovery time or sensitivity in the sensor array, and use some mainstream classification methods after simple data processing, and finally achieve good recognition results. However, to apply these research results to actual production and life, there are still the following two problems: 1) In practical applications, the form and concentration of mixed gases are complex, random and irregular; 2) There are relatively few studies on real-time prediction of mixed gas concentration in previous work, and more are concentration predictions of complete gas reaction processes. 3) In recent years, research on mixed gas concentration prediction has never stopped. However, this work is a regular periodic continuous reaction under laboratory conditions, and the results obtained are relatively ideal and well-founded. In real life, the concentration values ​​of gases are often random. When using an intelligent gas identification system for identification, the reaction may not be complete and the recovery reaction begins again. In this case, the prediction of concentration values ​​is more challenging and practical. Summary of the invention

[0004] The purpose of the present invention is to solve the problems in the prior art and to provide a mixed gas identification method, system, terminal device and storage medium, which can identify the type and detect the concentration of mixed gas under random conditions.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] A mixed gas identification method comprises the following steps:

[0007] Acquire multi-channel one-dimensional time series data of mixed gas;

[0008] Perform one-dimensional convolution operation on multi-channel one-dimensional time series data, concatenate the features after the one-dimensional convolution operation, and extract the overall features; perform convolution and pooling operations on the overall features to obtain the result of feature extraction;

[0009] Using multi-label classification method, the type of mixed gas is identified from the feature extraction results;

[0010] A regression model is established, and convolutional neural networks and recurrent neural networks are used to make real-time predictions on the concentration of mixed gases based on the type of mixed gases and the results of feature extraction.

[0011] The above method is further improved in that:

[0012] The method of obtaining multi-channel one-dimensional time series data of mixed gas through a gas sensor array includes:

[0013] Multi-channel one-dimensional time series data of mixed gases are obtained through a gas sensor array.

[0014] The one-dimensional convolution operation is specifically as follows:

[0015] The one-dimensional convolution equation is as follows:

[0016]

[0017] Among them, A is the input sequence, and the dimension of the input sequence A is (1, N a ), B is the convolution kernel, and the dimension of convolution kernel B is (1,N b ), C(j) represents the result of the convolution of the jth neuron, and 1≤j≤N a -N b +1; n represents the size of each convolution kernel. The weights are initialized using Xavier initialization. The uniform distribution of Xavier initialization is as follows:

[0018]

[0019] Among them, W represents uniform distribution, U represents the sampling range, and m and n are the number of input units and output units in each layer.

[0020] The multi-label classification method is specifically as follows:

[0021] Prediction of target gas pre as follows:

[0022] y pre =sigmoid(W T h+b) (3)

[0023] Among them, sigmoid() represents the activation function, W T represents the weight of the second hidden layer, T represents the transposed matrix, h represents the network input, and b represents the bias term;

[0024] The output of the sigmoid function is used as the classification result. The threshold value of 0.5 is used as the judgment criterion for the output result. The predicted value label with an output value higher than 0.5 is set to 1, and if it is lower than 0.5, it is set to 0. The Log loss of the two-class model is as follows:

[0025]

[0026] Among them, c i is the category, y(c i ) is the true label, N is the number of classifiers, y pre (c i ) and q(c i ) are respectively category c i The probability of positive prediction and negative prediction is calculated, and finally the average of the classifier's Log loss value is taken as the final loss value.

[0027] The identifying the type of the mixed gas includes:

[0028] The results of automatic feature extraction are input into a multilayer perceptron to identify the type of mixed gas; wherein the multilayer perceptron is composed of a full connection.

[0029] The real-time prediction of the concentration of the mixed gas includes:

[0030] The original time series data is combined, and meaningful high-level features are selected. The high-level features output by the convolutional neural network CNN are input into the recurrent neural network RNN ​​layer. The recurrent neural network RNN ​​is used to analyze these high-level features in the time dimension and screen out the most suitable features for time prediction. The screened feature vectors are spliced ​​into a fully connected method for linear regression calculation to finally obtain the predicted concentration value.

[0031] A mixed gas identification system, comprising:

[0032] A data acquisition module, used to obtain multi-channel one-dimensional time series data of mixed gas;

[0033] The feature extraction module is used to perform one-dimensional convolution operation on multi-channel one-dimensional time series data, concatenate the features after the one-dimensional convolution operation, and extract the overall features; perform convolution and pooling operations on the overall features to obtain the result of feature extraction;

[0034] A type recognition module is used to identify the type of mixed gas from the result of feature extraction using a multi-label classification method;

[0035] The concentration prediction module is used to establish a regression model, using convolutional neural networks and recurrent neural networks to make real-time predictions on the concentration of mixed gases based on the type of mixed gases and the results of feature extraction.

[0036] A terminal device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0037] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0038] Compared with the prior art, the present invention has the following beneficial effects:

[0039] The present invention is a one-dimensional convolutional neural network 1D-DCNN mixed gas type recognition method for random conditions, which is implemented based on the multi-label method of the one-dimensional convolutional neural network. The method can automatically extract features and classify the extracted features to identify the types of mixed gases. It is not necessary to separate feature extraction and classification training, and is an end-to-end classifier. Secondly, the present invention marks the gas types in a multi-label manner, reducing the dimensional space brought by the single-label method. The convolutional neural network and the recurrent neural network (convolutional neural network CNN-recurrent neural network RNN) of the present invention use the convolutional neural network to first combine the original response data into more meaningful and higher-level features, and then use the recurrent neural network RNN ​​to establish a regression prediction model for the output features of the convolutional neural network CNN, thereby realizing the type recognition and real-time prediction of the concentration of mixed gases under random conditions. Finally, the convolutional neural network CNN-lstm of the present invention can achieve better prediction effects than ESN and LR in the real-time prediction of the concentration of mixed natural gas. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0041] Figure 1 The figure is a flow chart of the mixed gas identification method of the present invention.

[0042] Figure 2 Schematic diagram of the mixed gas identification system of the present invention.

[0043] Figure 3 It is the overall network framework diagram of the one-dimensional convolutional neural network 1D-DCNN of the present invention.

[0044] Figure 4 Schematic diagram of one-dimensional convolution of the present invention.

[0045] Figure 5 This is the overall framework diagram of the convolutional neural network CNN-recurrent neural network RNN ​​of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0047] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. 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.

[0048] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0049] In the description of the embodiments of the present invention, it should be noted that if the terms "upper", "lower", "horizontal", "inner", etc. indicate an orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the product of the invention is usually placed when in use, it is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0050] In addition, if the term "horizontal" appears, it does not mean that the component must be absolutely horizontal, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", which does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0051] In the description of the embodiments of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0052] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0053] See also Figure 1 The embodiment of the present invention discloses a mixed gas identification method, comprising the following steps:

[0054] S1, obtain multi-channel one-dimensional time series data of mixed gas through a gas sensor array;

[0055] S2, the one-dimensional time series data obtained by the sensor is used as the input of the automatic feature extraction part. The one-dimensional convolution operation of the automatic feature part is used on each sensor, and then the features after convolution are concatenated together as the overall feature. Finally, after convolution and pooling operations, it is used as the input of step three;

[0056] S3, the result obtained by automatic feature extraction is used as the input of the classification part. The classification part is mainly composed of the residual layer fully connected to form a multi-layer perceptron MLP. The features extracted in the final convolution stage enter the multi-layer perceptron MLP to identify the types of mixed gases one by one.

[0057] S4, through the convolutional neural networks of S2 and S3, the original response data is first combined into more meaningful, higher-level features, and then the recurrent neural network RNN ​​is used to establish a regression model for the output features of the convolutional neural network CNN, thereby realizing real-time concentration prediction. First, the convolutional neural network CNN mainly combines the original time series data and selects meaningful high-level features at the same time, inputs the high-level features output by the convolutional neural network CNN into the recurrent neural network RNN ​​layer, and uses the recurrent neural network RNN ​​to analyze these high-level features in the time dimension to select the most suitable features for time prediction. Finally, the selected feature vectors are spliced ​​into a fully connected method for linear regression calculation, and the predicted concentration value is finally obtained.

[0058] like Figure 2 As shown, an embodiment of the present invention discloses a mixed gas identification system, including:

[0059] A data acquisition module, used to obtain multi-channel one-dimensional time series data of mixed gas;

[0060] The feature extraction module is used to perform one-dimensional convolution operation on multi-channel one-dimensional time series data, concatenate the features after the one-dimensional convolution operation, and extract the overall features; perform convolution and pooling operations on the overall features to obtain the result of feature extraction;

[0061] A type recognition module is used to identify the type of mixed gas from the result of feature extraction using a multi-label classification method;

[0062] The concentration prediction module is used to establish a regression model, using convolutional neural networks and recurrent neural networks to make real-time predictions on the concentration of mixed gases based on the type of mixed gases and the results of feature extraction.

[0063] The principle of the present invention is as follows:

[0064] The present invention provides a method for identifying the type of mixed gas using a one-dimensional convolutional neural network 1D-DCNN under random conditions, and the method is implemented based on a multi-label method of a one-dimensional convolutional neural network. The present invention can automatically extract features and classify the extracted features to identify the type of mixed gas, and does not need to separate feature extraction and classification training. It is an end-to-end classifier. The specific principle of the proposed one-dimensional convolutional neural network 1D-DCNN and the experimental verification and comparison results will be described in detail below.

[0065] like Figure 3 As shown, Figure 3The present invention is based on a one-dimensional convolutional neural network 1D-DCNN deep learning framework, which consists of two parts: a feature extraction part and a classification part. In the feature extraction part, the convolution operation, batch normalization operation and activation function are regarded as a convolution stage, and the automatic feature extraction part is composed of several convolution stages; and the classification part is a multi-layer perceptron MLP network.

[0066] The present invention is further described in detail below:

[0067] (1) Feature extraction

[0068] In contrast to traditional convolutional neural networks (CNNs), the response of mixed gases in gas sensors is a one-dimensional time series rather than a two-dimensional image pixel. Also, unlike image recognition, the response of the gas sensor array is horizontally correlated rather than vertically and horizontally correlated on a two-dimensional image. Therefore, a one-dimensional convolution operation can be used on the one-dimensional response of each sensor. Next, the features obtained after convolution are concatenated together to further extract the overall features of different sensors, which can increase the selectivity of the gas sensor array. Subsequently, a relatively small number of convolution kernels (64 or 128) is applied and the number of layers of the model (i.e., the number of convolution stages) is increased to improve the generalization performance of the model.

[0069] In addition, a Dropout layer is inserted between the third and fourth convolution stages, which can randomly reduce the number of neurons in the third convolution stage, thereby reducing overfitting and improving computational efficiency during model training. In the entire network framework, only one pooling operation (average pooling) is used after the last convolution stage, which can downsample the number of extracted features to 1 / 3 of the original number and remove redundant features in the fourth convolution stage. The response of the gas sensor is continuous and correlated in the time domain. The average pooling operation can be used to process values ​​at different adjacent positions on different feature maps and ensure the continuity of the downsampled features.

[0070] (2) Classification

[0071] The remaining layers of the one-dimensional convolutional neural network 1D-DCNN are fully connected to form a multi-layer perceptron MLP. The features extracted in the final convolution stage enter the multi-layer perceptron MLP to identify the types of mixed gases one by one. Since the computational complexity of the multi-layer perceptron MLP fully connected occupies the main computational amount of the overall one-dimensional convolutional neural network 1D-DCNN, in order to keep its computational complexity at an appropriate level, the number of neurons of the multi-layer perceptron MLP is reduced to 64 and 32. In addition, the ReLU function is used as their activation function, and a dropout operation is inserted before the first fully connected layer to improve computational efficiency and reduce overfitting. Finally, in the output layer, 3 neurons and sigmoid functions are used to output the probabilities of 3 multi-label categories. The solution to multi-label classification will be introduced in detail later.

[0072] (3) Convolution stage

[0073] The convolution stage of the one-dimensional convolutional neural network 1D-DCNN is composed of some operations, such as convolution operation, batch normalization operation and nonlinear function activation. As described above, the convolution operation is composed of a series of one-dimensional convolution kernels. Among them, the sizes of the convolution kernels in the four convolution stages are 1×16×8, 1×3×64, 1×3×64 and 1×3×128, where 8, 64, 64 and 128 are the number of convolution kernels. The details of the one-dimensional convolution operation are as follows Figure 4 As shown, similar to the traditional two-dimensional convolution, assuming that the input sequence A has dimensions (1, N a ) and the convolution kernel B has dimensions (1,N b ), the one-dimensional convolution equation can be expressed as follows:

[0074]

[0075] Among them, 1≤j≤N a -N b +1, and C(j) represents the result of the convolution of the jth neuron. Since weight initialization strongly affects the performance of the model and its generalization ability, Xavier initialization is used as a weight initialization method. It is an effective neural network initialization method because it can make the variance of each layer close to equal, thereby optimizing the information flow. The uniform distribution of Xavier initialization can be expressed as follows:

[0076]

[0077] Among them, m and n are the number of input units and output units in each layer.

[0078] Batch Normalization and Activation Function: Batch Normalization can effectively improve the performance of each layer with nonlinear sigmoid activation function, so batch normalization is performed in each layer structure. At the same time, adding batch normalization layer can not only speed up the training process, but also reduce the occurrence of overfitting, especially in relatively small data sets. As for the activation function, similar to the traditional convolutional neural network CNN, the ReLU equation is used as the activation function in each convolution stage.

[0079] (4) Multi-label classification method

[0080] As the number of mixed gas components increases, the types of gas mixtures will increase exponentially, and if the label is represented in the form of one-hot, the dimension of the label will become abnormally large. For example, assuming a mixed gas containing n components, the label dimension using the one-hot form is, while the label dimension value is n when using a multi-label approach. In the end, a multi-label form is adopted in the label form, which reduces the overall computational complexity caused by the large label dimension. The present invention adopts a problem transformation method to solve the multi-label problem, and converts the multi-label classification into multiple binary classifications. As shown in Table 1, the data set has 6 kinds of multi-label mixtures, where "1" indicates the presence of the corresponding gas and [0,0,0] indicates that no measured gas appears and only background gas (such as air) appears. Here, the multi-label classification is divided into three classifications containing only single labels: and Because the labels of the mixed gas dataset are independent, the transformation of the three binary classification problems can be achieved by the sigmoid activation function, which can be better combined with the convolutional neural network (CNN) expansion method.

[0081] Table 1. Examples of mixed gas multi-label data

[0082]

[0083] The output of the one-dimensional convolutional neural network 1D-DCNN is shown in formula (3):

[0084] y pre =sigmoid(W T h+b) (3)

[0085] where y pre represents the prediction of the target gas, W T Indicates the weight of the second hidden layer. In the output layer, the output of the sigmoid function is used as the result of the three classifiers. At the same time, the threshold of 0.5 is used as the judgment criterion for the output result. The predicted value label is set to 1 if the output value is higher than 0.5, and it is set to 0 if it is lower than 0.5.

[0086] The loss value of the model, the Log loss of the three binary classifications is modified to formula (4):

[0087]

[0088] Among them, y(c i ) is the true label, N is the number of classifiers, y pre (c i ) and q(c i ) are respectively category c i The probability of positive prediction and negative prediction is finally taken as the average of the Log loss values ​​of the three classifiers as the final loss value.

[0089] The present invention predicts and analyzes the concentration values ​​of each component of the mixed gas under the random distribution of the concentration values ​​of each component in the mixed gas, and mainly studies the real-time prediction of the concentration of the mixed gas. Since deep learning has achieved good results in multivariate time series prediction, a model is established using the observed time series to predict the new time series trend. Deep neural network methods such as recurrent neural network RNN, a model combining recurrent neural network with dynamic Boltzmann machine, and a model combining ARIMA and multilayer perceptron MLP have all achieved good results in predicting time series. Since the response curve of the mixed gas also belongs to the time series, a recurrent neural network can be used to establish a regression model of response value and concentration label when the concentration of the mixed gas is predicted in real time. The concentration of the mixed gas is linearly related to the response value of the gas under low conditions, but as the concentration increases, the two will show a nonlinear relationship. Therefore, for a data set with nonlinearity, it can be mapped to a high-dimensional space, and then a regression model is established by a regression method to predict and estimate the new data. From the one-dimensional convolutional neural network, we can know that the convolutional neural network can be used to first combine the original response data into more meaningful, higher-level features, and then use the recurrent neural network RNN ​​to establish a regression prediction model for the output features of the convolutional neural network CNN, thereby realizing real-time prediction of concentration.

[0090] The present invention designs a novel convolutional neural network and recurrent neural network (CNN-RNN) framework, designs the framework and loss function of the convolutional neural network and recurrent neural network parts respectively, and sets a comparison method and analyzes the experimental results. The structure proposed by the present invention is as follows Figure 5 As shown in the figure, it mainly consists of three parts: convolutional neural network (CNN), recurrent neural network (RNN) and fully connected linear regression layer. First, the convolutional neural network (CNN) mainly transforms the original time series data x tThe combination selects meaningful high-level features at the same time, inputs the high-level features output by the convolutional neural network CNN into the recurrent neural network RNN ​​layer, uses the recurrent neural network RNN ​​to analyze these high-level features in the time dimension, and selects the most suitable features for time prediction. Finally, the selected feature vectors are spliced ​​into a fully connected way for linear regression calculation, and the predicted output value y is finally obtained. pre .

[0091] The network structure of the present invention is described in detail below:

[0092] (1) Convolutional Neural Network (CNN)

[0093] Considering that the recurrent neural network RNN ​​is used for processing on the time axis later, the mixed gas response of multiple variables is processed by two-dimensional convolution, and the original multi-sensor response data is convolved into a one-dimensional vector for subsequent recurrent neural network RNN ​​processing. Assume that the dimension of the input response sequence A is (M, N), where m is the number of sampling points in the time domain and n is the number of sensor arrays; the size of the convolution kernel B is (H, N), and the width of the convolution kernel B is equal to the width of A, so that the result after convolution is a one-dimensional vector. The specific calculation formula is as follows:

[0094]

[0095] In the above formula, 1≤i≤M-H+1, j=1, S is a one-dimensional vector, and S(i,j) represents the result after the i-th convolution.

[0096] The convolutional neural network part does not use pooling operations, but only extracts instantaneous features in the time domain, and extracts new temporally continuous features after convolution. In this structure, the result after convolution is nonlinearly transformed using the ReLU function as shown in the following formula, and then the vectors extracted after convolution at each time step are concatenated together to provide temporally continuous input for the recurrent neural network RNN ​​layer.

[0097] h t =ReLU(W t *X t +b t )

[0098] In the above formula, h t The output result after convolution is used as the subsequent input feature in the time domain, W t is the convolution kernel in the time period, X t is the multivariate response value of the mixed gas in the time domain.

[0099] (2) Recurrent Neural Network

[0100] like Figure 5 As shown in the figure, the convolutional neural network CNN splices the output features (one-dimensional vectors) of the mixed gas response after convolution to form temporally continuous features, and then directly inputs these spliced ​​features into the recurrent neural network RNN ​​network. In practical applications, there are two most effective sequence models for the recurrent neural network RNN, namely the long short-term memory LSTM and the gated recurrent unit GRU. The long short-term memory is used as the processing unit of the recurrent neural network RNN. From a structural point of view, the gated recurrent unit GRU is simpler than the long short-term memory LSTM, but in the subsequent experiments, due to the large data set, the expression performance of the long short-term memory LSTM is better, which will be verified by the comparative experimental results later. The long short-term memory LSTM introduces three gates: input gate, forget gate and output gate, and also introduces memory cells that are the same as the hidden state.

[0101] (3) Objective function

[0102] The real-time hidden state output from the recurrent neural network RNN ​​finally enters the fully connected linear regression layer, which expands the hidden state of each time step into a fully connected way, and predicts the output value corresponding to each moment by calculating the linear regression value, as shown in the following formula:

[0103]

[0104] Among them, y t is the prediction output corresponding to different moments, is the fully connected weight parameter.

[0105] For regression problems, the square error is generally used as the optimization objective, as shown in the following formula:

[0106]

[0107] Among them, θ represents the set of parameters that the model needs to optimize and update, T is the set of all time steps, and Y tp is the predicted concentration value at different time steps, Y t is the actual concentration value at the corresponding time step. The optimization goal is to minimize the sum of the errors by updating the weight parameter set of the optimization model, that is, the predicted value is closest to the actual value.

[0108] The present invention also has the following advantages:

[0109] 1. In the problem of category recognition, the present invention proposes a new multi-label one-dimensional convolutional neural network 1D-DCNN algorithm to classify binary mixed gases of ethylene, carbon monoxide and methane. The one-dimensional convolutional neural network 1D-DCNN can automatically extract features from the original data set and classify them, while processing mixed gas data in a multi-label manner. In addition, the features automatically extracted by the one-dimensional convolutional neural network 1D-DCNN are easier to classify in the PCA projection than the original response. The experiment was extended to 10-fold cross-validation, and the recognition accuracy reached 96.30%, which is much better than the performance of the comparison methods support vector machine (SVM), artificial neural network (ANN), k-nearest neighbor (KNN) and random forest (RF).

[0110] 2. In the real-time prediction of concentration, the present invention proposes a new type of real-time prediction structure of mixed gas concentration combining convolutional neural network and recurrent neural network (CNN-RNN), which can realize the real-time prediction of the mixed gas concentration of ethylene, carbon monoxide and methane every 0.5s. During the experiment, long short-term memory unit (LSTM) and root mean square error (RMSE) were used as the processing unit and performance evaluation standard of the RNN part of the recurrent neural network respectively. In the prediction of methane, ethane and nitrogen, the error came to less than 1%. In addition, the experiment was also extended to three comparison methods. The proposed convolutional neural network CNN-lstm is superior to the structure combining convolutional neural network and gated recurrent control unit (convolutional neural network CNN-gru), echo state network (ESN) and linear regression (LR) in concentration prediction performance.

[0111] The present invention proposes a one-dimensional convolutional neural network 1D-DCNN mixed gas type recognition method for random conditions, which is implemented based on a multi-label method of a one-dimensional convolutional neural network. The present invention can automatically extract features and classify the extracted features to identify the types of mixed gases, and does not need to separate feature extraction and classification training. It is an end-to-end classifier. The present invention labels gas types in a multi-label manner, reducing the dimensional space brought by a single-label method.

[0112] Compared with the pattern classification of mixed gases, the real-time prediction of the concentration of mixed gases and the analysis of each component are more challenging. The present invention predicts and analyzes the concentration values ​​of each component of the mixed gas under the random distribution of the concentration values ​​of each component in the mixed gas. At the same time, most of the previous studies on the analysis of mixed gas components began to predict and analyze the concentration values ​​only after the gas reaction was complete, and there were relatively few studies on the real-time prediction of the concentration values ​​of mixed gases. Therefore, the present invention mainly studies the real-time prediction of the concentration of mixed gases. Since the input of the mainstream regression prediction and analysis method is more of the stable characteristic parameters of the gas response, such as sensitivity, response time, recovery time, etc., in the analysis of mixed gases with random concentrations, these stable characteristics lack applicability, and more of the transient response characteristics are used. Since deep learning has achieved good results in multivariate time series prediction, a model is established using the observed time series to predict the trend of new time series. Deep neural network methods such as recurrent neural network (RNN), a model combining recurrent neural network with dynamic Boltzmann machine, and a model combining ARIMA and multilayer perceptron MLP have all achieved good results in predicting time series. Since the response curve of the mixed gas is also a time series, a recurrent neural network can be used to establish a regression model of the response value and the concentration label when predicting the concentration of the mixed gas in real time. The concentration of the mixed gas is linearly related to the response value of the gas under low conditions, but as the concentration increases, the two will show a nonlinear relationship. Therefore, for a data set with nonlinearity, it can be mapped to a high-dimensional space, and then a regression model can be established through regression methods to predict and estimate new data. From the one-dimensional convolutional neural network, we can know that the convolutional neural network can be used to first combine the original response data into more meaningful and higher-level features, and then use the recurrent neural network RNN ​​to establish a regression prediction model for the output features of the convolutional neural network CNN, thereby realizing real-time prediction of concentration.

[0113] A terminal device is provided in one embodiment of the present invention. The terminal device of this embodiment includes: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0114] The computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to accomplish the present invention.

[0115] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0116] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0117] The memory may be used to store the computer programs and / or modules, and the processor implements various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory.

[0118] If the module / unit integrated in the terminal device 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 present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0119] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A mixed gas identification method, characterized in that: The following steps are involved: Acquire multi-channel one-dimensional time series data of mixed gas; Perform one-dimensional convolution operation on multi-channel one-dimensional time series data, concatenate the features after the one-dimensional convolution operation, and extract the overall features; Perform convolution and pooling operations on the overall features to obtain the result of feature extraction; The type of mixed gas is identified from the result of feature extraction using a multi-label classification method; the multi-label classification method is specifically as follows: Target gas prediction as follows: in, represents the activation function, represents the weight of the second hidden layer, represents the transposed matrix, represents the network input, represents the bias term; The output of the sigmoid function is used as the classification result. The threshold value of 0.5 is used as the judgment criterion for the output result. The predicted value label of the output value higher than 0.5 is set to 1, and if it is lower than 0.5, it is set to 0. The Log loss of the two-class model is as follows: in, For categories, is the true label, is the number of classifiers, and The categories are The probability of positive prediction and negative prediction is calculated, and finally the average value of the classifier's Log loss value is taken as the final loss value; A regression model is established, and a convolutional neural network and a recurrent neural network are used to predict the concentration of the mixed gas in real time according to the type of the mixed gas and the result of feature extraction; the real-time prediction of the concentration of the mixed gas includes: The original time series data is combined, and meaningful high-level features are selected. The high-level features output by the convolutional neural network CNN are input into the recurrent neural network RNN ​​layer. The recurrent neural network RNN ​​is used to analyze these high-level features in the time dimension and screen out the most suitable features for time prediction. The screened feature vectors are spliced ​​into a fully connected method for linear regression calculation to finally obtain the predicted concentration value.

2. The mixed gas identification method according to claim 1, characterized in that: The method of obtaining multi-channel one-dimensional time series data of the mixed gas includes: Multi-channel one-dimensional time series data of mixed gases are obtained through a gas sensor array.

3. The mixed gas identification method according to claim 1 or 2, characterized in that: The one-dimensional convolution operation is specifically as follows: The one-dimensional convolution equation is as follows: in, For the input sequence, input sequence The dimension is , is the convolution kernel, The dimension is , Expressed as The result of the convolution of neurons, and ; Indicates the size of each convolution kernel. The weights are initialized using Xavier initialization. The uniform distribution of Xavier initialization is as follows: in, represents uniform distribution, represents the sampling range, is the number of input units and output units in each layer.

4. The mixed gas identification method according to claim 1, characterized in that: The identifying the type of the mixed gas includes: The results of automatic feature extraction are input into a multilayer perceptron to identify the type of mixed gas; wherein the multilayer perceptron is composed of a full connection.

5. A mixed gas identification system for implementing the method according to any one of claims 1 to 4, characterized in that: include: A data acquisition module, used to obtain multi-channel one-dimensional time series data of mixed gas; The feature extraction module is used to perform one-dimensional convolution operation on multi-channel one-dimensional time series data, concatenate the features after the one-dimensional convolution operation, and extract the overall features; Perform convolution and pooling operations on the overall features to obtain the result of feature extraction; A type recognition module is used to identify the type of mixed gas from the result of feature extraction using a multi-label classification method; The concentration prediction module is used to establish a regression model, using convolutional neural networks and recurrent neural networks to make real-time predictions on the concentration of mixed gases based on the type of mixed gases and the results of feature extraction.

6. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Multi-label object recognition method based on convolutional neural network

    CN108664924A

  • Smoke concentration quantification method based on image recognition

    CN111126136A

  • Mixed gas recognition method based on improved one-dimensional convolutional neural network

    CN114252560A

  • Neural network architecture for attention based efficient model adaptation

    US20200193296A1

  • Convolutional neural network based multi-point regression forecasting model for traffic flow forecasting

    WO2020024319A1