Aditi Biswas,
Surendra Kumar Yadav,
Shruti Mathur,
- Student, Department of Computer Science and Engineering, JECRC University, Jaipur, Rajasthan, India
- Professor, Department of Computer Science and Engineering, JECRC University, Jaipur, Rajasthan, India
- Assistant Professor, Department of Computer Science and Engineering, JECRC University, Jaipur, Rajasthan, India
Abstract
Understanding and interpreting emotions expressed in online mental health discussions plays a crucial role in enabling early detection of psychological distress and facilitating timely interventions. As individuals increasingly turn to digital platforms to share personal experiences and seek support, automated systems capable of accurately identifying emotional states can significantly assist clinicians, moderators, and support communities. This paper presents a deep learning–based sentiment mining and emotion classification framework specifically designed to analyze posts from mental health forums. The proposed architecture integrates Bidirectional Encoder Representations from Transformers (BERT)-based contextual embeddings to capture nuanced semantic relationships within text, along with a multi-channel convolutional neural network enhanced by residual connections. This hybrid structure effectively teaches both local phrase-level features and broader contextual patterns, improving classification performance across diverse emotional expressions. To ensure transparency and trustworthiness, especially important in sensitive domains such as mental health, we incorporate a gradient × embedding explainability mechanism. This component highlights token-level contributions toward each predicted emotion category, enabling users to understand which specific words most influenced the model’s decision. The framework was evaluated on a benchmark mental health dataset consisting of seven emotion classes: joy, sadness, anger, fear, love, surprise, and others. Experimental results demonstrate an overall classification accuracy of 92%. Additionally, the visualization of influential words enhances interpretability, thereby supporting responsible and explainable AI-driven sentiment analysis in real-world mental health applications.
Keywords: Mental health, emotion detection, sentiment analysis, BERT, CNN, explainable AI
[This article belongs to International Journal of Algorithms Design and Analysis Review ]
Aditi Biswas, Surendra Kumar Yadav, Shruti Mathur. Explainable Sentiment Mining Model in Mental Health Forums for Emotion Classification and Justification. International Journal of Algorithms Design and Analysis Review. 2026; 04(01):22-32.
Aditi Biswas, Surendra Kumar Yadav, Shruti Mathur. Explainable Sentiment Mining Model in Mental Health Forums for Emotion Classification and Justification. International Journal of Algorithms Design and Analysis Review. 2026; 04(01):22-32. Available from: https://journals.stmjournals.com/ijadar/article=2026/view=249467
References
- Abdullah M, Negied N. Detection and prediction of future mental disorder from social media data using machine learning, ensemble learning, and large language models. IEEE Access. 2024;12:120553–120569. doi:10.1109/ACCESS.2024.3406469.
- Singh J, Sharma G. Sentiment analysis study of human thoughts using machine learning techniques. 2023 International Conference on Disruptive Technologies (ICDT), Greater Noida, India. 2023. p. 776–785. doi:10.1109/ICDT57929.2023.10150917.
- Brynielsson J, Johansson F, Jonsson C, Westling A. Emotion classification of social media posts for estimating people’s reactions to communicated alert messages during crises. Secur Inform. 2014;3:7. doi:10.1186/s13388-014-0007-3.
- Lövheim H. A new three-dimensional model for emotions and monoamine neurotransmitters. Med Hypotheses. 2012;78(2):341–348. doi:10.1016/j.mehy.2011.11.016. PMID: 22153577.
- Sasidhar TT, B P, P SK. Emotion detection in Hinglish (Hindi+English) code-mixed social media text. Procedia Comput Sci. 2020;171:1346–1352. doi:10.1016/j.procs.2020.04.144.
- Tripto NI, Ali ME. Detecting multilabel sentiment and emotions from Bangla YouTube comments. 2018 International Conference on Bangla Speech and Language Processing (ICBSLP), Sylhet, Bangladesh. 2018. p. 1–6. doi:10.1109/ICBSLP.2018.8554875.
- Batbaatar E, Li M, Ryu KH. Semantic-emotion neural network for emotion recognition from text. IEEE Access. 2019;7:111866–111878. doi:10.1109/ACCESS.2019.2934529.
- Li D, Rzepka R, Ptaszynski M, Araki K. HEMOS: A novel deep learning-based fine-grained humor detecting method for sentiment analysis of social media. Inf Process Manag. 2020;57(6):102290. doi:10.1016/j.ipm.2020.102290.
- Ren Z, Shen Q, Diao X, Xu H. A sentiment-aware deep learning approach for personality detection from text. Inf Process Manag. 2021;58(3):102532. doi:10.1016/j.ipm.2021.102532.
- Pattun G, Kumar P. Emotion classification using generative pre-trained embedding and machine learning. 2023 IEEE International Conference on Machine Learning and Applied Network Technologies (ICMLANT), San Salvador, El Salvador. 2023. p. 1–6. doi:10.1109/ICMLANT59547.2023.10372980.
- Bayu Y, Tegegn T. Multi-label emotion classification on social media comments using deep learning [preprint]. Research Square. 2024. doi:10.21203/rs.3.rs-4431629/v1.
- Kaushik B, Sharma A, Chadha A, Sharma R. Machine learning model for sentiment analysis on mental health issues. 2023 15th International Conference on Computer and Automation Engineering (ICCAE), Sydney, Australia. 2023. p. 21–25. doi:10.1109/ICCAE56788.2023.10111148.
- Choudhary DK, Gupta A, Singh S, Abhinav T, Agrawal T. Sentiment analysis for depression detection using artificial intelligence. 2024 3rd International Conference on Artificial Intelligence For Internet of Things (AIIoT), Vellore, India. 2024. p. 1–5. doi:10.1109/AIIoT58432.2024.10574749.
- Chaithra IV, Samanvaya KJ. Text-based emotion recognition using deep learning. 2024 Second International Conference on Advances in Information Technology (ICAIT), Chikkamagaluru, Karnataka, India. 2024. p. 1–7. doi:10.1109/ICAIT61638.2024.10690782.
- Adoma AF, Henry NM, Chen W, Rubungo Andre N. Recognizing emotions from texts using a BERT-based approach. 2020 17th International Computer Conference on Wavelet Active Media Technology and Information Processing (ICCWAMTIP), Chengdu, China. 2020. p. 62–66. doi:10.1109/ICCWAMTIP51612.2020.9317523.
- Sharma T, Diwakar M, Singh P, Lamba S, Kumar P, Joshi K. Emotion analysis for predicting the emotion labels using machine learning approaches. 2021 IEEE 8th Uttar Pradesh Section International Conference on Electrical, Electronics and Computer Engineering (UPCON), Dehradun, India. 2021. p. 1–6. doi:10.1109/UPCON52273.2021.9667562.
- Shyang YK, Yan JLS. A text augmentation approach using similarity measures based on neural sentence embeddings for emotion classification on microblogs. 2020 IEEE 2nd International Conference on Artificial Intelligence in Engineering and Technology (IICAIET), Kota Kinabalu, Malaysia. 2020. p. 1–6. doi:10.1109/IICAIET49801.2020.9257826.

International Journal of Algorithms Design and Analysis Review
| Volume | 04 |
| Issue | 01 |
| Received | 01/01/2026 |
| Accepted | 18/02/2026 |
| Published | 20/03/2026 |
| Publication Time | 78 Days |
Login
PlumX Metrics