Pattern Recognition of Hazardous Gas Leak Monitoring Data Based on Field Sensors
Abstract
1. Introduction
- Single-point alarm (1920s–1960s): Personnel had to carry a detector to patrol locally, with no centralized remote monitoring. Refineries began using portable/fixed catalytic-bead alarms. Even today, carrying portable sensors for inspections remains a key detection approach.
- Distributed detection with centralized indication (1960s–1970s): The 4–20 mA current loop plus cabinet annunciator panels constituted the early GDS prototype, centralizing the display of values from tens of detectors. NFPA 72 [3] subsequently adopted this configuration as part of the fire alarm circuit.
- System concept establishment (1980s): Gas alarms as well as interlocks, nitrogen purging, and emergency shutdown functions were consolidated into unified PLC (Programmable Logic Controller)/ESD (Emergency Shutdown Device) platforms. Industry practice also began to include quantitative evaluation of detector system coverage. The 1988 Piper Alpha offshore disaster [4] prompted the UK and the broader industry to designate the installation of GDS as a core safety requirement in the petrochemical sector.
- Functional safety integration (1990s–2000s): GDSs were integrated into the Safety Integrity Level (SIL) framework and subjected to quantitative availability verification. The first edition of IEC 61511-1 [5] incorporated GDS into SIS (Safety Instrumented System) lifecycle management.
- Performance and coverage design (2010s): Evaluating GDS in terms of coverage, PFD (Probability of Failure on Demand), and MTTR (Mean Time to Repair) have become mainstream practice. IEC 60079-29-2 [6] provides guidance on the selection, installation, and maintenance of GDS, while ISA TR84.00.07 [7] introduces 3D quantitative coverage metrics and a scheme compatible with LOPA (Layer of Protection Analysis).
- Cloud and IIoT convergence (2020s–): GDSs are increasingly converging with Wi-Fi, HART, and 5G communications, as well as self-diagnostics and digital-twin technologies. Some GDS platforms now support remote OTA calibration and RUL (Remaining Useful Life) and health prognostics. NFPA 715 [8] establishes a dedicated, standalone standard for fuel-gas detection.
- China’s GDS development has likewise progressed:
- Initiation (1980s–1990s): Early GDSs were typically composed of a control panel coupled with a single-loop controller. GB 12358 [9] was the first Chinese national standard in this domain, which focused on instrument conformity and addressed product qualification for GDS.
- Engineering support (1990–2008): Petrochemical enterprises began deploying detector points across critical process units and areas. For the first time, GB 50160 [10] codified GDS as a mandatory provision.
- Systematic design (2009): GB/T 50493 [11] specifies explicit requirements for GDS performance, detector placement methodology, multi-level alarming, and interlock interfaces, thereby establishing system-level design criteria.
- IoT upgrading (2010–2019): GDS are integrated with SIS and MES (Manufacturing Execution Systems) via IoT gateways or Modbus protocol, enabling digital monitoring and maintenance. GB/T 50493 [11] further introduces remote diagnostics, redundant communications, and the concept of lifecycle management.
- Intelligent upgrading (2020–present): GDS has been integrated with work safety platforms of company and government supervisory systems. GB 17681 [12] defines GDS as a core monitoring subsystem and introduces hierarchical alarms and early-warning concepts. Since 2019, China has been building a hazardous chemical monitoring and early-warning system. By installing gateways at enterprise sites, the system collects safety-related monitoring parameters and alarm information from DCS/SCADA/GDS systems and records them in a unified national information system. Large amounts of data have been accumulated to date. Among them, monitoring data from flammable and toxic gas sensors is a key focus and provides a foundation for studying real plant leak processes.
2. Data Sources
3. Data Preprocessing
4. Leak Pattern Recognition with K-Means
5. Leak Pattern Recognition with 1D-CNN Autoencoder
6. Conclusions
- Confirmed diversity of leak patterns. K-Means shows clear morphological differences among samples, separating sustained, instantaneous, fluctuating, and externally interrupted leaks. This indicates that field sensor data indeed embeds discriminable leak-scenario information that can support incident progression assessment and risk analysis.
- Feature-based clustering is intuitive. K-Means quickly exposes global shape characteristics (e.g., persistence, stability), suiting macro-pattern recognition. However, it depends on hand-crafted features, struggles to capture complex temporal dynamics comprehensively, and is less robust to noise and phase shifts.
- Autoencoders better capture temporal dynamics. The 1D-CNN autoencoder, via convolutions and global pooling, learns sample-level latent vectors that automatically encode local jumps, periodicities, and global trends without labels. Clusters reveal fine-grained evolution—e.g., transitions from stable leak to stop or post-instantaneous decay—better reflecting dynamic processes than K-Means.
- Complementary methods. K-Means excels at macro-scene classification and rapid partitioning; the autoencoder provides refined temporal-evolution analysis. Combined, they enable a “coarse recognition + fine analysis” framework that enhances early warning accuracy and interpretability.
- Practical implications. Beyond demonstrating the feasibility of pattern recognition and scenario classification with real plant data, this approach suggests how to optimize hazardous chemical early-warning systems. By identifying distinct leak patterns and mapping them—via CFD and site feedback—to risk grades, the paradigm can evolve from single-point alarms to intelligent scenario discrimination with linked early-warning actions.
- Limitations and outlook. Constraints include limited sample size, imbalanced scenario distribution, and multiple external interferences. Future work will expand cross-plant datasets and incorporate multi-source fusion (video, meteorology, process parameters) to build multimodal leak-discrimination models. Autoencoders with attention mechanisms or graph neural networks may better capture spatiotemporal dispersion patterns, improving generalization and predictive accuracy.
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Bulletin of the Office of the Work Safety Committee of the State Council Regarding the “11·28” Major Explosion and Deflagration Accident in Zhangjiakou, Hebei Province. Available online: https://www.mem.gov.cn/gk/zfxxgkpt/fdzdgknr/202012/t20201207_374013.shtml (accessed on 15 August 2025).
- TPC Port Neches Explosions and Fire. Available online: https://www.csb.gov/tpc-port-neches-explosions-and-fire/ (accessed on 15 August 2025).
- National Fire Protection Association. NFPA 72: National Fire Alarm and Signaling Code, 2019 ed.; NFPA: Quincy, MA, USA, 2019; Available online: https://edufire.ir/storage/Library/elam/NFPA%2072-2019.pdf (accessed on 20 August 2025).
- Cullen, W.D. The Public Inquiry into the Piper Alpha Disaster; HMSO: London, UK, 1990. Available online: https://www.hse.gov.uk/offshore/piper-alpha-disaster-public-inquiry.htm (accessed on 20 August 2025).
- IEC 61511-1:2016; Functional Safety—Safety Instrumented Systems for the Process Industry Sector—Part 1. IEC: London, UK, 2016. Available online: https://webstore.iec.ch/en/publication/24241 (accessed on 20 August 2025).
- IEC 60079-29-2:2015; Explosive Atmospheres—Part 29-2: Gas Detectors—Selection, Installation, Use and Maintenance. IEC: London, UK, 2015. Available online: https://webstore.iec.ch/en/publication/21961 (accessed on 20 August 2025).
- ISA-TR84.00.07-2018; Guidance on the Evaluation of Fire, Combustible Gas, and Toxic Gas System Effectiveness. ISA: Research Triangle Park, NC, USA, 2018. Available online: https://www.isa.org/products/isa-tr84-00-07-2018-guidance-on-the-evaluation-of (accessed on 20 August 2025).
- NFPA 715; Standard for the Installation of Fuel Gas Detection and Warning Equipment. NFPA: Quincy, MA, USA, 2023. Available online: https://www.nfpa.org/codes-and-standards/nfpa-715-standard-development/715 (accessed on 20 August 2025).
- GB 12358-2024; General Technical Requirements for Workplace Environmental Gas Detectors and Alarms. China Standards Press: Beijing, China, 2024. Available online: https://openstd.samr.gov.cn/bzgk/gb/newGbInfo?hcno=CAB81EA2B8D4788DF49A803C73C0507E (accessed on 22 August 2025).
- GB 50160-2008; Code for Fire Protection Design of Petrochemical Enterprises. China Standards Press: Beijing, China, 2008. Available online: https://sc.119.gov.cn/scxfjyzd/gfbz/2014/7/7/630369cc8a33455ea6fc7782f68c890b.shtml (accessed on 22 August 2025).
- GB/T 50493-2019; Design Standard for Combustible and Toxic Gas Detection and Alarm in Petrochemical Industry. China Planning Press: Beijing, China, 2019. Available online: https://www.gov.cn/zhengce/zhengceku/2019-09/25/content_5454468.htm (accessed on 22 August 2025).
- GB 17681-2024; Technical Specification for Safety Monitoring of Major Hazard Installations of Hazardous Chemicals. China Standards Press: Beijing, China, 2024. Available online: https://openstd.samr.gov.cn/bzgk/gb/newGbInfo?hcno=07550FC116FD753A83069D0A0F963891 (accessed on 22 August 2025).
- Stetter, J.R.; Jurs, P.C.; Rose, S.L. Detection of hazardous gases and vapors: Pattern-recognition analysis of data from an electrochemical sensor array. Anal. Chem. 1986, 58, 860–866. [Google Scholar] [CrossRef]
- Sharma, A.; Khullar, V.; Kansal, I.; Chhabra, G.; Arora, P.; Popli, R.; Kumar, R. Gas detection and classification using multimodal data based on federated learning. Sensors 2024, 24, 5904. [Google Scholar] [CrossRef] [PubMed]
- Potharaju, S.; Tirandasu, R.K.; Tambe, S.N.; Jadhav, D.B.; Kumar, D.A.; Amiripalli, S.S. A two-step machine-learning approach for predictive maintenance and anomaly detection in environmental sensor systems. MethodsX 2025, 14, 103181. [Google Scholar] [CrossRef] [PubMed]
- Zhang, L. Optimization of oil and gas pipeline leakage data and defect identification based on graph neural processing. Ann. Data Sci. 2025, 12, 1413–1430. [Google Scholar] [CrossRef]
- Kang, Z.; Qian, X.; Li, Y.; Hou, L.; Huang, Z.; Duanmu, W.; Yuan, M. Feature extraction of natural gas leakage for an intelligent warning model: A data-driven analysis and modeling. Process Saf. Environ. Prot. 2023, 174, 574–584. [Google Scholar] [CrossRef]
- Thanigaivelu, P.S.; Ranganathan, C.S.; Priya, S.; Asha, R.M.; Murugan, S.; GaneshBabu, T.R. Securing chemical processing plants using Isolation Forest algorithm and IoT sensors for leakage prevention. In Proceedings of the 7th International Conference on Inventive Computation Technologies (ICICT 2024), Kathmandu, Nepal, 24–26 April 2024. [Google Scholar] [CrossRef]
- Paparrizos, J.; Gravano, L. k-Shape: Efficient and accurate clustering of time series. ACM SIGMOD Rec. 2016, 45, 69–76. [Google Scholar] [CrossRef]
- Kazempour, D.; Beer, A.; Schrüfer, O.; Seidl, T. Clustering Trend Data Time-Series through Segmentation of FFT-decomposed Signal Constituents. In Proceedings of the Conference on “Lernen, Wissen, Daten, Analysen” (LWDA 2019), Berlin, Germany, 30 September–2 October 2019; Available online: https://ceur-ws.org/Vol-2454/paper_64.pdf (accessed on 22 August 2025).
- Wang, X.; Smith, K.; Hyndman, R. Characteristic-based clustering for time series data. Data Min. Knowl. Discov. 2006, 13, 335–364. [Google Scholar] [CrossRef]
- Chen, S.; Yu, J.; Wang, S. One-dimensional convolutional auto-encoder-based feature learning for fault diagnosis of multivariate processes. J. Process Control 2020, 87, 54–67. [Google Scholar] [CrossRef]



















| Sensor Type | Sample No. |
|---|---|
| carbon monoxide | 18, 29, 48, 10, 11, 34, 44, 9 |
| butadiene | 12, 23 |
| propylene | 39, 46 |
| acrylonitrile | 14, 19, 20, 21, 30, 31, 32 |
| sulfur dioxide | 60 |
| methane | 55 |
| ammonia | 15, 33, 51, 43, 13, 24 |
| vinyl chloride | 57, 59 |
| ethylene oxide | 22, 61 |
| benzene | 0, 1, 35, 36, 37, 40, 41, 42, 5, 52, 54, 56, 6, 7, 8 |
| unknown | 38, 45, 47, 58, 16, 17, 27, 28, 53 |
| Sample Number | Min | Max | Standard Deviation of First Differences | Autocorrelation at Lag 1 | Autocorrelation at Lag 3 | Autocorrelation at Lag 6 | FFT Band 1 Energy |
|---|---|---|---|---|---|---|---|
| 1 | −1.32706 | 4.620586 | 0.260192 | 0.950937 | 0.651711 | 0.139321 | 19,652.6264 |
| 52 | −1.65775 | 2.376913 | 0.2424456 | 0.959969 | 0.708493 | 0.243905 | 20,988.07925 |
| 44 | −0.50482 | 3.545038 | 0.2228604 | 0.968425 | 0.767406 | 0.36791 | 22,363.36531 |
| 48 | −0.36168 | 3.805253 | 0.2224088 | 0.968849 | 0.776096 | 0.417579 | 22,608.58266 |
| 40 | −0.83239 | 3.518055 | 0.219864 | 0.969357 | 0.792958 | 0.554151 | 22,535.44202 |
| 0 | −1.00419 | 2.602187 | 0.2155932 | 0.966879 | 0.748485 | 0.334752 | 20,423.71543 |
| 13 | −0.53538 | 3.412387 | 0.2108702 | 0.972253 | 0.794703 | 0.456207 | 22,888.40488 |
| 24 | −0.53538 | 3.412387 | 0.2108702 | 0.972253 | 0.794703 | 0.456207 | 22,888.40488 |
| 56 | −1.08731 | 3.064646 | 0.2051731 | 0.972229 | 0.789689 | 0.427625 | 21,555.48367 |
| 43 | −0.37541 | 3.465129 | 0.2036276 | 0.97476 | 0.821291 | 0.573815 | 23,492.06252 |
| Cluster | Sample Counts | Abs_z Median | Amplitude Median | Abs_z > 2.0 Median (Total Time) | Zero Crossings Count Median |
|---|---|---|---|---|---|
| 0 | 15 | 0.77126481 | 2.748384744 | 5 | 3 |
| 1 | 4 | 0.270706386 | 1.42898119 | 12.5 | 4 |
| 2 | 1 | 0.147654238 | 0 | 30 | 2 |
| 3 | 3 | 0.441616587 | 1.654499535 | 5 | 2 |
| 4 | 6 | 0.494996604 | 3.104568234 | 15 | 2 |
| 5 | 10 | 0.455661096 | 2.968139332 | 25 | 2 |
| 6 | 17 | 0.552570624 | 2.666793355 | 15 | 11 |
| Item | Setting |
|---|---|
| Latent dimension (d) | 16 |
| Learning rate (Adam) | 1 × 10−3 |
| Batch size | 64 |
| Max epochs | 300 |
| Early-stopping patience | 30 |
| Weight decay | 1 × 10−5 |
| Dropout | 0.1 |
| Cluster | Sample Counts | Abs_z Median | Amplitude Median | Abs_z > 2.0 Median (Total Time) | Zero Crossings Count Median |
|---|---|---|---|---|---|
| 0 | 11 | 0.765957 | 2.759981 | 10 | 10 |
| 1 | 12 | 0.454202 | 2.732783 | 15 | 3 |
| 2 | 3 | 0.671843 | 3.45946 | 15 | 3 |
| 3 | 8 | 0.520103 | 2.674599 | 15 | 10.5 |
| 4 | 7 | 0.966703 | 2.699907 | 0 | 2 |
| 5 | 4 | 0.600381 | 3.27234 | 15 | 3 |
| 6 | 11 | 0.361681 | 2.857962 | 20 | 5 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Xi, J.; Guan, L.; Zhu, X.; Zong, K.; Yan, W. Pattern Recognition of Hazardous Gas Leak Monitoring Data Based on Field Sensors. Processes 2026, 14, 108. https://doi.org/10.3390/pr14010108
Xi J, Guan L, Zhu X, Zong K, Yan W. Pattern Recognition of Hazardous Gas Leak Monitoring Data Based on Field Sensors. Processes. 2026; 14(1):108. https://doi.org/10.3390/pr14010108
Chicago/Turabian StyleXi, Jian, Lei Guan, Xiaoguang Zhu, Kai Zong, and Wenrui Yan. 2026. "Pattern Recognition of Hazardous Gas Leak Monitoring Data Based on Field Sensors" Processes 14, no. 1: 108. https://doi.org/10.3390/pr14010108
APA StyleXi, J., Guan, L., Zhu, X., Zong, K., & Yan, W. (2026). Pattern Recognition of Hazardous Gas Leak Monitoring Data Based on Field Sensors. Processes, 14(1), 108. https://doi.org/10.3390/pr14010108

