Backbone-Dependent Gains from Recurrent Classification Heads on IndoBERT for Mental Health Help Indication in Indonesian Tweets
Authors
| Issue | Vol. 5 No. 02 (2026) |
| Published | 10 November 2026 |
| Section | Articles |
| Pages | 180-193 |
Abstract
Whether recurrent classification heads benefit pre-trained Transformers equally across backbones is unclear for informal Indonesian mental health text. We curated 33,641 tweets from a public, automatically labeled corpus into needs_help (need for professional help) and non_needs_help classes, using slang normalization without stopword removal or stemming. A three-seed 2×4 ablation compared IndoBERT-Base and IndoBERT-Lite with four heads: standard first-token, bidirectional long short-term memory (BiLSTM), BiLSTM with additive attention, and an extended head adding layer normalization, residual projection, and multi-sample dropout. On IndoBERT-Lite, BiLSTM-based heads raised threshold-tuned Macro-F1 by about 1.5 percentage points (pp) and area under the receiver operating characteristic curve (AUC) by about 1 pp. On IndoBERT-Base, AUC differed by under 0.2 pp across heads, and tuned Macro-F1 differences were small and inconclusive. Attention added no clear gain beyond the BiLSTM head, and the extended head did not reduce the dropout-free training–validation gap. Square-root class weighting shifted default operating points but did not measurably change AUC or tuned Macro-F1 in four configurations. Reference-style stopword-removal runs scored lower, but the training recipe also differed, so this cannot be attributed to stopword removal. Because labels were generated by rules, results may reflect rule learnability rather than clinical validity.
Keywords: Depression Indication Detection, IndoBERT, BiLSTM, Soft Attention, Class Imbalance
How to Cite
file_copyCopyLicense
Copyright (c) 2026 Rivaldo Jonathan Paath, Oktavian Lantang, Pujo Saputro

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

CEPAT has chosen to apply the Creative Commons Attribution NonCommercial 4.0 License (CC BY-NC 4.0) to all manuscripts to be published. 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 acknowledgment 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 acknowledgment 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.
Downloads
References
[1] World Health Organization, “Depressive disorder (depression).” Accessed: Nov. 08, 2026. [Online]. Available: https://www.who.int/news-room/fact-sheets/detail/depression
[2] World Health Organization, “World Mental Health Report: Transforming Mental Health for All,” Geneva, Switzerland, 2022. Accessed: Nov. 08, 2026. [Online]. Available: https://www.who.int/publications/i/item/9789240049338
[3] Center for Reproductive Health, University of Queensland, and Johns Hopkins Bloomberg School of Public Health, “Indonesia – National Adolescent Mental Health Survey (I-NAMHS): Laporan Penelitian,” Yogyakarta, Indonesia, 2022. Accessed: Nov. 08, 2026. [Online]. Available: https://qcmhr.org/outputs/reports/12-i-namhs-report-bahasa-indonesia
[4] DataReportal, “Digital 2024: Indonesia.” Accessed: Nov. 08, 2026. [Online]. Available: https://datareportal.com/reports/digital-2024-indonesia
[5] M. N. Asari and T. Mukhoyyaroh, “The impact of loneliness and anonymity on self-disclosure among social media X users,” Psikologia: Jurnal Pemikiran dan Penelitian Psikologi, vol. 19, no. 1, pp. 32–41, May 2024, doi: 10.32734/psikologia.v19i1.15271.
[6] J. T. V. Harefa, K. A. Manik, Z. L. Habehan, Juniarta, and S. L. Cicilia, “Stress, anxiety, depression and social media in generation Z: A scoping review,” JOURNAL OF Mental Health Concerns, vol. 4, no. 3, pp. 174–187, Aug. 2025, doi: 10.56922/mhc.v4i3.1362.
[7] R. Salas-Zárate, G. Alor-Hernández, M. A. Paredes-Valverde, M. del P. Salas-Zárate, M. Bustos-López, and J. L. Sánchez-Cervantes, “Mental-Health: An NLP-Based System for Detecting Depression Levels through User Comments on Twitter (X),” Mathematics, vol. 12, no. 13, Jul. 2024, doi: 10.3390/math12131926.
[8] M. Y. Dhinora and E. Mailoa, “Analisa Tweet Mahasiswa untuk Deteksi Gejala Depresi dengan Penerapan Natural Language Processing,” Jurnal Indonesia: Manajemen Informatika dan Komunikasi (JIMIK), vol. 6, no. 2, pp. 1193–1211, 2025, doi: 10.63447/jimik.v6i2.1405.
[9] U. Khairani, V. Mutiawani, and H. Ahmadian, “Pengaruh Tahapan Preprocessing Terhadap Model Indobert Dan Indobertweet Untuk Mendeteksi Emosi Pada Komentar Akun Berita Instagram,” Jurnal Teknologi Informasi dan Ilmu Komputer, vol. 11, no. 4, pp. 887–894, Aug. 2024, doi: 10.25126/jtiik.1148315.
[10] G. Coppersmith, M. Dredze, and C. Harman, “Quantifying Mental Health Signals in Twitter,” in Proceedings of the workshop on computational linguistics and clinical psychology: From linguistic signal to clinical reality, 2014, pp. 51–60.
[11] S. Bouktif, A. M. U. D. Khanday, and A. Ouni, “Explainable Predictive Model for Suicidal Ideation During COVID-19: Social Media Discourse Study,” J. Med. Internet Res., vol. 27, 2025, doi: 10.2196/65434.
[12] F. Darmawan, M. Joe, Y. I. Kurniawan, and L. Afuan, “Analisis Sentimen Kemungkinan Depresi dan Kecemasan pada Twitter Menggunakan Support Vector Machine,” Jurnal Eksplora Informatika, vol. 13, no. 1, pp. 24–36, Sep. 2023, doi: 10.30864/eksplora.v13i1.854.
[13] M. Fachriza and Munawar, “Analisis Sentimen Kalimat Depresi Pada Pengguna Twitter Dengan Naive Bayes, Support Vector Machine, Random Forest,” KOMPUTEK: Jurnal Teknik Universitas Muhammadiyah Ponorogo, vol. 7, no. 2, pp. 49–58, 2023, doi: 10.24269/jkt.v7i2.2218.
[14] E. E. Pratiwi, A. R. Aisy, Rahmaddeni, and N. Ananta, “Klasifikasi Kesehatan Mental Pada Usia Remaja Menggunakan Metode SVM,” Jurnal Informatika dan Teknik Elektro Terapan (JITET), vol. 13, no. 2, pp. 445–453, 2025, doi: 10.23960/jitet.v13i2.6232.
[15] M. Siino, I. Tinnirello, and M. La Cascia, “Is text preprocessing still worth the time? A comparative survey on the influence of popular preprocessing methods on Transformers and traditional classifiers,” Inf. Syst., vol. 121, Mar. 2024, doi: 10.1016/j.is.2023.102342.
[16] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “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 Technology., 2019, pp. 4171–4186. doi: 10.18653/v1/N19-1423.
[17] B. Wilie et al., “IndoNLU: Benchmark and Resources for Evaluating Indonesian Natural Language Understanding,” in Proceedings of the 1st Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the 10th International Joint Conference on Natural Language Processing, Association for Computational Linguistics, 2020, pp. 843–857.
[18] F. Koto, A. Rahimi, J. H. Lau, and T. Baldwin, “IndoLEM and IndoBERT: A Benchmark Dataset and Pre-trained Language Model for Indonesian NLP,” in Proceedings of the 28th International Conference on Computational Linguistics, International Committee on Computational Linguistics, 2020, pp. 757–770. doi: 10.18653/v1/2020.coling-main.66.
[19] F. Koto, J. H. Lau, and T. Baldwin, “INDOBERTWEET: A Pretrained Language Model for Indonesian Twitter with Effective Domain-Specific Vocabulary Initialization,” in Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, Marie-Francine Moens, Xuanjing Huang, Lucia Specia, and Scott Wen-tau Yih, Eds., Association for Computational Linguistics, Nov. 2021, pp. 10660–10668. doi: 10.18653/v1/2021.emnlp-main.833.
[20] Z. Lan, M. Chen, S. Goodman, K. Gimpel, P. Sharma, and R. Soricut, “ALBERT: A Lite BERT for Self-supervised Learning of Language Representations,” in Proceedings of the 8th International Conference on Learning Representations (ICLR), Feb. 2020. [Online]. Available: http://arxiv.org/abs/1909.11942
[21] S. Ji, T. Zhang, L. Ansari, J. Fu, P. Tiwari, and E. Cambria, “MentalBERT: Publicly Available Pretrained Language Models for Mental Healthcare,” in Proceedings of the Thirteenth Language Resources and Evaluation Conference, Marseille, France: European Language Resources Association, Jun. 2022, pp. 7184–7190.
[22] J. P. Thekkekara and S. Yongchareon, “An Attention-Based BERT–CNN–BiLSTM Model for Depression Detection from Emojis in Social Media Text,” Big Data and Cognitive Computing, vol. 9, no. 12, Dec. 2025, doi: 10.3390/bdcc9120310.
[23] F. S. Alhussen, “Linguistic Feature-based Depression Prediction Using Hierarchical Transformer-attentive Model for Mental Disabilities Diagnosis,” Journal of Disability Research, vol. 4, no. 5, Oct. 2025, doi: 10.57197/JDR-2025-0578.
[24] M. Kerasiotis, L. Ilias, and D. Askounis, “Depression detection in social media posts using transformer-based models and auxiliary features,” Sep. 2024, [Online]. Available: http://arxiv.org/abs/2409.20048
[25] S. Yeasmin, N. Afrin, K. Saif, and M. Huq, “Development of a Text Classification Framework using Transformer-based Embeddings,” International Conference on Data Technologies and Applications, Jul. 2022, pp. 74–82. doi: 10.5220/0011268000003269.
[26] I. R. Hidayat and W. Maharani, “General Depression Detection Analysis Using IndoBERT Method,” International Journal on Information and Communication Technology (IJoICT), vol. 8, no. 1, pp. 41–51, 2022, doi: 10.21108/ijoict.v8i1.634.
[27] F. Apriliani and W. Maharani, “DEPRESSION DETECTION ON SOCIAL MEDIA TWITTER USING XLNET METHOD,” JIPI (Jurnal Ilmiah Penelitian dan Pembelajaran Informatika), vol. 8, no. 1, pp. 172–180, Feb. 2023, doi: 10.29100/jipi.v8i1.3345.
[28] G. F. Situmorang and R. Purba, “Deteksi Potensi Depresi dari Unggahan Media Sosial X Menggunakan IndoBERT,” Building of Informatics, Technology and Science (BITS), vol. 6, no. 2, pp. 649–661, Sep. 2024, doi: 10.47065/bits.v6i2.5496.
[29] M. S. M. Faza and Moch. Taufik, “Penerapan Model IndoBERT untuk Deteksi Potensi Sumber Stres dalam Teks Media Sosial,” Jurnal Rekayasa Sistem Informasi dan Teknologi (JRSIT), vol. 3, no. 1, pp. 271–283, 2025.
[30] F. Pratama, R. Adhitama, and M. Afrad, “The Effect of Hyperparameter Settings on BERT-Based Detection of Mental Health Support Needs on X (Twitter),” in International Conference of Information and Communication Technology, 2026. doi: 10.1109/ICoICT71118.2026.11664807.
[31] J. L. Ba, J. R. Kiros, and G. E. Hinton, “Layer Normalization,” Jul. 2016, [Online]. Available: http://arxiv.org/abs/1607.06450
[32] H. Inoue, “Multi-Sample Dropout for Accelerated Training and Better Generalization,” 2019, Accessed: Nov. 09, 2026. [Online]. Available: https://arxiv.org/abs/1905.09788
[33] J. M. Johnson and T. M. Khoshgoftaar, “Survey on deep learning with class imbalance,” J. Big Data, vol. 6, no. 1, Dec. 2019, doi: 10.1186/s40537-019-0192-5.
[34] J. L. Leevy, J. M. Johnson, J. Hancock, and T. M. Khoshgoftaar, “Threshold optimization and random undersampling for imbalanced credit card data,” J. Big Data, vol. 10, no. 1, Dec. 2023, doi: 10.1186/s40537-023-00738-z.
[35] A. Joulin, E. Grave, P. Bojanowski, and T. Mikolov, “Bag of Tricks for Efficient Text Classification,” in Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Valencia, Spain: Association for Computational Linguistics, Apr. 2017, pp. 427–431.
[36] F. Pratama, “Mental Health Help Indication Dataset (Tweet X) [Dataset],” Kaggle. Accessed: Nov. 09, 2026. [Online]. Available: [https://www.kaggle.com/datasets/fauziadityapratama/mental-health-help-indication-dataset-tweet-x]
[37] Google Developers, “Classification: Imbalanced Data,” Machine Learning Crash Course. Accessed: Nov. 09, 2026. [Online]. Available: [https://developers.google.com/machine-learning/crash-course/overfitting/imbalanced-datasets]
[38] D. Bahdanau, K. Cho, and Y. Bengio, “Neural Machine Translation by Jointly Learning to Align and Translate,” in International Conference on Learning Representations, May 2016.
[39] I. Loshchilov and F. Hutter, “Decoupled Weight Decay Regularization,” in International Conference on Learning Representations, Jan. 2019.
[40] R. Müller, S. Kornblith, and G. E. Hinton, “When Does Label Smoothing Help?,” in Advances in Neural Information Processing Systems (NeurIPS), 2019, pp. 4694–4703.
[41] T. Fawcett, “An introduction to ROC analysis,” Pattern Recognit. Lett., vol. 27, no. 8, pp. 861–874, Jun. 2006, doi: 10.1016/j.patrec.2005.10.010.
[42] M. Sokolova and G. Lapalme, “A systematic analysis of performance measures for classification tasks,” Inf. Process. Manag., vol. 45, no. 4, pp. 427–437, Jul. 2009, doi: 10.1016/j.ipm.2009.03.002.
[43] B. L. Welch, “The generalization of ‘Student’s’ problem when several different population variances are involved,” Biometrika, vol. 34, pp. 28–35, Jan. 1947, doi: 10.1093/biomet/34.1-2.28.
