基于ERNIE-BiGRU-Attention的电子装备故障关系分类
Electronic Equipment Fault Relation Classification Based on ERNIE-BiGRU-Attention
DOI: 10.12677/csa.2026.1611343, PDF,   
作者: 王昊鹏*:南京航空航天大学公共实验教学部,江苏 南京
关键词: 电子装备;故障文本;关系抽取;ERNIE;BiGRU-Attention;Electronic Equipment; Fault Text; Relation Extraction; ERNIE; BiGRU-Attention
摘要: 针对电子装备故障文本专业术语多、故障现象与原因表述多样的问题,提出基于ERNIE-BiGRU-Attention的实体关系分类方法。以雷达机柜相关故障资料为基础,定义“发生”“采取”“失效原因”和“发现”四类有向关系。模型在原句中通过无类型边界标记指定实体对,不输入实体类型标签;冻结ERNIE预训练权重,利用其768维上下文表示,经BiGRU提取双向特征、Attention聚合语义信息,通过两层全连接与Softmax完成分类。关系样本按8:2划分训练集和测试集,整体指标按测试集类别样本数量加权。模型比较结果中,精确率、召回率和F1分别为92.71%、93.18%和92.94%,F1较ERNIE-BiGRU高1.61个百分点;在所比较的非零隐藏层设置中,256节点的指标最高。研究为指定实体对的故障关系分类及知识图谱三元组组织提供方法支持。结论限于既定四类正关系及现有评估记录,不代表对无关系实体对的判别能力或跨来源稳定性。
Abstract: Electronic equipment fault texts contain specialized terminology and diverse descriptions of fault phenomena and causes. An ERNIE-BiGRU-Attention method is presented for classifying four directed relations: “occurrence”, “action”, “failure cause”, and “discovery”. These relation types were defined based on fault records from radar cabinets. The model uses untyped entity boundary markers within the original sentence without supplying entity type labels. A frozen ERNIE encoder provides 768-dimensional contextual representations, followed by BiGRU, attention, two fully connected layers, and Softmax. Relation instances are divided into training and test sets at an 8:2 ratio, and overall metrics use class-support-weighted averaging on the test set. In the model comparison, precision, recall, and F1 are 92.71%, 93.18%, and 92.94%, respectively. F1 is 1.61 percentage points higher than that of ERNIE-BiGRU. A hidden-layer size of 256 gives the highest metrics among the nonzero configurations compared. The method supports classification of specified entity pairs and organization of fault knowledge triples. These findings are limited to the four positive relation classes and the reported evaluation records; they do not establish rejection of unrelated entity pairs or stability across data sources.
文章引用:王昊鹏. 基于ERNIE-BiGRU-Attention的电子装备故障关系分类[J]. 计算机科学与应用, 2026, 16(11): 276-287. https://doi.org/10.12677/csa.2026.1611343

参考文献

[1] Zhao, X., Deng, Y., Yang, M., Wang, L., Zhang, R., Cheng, H., et al. (2024) A Comprehensive Survey on Relation Extraction: Recent Advances and New Frontiers. ACM Computing Surveys, 56, 1-39.
https://doi.org/10.1145/3674501
[2] Zeng, D., Liu, K., Lai, S., et al. (2014) Relation Classification via Convolutional Deep Neural Network. 2014 Proceedings of the 25th International Conference on Computational Linguistics, Stroudsburg, 25-29 August 2014, 2335-2344.
[3] Zhang, S., Zheng, D., Hu, X., et al. (2015) Bidirectional Long Short-Term Memory Networks for Relation Classification. 2015 Proceedings of the 29th Pacific Asia Conference on Language, Information and Computation, Stroudsburg, 30 October-1 November 2015, 73-78.
[4] He, D., Zhang, H., Hao, W., Zhang, R. and Cheng, K. (2017) A Customized Attention-Based Long Short-Term Memory Network for Distant Supervised Relation Extraction. Neural Computation, 29, 1964-1985.
https://doi.org/10.1162/neco_a_00970
[5] Zhou, P., Shi, W., Tian, J., Qi, Z., Li, B., Hao, H., et al. (2016) Attention-Based Bidirectional Long Short-Term Memory Networks for Relation Classification. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), Berlin, 7-12 August 2016, 207-212.
https://doi.org/10.18653/v1/p16-2034
[6] 冯斌, 张又文, 唐昕, 等. 基于BiLSTM-Attention神经网络的电力设备缺陷文本挖掘[J]. 中国电机工程学报, 2020, 40(S1): 1-10.
[7] Devlin, J., Chang, M.W., Lee, K., et al. (2019) BERT: Pre-Training of Deep Bidirectional Transformers for Language Understanding. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), Minneapolis, June 2019, 4171-4186.
https://doi.org/10.18653/v1/n19-1423
[8] 陈勇刚, 刘康妮, 王帅. 基于BiGRU-Attention改进的航空设备故障知识图谱构建[J]. 航空学报, 2024, 45(18): 229916.
[9] 张友星, 王兴芬. 基于改进CasRel模型的风力发电机故障领域实体关系抽取研究[J]. 人工智能与机器人研究, 2025, 14(3): 670-683.
[10] Qi, C.H., Xu, F., Wang, H.P., et al. (2024) Named Entity Recognition for Electronic Equipment Fault Data Based on Data Augmentation. The 12th International Academic Conference for Graduates, Nanjing, 24-25 October 2024, 263-271.
[11] 漆昌恒. 电子装备故障知识图谱智能构建技术研究[D]: [硕士学位论文]. 南京: 南京航空航天大学, 2025.
[12] Baldini Soares, L., FitzGerald, N., Ling, J. and Kwiatkowski, T. (2019) Matching the Blanks: Distributional Similarity for Relation Learning. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, July 2019, 2895-2905.
https://doi.org/10.18653/v1/p19-1279
[13] Sun, Y., Wang, S.H., Li, Y.K., et al. (2019) ERNIE: Enhanced Representation through Knowledge Integration. arXiv:1904.09223.
https://arxiv.org/abs/1904.09223
[14] Sun, Y., Wang, S., Feng, S., et al. (2021) ERNIE 3.0: Large-Scale Knowledge Enhanced Pre-Training for Language Understanding and Generation. arXiv:2107.02137.
https://arxiv.org/abs/2107.02137
[15] Cho, K., van Merrienboer, B., Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., et al. (2014) Learning Phrase Representations Using RNN Encoder–decoder for Statistical Machine Translation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, October 2014, 1724-1734.
https://doi.org/10.3115/v1/d14-1179