Skip to main content

Sentiment Analysis for Depression Detection and Suicide Prevention Using Machine Learning Models

  • Conference paper
  • First Online:
Key Digital Trends Shaping the Future of Information and Management Science (ISMS 2022)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 671))

Included in the following conference series:

Abstract

A Depression is one of the major causes of suicide nowadays. In the world, most of peoples suffered depression due to personal or professional issues. Most of the peoples share their feelings/sentiments on social media. The sentiments are categorized into positive or negative based on the shared sentiment. If the sentiment is negative then it may lead to suicide. Suicide can be prevented by using resolving the issues. In the present work, depression analysis has been performed with machine learning models such as recurrent neural network, Naive Bayes classifier, and Long Short-Term Memory on the Twitter depression dataset. The results have been quantitively and qualitatively evaluated with accuracy, precision, recall, F1-score, and AROC curve. It has been found that RNN gives 74% accuracy in performing depression classification.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 149.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 199.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Neri, F., Aliprandi, C., Capeci, F., Cuadros, M., By, T.: Sentiment analysis on social media. In: 2012 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining, pp. 919–926 (2012). https://doi.org/10.1109/ASONAM.2012.164

  2. Li, R., Lei, K.H., Khadiwala, R., Chang, K.C.-C.: Tedas: A twitter-based event detection and analysis system. In: 2012 IEEE 28th International Conference on Data Engineering, pp. 1273–1276 (2012). https://doi.org/10.1109/ICDE.2012.125

  3. Khan, M.: Suicide prevention and developing countries. J. R. Soc. Med. 98, 459–463 (2005). https://doi.org/10.1258/jrsm.98.10.459

    Article  Google Scholar 

  4. Chandra, Y., Jana, A.: Sentiment analysis using machine learning and deep learning. In: 2020 7th International Conference on Computing for Sustainable Global Development (INDIACom), pp. 1–4 (2020). https://doi.org/10.23919/INDIACom49435.2020.9083703

  5. Rajeswari, A., Mahalakshmi, M., Nithyashree, R., Nalini, G.: Sentiment analysis for predicting customer reviews using a hybrid approach. In: 2020 Advanced Computing and Communication Technologies for High Performance Applications (ACCTHPA), pp. 200–205 (2020). https://doi.org/10.1109/ACCTHPA49271.2020.9213236

  6. Aydoan, E., Akcayol, M.A.: A comprehensive survey for sentiment analysis tasks using machine learning techniques. In: 2016 International Symposium on Innovations in Intelligent Systems and Applications (INISTA), pp. 1–7 (2016). https://doi.org/10.1109/INISTA.2016.7571856

  7. Amulya, K., Swathi, S.B., Kamakshi, P., Bhavani, Y.: Sentiment analysis on IMDB movie reviews using machine learning and deep learning algorithms. In: 2022 4th International Conference on Smart Systems and Inventive Technology (ICSSIT), pp. 814–819 (2022). https://doi.org/10.1109/ICSSIT53264.2022.9716550

  8. Srinu, B., Bhavana, P.N.L., Tarun Reddy, B., Vaishnavi, B.: Machine learning based suicide prediction. In: 2022 6th International Conference on Computing Methodologies and Communication (ICCMC), pp. 953–957 (2022). https://doi.org/10.1109/ICCMC53470.2022.9754035

  9. Radloff, L.S.: The CES-D scale: a self-report depression scale for research in the general population. Appl. Psychol. Meas. 1, 385–401 (1977). https://doi.org/10.1177/014662167700100306

    Article  Google Scholar 

  10. Andrew, L.B.: Depression and suicide. In: Medscape (2020). https://emedicine.medscape.com/article/805459-overview

  11. Richardon, L., et al.: Evaluation of the patient health questionnaire-9 item for detecting major depression among adolescents. Pediatrics 126 (2010). https://doi.org/10.1542/peds.2010-0852

  12. Sawhney, R., Manchanda, P., Singh, R., Aggarwal, S.: A computational approach to feature extraction for identification of suicidal ideation in tweets, pp. 91–98 (2018). https://doi.org/10.18653/v1/P18-3013

  13. Sachin, S., Tripathi, A., Mahajan, N., Aggarwal, S., Nagrath, P.: Sentiment analysis using gated recurrent neural networks. SN Comput. Sci. 1(2), 1–13 (2020). https://doi.org/10.1007/s42979-020-0076-y

    Article  Google Scholar 

  14. Ren, J., Lee, S.D., Chen, X., Kao, B., Cheng, R., Cheung, D.: Naive bayes classification of uncertain data. In: 2009 Ninth IEEE International Conference on Data Mining, pp. 944–949 (2009). https://doi.org/10.1109/ICDM.2009.90

  15. Murthy, G.S.N., Allu, S.R., Andhavarapu, B., Bagadi, M., Belusonti, M.: Text based Sentiment Analysis using LSTM. Int. J. Eng. Res. Technol. (IJERT) 9(5) (2020)

    Google Scholar 

  16. Pradhan, M., Kumar, U.D.: Machine Learning using Python, 1st edn. Wiley, Hoboken (2019)

    Google Scholar 

  17. Depression on Twitter. https://www.kaggle.com/code/isanbel/depression-on-twitter/data

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Saroj Kumar Chandra .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Singh, S., Chandra, S.K. (2023). Sentiment Analysis for Depression Detection and Suicide Prevention Using Machine Learning Models. In: Garg, L., et al. Key Digital Trends Shaping the Future of Information and Management Science. ISMS 2022. Lecture Notes in Networks and Systems, vol 671. Springer, Cham. https://doi.org/10.1007/978-3-031-31153-6_36

Download citation

Publish with us

Policies and ethics