Computer Science ›› 2026, Vol. 53 ›› Issue (6): 10-18.doi: 10.11896/jsjkx.251200107

• Intelligent Education Technology • Previous Articles     Next Articles

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 Online:2026-06-15 Published: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).

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

CLC Number: 

  • 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.
[1] LIU Dehua, YU Saixuan, QIAO Jinlan, HUANG Heqing, CHENG Wenhui. Denoising Diffusion Model-enhanced Algorithm for Battery Swap Demand Data Generation [J]. Computer Science, 2026, 53(4): 163-172.
[2] WANG Rui, TANG Zhanjun. Multi-feature Fusion and Ensemble Learning-based Wind Turbine Blade Defect Detection Method [J]. Computer Science, 2025, 52(6A): 240900138-8.
[3] YANG Hua, WANG Baohui. Bidding Document Named Entity Recognition Algorithm Based on Multi-head Attention Mechanism and Dictionary Feature Fusion [J]. Computer Science, 2025, 52(11A): 241000154-6.
[4] WU Lin, SUN Jing-yu. Multi-branch RA Capsule Network and Its Application in Image Classification [J]. Computer Science, 2022, 49(6): 224-230.
[5] FAN Hong-jie, LI Xue-dong, YE Song-tao. Aided Disease Diagnosis Method for EMR Semantic Analysis [J]. Computer Science, 2022, 49(1): 153-158.
[6] CHEN Zhi-wen, WANG Kun, ZHOU Guang-yun, WANG Xu, ZHANG Xiao-dan, ZHU Hu-ming. SAR Image Change Detection Method Based on Capsule Network with Weight Pruning [J]. Computer Science, 2021, 48(7): 190-198.
[7] LIU Hai-chao, WANG Li. Graph Classification Model Based on Capsule Deep Graph Convolutional Neural Network [J]. Computer Science, 2020, 47(9): 219-225.
[8] ZHANG Tian-zhu, ZOU Cheng-ming. Study on Image Classification of Capsule Network Using Fuzzy Clustering [J]. Computer Science, 2019, 46(12): 279-285.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!