Skip to main content

High-Precision Detection of Suicidal Ideation on Social Media Using Bi-LSTM and BERT Models

  • Conference paper
  • First Online:
Cognitive Computing – ICCC 2023 (ICCC 2023)

Abstract

In a poignant moment on social media, a post suggesting suicidal thoughts is rapidly overshadowed by an array of memes, updates, and ads. Such overlooked cries for help underscore the dire need for reliable detection mechanisms. Addressing this urgent issue, our research introduces an innovative approach to detecting suicidal ideation from text. Using TF-IDF and Chi-square tests, we identify crucial keywords and narrow them down for frequency analysis. Our framework leverages Word2Vec embeddings and is further enriched with readability scores, sentiment assessments via TextBlob, and text length metrics. Latent Dirichlet Allocation (LDA) aids in topic modeling, its insights visualized through compelling word clouds. This multifaceted approach enhances predictive accuracy and provides a nuanced understanding of suicidal ideation. We initially employed conventional algorithms like AdaBoost, Random Forest, XGBoost, and Logistic Regression before transitioning to advanced deep learning models. The Bi-LSTM and BERT models emerged as top performers, achieving detection accuracies of 97% and 98%, respectively. While our study is constrained by dataset limitations and potential biases, it marks a significant step forward in the identification of suicidal tendencies in digital spaces. Looking forward, broader dataset integration, refined models, and a continuous recalibration in line with evolving digital discourse are anticipated next steps.

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 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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. Giachanou, A., Crestani, F.: Like it or not: a survey of Twitter sentiment analysis methods. ACM Comput. Surv. 49, 1–41 (2016)

    Article  Google Scholar 

  2. World Health Organization, Geneva, Switzerland: Preventing Suicide: A Global Imperative (2014)

    Google Scholar 

  3. World Health Organization: Suicide in the World: Global Health Estimates (2019)

    Google Scholar 

  4. O’Dea, B., et al.: Detecting suicidality on Twitter. Internet Interv. 2(2), 183–188 (2015)

    Article  Google Scholar 

  5. Guntuku, S.C., et al.: Detecting depression and mental illness on social media: an integrative review. Curr. Opin. Behav. Sci. 18, 43–49 (2017)

    Article  Google Scholar 

  6. Rajesh, D., Priya, V.K.: Consequences of Facebook on student’s mental health - A Conceptual Analysis. Vels Institute of Science Technology and Advanced Studies, December 2019

    Google Scholar 

  7. Desmet, B., Hoste, V.: Emotion detection in suicide notes. Exp. Syst. Appl. 40, 6351–6358 (2013)

    Article  Google Scholar 

  8. Oussous, A., Benjelloun, F.-Z., Lahcen, A.A., Belfkih, S.: ASA: a framework for Arabic sentiment analysis. J. Inf. Sci. 46, 544–559 (2019)

    Article  Google Scholar 

  9. Tadesse, M.M., Lin, H., Xu, B., Yang, L.: Detection of suicide ideation in social media forums using deep learning. Algorithms 13, 7 (2020)

    Article  Google Scholar 

  10. Braithwaite, S.R., Giraud-Carrier, C., West, J., Barnes, M.D., Hanson, C.L.: Validating machine learning algorithms for Twitter data against established measures of suicidality. JMIR Mental Health 3(2), e21 2015

    Google Scholar 

  11. Tadesse, M.M., Lin, H., Xu, B., Yang, L.: Detection of depression-related posts in Reddit social media forum. IEEE Access 7, 44883–44893 (2019)

    Article  Google Scholar 

  12. Singh, C., Imam, T., Wibowo, S., Grandhi, S.: A deep learning approach for sentiment analysis of COVID-19 reviews. Appl. Sci. 12, 3709 (2022)

    Article  Google Scholar 

  13. Aldhyani, T.H.H., Alsubari, S.N., Alshebami, A.S., Alkahtani, H., Ahmed, Z.A.T.: Detecting and analyzing suicidal ideation on social media using deep learning and machine learning models. Int. J. Environ. Res. Pub. Health 19(19), 12635 (2022)

    Article  Google Scholar 

  14. Potdar, R.: Suicide Text Classification NLP. Kaggle (n.d.). https://www.kaggle.com/rutujapotdar/suicide-text-classification-nlp

  15. Singh, A.: Suicidal Thought Detection. Kaggle (n.d.). https://www.kaggle.com/code/abhijitsingh001/suicidal-thought-detection

  16. Komati, N.: Universal Sentence Encoder 74% accuracy sparknlp. Kaggle, 3 years ago. https://www.kaggle.com/code/nikhileswarkomati/universal-sentence-encoder-74-accuracy-sparknlp

  17. Barton, C.: Analyzing suicidal text using natural language processing. All Graduate Plan B and other Reports, no. 1640 (2022)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yong Lu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 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

Wang, Z., Jin, M., Lu, Y. (2024). High-Precision Detection of Suicidal Ideation on Social Media Using Bi-LSTM and BERT Models. In: Pan, X., Jin, T., Zhang, LJ. (eds) Cognitive Computing – ICCC 2023. ICCC 2023. Lecture Notes in Computer Science, vol 14207. Springer, Cham. https://doi.org/10.1007/978-3-031-51671-9_1

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-51671-9_1

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-51670-2

  • Online ISBN: 978-3-031-51671-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics