Mental State Detection From Tweets By Machine Learning

Authors

  • Nabiul Farhan Nabil Department of Computer Science, International Islamic University Malaysia, Kuala Lumpur, Malaysia
  • Ashadullah Galib Department of Computer Science, International Islamic University Malaysia, Kuala Lumpur, Malaysia
  • Takumi Sase Department of Computer Science, International Islamic University Malaysia, Kuala Lumpur, Malaysia

DOI:

https://doi.org/10.31436/ijpcc.v9i2.396

Keywords:

Mental State, Machine Learning, Twitter, Artificial Intelligence

Abstract

The world over, mental illness is a serious issue. Many people use the social media that may affect their mental health positively, but often result in negative sentiments. This research aims to determine an individual's mental state based on their social media behavior on Twitter. We analysed a dataset including 170000 real tweets by using natural language processing and machine learning techniques. Decision tree, support vector machine, and recurrent neural network (RNN) were used for classifying twitter users, to detect if they are in positive or negative mental state. These models were compared to determine which approach provides more accurate detection of a positive/negative mental state. Then, the RNN yielded the highest accuracy 0.76 among the models, with the precision, recall, and the F_1 score being 0.75, 0.74, and 0.75, respectively. The truncated singular value decomposition was also utilised to visualise the high-dimensional feature space of the data.

References

National Institute of Mental Health - Depression. U.S. Department of Health and Human Services. Available at: https://www.nimh.nih.gov/health/topics/depression (Accessed: May 1, 2022).

World Health Organization (2021) Depression, World Health Organization. World Health Organization. Available at: https://www.who.int/news-room/fact-sheets/detail/depression (Accessed: June 30, 2022).

M.R. Islam, M.A. Kabir, A. Ahmed, A.R. Kamal, H. Wang, H., Ulhaq, A. Depression detection from social network data using Machine Learning Techniques. Health Information Science and Systems, 6(1). 2018. https://doi.org/10.1007/s13755-018-0046-0

X. Tao, Dharmalingam, R., Zhang, J., Zhou, X., Li, L., Gururajan, R. Twitter analysis for depression on social networks based on sentiment and stress. 2019 6th International Conference on Behavioral, Economic and Socio-Cultural Computing (BESC). https://doi.org/10.1109/besc48373.2019.8963550

P. V. Rajaraman, Asim Nath, Akshaya. P. R, Chatur Bhuja. G. (2020). Depression detection of tweets and a comparative test. International Journal of Engineering Research and, V9(03). https://doi.org/10.17577/ijertv9is030270

K. Kumar, Piyush & Samanta, Poulomi & Dutta, Suchandra & Chatterjee, Moumita & Sarkar, Dhrubasish. (2022). Feature Based Depression Detection from Twitter Data Using Machine Learning Techniques. Journal of Scientific Research. 66. 220-228. 10.37398/JSR.2022.660229.

T. Sravanthi et al 2020 IOP Conf. Ser.: Mater. Sci. Eng. 981 022056

A. Amanat, M. Rizwan, A.R. Javed, Abdelhaq, M.; Alsaqour, R.; Pandya, S.; Uddin, M. Deep Learning for Depression Detection from Textual Data. Electronics 2022, 11, 676. https://doi.org/10.3390/electronics11050676

H. Ahmed, Prasadith Buddhitha, Mahmoud Husseini Orabi, and Diana Inkpen. 2018. Deep Learning for Depression Detection of Twitter Users. In Proceedings of the Fifth Workshop on Computational Linguistics and Clinical Psychology, pages 88–97, New Orleans, LA. Association for Computational Linguistics.

A. Zunic P. Corcoran, Spasic I, Sentiment Analysis in Health and Well-Being: Systematic Review JMIR Med Inform 2020;8(1): e16023

K. KazAnova Sentiment140 dataset with 1.6 million tweets, Kaggle. Available at: https://www.kaggle.com/datasets/kazanova/sentiment140 (Accessed: March 30, 2022).

C. Bishop (2006) Pattern Recognition and Machine Learning. Springer

A. Sherstinsky. Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) network, Physica D: Nonlinear Phenomena, 404, 2020, 132306,

Y. Zhang, Y., Jin, R. & Zhou, ZH. Understanding bag-of-words model: a statistical framework. Int. J. Mach. Learn. & Cyber. 1, 43–52 (2010). https://doi.org/10.1007/s13042-010-0001-0.

Downloads

Published

2023-07-28

How to Cite

Farhan Nabil, N., Galib, A., & Sase, T. (2023). Mental State Detection From Tweets By Machine Learning. International Journal on Perceptive and Cognitive Computing, 9(2), 1–7. https://doi.org/10.31436/ijpcc.v9i2.396

Issue

Section

Articles