计算机科学 ›› 2026, Vol. 53 ›› Issue (6): 10-18.doi: 10.11896/jsjkx.251200107

• 智能教育技术 • 上一篇    下一篇

基于胶囊网络的教学评价情感分析方法

柯昌博, 李天昊, 张伯雷, 肖甫, 徐康   

  1. 南京邮电大学计算机学院、软件学院、网络空间安全学院 南京 210023
  • 收稿日期:2025-12-17 修回日期:2026-03-22 出版日期:2026-06-15 发布日期:2026-06-09
  • 通讯作者: 李天昊(573411110@qq.com)
  • 作者简介:(brobo.ke@njupt.edu.cn)
  • 基金资助:
    国家杰出青年科学基金(62125203);国家自然科学基金重点项目(61932013);国家自然科学基金面上项目(GZ220040);江苏省自然科学基金面上项目(BK20221327);南京邮电大学教学改革校级重点项目(JG00425JX05)

Teaching Evaluation Sentiment Analysis Method Based on Capsule Network

KE Changbo, LI Tianhao, ZHANG Bolei, XIAO Fu, XU Kang   

  1. College of Computer Science,Nanjing University of Posts and Telecommunications,Nanjing 210023,China
  • Received:2025-12-17 Revised:2026-03-22 Published:2026-06-15 Online:2026-06-09
  • About author:KE Changbo,born in 1984,Ph.D,associate professor,is a member of CCF(No.51631M).His main research interests include vehicular network secu-rity and artificial intelligence.
    LI Tianhao,born in 2000,postgraduate.His main research interests include artificial intelligence and natural language processing.
  • Supported by:
    National Science Fund for Distinguished Young Scholars(62125203),Key Program of the National Natural Science Foundation of China(61932013),General Program of the National Natural Science Foundation of China(GZ220040),General Program of the Natural Science Foundation of Jiangsu Province(BK20221327) and Nanjing University of Posts and Telecommunications Teaching Reform Key Project(JG00425JX05).

摘要: 随着智慧教育的深入推进,教学评价文本的智能化分析成为提升教育质量的重要研究方向。教学评价文本通常具有多维度共存、情感表达隐式以及类别分布不均衡等特征,对细粒度情感分析方法提出了更高要求。为此,提出一种融合RoBERTa预训练语言模型、交叉注意力机制和胶囊网络的情感分析模型CrossAtt-CapsNet-RoBERTa。该模型首先利用 RoBERTa 获取文本与方面类别的深层语义表示;随后,通过跨语义交叉注意力机制强化方面类别与上下文之间的关联;最后,引入可学习的类别引导胶囊,并借助动态路由机制实现方面检测与情感分类的联合建模。为验证模型性能,自主构建了包含9个方面类别的真实教学评价数据集。实验结果表明,所提出的模型在公开数据集Res14上的情感分类准确率达91.3%,在公开数据集MAMS-ACSA上的情感分类准确率达83.68%,均高于基线模型;在自主构建的真实教学评价数据集上,方面检测F1值达79.95%,情感分类准确率达92.76%,均高于对比模型。消融实验进一步证实了交叉注意力机制、类别引导胶囊等模块设计的有效性。此外,在小样本场景下,模型展现出较强的适应性与泛化能力。研究结果为教学评价的智能化处理提供了有效的技术思路。

关键词: 方面类别情感分析, 胶囊网络, 交叉注意力机制, RoBERTa, 教学评价

Abstract: With the deep advancement of smart education,intelligent analysis of teaching evaluation texts has become a crucial research direction for improving educational quality.Teaching evaluation texts typically exhibit features such as multidimensional coexistence,implicit emotional expression,and imbalanced category distribution,which impose higher demands on fine-grained sentiment analysis methods.To address this,a sentiment analysis model named CrossAtt-CapsNet-RoBERTa is proposed,integrating the RoBERTa pretrained language model,cross-attention mechanism,and capsule network.The model first employs RoBERTa to obtain deep semantic representations of texts and aspect categories.Then it strengthens the correlation between aspect categories and context through a cross-semantic cross-attention mechanism.Finally,it introduces learnable category-guided capsules and achieves joint modeling of aspect detection and sentiment classification via dynamic routing.To validate the model's perfor-mance,a real teaching evaluation dataset encompassing nine aspect categories is independently constructed.Experimental results show that the proposed model achieves a sentiment classification accuracy of 91.3% on the public dataset Res14 and 83.68% on the public dataset MAMS-ACSA,both surpassing baseline models;on the independently constructed real teaching evaluation dataset,the aspect detection F1 score reaches 79.95% and sentiment classification accuracy reaches 92.76%,both outperforming comparative models.Ablation experiments further confirm the effectiveness of design elements such as the cross-attention mecha-nism and category-guided capsules.Additionally,the model demonstrates strong adaptability and generalization capabilities in few-shot scenarios.These findings provide effective technical insights for the intelligent processing of teaching evaluations.

Key words: Aspect category sentiment analysis, Capsule network, Cross-attention mechanism, RoBERTa, Teaching evaluation

中图分类号: 

  • TP391
[1]LI X T,YUAN L Y.Construction of a Smart Teaching Evaluation Model Based on Big Data Technology [J].Technology Innovation and Application,2023,13(12):11-14,19.
[2]ZHOU W L.Application and Reflection on AI in Teaching Eva-luation at Higher Vocational Colleges [J].Journal of Hubei Open Vocational College,2025,38(12):151-153.
[3]ZHANG W,LI X,DENG Y,et al.A survey on aspect-based sentiment analysis:Tasks,methods,and challenges[J].IEEE Transactions on Knowledge and Data Engineering,2022,35(11):11019-11038.
[4]HU M,ZHAO S,ZHANG L,et al.CAN:constrained attention networks for multi-aspect sentiment analysis[C]//EMNLP-IJCNLP.2019:4600-4609.
[5]MA Y,PENG H,CAMBRIA E.Targeted aspect based sentiment analysis via embedding common sense knowledge into an attentive LSTM[C]//AAAI.2018:5876-5883.
[6]DAI Z,PENG C,CHEN H,et al.A multi-task incrementallearning framework with category name embedding for aspect-category sentiment analysis[C]//EMNLP.2020:6955-6965.
[7]WAN H,YANG Y,DU J,et al.Target-aspect-sentiment jointdetection for aspect based sentiment analysis[C]//AAAI.2020:9122-9129.
[8]SCHMITT M,STEINHEBER S,SCHREIBER K,et al.Jointaspect and polarity classification for aspect based sentiment analysis with end-to-end neural net works[C]//EMNLP.2018:1109-1114.
[9]CAI H,TU Y,ZHOU X,et al.Aspect category based sentiment analysis with hierarchical graph convolutional network[C]//COLING.2020:833-843.
[10]LI Y,YANG Z,YIN C,et al.A joint model for aspect-category sentiment analysis with shared sentiment prediction layer[C]//CCL.2020:388-400.
[11]LIU J,TENG Z,CUI L,et al.Solving aspect category sentiment analysis as a text generation task[C]//EMNLP.2021:4406-4416.
[12]LIU Y H,OTT M,GOYAL N,et al.Roberta:A robustly optimized bert pretraining approach[J].arXiv:1907.11692,2019.
[13]CUI Y,CHEN Z,WEI S,et al.Attention over-attention neural networks for reading comprehension.[C]//Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics Association for Computational Linguistics,2017:593-602.
[14]SABOUR S,FROSST N,HINTON G E.Dynamic routing between capsules[C]//Proceedings of the 31st International Conference on Neural Information Processing Systems.2017:3856-3866.
[15]PONTIKI M,GALANIS D,PAVLOPOULOS J,et al.SemEval-2014 task 4:Aspect based sentiment analysis[C]//Proceedings of the 8th International Workshop on Semantic Evaluation.2014:27-35.
[16]JIANG Q N,CHEN L,XU R F,et al.A challenge dataset and effective models for aspect-based sentiment analysis[C]//Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Confe-rence on Natural Language Processing(EMNLP-IJCNLP).2019:6280-6285.
[17]HU M T,ZHAO S W,ZHANG L,et al.CAN:Constrained at-tention networks for multi-aspect sentiment analysis[C]//Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Confe-rence on Natural Language Processing(EMNLP-IJCNLP).2019.
[18]LI Y,YIN C,ZHONG S,et al.Multi-Instance Multi-LabelLearning Networks for Aspect-Category Sentiment Analysis[C]//Proceedings of the 2020 Conference on Empirical Me-thods in Natural Language Processing(EMNLP).2020:3550-3560.
[19]XUE W,LI T.Aspect Based Sentiment Analysis with GatedConvolutional Networks[C]//Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics.2018:2514-2523.
[20]MOVAHEDI S,GHADERY E,FAILI H,et al.Aspect category detection via topic-attention network[J].arXiv:1901.01183,2019.
[21]ZHOU X J,WAN X J,XIAO J G.Representation learning for aspect category detection in online reviews[C]//Proceedings of the AAAI Conference on Artificial Intelligence.2015.
[22]WANG Y Q,SUN A X,HUANG M L,et al.Aspect-level sentiment analysis using as-capsules[C]//The World Wide Web Conference.2019.
[23]SUN C,HUANG L Y,QIU X P.Utilizing BERT for aspect-based sentiment analysis via constructing auxiliary sentenc[J].arXiv:1903.09588,2019.
[24]LIU J,TENG Z Y,CUI L Y,et al.Solving aspect category sentiment analysis as a text generation task[J].arXiv:2110.07310,2021.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!