Skip to main content

Social Media Mining to Detect Mental Health Disorders Using Machine Learning

  • Conference paper
  • First Online:
Sentiment Analysis and Deep Learning

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

Abstract

The growth of social media has caused people to post a significant content online. They find it easier to communicate in the virtual world rather than to talk to a person and share their problems. This has given rise to a pertinent question—can we use social media to help these youngsters to understand the state of their mental health? If so, how can we do it without manual intervention so that they do not feel uncomfortable to share their problems? The main purpose of this research was to find out a way in which we can detect mental health disorders without manual intervention. Machine learning can be the right solution to this problem. We used social media sites to analyse the mental state of the users. Machine learning models are trained to analyse the mental health of the people. Machine learning algorithms are employed to analyse the mental health disorders based on social media posts. Sentiment analysis can be used to detect the tone of the user from the message. This tone is useful in identifying whether the tweets are positive or negative. The proposed system uses the popular social media platform—Twitter to detect depression in the users. The tweets collected from Twitter users are used to train the machine learning model to detect whether the tweet is positive or negative. We have used logistic regression to train the model. This results in a model that is able to accurately predict whether the Twitter user is depressed or not. This can be used to detect the depression in the users and link to health workers or helplines which help the depressed person cope with their mental illness.

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 249.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. Kottursamy, K. (2021). A review on finding efficient approach to detect customer emotion analysis using deep learning analysis. Journal of Trends in Computer Science and Smart Technology, 3(2), 95–113.

    Article  Google Scholar 

  2. Tumasjan, A., Sprenger, T., Sandner, P., Welpe, I. (2010). Predicting elections with twitter: What 140 characters reveal about political sentiment. Word Journal of the International Linguistic Association, 10.

    Google Scholar 

  3. Liu, H. (2013). Some computational challenges in mining social media. In 2013 IEEE/ACM international conference on advances in social networks analysis and mining (ASONAM 2013) (pp. xxxvii–xxxvii). https://doi.org/10.1109/ASONAM.2013.6785672

  4. Doyle, C., Meandzija, A., Korniss, G., Szymanski, B., Asher, D., & Bowman, E. (2018). Mining personal media thresholds for opinion dynamics and social influence. In 2018 IEEE/ACM international conference on advances in social networks analysis and mining (ASONAM) (pp. 1258–1265). https://doi.org/10.1109/ASONAM.2018.8508316

  5. Rajapaksha, P., Farahbakhsh, R., Crespi, N., & Defude, B. (2018). Inspecting interactions: Online news media synergies in social media. In 2018 IEEE/ACM international conference on advances in social networks analysis and mining (ASONAM) (pp. 535–539). https://doi.org/10.1109/ASONAM.2018.8508534

  6. Seah, J. H. K., & Jin Shim, K (2018). Data mining approach to the detection of suicide in social media: A case study of Singapore. In 2018 IEEE international conference on big data (Big data). (pp. 5442–5444). https://doi.org/10.1109/BigData.2018.8622528

  7. Shahnawaz, & Astya, P. (2017). Sentiment analysis: Approaches and open issues. In 2017 International conference on computing, communication and automation (ICCCA) (pp. 154–158). https://doi.org/10.1109/CCAA.2017.8229791

  8. Syarif, I., Ningtias, N., & Badriyah, T. (2019). Study on mental disorder detection via social media mining. In 2019 4th International conference on computing, communications and security (ICCCS) (pp. 1–6). https://doi.org/10.1109/CCCS.2019.8888096

  9. Vohra, M., & Kakkar, M. (2018). Detection of rumor in social media. In 2018 8th International conference on cloud computing, data science & engineering (Confluence) (pp. 485–490). https://doi.org/10.1109/CONFLUENCE.2018.8442442

  10. Wang, Z., Chong, C. S., Lan, L., Yang, Y., Beng Ho, S., & Tong, J. C. (2016). Fine-grained sentiment analysis of social media with emotion sensing. In 2016 Future technologies conference (FTC) (pp. 1361–1364). https://doi.org/10.1109/FTC.2016.7821783

  11. Sutar, S. G. (2017). Intelligent data mining technique of social media for improving health care. In 2017 International conference on intelligent computing and control systems (ICICCS) (pp. 1356–1360). https://doi.org/10.1109/ICCONS.2017.8250690

  12. Xu, J. (2014). Joint visual and textual mining on social media. In 2014 IEEE international conference on data mining workshop (ICDMW) (pp. 1189–1190), Shenzhen, China.

    Google Scholar 

  13. Mohandas, A., Babu, B., Rajan S. D., Suresh, L. P., & Boben, R. (2018). A survey on mining social media data for understanding drug usage. In 2018 Conference on emerging devices and smart systems (ICEDSS) (pp. 259–261). https://doi.org/10.1109/ICEDSS.2018.8544346

  14. Chan, H. K., Lacka, E., Yee, R. W. Y., & Lim, M. K. (2014). A case study on mining social media data. In 2014 IEEE international conference on industrial engineering and engineering management (pp. 593–596). https://doi.org/10.1109/IEEM.2014.7058707

  15. Savaş, S., & Topaloğlu, N. (2017). Crime intelligence from social media: A case study. In 2017 IEEE 14th international scientific conference on informatics (pp. 313–317). https://doi.org/10.1109/INFORMATICS.2017.8327266

  16. Rejeesh, E., & Anupama, M. (2017). Social media and data mining enabled pre-counseling session: A system to perk up effectiveness of counseling in distance education. In 2017 International conference on I-SMAC (IoT in social, mobile, analytics and cloud) (I-SMAC) (pp. 153–156). https://doi.org/10.1109/I-SMAC.2017.8058328

  17. Ting, I., Liou, W. S., Liberona, D., Wang, S., & Tarazona Bermudez, G. M. (2017). Towards the detection of cyberbullying based on social network mining techniques. In 2017 International conference on behavioral, economic, socio-cultural computing (BESC) (pp. 1–2). https://doi.org/10.1109/BESC.2017.8256403

  18. Pandian, A. P. (2021). Performance evaluation and comparison using deep learning techniques in sentiment analysis. Journal of Soft Computing Paradigm (JSCP), 3(02), 123–134.

    Google Scholar 

  19. Hamilton, M. (1967). Development of a rating scale for primary depressive illness. British Journal of Social and Clinical Psychology, 6(4), 278–296.

    Article  Google Scholar 

  20. Jordan, M. I., & Mitchell, T. M. (2015). Machine learning: Trends, perspectives, and prospects. Science, 349(6245), 255–260.

    Article  MathSciNet  MATH  Google Scholar 

  21. Davcheva, P. (2014). Identifying sports talents by social media mining as a marketing instrument. In 2014 Annual SRII global conference (pp. 223–227). https://doi.org/10.1109/SRII.2014.38

  22. Dastanwala, P. B., & Patel, V. (2016). A review on social audience identification on twitter using text mining methods. In 2016 International conference on wireless communications, signal processing and networking (WiSPNET) (pp. 1917–1920). https://doi.org/10.1109/WiSPNET.2016.7566476

  23. Rutledge, R. B., Chekroud, A. M., & Huys, Q. J. (2019). Machine learning and big data in psychiatry: Toward clinical applications. Current Opinion in Neurobiology, 55, 152–159.

    Article  Google Scholar 

  24. Desai, S., & Patil, S. T. (2015). Efficient regression algorithms for classification of social media data. In 2015 International conference on pervasive computing (ICPC) (pp. 1–5). https://doi.org/10.1109/PERVASIVE.2015.7087040

  25. Chen, X., Vorvoreanu, M., & Madhavan, K. (2014). Mining social media data for understanding students’ learning experiences. IEEE Transactions on Learning Technologies, 7(3), 246–259. https://doi.org/10.1109/TLT.2013.2296520

  26. Executive Board. (2012) Global burden of mental disorders and the need for a comprehensive, coordinated response from health and social workers at the country level.

    Google Scholar 

  27. Manoharan, J. S. (2021). Study of variants of extreme learning machine (ELM) brands and its performance measure on classification algorithm. Journal of Soft Computing Paradigm (JSCP), 3(02), 83–95.

    Article  Google Scholar 

  28. Mugunthan, S. R., & Vijayakumar, T. (2021). Design of improved version of sigmoidal function with biases for classification task in ELM domain. Journal of Soft Computing Paradigm (JSCP), 3(02), 70–82.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Udaipurwala Rashida .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

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

Rashida, U., Suresh Kumar, K. (2023). Social Media Mining to Detect Mental Health Disorders Using Machine Learning. In: Shakya, S., Du, KL., Ntalianis, K. (eds) Sentiment Analysis and Deep Learning. Advances in Intelligent Systems and Computing, vol 1432. Springer, Singapore. https://doi.org/10.1007/978-981-19-5443-6_68

Download citation

Publish with us

Policies and ethics