Depression Detection on Social Media Twitter Using Hierarchical Attention Network Method
Abstract
Mental illness, including depression, is not a mild condition that only some mentally weak people experience. Technology is developing so rapidly, especially communication technology through social media. Twitter is a very popular social media today. Users can easily quickly and simply communicate all the feelings they are experiencing through tweets, which allows us to find information about emotional feelings to the level of user depression. Auto-mated analysis of social media has the potential to provide a method for early detection. This study aims to predict early signs of depression using data from social media Twitter. The method used in this research is classification by analyzing social media sentiment using the Hierarchical Attention Network. Classification using the Hierarchical Attention Network method was chosen because the method showed outstanding results for classifying texts in previous studies. The classification model in this study that represents the best accuracy, 74%, was performed by applying the Hierarchical Attention Network.
Downloads
References
P. M. Depression, “Depression 13,” Depression, no. September, pp. 21–24, 2021, [Online]. Available: https://www.who.int/en/news-room/fact-sheets/detail/depression.
N. Hayatin, “Implementasi Multinomial Naïve Bayes Untuk Klasifikasi Data Tweets Mengandung Term Depresi,” pp. 344–349, 2020, [Online]. Available: http://research-report.umm.ac.id/index.php/sentra/article/download/3921/3903.
P. Arora and P. Arora, “Mining Twitter Data for Depression Detection,” 2019 Int. Conf. Signal Process. Commun. ICSC 2019, pp. 186–189, 2019, doi: 10.1109/ICSC45622.2019.8938353.
P. Antinasari, R. S. Perdana, and M. A. Fauzi, “Analisis Sentimen Tentang Opini Film Pada Dokumen Twitter Berbahasa Indonesia Menggunakan Naive Bayes Dengan Perbaikan Kata Tidak Baku,” J. Pengemb. Teknol. Inf. dan Ilmu Komput., vol. 1, no. 12, pp. 1718–1724, 2017, [Online]. Available: http://j-ptiik.ub.ac.id.
L. Mandloi and R. Patel, “Twitter sentiment analysis using machine learning methods,” 2020 Int. Conf. Emerg. Technol. INCET 2020, pp. 1–5, 2020, doi: 10.1109/INCET49848.2020.9154183.
“Kamus Besar Bahasa Indonesia" Badan Pengembangan dan Pembinaan Bahasa, “fak.ta ⇢,” [Online]. Available: https://kbbi.kemdikbud.go.id/entri/fakta.
“Kamus Besar Bahasa Indonesia" Badan Pengembangan dan Pembinaan Bahasa, “opi.ni ⇢,” [Online]. Available: https://kbbi.kemdikbud.go.id/entri/opini.
S. C. Guntuku, D. B. Yaden, M. L. Kern, L. H. Ungar, and J. C. Eichstaedt, “Detecting depression and mental illness on social media: an integrative review,” Curr. Opin. Behav. Sci., vol. 18, pp. 43–49, 2017, doi: 10.1016/j.cobeha.2017.07.005.
A. Chanaa and N. eddine El Faddouli, “E-learning Text Sentiment Classification Using Hierarchical Attention Network (HAN),” Int. J. Emerg. Technol. Learn., vol. 16, no. 13, pp. 157–167, 2021, doi: 10.3991/ijet.v16i13.22579.
F. T. Giuntini, M. T. Cazzolato, M. de J. D. dos Reis, A. T. Campbell, A. J. M. Traina, and J. Ueyama, “A review on recognizing depression in social networks: challenges and opportunities,” J. Ambient Intell. Humaniz. Comput., vol. 11, no. 11, pp. 4713–4729, 2020, doi: 10.1007/s12652-020-01726-4.
I. Sekulic and M. Strube, “Adapting Deep Learning Methods for Mental Health Prediction on Social Media,” pp. 322–327, 2019, doi: 10.18653/v1/d19-5542.
A. U. Hassan, J. Hussain, M. Hussain, M. Sadiq, and S. Lee, “Sentiment analysis of social networking sites (SNS) data using machine learning approach for the measurement of depression,” Int. Conf. Inf. Commun. Technol. Converg. ICT Converg. Technol. Lead. Fourth Ind. Revolution, ICTC 2017, vol. 2017-Decem, pp. 138–140, 2017, doi: 10.1109/ICTC.2017.8190959.
A. Joulin, E. Grave, P. Bojanowski, and T. Mikolov, “Bag of tricks for efficient text classification,” 15th Conf. Eur. Chapter Assoc. Comput. Linguist. EACL 2017 - Proc. Conf., vol. 2, pp. 427–431, 2017, doi: 10.18653/v1/e17-2068.
Z. Yang, D. Yang, C. Dyer, X. He, A. Smola, and E. Hovy, “Hierarchical Attention Networks for Document Classification,” 2016, [Online]. Available: http://arxiv.org/abs/1606.02393.
W. Noviani, “Hubungan Tingkat Stres Dengan Efikasi Diri Pada Pasien TB Paru di Wilayah Kerja Puskesmas Patrang Kabupaten Jember,” Fak. Keperawatan, Univ. Jember, p. 9, 2018.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Depression Detection on Social Media Twitter Using Hierarchical Attention Network Method
Pages: 446-452
Copyright (c) 2022 Raihan Nugraha Setiawan, Warih Maharani

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 Creative Commons Attribution 4.0 International 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 (Refer to The Effect of Open Access).






















