BERT-Based Depressive Sentiment Analysis and Explainability for Chinese Texts
Abstract
The extensive application of NLP technologies has greatly increased in recent years, for instance, in translation, text classification, and text generation. With the advancement of technology, models have become more complex, which raises the difficulty of model explanation. The paper explores sentiment analysis classification for identifying depressive text using the BERT model and demonstrates the explanation of model outputs through explainable artificial intelligence (XAI) technology. The pre-trained BERT model was fine-tuned by using a Chinese text dataset, which consists of Chinese texts with depression labels obtained from social media like Weibo, REDnote, and Twitter. The paper reveals that the deep learning model, leveraging contextual information and interpretability techniques, effectively analyzes depressive sentiment, and has endowed the model with certain interpretability.
References
- World Health Organization. (2023). Depression disorder (depression). https: //www.who.int/news-room/fact-sheets/detail/depression
- Teck Kiong, Y., Cheah, W. S., Pradana, M., Sharbiniung, H., & Yanto, I. T. R. (2016). Depression detection on Mandarin text through BERT model. Journal of Advanced Research in Applied Sciences and Engineering Technology. 60: 295-311.
- Das, A., & Rad, P. (2020). Opportunities and challenges in explainable artificial intelligence (XAI): A survey. https: //doi.org/10.48550/arXiv.2006.11371
- Dwivedi, R., Dave, D., Naik, H., Singhal, S., Omer, R., Patel, P., Qian, B., Wen, Z., Shah, T., Morgan, G., & Ranjan, R. (2023). Explainable AI (XAI): Core ideas, techniques, and solutions. ACM Computing Surveys, 55: 1-33.
- Bokolo, B. G., & Liu, Q. (2023). Deep Learning-Based Depression Detection from Social Media: Comparative Evaluation of ML and Transformer Techniques. Electronics, 12(21), Article 4396.
- Bhuiyan, M. I., Kamarudin, N. S., & Ismail, N. H. (2025). Enhanced suicidal ideation detection from social media using a CNN-BiLSTM hybrid model. https: //arxiv.org/abs/2501.11094
- Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. In: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). Minneapolis. pp. 4171-4186.
- Deok, K. (2023). Chinese depression text sentence corpus. https: //www.kaggle.com/datasets/kyharndeok/dpreesion
- Lundberg, S. M., & Lee, S.-I. (2017). A unified approach to interpreting model predictions. In: Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, & R. Garnett (Eds.), Advances in Neural Information Processing Systems. Curran Associates, Inc., Red Hook. pp. 4765-4774.
- Mosca, E., Szigeti, F., Tragianni, S., Gallagher, D., & Groh, G. (2022). SHAP-based explanation methods: A review for NLP interpretability. In: Proceedings of the 29th International Conference on Computational Linguistics (COLING 2022). Gyeongju. pp. 4593-4603.