Algorithm Design for User Emotion Perception and Psychological State Prediction in Large Language Model Interaction
Main Article Content
Abstract
With the continuous evolution of intelligent communication systems and distributed information processing technologies, real-time perception of user states has become an important component of adaptive human–machine interaction. This study proposes a dual-task parallel algorithm for instantaneous emotion perception and deep psychological state prediction in large language model interaction under pure text communication. The framework jointly models lexical features, syntactic complexity, interaction rhythm, topic coherence, and language habits to achieve synchronized short-term emotion tracking and long-term psychological state inference, while introducing an uncertainty estimation mechanism for confidence-aware decision making and interaction avoidance. Experimental results demonstrate that the proposed method achieves a macro F1 score of 0.85 for instantaneous emotion classification and a Pearson product-moment correlation coefficient of 0.76 for deep psychological state prediction, outperforming representative baseline approaches. Furthermore, confidence-driven interaction avoidance effectively suppresses high-risk misjudgments and improves overall interaction reliability. By integrating multi-level semantic perception with uncertainty-aware inference, the proposed framework provides an efficient solution for adaptive information processing and intelligent decision support, offering valuable methodological references for real-time signal interpretation, human–machine communication, and intelligent perception systems in Electromagnetic Waves, Antennas and Propagation related applications.
Downloads
Article Details

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
References
P. Pereira, H. Moniz, and P. Carvalho J, “Deep emotion recognition in textual conversations: A survey,” Artificial Intelligence Review, vol. 58, no. 1, pp. 10-18, 2024, doi: 10.1007/s10462-024-11010-y.
J. Jang, S. Yoon, G. Son, M. Kang, and H. Choeh J Y and Choi K, “Predicting personality and psychological distress using natural language processing: a study protocol,” Frontiers in Psychology, vol. 13, no. 1, pp. 865541-865548, 2022, doi: 10.3389/fpsyg.2022.865541.
J. Schneider, “Mental model shifts in human-LLM interactions,” Journal of Intelligent Information Systems, vol. 63, no. 5, pp. 1737-1752, 2025, doi: 10.1007/s10844-025-00960-6.
A. Sharma, W. Lin I, S. Miner A, and T. Atkins D C and Althoff, “Human-AI collaboration enables more empathic conversations in text-based peer-to-peer mental health support,” Nature Machine Intelligence, vol. 5, no. 1, pp. 46-57, 2023, doi: 10.1038/s42256-022-00593-2.
J. Ren F, Y. Y. Zhou, J. W. Deng, K. Matsumoto, D. Feng, T. H. She, et al., “Tracking emotions using an evolutionary model of mental state transitions: Introducing a new paradigm,” Intelligent Computing, vol. 3, no. 1, pp. 0075-0081, 2024, doi: 10.34133/icomputing.0075.
Y. Fu, S. Yuan, and J. Zhang C and Cao, “Emotion recognition in conversations: A survey focusing on context, speaker dependencies, and fusion methods,” Electronics, vol. 12, no. 22, pp. 4714-4723, 2023, doi: 10.3390/electronics12224714.
H. Lian, C. Lu, S. Li, Y. Zhao, and Y. Tang C and Zong, “A survey of deep learning-based multimodal emotion recognition: Speech, text, and face,” Entropy, vol. 25, no. 10, pp. 1440-1448, 2023, doi: 10.3390/e25101440.
S. Zhang, Y. Yang, C. Chen, X. Zhang, and X. Leng Q and Zhao, “Deep learning-based multimodal emotion recognition from audio, visual, and text modalities: A systematic review of recent advancements and future prospects,” Expert Systems with Applications, vol. 237, no. 1, pp. 121692-121700, 2024, doi: 10.1016/j.eswa.2023.121692.
S. Farquhar, J. Kossen, and Y. Kuhn L and Gal, “Detecting hallucinations in large language models using semantic entropy,” Nature, vol. 630, no. 8017, pp. 625-630, 2024, doi: 10.1038/s41586-024-07421-0.
O. Shorinwa, Z. Mei, J. Lidard, and A. Ren A Z and Majumadar, “A survey on uncertainty quantification of large language models: Taxonomy, open research challenges, and future directions,” ACM Computing Surveys, vol. 58, no. 3, pp. 1-38, 2025, doi: 10.1145/3744238.
F. Mohammad, M. Khan, S. Nawaz, N. Jan, and A. Gohr N and Al-Rasheed, “Text augmentation-based model for emotion recognition using transformers,” Computers, Materials, & Continua, vol. 76, no. 3, pp. 3523-3529, 2023, doi: 10.32604/cmc.2023.040202.
P. Ferré, I. Fraga, and A. Hinojosa J, “The interplay between language and emotion: a narrative review,” Cognition and Emotion, vol. 39, no. 7, pp. 1418-1445, 2025, doi: 10.1080/02699931.2025.2549965.
M. A. Tabari, X. Lu, and Y. Wang, “Mapping the associations among task complexity, emotionality, and linguistic complexity in L2 writing,” Language awareness, vol. 34, no. 2, pp. 345-372, 2025, doi: 10.1080/09658416.2024.2384754.
Q. Xu, P. Guo, F. Li, M. Zhang, and D. Ji, “Improving LLM-based opinion expression identification with dependency syntax,” Pattern Recognition Letters, vol. 197, no. 1, pp. 81-87, 2025, doi: 10.1016/j.patrec.2025.07.012.
D. H. Solomon, X. Tian, and S. S. Li Y and Li, “Showcasing studies of conversational motifs within a dynamic dyadic systems perspective on interpersonal communication,” Journal of Language and Social Psychology, vol. 44, no. 3-4, pp. 553-581, 2025, doi: 10.1177/0261927X251316863.
E. Džubur and V. Pejovi´c, “Inferring a Mobile User’s Valence and Arousal through On-Screen Text Analysis,” HCI SI Koper 2025, vol. 1, pp. 171-180, 2025, doi: 10.26493/978-961-293-559-7.16.
J. Tian and R. Zhang, “Moral judgments influence emotional responses and comment lengths through the moderating role of linguistic style matching,” Scientific Reports, vol. 15, no. 1, pp. 20972-20980, 2025, doi: 10.1038/s41598-025-07079-2.
Y. Yang, J. Cao, and P. Wen Y and Zhang, “Multiturn dialogue generation by modeling sentence-level and discourse-level contexts,” Scientific Reports, vol. 12, no. 1, pp. 20349-20355, 2022, doi: 10.1038/s41598-022-24787-1.
K. Matsumoto, M. Sasayama, and T. Kirihara, “Topic break detection in interview dialogues using sentence embedding of utterance and speech intention based on multitask neural networks,” Sensors, vol. 22, no. 2, pp. 694-702, 2022, doi: 10.3390/s22020694.
R. Ding, X. Luo, S. Chen, X. Wu, and L. Zhang C and Liu, “A cognitive topic modeling approach for detailed learner analysis in asynchronous discussions,” IEEE Access, vol. 13, no. 1, pp. 94169-94185, 2025, doi: 10.1109/ACCESS.2025.3573873.
A. Hosseiny Marani and S. Baumer E P, “A review of stability in topic modeling: Metrics for assessing and techniques for improving stability,” ACM Computing Surveys, vol. 56, no. 5, pp. 1-32, 2023, doi: 10.1145/3623269.
J. Ryu, S. Heisig, C. McLaughlin, M. Katz, and X. Mayberg HS and Gu, “A natural language processing approach reveals first-person pronoun usage and non-fluency as markers of therapeutic alliance in psychotherapy,” IScience, vol. 26, no. 6, pp. 106860-106867, 2023, doi: 10.1016/j.isci.2023.106860.
J. Piepers, A. Backus, and J. Swanenberg, “Sociopragmatic pronouns in Limburgian: inferring speakers’ agency from self-reported automaticity, attitudes, and metalinguistic awareness,” Cognitive Linguistics, vol. 36, no. 1, pp. 89-119, 2025, doi: 10.1515/cog-2023-0141.