Next Article in Journal
An Easily Integrable Industrial System for Gamma Spectroscopic Analysis and Traceability of Stones and Building Materials
Previous Article in Journal
Potentiometric Sensor Based on Carbon Paste Electrode for Monitoring Total Residual Chlorine in Electrolytically-Treated Ballast Water
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design and Application of Mixed Natural Gas Monitoring System Using Artificial Neural Networks

Department of Microelectronics, School of Electronics and Information Engineering, Xi’an Jiaotong University, Xi’an 710049, China
*
Author to whom correspondence should be addressed.
Sensors 2021, 21(2), 351; https://doi.org/10.3390/s21020351
Submission received: 10 December 2020 / Revised: 3 January 2021 / Accepted: 4 January 2021 / Published: 7 January 2021
(This article belongs to the Section Chemical Sensors)

Abstract

:
Natural gas component analysis is one of the significant technologies in the exploitation and utilization of natural gas. A stable and accurate online natural gas monitoring system is necessary for the gas extracting industry. We have developed an online monitoring system of natural gas with a novel hardware architecture. It improves the dependability and maintainability of the system. A specific instruction set is designed to facilitate the coordination of software and hardware. To reduce the sample noise, the exponentially weighted moving average (EWMA) method is used to preprocess the real-time raw data of the sensor array. A tailored neural network is designed for calibration. And the relationship between the performance and the structure of the gas neural network is demonstrated to find the optimal solution for accuracy and hardware scale. The design not only focuses on the optimization of individual components but also focuses on system-level improvement. The system has been running stably for several months in the gas fields. It meets the requirements of stability, ease of use, maintainability, and online monitoring in industrial applications.

1. Introduction

Natural gas is more energy-efficient and eco-friendly than coal, and its proportion in the various energy sources consumed in human production activities has increased year by year [1,2]. Natural gas is extracted via a series of physical and chemical operations. The extracted natural gas is a mixture of methane, ethane, propane, and other gases [3]. To ensure the heating quality of natural gas and meet the environmental protection requirements, the composition analysis of natural gas is an essential procedure in the exploitation of natural gas [4,5]. Therefore, the study of natural gas monitoring systems is of great significance for natural gas utilization.
At present, the widely used natural gas testing device is based on gas chromatography technology [6,7]. The operator collects the gas from the gas field, saves it in the gas storage tank, and then determines the gas composition and the concentration via the column chromatographic separation technique in the laboratory [8,9,10]. This off-line test takes several hours or even longer period [11]. Also, the core element in such systems is the operators with professional technical skills, which is expensive and impossible to be deployed in large numbers. Currently, cheap electrical sensors are widely used in industrial monitoring. The gas monitoring system based on electrical sensors becomes a promising solution for online automatic test [12,13,14]. However, the electrical sensors can not be directly used for gas composition analysis due to the cross-sensitivity for different gases [15,16]. The rise of artificial neural networks(ANN) provides a possible solution to the above problem. The data can be rectified by ANN to eliminate the effect of cross-sensitivity.
The mixed gas monitoring system which is based on the electrical sensor array, computed via the artificial neural network, and implemented by the embedded device is one of the significant trends in current research. Tanghao Jia et al. designed a mixed natural gas identification device based on the infrared gas sensor array, using a multi-layer perceptron neural network (MLPNN) to correct gas concentration [17]. Yufeng Fan et al. developed an early warning system to identify toxic gases through a recurrent neural network (RNN) [18]. Maria Gabriella Xibilia et al. proposed a gas monitoring system for industrial environments, using a gas sensor array whose outputs are further processed by a deep neural network [19]. Areej Shahid et al. utilized SnO 2 sensor array to implement an ANN-based concentration detection equipment for CH 4 and CO [20]. Fayçal Benrekia et al. designed an FPGA-based multi-layer perceptron gas classifier, using an array of eight micro-hotplate-based SnO 2 thin film gas sensors [21]. A. Mishra et al. presented two independent ANN blocks to classify and quantify the gas respectively, realizing real-time monitoring of the gas [22]. Arif Hussain Soomro et al. designed a gas safety monitoring system used in coal mining, using sensors to sense gas concentration(methane, carbon monoxide, temperature, and humidity), using ZigBee wireless network to communicate, and using ANN to predict gas concentration level and alarm hazards [23].
At present, many researchers are interested in the natural gas component analysis based on ANN. Most of the researches focuses on the improvement of recognition accuracy by optimizing the analysis algorithms. However, there is no complete system designed for practical industrial applications, including hardware circuits and assistant software. Existing natural gas monitoring devices are unable to meet the actual demands of the gas field. And it is mainly reflected in the following aspects:
(1) The global natural gas fields are widely distributed, and the application scenarios of natural gas monitoring systems are very different, which range from icy and dry inland basins to hot and humid offshore gas fields [24]. Therefore, dependability and maintainability are the primary requirements of the natural gas monitoring system. However, there are many studies on individual elements such as sensors and data processing algorithms, and little attention has been paid to system design, especially to complex application scenarios;
(2) Embedded systems have the advantages of strong specificity, good real-time performance, and low power consumption. Therefore, gas testing systems are usually based on embedded systems. Many processing algorithms are implemented based on FPGA to achieve good real-time performance. However, the existing natural gas testing systems have poor coordination between software and hardware. Sensor parameters need to be calibrated regularly due to their manufacturing differences and continuous aging during use [25]. The general way is to re-program and configure the FPGA, but it involves additional operations and requires professional skills;
(3) In the gas monitoring system, the gas concentration is converted into the corresponding analog electrical signal by the sensor; then it is converted into a digital signal through the ADC [17]. There are various noises caused by non-ideal factors in this process. It is hard to get a good result by feeding the collected data into ANN directly. It is necessary to preprocess the data. Currently, there are few studies about the data preprocessing method for the online monitoring system.
Based on the above analysis, this paper proposes to build a stable, practical, and maintainable online monitoring system of mixed natural gas, using tailored artificial neural networks based on FPGA. An isolation hardware architecture is adopted to improve the stability and maintainability of the device. The sensor parameters need to be calibrated regularly due to the aging of the sensor array, so we designed a specific instruction set to simplify the calibration. Besides, ANN is used in the system to eliminate the cross-sensitivity of the sensors. The optimal structure of the gas neural network is explored to achieve a trade-off of the hardware scale and the accuracy. Considering the noises of the samples, the exponentially weighted moving average method is used to preprocess the real-time data of the sensor array. The system not only achieves high precision through system-level optimization but also can be deployed in a harsh environment, which meets the needs of industrial applications. At present, similar research is in the stage of theory and experiment in the laboratory. Our device has been running stably for several months in the gas field and reached the design target. And it is the first practical natural gas recognition system based on infrared sensors and neural network technology.

2. System Design for Mixed Natural Gas Monitoring

The natural gas monitoring system works in high temperature, low humidity scenarios, so static electricity is more harmful to the hardware circuit in this type of environment. The electrostatic potential generated by the human body is more than 10 kV in the case of low humidity [26]. Also, many other factors lead to electrostatic hazards in the dry environment [26]. The previous gas monitoring device did not have an electrostatic protection design. The device broke down after working in the gas field for half a month. The FPGA is dissected in the laboratory, and it is found that there are signs of electrostatic damage inside the FPGA. Also, the other hardware of the device is not abnormal. The electrostatic protection of the equipment, especially crucial components such as FPGA, is necessary. Therefore, the core circuit of the system is isolated from the peripheral equipment. Figure 1 shows the framework of the mixed natural gas monitoring system. The core circuit (core board) including FPGA is encapsulated in an anti-static box. The electrostatic protection level of the anti-static box has been tested in the laboratory and passed the 6 kV electrostatic discharge immunity test. The auxiliary circuit (auxiliary board) is placed in the isolation box. The sensor array is in the gas chamber and consists of gas sensors. The auxiliary board is the buffer between the core board and the sensor array.

2.1. Sensor Array and Isolation Box

According to the composition of the mixed natural gas, the infrared gas sensors produced by Dynament Corporation are selected in this system [27,28]. The sensors have the advantages of fast response speed and slow aging. Besides, a temperature-pressure sensor is added for compensation [29]. The above sensors form a sensor array, and the details are shown in Table 1.
The sensor array is connected to the auxiliary board through the DB25 interface. The auxiliary board consists of the protection circuit, an LCD screen, and various interfaces. A 9-digit numeric keyboard is connected to the auxiliary board. It is convenient for users to manipulate the gas monitoring system. Also, there is a USB2.0 interface on the auxiliary board that interacts with the computer. The historical data can be read and downloaded through this interface. Also, the debugging instructions are sent through it.
The auxiliary board is placed in the isolation box that only provides physical protection. It is the buffer between the core board and the external. On the one hand, the protection circuit ensures that the amplitude of the signals connected to the core board is within a secure range. On the other hand, LCD and various interfaces are used for the interaction between the external and the monitoring system. The cost of its components is low, and the replacement is also convenient.

2.2. Core Circuit and Anti-Static Box

There are FPGA (Altera MAX10M50SAE144I7G), power supply module, a storage module, clock management module, etc. on the core board. FPGA performs the ANN calculation and schedules the gas monitoring system to run automatically. The input voltage is converted from 12 V to 5 V and 3.3 V by the power module for the entire monitoring system. The storage module is a 4 Mbits Flash(Adesto Technologies, AT25SF041-SHD-B). The monitoring data and the weight parameters of the neural network are stored in the Flash. DS1302 clock chip is added to reduce the power consumption of the system. It is a low power clock chip of DALLAS, and the power is provided separately by a 220 mAh button battery. The FPGA receives the time information provided by the DS1302, and the entire system is waked up at the setting point in time.
The core board is placed in an anti-static box made of aluminum. The ingress protection grade of the box is IP66. There are only the power interface and the DB50 interface on the anti-static box, and the two interfaces are sealed with silica gel. Therefore, the device has the advantages of good sealing and anti-static. It benefits from the migration of functions such as external interfaces and LCD to a separate auxiliary board, which improves the system stability in a harsh environment.

2.3. Cooperation between Hardware and Software

There is a USB2.0 interface on the auxiliary board. And the data path between the PC and the FPGA is constructed through the USB2.0 interface and the DB50 interface. The user can connect the PC with the gas monitoring system. Tailored software is designed to read the historical data, update the neural network parameters, set the system parameters, manually manipulate the equipment, and perform system inspections. Table 2 shows part of the instructions. The instruction length is 32 bits, and it is expressed in hexadecimal. The 31~24 bits of the instruction are function code, the 23~4 bits are data code, the 3~1 bits are reserved bits, and the last bit is the parity bit.
Usually, the monitoring system runs automatically. The system is connected to the computer only when more complicated operations are required. For instance, considering the aging of the sensors, the old neural network parameters are no longer suitable. And the new parameters must be updated to the monitoring system. The aging of the sensors is inevitable, and there is no method to solve the problem. The related parameters need to be calibrated regularly. Therefore, the tailored instruction set in the paper is convenient to update the parameters.
Figure 2 shows the flowchart of the mixed natural gas monitoring system. When the system is powered on, the device follows the host instructions if it is connected to the host PC. The priority of the computer instructions is the highest. If it is not connected to the host, the system runs automatically in the default mode. To reduce power consumption, only the timing module works all the time, and the entire monitoring system is awakened at the setting time point. The raw data of the sensors is read in, preprocessed, and then rectified by the ANN. The data is saved in the storage module. And the result is displayed by the LCD. Finally, the system enters the sleep state again. Only the timing module works until the start of the next cycle.
The algorithm of the system is implemented on FPGA, and the processing speed is fast because of parallel operation. The hardware design has many advantages, including electrostatic protection, high dependability and stability, low power consumption, good software and hardware cooperation, etc. The system uses wired communication with the host computer, while some advanced measurement and control systems in other fields integrate wireless communication module, which is more convenient. The design needs to be further improved in these aspects.

3. Data Processing on FPGA

3.1. Data Preprocessing

When preprocessing the raw data of the gas sensors, there are two scenarios in practical application. One is that the monitoring system performs short-term measurements. Another is that the monitoring system performs real-time, long-term measurement. Therefore, the preprocessing methods should be customized according to specific scenarios. When the application scenario is the short-term measurement, the amount of data is small, and the average data can well reflect the actual value. Figure 3a shows the data of the CH 4 sensor in short-term measurement. Four groups of data are measured at four different times. The mean of the raw sensor data can well represent the input methane concentration whose legend is ‘Reference’. By the way, the differences between the mean and the reference value are due to the sensor itself.
Another situation is the real-time, long-term measurement. There are some disadvantages if the average-calculation method is still used. Firstly, it is hard to determine how much data should be averaged. Secondly, it will consume additional storage resources if too much data needs to be saved. Thirdly, the average-calculation method only reflects the recently calculated data and does not incorporate historical data. Therefore, we propose to utilize the exponentially weighted moving average (EWMA) method to preprocess the data. EWMA gives the most recent observation the greatest weight, and all previous observations weights decreasing in geometric progression from the most recent back to the first [30]. This method has been used widely in industrial manufacturing and artificial intelligence. And it requires little computing resource [31]. Let θ t be the measuring data of the t-th time, β be the weight coefficient that is 0.9 in this design, x t 1 be the calculating result of the t − 1th time, and x t be the result of the t-th calculation. The calculation formula of EWMA is given by Equation (1)
x t = β * x t 1 + ( 1 β ) * θ t , t = 0 , 1 , 2 , . . .
The gas concentration changes gradually, so EWMA is suitable for processing this type of data. Figure 3b shows the data of the C H 4 sensor in long-term measurement. The measurement is continuous. The data processed by EWMA can well reflect the change of the input methane concentration whose legend is ‘Reference’. The sum of squares due to error(SSE) of EWMA is 206.37. Also, the simple moving average(SMA) and the weighted moving average(WMA) are used to process this data as a comparison [32,33]. SSE of raw sensor data, SMA, and WMA are 257.44, 238.65, and 220.11, respectively. The SSE of EWMA is slightly smaller than other methods. Most of all, the gas sensors occasionally sample obviously abnormal data in practice, which are highlighted in red circles in Figure 3b. It is inevitable for gas sensors. EWMA is similar to a filter, which reduces the noise caused by various non-ideal factors and improves the stability of the output of the gas sensors. The preprocessing makes the sensors more suitable for the industrial measurement system that requires stability.

3.2. Artificial Neural Network Tailored for Gas Monitoring

In order to eliminate the cross-sensitivity between different sensors and obtain accurate gas concentrations, a multilayer perceptron neural network (MLPNN) is designed for calibration in this work. The advantage of MLPNN is that it does not need to explore the inner relationship between inputs and outputs. Also, the weight parameters can be obtained automatically through the backward propagation (BP) algorithm. The problem can be solved without prior knowledge. Another motivation is that the cross-sensitivity of gas sensors is very complicated. For instance, the methane sensor not only responds to methane but also responds to other alkane gases such as ethane and propane. The impact of multi-component alkane gases on the sensor is hard to distinguish [17]. It is hard to obtain accurate calibration results by prior knowledge or the mathematical model. Therefore, MLPNN becomes a competitive choice. The structure of MLPNN is shown in Figure 4. The input data is raw gas concentrations, temperature, and pressure from the sensor array. And the gas concentrations are preprocessed before feeding into the MLPNN. The activation function of the hidden layer is the rectified linear unit (ReLU) to simplify the hardware implementation. The output layer is the calibrated gas concentrations, and the activation function of the output layer is the softmax function. The softmax function is usually used to the output layer of the neural network of the classification task. Generally, the outputs of softmax are the probabilities of several categories, and the sum of the probabilities is 100%. The function can be applied to the outputs of the gas neural network, but the outputs are no longer probabilities but concentrations. Let z i be the output of the linear calculation of the i-th neuron in the output layer, a i is the softmax output of the i-th neuron, and the calculation formula of softmax is given by Equation (2):
a i = e Z i Σ k e Z k
The hyperparameters of a neural network include learning rate, number of iterations, mini-batch size, number of hidden layers, number of hidden layer neurons, etc. Most of the hyperparameters are used to control the training process of the neural network. The training of the neural network is generally on CPU or GPU. And these hyperparameters are useless after training. Therefore, it is necessary to focus on the hyperparameters that could affect hardware implementation. The number of hidden layers and the number of neurons in each hidden layer should be carefully designed. These two hyperparameters determine the scale and performance of the neural network on the FPGA.
We have measured 4128 groups of data in the laboratory, of which 4000 groups are training set, and the remaining 128 groups are test set. Figure 5 shows the relationship between costs, iterations, and structures. [5, 30, 7, 4] indicates the structure of the neural network. The input layer, two hidden layers, and the output layer consist of five neurons, thirty neurons, seven neurons, and four neurons, respectively. The network structure is denoted in this way in the paper. In order to find a network structure with high accuracy and low hardware scale, various network structures are generated and trained. We use two ways to generate different network structures. Figure 5a is expanded to Figure 5b, keeping 37 hidden neurons unchanged and gradually adjusting the number of hidden layers. Figure 5c is expanded to Figure 5d, keeping three hidden layers unchanged and gradually adjusting the number of neurons. The generation and training of the ANN are performed automatically by computer. So, all kinds of neural networks can be trained in batches.
The trained neural networks are tested on the test set to get the average error rates. Figure 6 shows the average error rates after automatic batch training. Different colors indicate different levels of error rate. As the neuron number increases, the error rate decreases significantly. But the error rate no longer decreases after the neurons increases to a certain number. Besides, the number of hidden layers has little effect on the error rate. The accuracy of methane and other gases has a similar trend. Based on the training results of various networks, the network structure marked as [5, 9, 21, 7, 4] is adopted in our design. Namely, the input layer consists of five neurons; the three hidden layers consist of nine neurons, twenty-one neurons, and seven neurons, respectively; the output layer consists of four neurons. On the one hand, increasing the network scale will not effectively improve accuracy. On the other hand, the resource of hardware implementation is as small as possible. The overall benefit is the highest.
According to the above research, when the gas neural network reaches a certain scale, the structural change has little effect on the accuracy improvement. Therefore, the structure of the gas neural network does not need to be changed even if the detection accuracy decreases due to the aging of the sensors. Only the weight parameters need to be updated regularly to adapt to the aging of the sensors. And the parameters are easy to update through the software instructions designed in this system. It is convenient for the operators in the practical application.

4. Field Work of the Mixed Natural Gas Monitoring System and Discussion

The device has been tested both in the laboratory and gas fields. And the monitoring system has been running stably for several months. Due to the cross-sensitivity of gas sensors, the error of the raw data of the sensor is often large in the mixed natural gas composed of alkanes. After the calibration of the neural network, higher recognition accuracy can be achieved.
The experimental equipment in the laboratory includes the gas pipeline system [17] and this monitoring system. The mixed gas is composed of methane, ethane, propane, and nitrogen. Table 3 shows the explanations of the symbols. Table 4 shows the comparison of sensors raw output and the proposed monitoring system output. The concentration of methane is increased from 0% to 100% in 10% steps. The range of ethane and propane is at 0~10%. After the calibration, the maximum errors of the three gases drop to 0.58%, 1.15%, and 1.18%, respectively. The average error of the three gases is 0.24%, 0.33%, and 0.38%, respectively. Therefore, the cross-sensitivity characteristic of the gas sensors is nearly eliminated by the tailored neural network. It proves the feasibility and practicability of the infrared sensor array in natural gas concentration monitoring.
The monitoring system has been working in Xinjiang Gas Field in China for several months with stable and reliable performance, as shown in Figure 7. The proposed monitoring system is placed in the explosion-proof box for safety. The initial parameters of the neural network are from the training in the laboratory. At the beginning of deployment to the gas field, the network calculation errors are large. The maximum errors of methane, ethane, and propane are 2.1%, 4.33%, and 5.24%, respectively; and the average errors of those are 0.67%, 2.74%, and 2.19%, respectively. It is because the composition of actual natural gas is more complicated. In the process of mining natural gas, the crude gas contains about 15 components. Methane, ethane, propane, and other alkane gases are the main components of natural gas [3]. In the laboratory, the gas composition only involves methane, ethane, propane, and nitrogen. The errors can be essentially regarded as the different sample distributions of the training set and the test set. The neural network is retrained according to the data of the gas field. The new neural network parameters are written into the RAM of the device to improve the recognition accuracy.
There are a few problems with the infrared gas sensors after a long-term operation in the gas field. For instance, we find that some sensors have a zero-drift problem. The sensor data is subsequently processed by ANN, and the weight parameters of ANN are calibrated regularly. Therefore, the measurement accuracy of gas concentration is not affected. And the errors caused by data fluctuation of sensors are eliminated automatically in the process of ANN parameter calibration. It is a good way to calibrate the sensor by calibrating the parameters of ANN, instead of calibrating a single sensor in the conventional method.
The proposed system can realize the online and automatic measurement of natural gas. However, the training of the neural network needs accurate reference samples. And the accurate measurement method of gas composition is gas chromatography. It cannot obtain large-scale samples through gas chromatography in a short time due to the long test cycle and high complexity. Therefore, the update of neural network parameters is a process of gradual adjustment. The improvement of the output accuracy of the system is a process of gradual adjustment. Besides, the neural network parameters need to be calibrated regularly due to the aging and drift of the sensors.
We compare our system with related methods in Table 5. The accuracy of the device is high. And the response time of the infrared electrical sensors is only a few seconds, while gas chromatography and spectrometer need several hours or even days. The sensor data can be processed in real-time due to the parallel computing characteristics of FPGA. And the electrical sensor array requires less volume of natural gas. Most of all, the manufacturing cost and the use cost of the system are lower.
The system is an example of the sensor application. It is of positive significance to promoting the commercial application of such sensors in natural gas monitoring. The infrared sensor is cheaper compared with the gas chromatograph, and the monitoring system based on the infrared sensor array can realize automatic tests. It will have strong market competitiveness. With the wide use of natural gas in the world, the monitoring system based on electrical sensors and neural network technology will receive more attention. How to further improve the accuracy of the test, how to extend the service life of the sensor array, how to eliminate the error caused by sensor aging, how to further improve the automation level of the system will be the directions and focuses of future research.

5. Conclusions

Compared with the existing mixed natural gas recognition system, the monitoring system using FPGA-based MLPNN designed in this paper has the following improvements:
(1) We propose a hardware architecture of the natural gas monitoring system that can protect the core circuit well. The extra auxiliary board is a buffer of the core board. Therefore, the developed device can be applied in a harsh environment. And it has the advantage of high stability and low maintenance cost;
(2) The paper proposes to utilize the exponentially weighted moving average method to preprocess the data. EWMA filters out abnormal sampling points and improves the stability of the output of the gas sensors. Also, it consumes little computing resources;
(3) The gas neural network is used to eliminate the cross-sensitivity of the infrared sensors. And the network structure is optimized. It is friendly to hardware implementation. The recognition accuracy of alkane gas reaches 1.5% in the laboratory. Also, a good result is achieved in the field work of the gas field.
The device has been deployed in the gas field and reached the design target. And it is the first practical natural gas analysis system using infrared sensors and neural network technology. There is no relevant product in the market, and the schemes in the literature are still in the stage of theoretical simulation and experiment in the laboratory. The paper proposes a complete set of system architecture, which lays the foundation for the following research.

Author Contributions

J.W. developed the algorithm, conducted the experiments, and wrote the manuscript. B.L. (Bing Li), B.L. (Bingjie Lei) and P.M. collected and analyzed the data. S.L. (Sai Lian) and N.W. designed the processing circuit. X.L. provided guidance on research ideas. S.L. (Shaochong Lei) planned and supervised the whole project, and revised the manuscript. All authors have read and agreed to the published version of the manuscript.

Funding

The work was funded by SINOPEC Northwest Oil Field Company.

Data Availability Statement

Data sharing not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Bai, J.; Zhang, X. China’s natural-gas supply security and its suggestions. Nat. Gas Technol. Econ. 2020, 14, 2–5. [Google Scholar]
  2. Mac Kinnon, M.A.; Brouwer, J.; Samuelsen, S. The role of natural gas and its infrastructure in mitigating greenhouse gas emissions, improving regional air quality, and renewable resource integration. Prog. Energy Combust. Sci. 2018, 64, 62–92. [Google Scholar] [CrossRef]
  3. Dabrowski, K.M.; Kuczynski, S.; Barbacki, J.; Wlodek, T.; Smulski, R.; Nagy, S. Downhole measurements and determination of natural gas composition using Raman spectroscopy. J. Nat. Gas Sci. Eng. 2019, 65, 25–31. [Google Scholar] [CrossRef]
  4. Chaczykowski, M.; Sund, F.; Zarodkiewicz, P.; Hope, S.M. Gas composition tracking in transient pipeline flow. J. Nat. Gas Sci. Eng. 2018, 55, 321–330. [Google Scholar] [CrossRef]
  5. Dörr, H.; Koturbash, T.; Kutcherov, V. Review of impacts of gas qualities with regard to quality determination and energy metering of natural gas. Meas. Ence Technol. 2019, 30, 022001. [Google Scholar] [CrossRef]
  6. Brown, A.S.; Milton, M.J.T.; Cowper, C.J.; Squire, G.D.; Bremser, W.; Branch, R.W. Analysis of natural gas by gas chromatography reduction of correlated uncertainties by normalisation. J. Chromatogr. A 2004, 1040, 215–225. [Google Scholar] [CrossRef]
  7. Goodman, K.J.; Brenna, J.T. Curve Fitting for Restoration of Accuracy for Overlapping Peaks in Gas Chromatography/Combustion Isotope Ratio Mass Spectrometry. Anal. Chem. 1994, 64, 1294–1301. [Google Scholar] [CrossRef]
  8. Airiau, C.Y.; Brereton, R.G.; Dunkerley, S. Quantitative resolution of overlapping tailing peaks obtained by diode-array detector high performance liquid chromatography in the absence of pure standards using simple chemical knowledge. Analyst 2000, 125, 833–842. [Google Scholar] [CrossRef]
  9. Lin, B.; Lu, P. Correction method for quantitative area determination of overlapping chromatographic peaks based on the exponentially modified Gaussian (EMG) model. J. Sep. Sci. 2015, 10, 449–454. [Google Scholar]
  10. Dondi, F.; Bassi, A.; Cavazzini, A.; Pietrogrande, M.C. A Quantitative Theory of the Statistical Degree of Peak Overlapping in Chromatography. Anal. Chem. 1998, 70, 766–773. [Google Scholar] [CrossRef]
  11. Liu, H.P. Composition Analysis of Natural Gas by Multi-Dimensional Gas Chromatography. Xinjiang Oil Gas 2014, 10, 36–39. [Google Scholar]
  12. Paczkowski, S.; Jaeger, D.; Pelz, S. Semi-conductor metal oxide gas sensors for online monitoring of oak wood VOC emissions during drying. Dry. Technol. 2019, 37, 1081–1086. [Google Scholar] [CrossRef]
  13. Caron, A.; Redon, N.; Coddeville, P.; Hanoune, B. Identification of indoor air quality events using a K-means clustering analysis of gas sensors data. Sens. Actuators B Chem. 2019, 297, 126709. [Google Scholar] [CrossRef]
  14. Jaeschke, C.; Glockler, J.; El Azizi, O.; Gonzalez, O.; Padilla, M.; Mitrovics, J.; Mizaikoff, B. An Innovative Modular eNose System Based on a Unique Combination of Analog and Digital Metal Oxide Sensors. ACS Sens. 2019, 4, 2277–2281. [Google Scholar] [CrossRef]
  15. Chu, J.F.; Li, W.J.; Yang, X.; Yu, H.; Wang, D.W.; Fan, C.Y.; Yang, A.J.; Li, Y.J.; Wang, X.H.; Rong, M.Z. Quantitative Detection of Mixed Gases by Sensor Array Using C-Means Clustering and Artificial Neural Network. In Proceedings of the 45th Annual Conference of the IEEE Industrial Electronics Society (IECON), Lisbon, Portugal, 14–17 October 2019. [Google Scholar]
  16. Yan, M.L.; Tylczak, J.; Yu, Y.; Panagakos, G.; Ohodnicki, P. Multi-component optical sensing of high temperature gas streams using functional oxide integrated silica based optical fiber sensors. Sens. Actuators B Chem. 2018, 255, 357–365. [Google Scholar] [CrossRef]
  17. Jia, T.; Guo, T.; Wang, X. Mixed Natural Gas Online Recognition Device Based on a Neural Network Algorithm Implemented by an FPGA. Sensors 2019, 19, 2090. [Google Scholar] [CrossRef] [Green Version]
  18. Fan, Y.; Zhu, X.; Sui, H.; Sun, H.; Wang, Z. Design and Application of Toxic and Harmful Gas Monitoring System in Fire Fighting. Sensors 2019, 19, 369. [Google Scholar] [CrossRef] [Green Version]
  19. Xibilia, M.G.; Latino, M.; Marinkovic, Z.; Atanaskovic, A.; Donato, N. Soft Sensors Based on Deep Neural Networks for Applications in Security and Safety. IEEE Trans. Instrum. Meas. 2020, 69, 7869–7876. [Google Scholar] [CrossRef]
  20. Shahid, A.; Choi, J.H.; Rana, A.H.S.; Kim, H.S. Least Squares Neural Network-Based Wireless E-Nose System Using an SnO2 Sensor Array. Sensors 2018, 18, 1446. [Google Scholar] [CrossRef] [Green Version]
  21. Benrekia, F.; Attari, M.; Bouhedda, M. Gas Sensors Characterization and Multilayer Perceptron (MLP) Hardware Implementation for Gas Identification Using a Field Programmable Gate Array (FPGA). Sensors 2013, 13, 2967–2985. [Google Scholar] [CrossRef]
  22. Mishra, A.; Rajput, N.S. A novel modular ANN architecture for efficient monitoring of gases/odours in real-time. Mater. Res. Express 2018, 5, 045904. [Google Scholar] [CrossRef]
  23. Soomro, A.H.; Jilani, M.T. Application of IoT and Artificial Neural Networks (ANN) for Monitoring of Underground Coal Mines. In Proceedings of the International Conference on Information Science and Communication Technology (ICISCT), Karachi, Pakistan, 8–9 February 2020. [Google Scholar]
  24. Liao, F.; Hong, F. Distribution characteristics of giant gas fields in the world and its enlightenment. Nat. Gas Geosci. 2019, 30, 860–865. [Google Scholar]
  25. Deshmukh, S.; Kamde, K.; Jana, A.; Korde, S.; Bandyopadhyay, R.; Sankar, R.; Bhattacharyya, N.; Pandey, R.A. Calibration transfer between electronic nose systems for rapid In situ measurement of pulp and paper industry emissions. Anal. Chim. Acta 2014, 841, 58–67. [Google Scholar] [CrossRef] [PubMed]
  26. Bo, Y. Electrostatic hazard and protection in the electronic industry. Electron. World 2014, 14, 349–350. [Google Scholar]
  27. Dynament Infrared Gas Sensors. (Model: MSHia-P/HCP/NC/5/V/P/XTR/F). Available online: https://www.dynament.com/_webedit/uploaded-files/All%20Files/Data/tds0123.pdf (accessed on 3 January 2021).
  28. Dynament Infrared Gas Sensors. (Model: MSHia-P/HHCP/NC/5/V/P/XTR/F). Available online: https://www.dynament.com/_webedit/uploaded-files/All%20Files/Data/tds0143_1.7_Platinum%20High%20Range%20Non-Certified%20Hydrocarbon%20Sensor%20Data%20Sheet.pdf (accessed on 3 January 2021).
  29. Measurement Specialties Inc. (Model: MS5803-14BA). Available online: https://www.te.com/commerce/DocumentDelivery/DDEController?Action=showdoc&DocId=Data+Sheet%7FDS_MS5803-14BA%7FA6%7Fpdf%7FEnglish%7FENG_DS_DS_MS5803-14BA_A6.pdf%7FMS580314BA01-50 (accessed on 3 January 2021).
  30. Roberts, S.W. Control Chart Tests Based on Geometric Moving Averages. Technometrics 2000, 42, 97–101. [Google Scholar] [CrossRef]
  31. Haridy, S.; Shamsuzzaman, M.; Alsyouf, I.; Mukherjee, A. An improved design of exponentially weighted moving average scheme for monitoring attributes. Int. J. Prod. Res. 2020, 58, 931–946. [Google Scholar] [CrossRef]
  32. Varshavskiy, I.E.; Krasnova, A.I.; Polivanov, V.V. Efficiency Estimation of the Noise Digital Filtering Algorithms. In Proceedings of the IEEE Conference of Russian Young Researchers in Electrical and Electronic Engineering (EIConRus), St. Petersburg, Russia, 28–31 January 2019. [Google Scholar]
  33. Nugrahani, T.A.; Adi, K.; Suseno, J.E. Information System Prediction With Weighted Moving Average (WMA) Method And Optimization Distribution Using Vehicles Routing Problem (VRP) Model for Batik Product. In Proceedings of the 3rd International Conference on Energy, Environmental and Information System (ICENIS 2018), Semarang, Indonesia, 14–15 August 2018. [Google Scholar]
Figure 1. Schematic Diagram of Mixed Natural Gas Monitoring System.
Figure 1. Schematic Diagram of Mixed Natural Gas Monitoring System.
Sensors 21 00351 g001
Figure 2. Proposed mixed natural gas monitoring system flowchart.
Figure 2. Proposed mixed natural gas monitoring system flowchart.
Sensors 21 00351 g002
Figure 3. (a) Data processed by average method. (b) Data processed by EWMA.
Figure 3. (a) Data processed by average method. (b) Data processed by EWMA.
Sensors 21 00351 g003
Figure 4. ANN input and the structure of the multilayer perceptron neural network.
Figure 4. ANN input and the structure of the multilayer perceptron neural network.
Sensors 21 00351 g004
Figure 5. Relationship between costs, iterations and structures of the gas neural networks: (a) ANN structure is [5, 30, 7, 4]. (b) Different ANN structures with 37 hidden neurons. (c) ANN structure is [5, 10, 20, 7, 4]. (d) Different ANN structures with 3 hidden layers.
Figure 5. Relationship between costs, iterations and structures of the gas neural networks: (a) ANN structure is [5, 30, 7, 4]. (b) Different ANN structures with 37 hidden neurons. (c) ANN structure is [5, 10, 20, 7, 4]. (d) Different ANN structures with 3 hidden layers.
Sensors 21 00351 g005
Figure 6. Average error rates of ANN with different layers/neuron numbers.
Figure 6. Average error rates of ANN with different layers/neuron numbers.
Sensors 21 00351 g006
Figure 7. Field work of the mixed natural gas monitoring system.
Figure 7. Field work of the mixed natural gas monitoring system.
Sensors 21 00351 g007
Table 1. Detailed information about the sensors.
Table 1. Detailed information about the sensors.
TypeParameterValue
Company(Sensor Model)Dynament(MSHia-P/HCP(HHCP)/NC/5/V/P/XTR/F)
Resolution0.1%
Alkane sensorDetection limit0–200%
Selectivityhas cross-sensitivity to alkane
Response time30 s
Company(Sensor Model)MEAS(MS5803-14BA)
Pressure Range0–14 bar
Pressure Resolution0.2 mbar
TemperaturePressure Accuracy−40–+40 mbar at −40 C to +85 C, 0 to 6 bar
-pressure sensorTemperature Range−40–+85 C
Temperature Resolution<0.01 C
Temperature Accuracy−0.8–+0.8 C
Table 2. Part of the instruction set.
Table 2. Part of the instruction set.
InstructionFunction
0x8003e011Set time
0x81002610Set sampling period
0x82f70001Set display mode
0x4f000001Read historical data (raw data)
0x4e000000Read historical data (rectified data)
0x4d07f010Update the parameters of neural network
0x20000000Manually start monitoring
0x21000000Force to stop monitoring
0xff000000Soft reset of the system
0xff00ff00Stop the current task, start receiving host commands
…………
Table 3. Symbol illustrations.
Table 3. Symbol illustrations.
ParameterIllustration
C i n input concentration of each gas
C s o u t gas sensor output
S 1 CH 4 sensor output
S 2 C 2 H 6 sensor output
S 3 C 3 H 8 sensor output
C c o r r output of the monitoring system
Table 4. Comparison of sensor output and the proposed monitoring system output.
Table 4. Comparison of sensor output and the proposed monitoring system output.
C in / % C sout / % Errors   of   C sout / % C corr / % Errors   of   C corr / %
CH 4 C 2 H 6 C 3 H 8 N 2 S 1 S 2 S 3 S 1 S 2 S 3 CH 4 C 2 H 6 C 3 H 8 CH 4 C 2 H 6 C 3 H 8
06.13.390.6012.310.106.26.80.35.963.550.30.140.25
9.35.32.882.68.318.016.21.012.713.49.425.462.680.120.160.12
20.65.16.767.628.632.229.9827.123.220.374.736.260.230.370.44
30.28.65.156.141.131.028.110.922.423.030.789.756.280.581.151.18
40.43.5551.151.833.430.911.429.925.940.233.24.90.170.30.1
509.54.436.161.778.680.111.769.175.750.39.764.070.30.260.33
60.19.62.128.271.379.881.311.270.279.260.219.871.870.110.270.23
69.55.23.122.277.452.752.57.947.549.469.44.973.30.10.230.2
80.24.94.91083.267.168.6362.263.7805.275.580.20.370.68
903.44.91.791.566.566.41.563.161.590.143.264.60.140.140.3
100000100.920.920.70.920.920.799.60.190.310.40.190.31
Table 5. Comparison of our system with other related methods.
Table 5. Comparison of our system with other related methods.
ItemChromatographySpectrographSingle Gas SensorOur System
Accuracyhighhighlowhigh
Onlinenonoyesyes
Response timevery slowvery slowfastfast
Maintainabilitylowlowhighhigh
Require human operationyesyesnono
Required gas volumelargelargesmallsmall
Costhighvery highvery lowlow
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Wang, J.; Li, B.; Lei, B.; Ma, P.; Lian, S.; Wang, N.; Li, X.; Lei, S. Design and Application of Mixed Natural Gas Monitoring System Using Artificial Neural Networks. Sensors 2021, 21, 351. https://doi.org/10.3390/s21020351

AMA Style

Wang J, Li B, Lei B, Ma P, Lian S, Wang N, Li X, Lei S. Design and Application of Mixed Natural Gas Monitoring System Using Artificial Neural Networks. Sensors. 2021; 21(2):351. https://doi.org/10.3390/s21020351

Chicago/Turabian Style

Wang, Jinlei, Bing Li, Bingjie Lei, Peiyuan Ma, Sai Lian, Ning Wang, Xin Li, and Shaochong Lei. 2021. "Design and Application of Mixed Natural Gas Monitoring System Using Artificial Neural Networks" Sensors 21, no. 2: 351. https://doi.org/10.3390/s21020351

APA Style

Wang, J., Li, B., Lei, B., Ma, P., Lian, S., Wang, N., Li, X., & Lei, S. (2021). Design and Application of Mixed Natural Gas Monitoring System Using Artificial Neural Networks. Sensors, 21(2), 351. https://doi.org/10.3390/s21020351

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop