Journal of Computer Applications ›› 2024, Vol. 44 ›› Issue (8): 2393-2399.DOI: 10.11772/j.issn.1001-9081.2023081168

• Artificial intelligence • Previous Articles     Next Articles

Sentiment classification model of psychological counseling text based on attention over attention mechanism

Yuqing WANG1,2, Guangli ZHU1,2(), Wenjie DUAN1,2, Shuyu LI1,2, Ruotong ZHOU1,2   

  1. 1.School of Computer Science and Engineering,Anhui University of Science and Technology,Huainan Anhui 232001,China
    2.Institute of Artificial Intelligence,Hefei Comprehensive National Science Center,Hefei Anhui 230088,China
  • Received:2023-08-31 Revised:2023-09-12 Accepted:2023-10-08 Online:2024-08-22 Published:2024-08-10
  • Contact: Guangli ZHU
  • About author:WANG Yuqing, born in 2000, M. S. candidate. Her researchinterests include sentiment analysis, data mining.
    ZHU Guangli, born in 1971, M. S., associate professor. Herresearch interests include intelligent information processing, affectivecomputing.
    DUAN Wenjie , born in 2000, M. S. candidate. His researchinterests include sentiment analysis.
    LI Shuyu, born in 1999, M. S. candidate. Her research interestsinclude data mining.
    ZHOU Ruotong , born in 2000, M. S. candidate. Her researchinterests include data mining.
  • Supported by:
    This work is partially supported by National Natural ScienceFoundation of China (62076006) ; University Synergy InnovationProgram of Anhui Province (GXXT-2021-008); Graduate InnovationFund Project of Anhui University of Science and Technology(2023cx2124).

基于交互注意力机制的心理咨询文本情感分类模型

汪雨晴1,2, 朱广丽1,2(), 段文杰1,2, 李书羽1,2, 周若彤1,2   

  1. 1.安徽理工大学 计算机科学与工程学院,安徽 淮南 232001
    2.合肥综合性国家科学中心 人工智能研究院,合肥 230088
  • 通讯作者: 朱广丽
  • 作者简介:汪雨晴(2000—),女,安徽蚌埠人,硕士研究生,CCF会员,主要研究方向:情感分析、数据挖掘
    朱广丽(1971—),女,安徽淮南人,副教授,硕士,主要研究方向:智能信息处理、情感计算 glzhu@aust.edu.cn
    段文杰(2000—),男,安徽宿州人,硕士研究生,CCF会员,主要研究方向:情感分析
    李书羽(1999—),女,安徽铜陵人,硕士研究生,主要研究方向:数据挖掘
    周若彤(2000—),女,安徽合肥人,硕士研究生,CCF会员,主要研究方向:数据挖掘。
  • 基金资助:
    国家自然科学基金面上项目(62076006);安徽高校协同创新项目(GXXT?2021?008);安徽理工大学研究生创新基金资助项目(2023cx2124)

Abstract:

Sentiment classification in psychological counseling scenes aims to obtain the sentiment polarity of the inquirer’s utterance, which can provide support for establishing psychological counseling Artificial Intelligence (AI) assistants. Existing methods obtain the sentiment polarity of text through contextual information, failing to consider the sentiment transmission between the current sentence and the forward neighbor sentences in the dialogue record. To address the issue, a model for sentiment classification of psychological counseling text was proposed based on Attention Over Attention (AOA) mechanism. Historical sentiment words were assigned weights by temporal sequence, which improved the accuracy of sentiment classification for psychological counseling text. In a dialogue, historical sentiment word sequences of both sides were extracted by constructed sentiment lexicon of mental health. Subsequently, the current sentence and two sequences of historical sentiment words were input into the Bidirectional Long Short-Term Memory (BiLSTM) network to get corresponding feature vectors. The Ebbinghaus forgetting curve was used to allocate internal weights to the sequences of historical sentiment words. Both inertia features and interaction features were captured by AOA mechanism. Then, the above two features along with the text features were input into the classification layer, calculating the probability of sentiment polarity. Experimental results on public dataset Emotional First Aid Dataset show that the proposed model improves F1 value by 1.55% compared with Capsule network and Directional Graph Convolutional Network (Caps-DGCN) model. Hence the proposed model can effectively improve the sentiment classification effect of psychological counseling text.

Key words: psychological counseling, sentiment lexicon of mental health, Ebbinghaus forgetting curve, Attention Over Attention (AOA) mechanism, Bidirectional Long Short-Term Memory (BiLSTM) network

摘要:

心理咨询场景下的情感分类旨在获得咨询者话语的情感倾向,为建立心理咨询AI助手提供支持。现有的方法利用语境信息获取文本情感倾向,但未考虑对话记录中当前句与前向近邻句之间的情感传递。针对这一问题,提出一种基于交互注意力(AOA)机制的心理咨询文本情感分类模型,根据时序对历史情感词分配权重,进而提高分类准确率。利用构建的心理健康情感词典分别提取对话双方的历史情感词序列,再将当前句和历史情感词序列输入到双向长短期记忆(BiLSTM)网络获取对应的特征向量,并利用艾宾浩斯遗忘曲线对历史情感词序列分配权重。通过AOA机制获得惯性特征和交互特征,并结合文本特征输入到分类层计算情感倾向概率。在公开数据集Emotional First Aid Dataset上的实验结果表明,相较于Caps-DGCN(Capsule network and Directional Graph Convolutional Network)模型,所提模型的F1值提高了1.55%。可见,所提模型可以有效提升心理咨询文本的情感分类效果。

关键词: 心理咨询, 心理健康情感词典, 艾宾浩斯遗忘曲线, 交互注意力机制, 双向长短期记忆网络

CLC Number: