Citation: | ZHANG Pengyang, SHENG Long, WANG Wei, et al. Construction of a mine accident knowledge graph based on Large Language Models[J]. Journal of Mine Automation,2025,51(2):76-83, 105. DOI: 10.13272/j.issn.1671-251x.2024080031 |
Current methods for constructing knowledge graphs in the field of mining require a large amount of manually labeled high-quality supervised data during the pre-training stage, resulting in high labor costs and low efficiency. Large Language Models (LLMs) can significantly improve the quality and efficiency of information extraction with only a small amount of manually labeled high-quality data. However, the prompt-based approach in LLMs suffers from catastrophic forgetting. To address this issue, graph-structured information was embedded into the prompt template and a Graph-Structured Prompt was proposed. By integrating this prompt into the LLM, high-quality construction of a mine accident knowledge graph based on the LLM was achieved. First, publicly available mine accident reports were collected from the Coal Mine Safety Production Network and preprocessed through formatting corrections and redundant information removal. Next, the LLM was utilized to extract knowledge embedded in the accident reports and K-means clustering was used to classify entities and relationships, thereby completing the construction of the mine accident ontology. Then, a small amount of data were labeled based on the ontology, which was used for LLM training and fine-tuning. Finally, the LLM embedded with the Graph-Structured Prompt was employed for information extraction, instantiating entity-relation triples to construct the mine accident knowledge graph. Experimental results showed that LLMs outperformed the Universal Information Extraction (UIE) model in entity and relationship extraction tasks. Moreover, the LLM embedded with the Graph-Structured Prompt achieved higher precision, recall, and F1 scores compared to those without it.
[1] |
JI Shaoxiong,PAN Shirui,CAMBRIA E,et al. A survey on knowledge graphs:representation,acquisition,and applications[J]. IEEE Transactions on Neural Networks and Learning Systems,2022,33(2):494-514. DOI: 10.1109/TNNLS.2021.3070843
|
[2] |
王国法,任怀伟,赵国瑞,等. 智能化煤矿数据模型及复杂巨系统耦合技术体系[J]. 煤炭学报,2022,47(1):61-74.
WANG Guofa,REN Huaiwei,ZHAO Guorui,et al. Digital model and giant system coupling technology system of smart coal mine[J]. Journal of China Coal Society,2022,47(1):61-74.
|
[3] |
郭晓黎,王宇,刘瑞祥. 面向煤矿安全事件本体模型研究与应用[J]. 中国煤炭,2014,40(12):113-116.
GUO Xiaoli,WANG Yu,LIU Ruixiang. Research and application of event ontology model of coal mine accidents[J]. China Coal,2014,40(12):113-116.
|
[4] |
潘理虎,张佳宇,张英俊,等. 煤矿领域知识图谱构建[J]. 计算机应用与软件,2019,36(8):47-54,59. DOI: 10.3969/j.issn.1000-386x.2019.08.009
PAN Lihu,ZHANG Jiayu,ZHANG Yingjun,et al. Construction of knowledge graph in coal mine domain[J]. Computer Applications and Software,2019,36(8):47-54,59. DOI: 10.3969/j.issn.1000-386x.2019.08.009
|
[5] |
李蓓,王鹏,杨政,等. 基于多层次语义约束的煤矿灾害事件本体模型构建[J]. 陕西煤炭,2024,43(4):146-149.
LI Bei,WANG Peng,YANG Zheng,et al. Disaster event ontology model building of coal mine based on multi-level semantic constraints[J]. Shaanxi Coal,2024,43(4):146-149.
|
[6] |
曹现刚,张梦园,雷卓,等. 煤矿装备维护知识图谱构建及应用[J]. 工矿自动化,2021,47(3):41-45.
CAO Xiangang,ZHANG Mengyuan,LEI Zhuo,et al. Construction and application of knowledge graph for coal mine equipment maintenance[J]. Industry and Mine Automation,2021,47(3):41-45.
|
[7] |
王忠强,宋建鑫,余数三,等. 基于依存句法分析的智慧矿山知识图谱构建方法[J]. 矿业研究与开发,2023,43(10):232-240.
WANG Zhongqiang,SONG Jianxin,YU Shusan,et al. A method of constructing knowledge graph of intelligent mines based on dependency syntax analysis[J]. Mining Research and Development,2023,43(10):232-240.
|
[8] |
韩一搏,董立红,叶鸥. 基于联合编码的煤矿综采设备知识图谱构建[J]. 工矿自动化,2024,50(4):84-93.
HAN Yibo,DONG Lihong,YE Ou. Construction of knowledge graph for fully mechanized coal mining equipment based on joint coding[J]. Journal of Mine Automation,2024,50(4):84-93.
|
[9] |
ZHONG Lingfeng,WU Jia,LI Qian,et al. A comprehensive survey on automatic knowledge graph construction[J]. ACM Computing Surveys,2023,56(4):1-62.
|
[10] |
DAGDELEN J,DUNN A,LEE S,et al. Structured information extraction from scientific text with large language models[J]. Nature Communications,2024,15(1). DOI: 10.1038/s41467-024-45563-x.
|
[11] |
HU Yan,CHEN Qingyu,DU Jingcheng,et al. Improving large language models for clinical named entity recognition via prompt engineering[J]. Journal of the American Medical Informatics Association,2024,31(9):1812-1820. DOI: 10.1093/jamia/ocad259
|
[12] |
REMADI A,EL HAGE K,HOBEIKA Y,et al. To prompt or not to prompt:navigating the use of large language models for integrating and modeling heterogeneous data[J]. Data & Knowledge Engineering,2024,152. DOI: 10.1016/J.DATAK.2024.102313.
|
[13] |
AGRAWAL M,HEGSELMANN S,LANG H,et al. Large language models are few-shot clinical information extractors[EB/OL]. [2024-07-25]. https://arxiv.org/abs/2205.12689v2.
|
[14] |
WADHWA S,AMIR S,WALLACE B C. Revisiting relation extraction in the era of large language models[EB/OL]. [2024-07-25]. https://doi.org/10.48550/arXiv.2305.05003.
|
[15] |
冯钧,畅阳红,陆佳民,等. 基于大语言模型的水工程调度知识图谱的构建与应用[J]. 计算机科学与探索,2024,18(6):1637-1647. DOI: 10.3778/j.issn.1673-9418.2311098
FENG Jun,CHANG Yanghong,LU Jiamin,et al. Construction and application of knowledge graph for water engineering scheduling based on large language model[J]. Journal of Frontiers of Computer Science and Technology,2024,18(6):1637-1647. DOI: 10.3778/j.issn.1673-9418.2311098
|
[16] |
WANG Jiaqi,SHI Enze,YU Sigang,et al. Prompt engineering for healthcare:methodologies and applications[EB/OL]. [2024-07-25]. https://arxiv.org/abs/2304.14670?context=cs.
|
[17] |
TONEVA M,SORDONI A,DES COMBES R T,et al. An empirical study of example forgetting during deep neural network learning[EB/OL]. [2024-07-25]. https://arxiv.org/abs/1812.05159.
|
[18] |
LI Lei,JIN Li,ZHANG Zequn,et al. Graph convolution over multiple latent context-aware graph structures for event detection[J]. IEEE Access,2020,8:171435-171446. DOI: 10.1109/ACCESS.2020.3024872
|
[19] |
ZHANG Qianjin,WANG Ronggui,YANG Juan,et al. Structural context-based knowledge graph embedding for link prediction[J]. Neurocomputing,2022,470:109-120. DOI: 10.1016/j.neucom.2021.10.088
|
[20] |
张吉祥,张祥森,武长旭,等. 知识图谱构建技术综述[J]. 计算机工程,2022,48(3):23-37.
ZHANG Jixiang,ZHANG Xiangsen,WU Changxu,et al. Survey of knowledge graph construction techniques[J]. Computer Engineering,2022,48(3):23-37.
|
[21] |
LU Yaojie,LIU Qing,DAI Dai,et al. Unified structure generation for universal information extraction[C]. The 60th Annual Meeting of the Association for Computational Linguistics,Dublin,2022:5755-5772.
|
[1] | Entity Extraction of Coal Mine Safety Accidents with Integrated Lexical Information[J]. Journal of Mine Automation. |
[2] | GAO Hongbo. Design of coal mine emergency rescue auxiliary decision system based on emergency plan[J]. Journal of Mine Automation, 2024, 50(2): 147-152, 160. DOI: 10.13272/j.issn.1671-251x.2023090033 |
[3] | LI Zhe, ZHOU Bin, LI Wenhui, LI Xiaoyun, ZHOU You, FENG Zhanke, ZHAO Han. Construction and application of mine electromechanical equipment accident knowledge graph[J]. Journal of Mine Automation, 2022, 48(1): 109-112. DOI: 10.13272/j.issn.1671-251x.2021100009 |
[4] | WU Panxin, LIU Peng, SHU Ya, YU Qiankun, DING Enjie. Ontology construction and safety rule reasoning of main types of work in coal mine[J]. Journal of Mine Automation, 2022, 48(1): 64-70. DOI: 10.13272/j.issn.1671-251x.2021080053 |
[5] | GUI Dongdong, WANG Xiangqian, LI Huizong. Automatic construction of coal mine accident ontology[J]. Journal of Mine Automation, 2019, 45(9): 75-79. DOI: 10.13272/j.issn.1671-251x.2019030021 |
[6] | ZHU Jia, WANG Xiangqian, ZHANG Baolong, LIU Min. Construction of coal mine accident ontology based on formal concept analysis[J]. Journal of Mine Automation, 2018, 44(5): 26-30. DOI: 10.13272/j.issn.1671-251x.2017120026 |
[7] | SHI Qinfu, LIU Xiulei, LIU Xuhong, SHENG Liguo, HUANG Zhixian. Research on coal mine safety ontology[J]. Journal of Mine Automation, 2018, 44(3): 42-49. DOI: 10.13272/j.issn.1671-251x.2017100007 |
[8] | TAN Chunchao, YANG Jieming. Research on extraction of image gray information and texture features of coal and gangue image[J]. Journal of Mine Automation, 2017, 43(4): 27-31. DOI: 10.13272/j.issn.1671-251x.2017.04.007 |
[9] | LIU Ting, PAN Lihu, ZHANG Sulan, CHEN Lichao, ZHANG Yingjun. Research of ontology construction of coal mining face based on formal concept analysis[J]. Journal of Mine Automation, 2017, 43(1): 73-76. DOI: 10.13272/j.issn.1671-251x.2017.01.018 |
[10] | ZHANG Shan, WU Jian-ping, ZHENG Hong-bo, ZHU Yu-peng. Research of Drill Information Management[J]. Journal of Mine Automation, 2009, 35(7): 30-33. |