Skip to main content

An Application of Deep Learning in Identification of Depression Among Twitter Users

  • Conference paper
  • First Online:
International Conference on Innovative Computing and Communications

Part of the book series: Advances in Intelligent Systems and Computing ((AISC,volume 1394))

Abstract

Depression is one of the most common mental disorders with millions of people suffering from it. It has been found to have an impact on the texts written by the affected masses. In this study, our main aim was to utilize tweets to predict the possibility of a user at-risk of depression through the use of natural language processing (NLP) tools and deep learning algorithms. LSTM has been used as a baseline model that resulted in an accuracy of 95.12% and an F1 score of 0.9436. We implemented a hybrid BiLSTM + CNN model which we trained on learned embeddings from the tweet dataset was able to improve upon previous works and produce precision and recall of 0.9943 and 0.9988, respectively, giving an F1 score of 0.9971.

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 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.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

Similar content being viewed by others

References

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

    Article  Google Scholar 

  2. R.L. Spitzer, K. Kroenke, J.B. William, Validation and utility of a self-report version of PRIME-MD: the PHQ primary care study. Primary care evaluation of mental disorders. Patient health questionnaire. JAMA 282(18), 1737–1744 (1999). https://doi.org/10.1001/jama.282.18.1737

  3. R.L. Spitzer, J.B. Williams, K. Kroenke, R. Hornyak, Validity and utility of the PRIME-MD patient health questionnaire in assessment of 3000 obstetric-gynecologic patients: the PRIME-MD patient health questionnaire obstetrics-gynecology study. Am. J. Obstet. Gynecol. 183(3), 759–769 (2000). https://doi.org/10.1067/mob.2000.106580

    Article  Google Scholar 

  4. A. Bonner, You Are What You Tweet, 10 Aug 2019. https://towardsdatascience.com/you-are-what-you-tweet-7e23fb84f4ed

  5. M. Gamon, M. Choudhury, S. Counts, E. Horvitz, Predicting depression via social media. Association for the Advancement of Artificial Intelligence (2013)

    Google Scholar 

  6. M. Nadeem, M. Horn, G. Coppersmith, S. Sen, Identifying depression on Twitter (2016)

    Google Scholar 

  7. M.R. Islam, M.A. Kabir, A. Ahmed, Depression detection from social network data using machine learning techniques. Health Inf. Sci. Syst. 6(1), 8 (2018). https://doi.org/10.1007/s13755-018-0046-0

  8. H. Ahmad, M. Asghar, F. Alotaibi, I. Hameed, Applying deep learning technique for depression classification in social media text. J. Med. Imaging Health Inform. 10, 2446–2451 (6) (2020). https://doi.org/10.1166/jmihi.2020.3169

  9. G. Shen, Depression detection via harvesting social media: a multimodal dictionary learning solution, in Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI-17) (2017), pp. 3838–3844. https://doi.org/10.24963/ijcai.2017/536

  10. P.A. Cavazos-Rehg, M.J. Krauss, S. Sowles, S. Connolly, A content analysis of depression-related tweets. Comput. Hum. Behav. 54, 351–357 (2016). https://doi.org/10.1016/j.chb.2015.08.023

  11. S. Hochreiter, J. Schmidhuber, Long short-term memory. Neural Comput. 9(8), 1735–1780 (1997). https://doi.org/10.1162/neco.1997.9.8.1735

    Article  Google Scholar 

  12. A.L. Maas, A.Y. Hannun, A.Y. Ng, Rectifier nonlinearities improve neural network acoustic models, in Proceedings of the 30th International Conference on Machine Learning, 28 (2013)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Rishik Mishra .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Shankdhar, A., Mishra, R., Shukla, N. (2022). An Application of Deep Learning in Identification of Depression Among Twitter Users. In: Khanna, A., Gupta, D., Bhattacharyya, S., Hassanien, A.E., Anand, S., Jaiswal, A. (eds) International Conference on Innovative Computing and Communications. Advances in Intelligent Systems and Computing, vol 1394. Springer, Singapore. https://doi.org/10.1007/978-981-16-3071-2_54

Download citation

Publish with us

Policies and ethics