基于知识图谱与双重图卷积的情感分类模型
Emotion Classification Model Based on Knowledge Graph and Dual Graph Convolution
DOI: 10.12677/csa.2025.1511298, PDF,   
作者: 林军利*, 李 婷:重庆人文科技学院有限责任公司计算机工程学院,重庆
关键词: 知识图谱图卷积神经网络情感分析Knowledge Graph Graph Convolutional Neural Network Sentiment Analysis
摘要: 在情感分析的任务中,获取文本语义信息、句法信息和外部知识是至关重要的。但是目前的算法模型中,文本与外部知识的关联较少,导致语义表示不够全面。所以本文提出一种基于知识图谱与双重图卷积的情感分类模型。模型先利用LSTM算法提取文本的上下文信息,同时采用知识图谱卷积网络获取与文本相关的实体的外部知识;再通过实体对齐和对齐预测,进行动态融合文本嵌入与知识嵌入;最后将融合了文本和知识的信息作为输入,使用句法图卷积网络和语义图卷积网络获取句法和语义信息,实现情感分析。根据实验表明,该模型融合了文本与实体知识,增强了语义语法信息,有效提升了情感分类的准确性。
Abstract: In sentiment analysis tasks, acquiring textual semantic information, syntactic information, and external knowledge is crucial. However, current algorithmic models often lack sufficient association between text and external knowledge, resulting in incomplete semantic representation. Therefore, this paper proposes a sentiment classification model based on a knowledge graph and dual graph convolution. The model first employs the LSTM algorithm to extract contextual information from the text, while using a knowledge graph convolutional network to acquire external knowledge related to entities in the text. Then, through entity alignment and alignment prediction, it dynamically integrates text embeddings and knowledge embeddings. Finally, the fused information combining text and knowledge is used as input, and a syntactic graph convolutional network and a semantic graph convolutional network are applied to capture syntactic and semantic information, thereby achieving sentiment analysis. Experiments demonstrate that this model effectively integrates text and entity knowledge, enhances semantic and syntactic information, and significantly improves the accuracy of sentiment classification.
文章引用:林军利, 李婷. 基于知识图谱与双重图卷积的情感分类模型[J]. 计算机科学与应用, 2025, 15(11): 207-219. https://doi.org/10.12677/csa.2025.1511298

参考文献

[1] 李阳, 王石, 朱俊武, 等. 方面级情感分析综述[J]. 计算机科学, 2023, 50(S1): 34-40.
[2] Krizhevsky, A., Sutskever, I. and Hinton, G.E. (2012) Imagenet Classification with Deep Convolutional Neural Networks. Advances in Neural Information Processing Systems, 25, 1097-1105.
[3] 夏敏捷, 师钰博, 樊银亭. 双特征增强的图卷积网络用于方面级情感分析[J]. 计算机工程与设计, 2025, 46(8): 2426-2433.
[4] 张凤, 邵玉斌, 杜庆治, 等. 基于双通道图卷积网络的多模态方面级情感分析[J]. 计算机工程与科学, 2025, 47(7): 1321-1330.
[5] 张换香, 彭俊杰. 基于方面级情感分析的深度语义挖掘模型[J]. 电子学报, 2024, 52(7): 2307-2319.
[6] Li, J., Liu, Y. and Zou, L. (2020) Dyngcn: A Dynamic Graph Convolutional Network Based on Spatial-Temporal Modeling. In: Huang, Z., Beek, W., Wang, H., Zhou, R. and Zhang, Y., Eds., Lecture Notes in Computer Science, Springer International Publishing, 83-95. [Google Scholar] [CrossRef
[7] Li, R., Chen, H., Feng, F., Ma, Z., Wang, X. and Hovy, E. (2021) Dual Graph Convolutional Networks for Aspect-Based Sentiment Analysis. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, 1, 6319-6329.
[8] Marcheggiani, D. and Titov, I. (2017) Encoding Sentences with Graph Convolutional Networks for Semantic Role Labeling. Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, Copenhagen, 7-11 September 2017, 1506-1515. [Google Scholar] [CrossRef
[9] Peng, C., Zhang, X., Yu, G., Luo, G. and Sun, J. (2017) Large Kernel Matters—Improve Semantic Segmentation by Global Convolutional Network. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, 21-26 July 2017, 1743-1751. [Google Scholar] [CrossRef
[10] Wang, H., Zhao, M., Xie, X., Li, W. and Guo, M. (2019) Knowledge Graph Convolutional Networks for Recommender Systems. The World Wide Web Conference, San Francisco, 13-17 May 2019, 3307-3313. [Google Scholar] [CrossRef
[11] Lin, J., Yin, S., Jia, B. and Wang, N. (2022) A Recommendation Algorithm for Auto Parts Based on Knowledge Graph and Convolutional Neural Network. In: Li, T., et al., Eds., Communications in Computer and Information Science, Springer, 57-71. [Google Scholar] [CrossRef
[12] Cortes, C. and Vapnik, V. (1995) Support-Vector Networks. Machine Learning, 20, 273-297. [Google Scholar] [CrossRef
[13] Friedman, N., Geiger, D. and Goldszmidt, M. (1997) Bayesian Network Classifiers. Machine Learning, 29, 131-163. [Google Scholar] [CrossRef
[14] Shi, X., Chen, Z., Wang, H., Yeung, D.Y., Wong, W.K. and Woo, W.C. (2015) Convolutional LSTM Network: A Machine Learning Approach for Precipitation Nowcasting. Neural Information Processing Systems, 802-810.
[15] Lipton, Z.C., Berkowitz, J. and Elkan, C. (2015) A Critical Review of Recurrent Neural Networks for Sequence Learning. Computer Science, 215, 15-25.
[16] 徐增林, 盛泳潘, 贺丽荣, 王雅芳. 知识图谱技术综述[J]. 电子科技大学学报, 2016, 45(4): 589-606.
[17] Bai, H., Wang, D., Feng, S. and Zhang, Y. (2025) EKBSA: A Chinese Sentiment Analysis Model by Enhancing K-BERT. Journal of Computer Science and Technology, 40, 60-72. [Google Scholar] [CrossRef
[18] Li, D.Y., Liang, Y.Y., Qian, S.Y., Wu, H.G., Jia, W., Fu, Y.L. and Sun, Y.F. (2025) A Review of Background, Methods, Limitations and Opportunities of Knowledge Graph Completion. Computer Science Review, 58, 100809. [Google Scholar] [CrossRef
[19] Slam, S.M. and Bhattacharya, S. (2021) Scalable End-to-End Training of Knowledge Graph-Enhanced Aspect Embedding for Aspect Level Sentiment Analysis. arXiv: 2108.11656
[20] 邓立明, 魏晶晶, 吴运兵, 余小燕, 廖祥文. 基于知识图谱与循环注意力网络的视角级情感分析[J]. 模式识别与人工智能, 2020, 33(6): 479-487.
[21] 刘斐瑜, 俞卫琴. 融合BERT和知识图谱的文本情感分析模型[J]. 建模与仿真, 2023, 12(4): 4195-4200.
[22] Che, W., Feng, Y., Qin, L. and Liu, T. (2021) N-LTP: An Open-Source Neural Language Technology Platform for Chinese. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, 7-11 November 2021, 42-49. [Google Scholar] [CrossRef
[23] Wang, Y., Huang, M., Zhu, X. and Zhao, L. (2016) Attention-Based LSTM for Aspect-Level Sentiment Classification. Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, Austin, 1-5 November 2016, 606-615. [Google Scholar] [CrossRef
[24] Ma, D., Li, S., Zhang, X. and Wang, H. (2017) Interactive Attention Networks for Aspect-Level Sentiment Classification. Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, Melbourne, 19-25 September 2017, 4068-4074. [Google Scholar] [CrossRef