Intelligent Gas Risk Assessment and Report Generation for Coal Mines: An Innovative Framework Based on GLM Fine-Tuning
Abstract
:1. Introduction
- This paper meticulously constructs a high-quality risk assessment (RA) dataset based on the gas alarm data collected by sensors at the coal mine production site, including historical alarm data from various measurement points such as carbon monoxide (CO), laser methane (CH4), oxygen (O2), etc., for fine-tuning a general-purpose LLMs.
- Based on real-time data collection from various gas sensors and coal mine gas judgment standards, a domain-specific knowledge base for coal mining was constructed. Through the integration of RAG technology, efficient indexing, semantic matching, and intelligent inference analysis of the knowledge base are achieved, forming an efficient workflow covering alarm judgment to emergency measure suggestions, and ultimately achieving automated generation of assessment results and reports.
- The framework adopts a hierarchical graph structure from LangGraph to optimize the collaborative interaction between LLMs multi-agent systems. Through fine-tuning the parameters of agent models and task scheduling configuration, it ensures the efficient execution of report generation tasks within the predefined workflow. A human-in-the-loop feedback mechanism is introduced to strengthen the model’s decision making through real-time user feedback.
2. Related Work
2.1. Current Research on Intelligent Assessment Systems
2.2. Current Research on LLMs and Multi-Agent Structures
3. Overall Framework of IGRARG
4. Key Modules
4.1. Data Collection and Processing Module in Coal Mine Scenarios
4.1.1. Data Collection
4.1.2. Knowledge Base Construction and Retrieval
- Retrieval Phase
- Generation Phase
4.2. Fine-Tuning of the Large Language Model Phase
4.2.1. Selection of the Base Large Language Model
4.2.2. Dataset Construction
4.2.3. Fine-Tuning
4.2.4. Testing and Optimization
4.3. Intelligent Assessment and Report Generation Module
4.3.1. Hierarchical Management Mechanism
4.3.2. Hierarchical Agent Structure Explanation
- Alarm Assessment Layer
- Gas Standard Retrieval Agent
- Alarm Judgment Agent
- 2.
- Recommendation Layer
- Alarm Response Method Retrieval Agent
- Solution Measures Agent
- 3.
- Weekly Report Generation Layer
- Historical Alarm Data Retrieval Agent
- Exceedance and Major Safety Risk Trend Data Retrieval Agent
- Chart Generation Agent
- Weekly Report Generation Agent
4.4. Evaluation and Review
4.4.1. Assessment Result Evaluation
4.4.2. Report Evaluation
4.4.3. Expert Evaluation
5. Experiment Results and Analysis
5.1. Experimental Platform and Model Configuration
5.2. Experimental Results Analysis
5.2.1. Risk Assessment Result Analysis
5.2.2. Analysis of Evaluation Report Results
5.2.3. Evaluation of Experimental Results
5.3. Discussion
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Wang, J.; Huang, Y.; Zhai, W.; Li, J.; Ouyang, S.; Gao, H.; Liu, Y.; Wang, G. Research on Coal Mine Safety Management Based on Digital Twin. Heliyon 2023, 9, e13608. [Google Scholar] [CrossRef] [PubMed]
- Wang, E.; Li, Z.; Li, B.; Qin, B.; Xu, J.; Li, N.; Liu, X. Big data monitoring and early warning cloud platform for coal mine gas disaster risk and potential danger and its application. Coal Sci. Technol. 2022, 50, 142–150. [Google Scholar]
- You, M.; Li, S.; Li, D.; Xu, S. Applications of Artificial Intelligence for Coal Mine Gas Risk Assessment. Saf. Sci. 2021, 143, 105420. [Google Scholar] [CrossRef]
- Zhang, G.; Wang, E.; Zhang, C.; Li, Z.; Wang, D. A Comprehensive Risk Assessment Method for Coal and Gas Outburst in Underground Coal Mines Based on Variable Weight Theory and Uncertainty Analysis. Process Saf. Environ. Prot. 2022, 167, 97–111. [Google Scholar] [CrossRef]
- Gong, W.; Hu, J.; Wang, Z.; Wei, Y.; Li, Y.; Zhang, T.; Zhang, Q.; Liu, T.; Ning, Y.; Zhang, W.; et al. Recent Advances in Laser Gas Sensors for Applications to Safety Monitoring in Intelligent Coal Mines. Front. Phys. 2022, 10, 1058475. [Google Scholar] [CrossRef]
- Jia, Q.; Fu, G.; Xie, X.; Hu, S.; Wu, Y.; Li, J. LPG Leakage and Explosion Accident Analysis Based on a New SAA Method. J. Loss Prevent. Process Ind. 2021, 71, 104467. [Google Scholar] [CrossRef]
- Yan, K.; Wang, Y.; Jia, L.; Wang, W.; Liu, S.; Geng, Y. A Content-Aware Corpus-Based Model for Analysis of Marine Accidents. Accid. Anal. Prev. 2023, 184, 106991. [Google Scholar] [CrossRef] [PubMed]
- Shekhar, H.; Agarwal, S. Automated Analysis through Natural Language Processing of DGMS Fatality Reports on Indian Non-Coal Mines. In Proceedings of the 2021 5th International Conference on Information Systems and Computer Networks (ISCON), Mathura, India, 22–23 October 2021; pp. 1–6. [Google Scholar]
- Han, Z.; Gao, C.; Liu, J.; Zhang, J.; Zhang, S.Q. Parameter-efficient Fine-tuning for Large Models: A Comprehensive Survey. arXiv 2024, arXiv:2403.14608. [Google Scholar]
- Gao, Y.; Xiong, Y.; Gao, X.; Jia, K.; Pan, J.; Bi, Y.; Dai, Y.; Sun, J.; Wang, M.; Wang, H. Retrieval-augmented Generation for Large Language Models: A Survey. arXiv 2023, arXiv:2312.10997. [Google Scholar]
- Zhao, Z.; Yang, Y.; Wang, Y.; Zhang, J.; Wang, D.; Luo, X. Summarization of Coal Mine Accident Reports: A Natural-Language-Processing-Based Approach. In Proceedings of the International 2020 Cyberspace Congress on Cyberspace Data and Intelligence, and Cyber-Living, Syndrome, and Health (CyberDI/CyberLife 2020), Beijing, China, 10–12 December 2020; pp. 103–115. [Google Scholar]
- Jia, Q.; Fu, G.; Xie, X.; Xue, Y.; Hu, S. Enhancing Accident Cause Analysis through Text Classification and Accident Causation Theory: A Case Study of Coal Mine Gas Explosion Accidents. Process Saf. Environ. Prot. 2024, 185, 989–1002. [Google Scholar] [CrossRef]
- Andersen, T.; Vinkovic, K.; de Vries, M.; Kers, B.; Necki, J.; Swolkien, J.; Roiger, A.; Peters, W.; Chen, H. Quantifying Methane Emissions from Coal Mining Ventilation Shafts Using an Unmanned Aerial Vehicle (UAV)-Based Active AirCore System. Atmos. Environ. X 2021, 12, 100135. [Google Scholar] [CrossRef]
- Cai, Y.; Jin, Y.; Wang, Z.; Chen, T.; Wang, Y.; Kong, W.; Hu, H. A Review of Monitoring, Calculation, and Simulation Methods for Ground Subsidence Induced by Coal Mining. Int. J. Coal Sci. Technol. 2023, 10, 32. [Google Scholar] [CrossRef]
- Zhang, H.; Li, B.; Karimi, M.; Saydam, S.; Hassan, M. Recent Advancements in IoT Implementation for Environmental, Safety, and Production Monitoring in Underground Mines. IEEE Internet Things J. 2023, 10, 14507–14526. [Google Scholar] [CrossRef]
- Liang, Y. Research Progress on Risk Identification, Assessment, Monitoring and Early Warning Technologies of Typical Dynamic Hazards in Coal Mines. J. China Coal Soc. 2020, 45. [Google Scholar] [CrossRef]
- Xie, X.; Shen, S.; Fu, G.; Shu, X.; Hu, J.; Jia, Q.; Shi, Z. Accident Case Data–Accident Cause Model Hybrid-Driven Coal and Gas Outburst Accident Analysis: Evidence from 84 Accidents in China during 2008–2018. Process Saf. Environ. Prot. 2022, 164, 67–90. [Google Scholar] [CrossRef]
- Shu, L.; Zhu, N.; Chen, J.; An, S.; Zhang, H. Theoretical Method and Technology of Precision Identification for Coal and Gas Outburst Hazard. J. China Coal Soc. 2020, 45. [Google Scholar] [CrossRef]
- Matloob, S.; Li, Y.; Khan, K.Z. Safety Measurements and Risk Assessment of Coal Mining Industry Using Artificial Intelligence and Machine Learning. Open J. Bus. Manag. 2021, 9, 1198–1209. [Google Scholar] [CrossRef]
- Anani, A.; Adewuyi, S.O.; Risso, N.; Nyaaba, W. Advancements in Machine Learning Techniques for Coal and Gas Outburst Prediction in Underground Mines. Int. J. Coal Geol. 2024, 285, 104471. [Google Scholar] [CrossRef]
- Sharma, M.; Maity, T. Review on Machine Learning-Based Underground Coal Mines Gas Hazard Identification and Estimation Techniques. Arch. Comput. Methods Eng. 2024, 31, 371–388. [Google Scholar] [CrossRef]
- Cao, X.; Xu, W.; Zhao, J.; Duan, Y.; Yang, X. Research on Large Language Model for Coal Mine Equipment Maintenance Based on Multi-Source Text. Appl. Sci. 2024, 14, 2946. [Google Scholar] [CrossRef]
- Wang, R.; Chen, S.; Li, X.; Tian, G.; Zhao, T. AdaBoost-Driven Multi-Parameter Real-Time Warning of Rock Burst Risk in Coal Mines. Eng. Appl. Artif. Intell. 2023, 125, 106591. [Google Scholar] [CrossRef]
- Xie, X.; Shu, X.; Fu, G.; Shen, S.; Jia, Q.; Hu, J.; Wu, Z. Accident Causes Data-Driven Coal and Gas Outburst Accidents Prevention: Application of Data Mining and Machine Learning in Accident Path Mining and Accident Case-Based Deduction. Process Saf. Environ. Prot. 2022, 162, 891–913. [Google Scholar] [CrossRef]
- Wang, G.; Ren, H.; Zhao, G.; Zhang, D.; Wen, Z.; Meng, L.; Gong, S. Research and Practice of Intelligent Coal Mine Technology Systems in China. Int. J. Coal Sci. Technol. 2022, 9, 24. [Google Scholar] [CrossRef]
- Onifade, M.; Adebisi, J.A.; Shivute, A.P.; Genc, B. Challenges and Applications of Digital Technology in the Mineral Industry. Resour. Policy 2023, 85, 103978. [Google Scholar] [CrossRef]
- Hao, Y.; Wu, Y.; Ranjith, P.G.; Zhang, K.; Zhang, H.; Chen, Y.; Li, P. New Insights on Ground Control in Intelligent Mining with Internet of Things. Comput. Commun. 2020, 150, 788–798. [Google Scholar] [CrossRef]
- Deng, J.; Li, X.; Wang, K.; Wang, W.; Yan, J.; Tang, Z.; Ren, S. Research Progress and Prospect of Mine Fire Intelligent Monitoring and Early Warning Technology in Recent 20 Years. Coal Sci. Technol. 2024, 52, 154–177. [Google Scholar]
- Achiam, J.; Adler, S.; Agarwal, S.; Ahmad, L.; Akkaya, I.; Aleman, F.L.; McGrew, B. GPT-4 Technical Report. arXiv 2023, arXiv:2303.08774. [Google Scholar]
- Ouyang, L.; Wu, J.; Jiang, X.; Almeida, D.; Wainwright, C.; Mishkin, P.; Lowe, R. Training Language Models to Follow Instructions with Human Feedback. Adv. Neural Inf. Process. Syst. 2022, 35, 27730–27744. [Google Scholar]
- Chen, Z.; Mao, H.; Li, H.; Jin, W.; Wen, H.; Wei, X.; Tang, J. Exploring the Potential of Large Language Models (LLMs) in Learning on Graphs. ACM SIGKDD Explor. Newsl. 2024, 25, 42–61. [Google Scholar] [CrossRef]
- Raffel, C.; Shazeer, N.; Roberts, A.; Lee, K.; Narang, S.; Matena, M.; Liu, P.J. Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer. J. Mach. Learn. Res. 2020, 21, 1–67. [Google Scholar]
- Liu, Y. RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv 2019, arXiv:1907.11692. [Google Scholar]
- Xiao, C.; Hu, X.; Liu, Z.; Tu, C.; Sun, M. LawFormer: A Pre-trained Language Model for Chinese Legal Long Documents. AI Open 2021, 2, 79–84. [Google Scholar] [CrossRef]
- Thirunavukarasu, A.J.; Ting, D.S.J.; Elangovan, K.; Gutierrez, L.; Tan, T.F.; Ting, D.S.W. Large Language Models in Medicine. Nat. Med. 2023, 29, 1930–1940. [Google Scholar] [CrossRef] [PubMed]
- Huang, A.H.; Wang, H.; Yang, Y. FinBERT: A Large Language Model for Extracting Information from Financial Text. Contemp. Account. Res. 2023, 40, 806–841. [Google Scholar] [CrossRef]
- Pu, H.; Yang, X.; Li, J.; Guo, R. AutoRepo: A General Framework for Multimodal LLM-Based Automated Construction Reporting. Expert Syst. Appl. 2024, 255, 124601. [Google Scholar] [CrossRef]
- Guo, T.; Chen, X.; Wang, Y.; Chang, R.; Pei, S.; Chawla, N.V.; Zhang, X. Large Language Model Based Multi-Agents: A Survey of Progress and Challenges. arXiv 2024, arXiv:2402.01680. [Google Scholar]
- Cheng, Y.; Zhang, C.; Zhang, Z.; Meng, X.; Hong, S.; Li, W.; He, X. Exploring Large Language Model Based Intelligent Agents: Definitions, Methods, and Prospects. arXiv 2024, arXiv:2401.03428. [Google Scholar]
- Barua, S. Exploring Autonomous Agents through the Lens of Large Language Models: A Review. arXiv 2024, arXiv:2404.04442. [Google Scholar]
- Sha, H.; Mu, Y.; Jiang, Y.; Chen, L.; Xu, C.; Luo, P.; Li, S.E.; Tomizuka, M.; Zhan, W.; Ding, M. LanguageMPC: Large Language Models as Decision Makers for Autonomous Driving. arXiv 2023, arXiv:2310.03026. [Google Scholar]
- Kim, Y.; Park, C.; Jeong, H.; Chan, Y.S.; Xu, X.; McDuff, D.; Breazeal, C.; Park, H.W. Adaptive Collaboration Strategy for LLMs in Medical Decision Making. arXiv 2024, arXiv:2404.15155. [Google Scholar]
- Hu, E.J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; Chen, W. LoRA: Low-rank adaptation of large language models. arXiv 2021, arXiv:2106.09685. [Google Scholar]
- Dettmers, T.; Pagnoni, A.; Holtzman, A.; Zettlemoyer, L. QLoRA: Efficient finetuning of quantized LLMs. Adv. Neural Inf. Process. Syst. 2024, 36. [Google Scholar]
- Zhang, T.; Kishore, V.; Wu, F.; Weinberger, K.Q.; Artzi, Y. BERTScore: Evaluating Text Generation with BERT. arXiv 2019, arXiv:1904.09675. [Google Scholar]
Mine Name | Installation Location | Measurement Type | Maximum Value | Unit | Time |
---|---|---|---|---|---|
Mine A | Main Return Airway | CH4 | 0 | %CH4 | 13 December 2024, 10:43:47 |
Longwall Face Spontaneous Combustion Monitoring Point | CO | 29 | ppm | 14 December 2024, 12:23:03 | |
Upper Corner of Coal Face | O2 | 18 | % | 14 December 2024, 11:34:03 | |
Return Air Roadway | CO2 | 2.06 | % | 7 December 2024, 22:56:17 |
Gas Type | Low Risk | Moderate Risk | High Risk | Extreme Risk | Alarm Threshold |
---|---|---|---|---|---|
CH4 | x ≤ 0.5% | 0.5% < x ≤ 0.8% | 0.8% < x ≤ 1.0% | >1.0% | 1.0% |
CO | x ≤ 12.0 ppm | 12.0 ppm < x ≤ 18.0 ppm | 18.0 ppm < x ≤ 24.0 ppm | >24.0 ppm | 24.0 ppm |
O2 | x ≤ 9.0% | 9.0% < x ≤ 14.0% | 14.0% < x ≤ 18.0% | >18.0% | 18.0% |
CO2 | x ≤ 0.5% | 0.5% < x ≤ 0.8% | 0.8% < x ≤ 1.0% | >1.0% | 1.0% |
H2S | x ≤ 6.6 ppm | 6.6 ppm < x ≤ 10 ppm | 10 ppm < x ≤ 13.2 ppm | >13.2 ppm | 13.2 ppm |
H2 | x ≤ 0.2% | 0.2% < x ≤ 0.35% | 0.35% < x ≤ 0.5% | >0.5% | 0.5% |
Dataset Example | |
---|---|
Instruction | You are an expert in coal mine gas risk assessment. Please conduct a risk evaluation of the input laser methane data based on coal mine safety regulations. |
Input | The coal mine is named xxx, and the specific installation location is at the upper mouth of the No. 2 coal bin underground; the measurement type at this point is laser methane, with a maximum concentration reading of 2.01% CH4; Please output the current gas concentration alarm status, corresponding response measures, and classify the current gas concentration into a risk level. |
Output | The current alarm type is calibration; the potential cause of the alarm is gas electrical interlock testing; the response measure for this alarm type is to follow standard operating procedures. Additionally, based on the measured value of 2.01% CH4, the concentration is classified as an extremely high risk. The current gas concentration poses a severe threat to the safety of the mine and requires immediate emergency measures to reduce the methane concentration to a safe range. |
Gas Type | Low Risk Accuracy | Moderate Risk Accuracy | High Risk Accuracy | Extreme Risk Accuracy | Overall Accuracy |
---|---|---|---|---|---|
CH4 | 0.90 | 0.88 | 0.92 | 0.91 | 0.91 |
CO | 0.85 | 0.87 | 0.89 | 0.90 | 0.88 |
O2 | 0.86 | 0.84 | 0.87 | 0.89 | 0.86 |
CO2 | 0.87 | 0.85 | 0.88 | 0.86 | 0.86 |
H2 | 0.88 | 0.85 | 0.86 | 0.84 | 0.85 |
H2S | 0.86 | 0.83 | 0.85 | 0.87 | 0.85 |
Overall Average Accuracy | 0.87 | 0.85 | 0.88 | 0.88 | 0.87 |
Method | Accuracy (%) | Efficiency | Application Scenarios |
---|---|---|---|
Expert Experience Method | 60% to 70% | within minutes | Data scarcity or emergency situations |
Fixed Threshold Monitoring Method | 70% to 80% | within seconds | Simple gas concentration monitoring |
Mathematical Model Prediction | 85% to 95% | minutes to hours | Short- to medium-term gas concentration prediction |
Expert System Method | 80% to 90% | seconds to minutes | Risk assessment in complex environments |
Traditional Neural Network Method | 85% to 95% | seconds to minutes | Multi-factor, nonlinear risk prediction |
IGRARG framework | 85% to 93% | seconds to minutes for inference | Dynamic risk assessment in complex environments |
Model | Frequency | BERTScore Precision | BERTScore Recall | BERTScore F1 | Grammar Errors | Diversity Score | Generation Time (s) |
---|---|---|---|---|---|---|---|
Base GLM | 300 | 0.9264 | 0.9262 | 0.9263 | 0.031 | 0.83 | 3.4 |
Fine-tuned GLM | 300 | 0.9435 | 0.9458 | 0.9446 | 0.027 | 0.79 | 4.2 |
Evaluation Category | Score (Out of 100) | Weight | Weighted Score |
---|---|---|---|
Report Generation | 94.46 | 0.3 | 28.338 |
Risk Judgment | 87.00 | 0.4 | 34.800 |
Expert Evaluation | 81.49 | 0.3 | 24.447 |
Overall Weighted Score | - | - | 87.585 * |
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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Sun, Y.; Han, Y.; Liu, X. Intelligent Gas Risk Assessment and Report Generation for Coal Mines: An Innovative Framework Based on GLM Fine-Tuning. Electronics 2025, 14, 379. https://doi.org/10.3390/electronics14020379
Sun Y, Han Y, Liu X. Intelligent Gas Risk Assessment and Report Generation for Coal Mines: An Innovative Framework Based on GLM Fine-Tuning. Electronics. 2025; 14(2):379. https://doi.org/10.3390/electronics14020379
Chicago/Turabian StyleSun, Yi, Ying Han, and Xinke Liu. 2025. "Intelligent Gas Risk Assessment and Report Generation for Coal Mines: An Innovative Framework Based on GLM Fine-Tuning" Electronics 14, no. 2: 379. https://doi.org/10.3390/electronics14020379
APA StyleSun, Y., Han, Y., & Liu, X. (2025). Intelligent Gas Risk Assessment and Report Generation for Coal Mines: An Innovative Framework Based on GLM Fine-Tuning. Electronics, 14(2), 379. https://doi.org/10.3390/electronics14020379