Skip to main content

Advertisement

Log in

Depression detection from social network data using machine learning techniques

  • Research
  • Published:
Health Information Science and Systems Aims and scope Submit manuscript

Abstract

Purpose

Social networks have been developed as a great point for its users to communicate with their interested friends and share their opinions, photos, and videos reflecting their moods, feelings and sentiments. This creates an opportunity to analyze social network data for user’s feelings and sentiments to investigate their moods and attitudes when they are communicating via these online tools.

Methods

Although diagnosis of depression using social networks data has picked an established position globally, there are several dimensions that are yet to be detected. In this study, we aim to perform depression analysis on Facebook data collected from an online public source. To investigate the effect of depression detection, we propose machine learning technique as an efficient and scalable method.

Results

We report an implementation of the proposed method. We have evaluated the efficiency of our proposed method using a set of various psycholinguistic features. We show that our proposed method can significantly improve the accuracy and classification error rate. In addition, the result shows that in different experiments Decision Tree (DT) gives the highest accuracy than other ML approaches to find the depression.

Conclusions

Machine learning techniques identify high quality solutions of mental health problems among Facebook users.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3

Similar content being viewed by others

References

  1. Scott J. Social network analysis. Thousand Oaks: Sage; 2017.

    Google Scholar 

  2. Serrat O. Social network analysis. In: Knowledge solutions. Singapore: Springer; 2017. p. 39–43.

    Chapter  Google Scholar 

  3. Mikal J, Hurst S, Conway M. Investigating patient attitudes towards the use of social media data to augment depression diagnosis and treatment: a qualitative study. In: Proceedings of the fourth workshop on computational linguistics and clinical psychology—from linguistic signal to clinical reality. 2017.

  4. Conway M, O’Connor D. Social media, big data, and mental health: current advances and ethical implications. Curr Opin Psychol. 2016;9:77–82.

    Article  Google Scholar 

  5. Ofek N, et al. Sentiment analysis in transcribed utterances. In: Pacific-Asia conference on knowledge discovery and data mining. 2015. Cham: Springer.

    Chapter  Google Scholar 

  6. Yang Y, et al. User interest and social influence based emotion prediction for individuals. In: Proceedings of the 21st ACM international conference on Multimedia. 2013. New York: ACM.

  7. Tausczik YR, Pennebaker JW. The psychological meaning of words: LIWC and computerized text analysis methods. J Lang Soc Psychol. 2010;29(1):24–54.

    Article  Google Scholar 

  8. Pennebaker JW, Francis ME, Booth RJ. Linguistic inquiry and word count: LIWC 2001, vol. 71. Mahway: Lawrence Erlbaum Associates; 2001. p. 2001.

  9. Holleran SE. The early detection of depression from social networking sites. Tucson: The University of Arizona; 2010.

    Google Scholar 

  10. Greenberg LS. Emotion-focused therapy of depression. Per Centered Exp Psychother. 2017;16(1):106–17.

    Google Scholar 

  11. Haberler G. Prosperity and depression: a theoretical analysis of cyclical movements. London: Routledge; 2017.

    Book  Google Scholar 

  12. Guntuku SC, et al. Detecting depression and mental illness on social media: an integrative review. Curr Opin Behav Sci. 2017;18:43–9.

    Article  Google Scholar 

  13. De Choudhury M, et al. Predicting depression via social Media. In: ICWSM, vol. 13. 2013. p. 1–10.

  14. De Choudhury M, Counts S, Horvitz E. Predicting postpartum changes in emotion and behavior via social media. In: Proceedings of the SIGCHI conference on human factors in computing systems. New York: ACM; 2013.

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

    Article  Google Scholar 

  16. Zhang L, et al. Using linguistic features to estimate suicide probability of Chinese microblog users. In: International conference on human centered computing. Berlin: Springer; 2014.

  17. Aldarwish MM, Ahmad HF. Predicting depression levels using social media posts. In: 2017 IEEE 13th international Symposium on Autonomous decentralized system (ISADS). 2017.

  18. Zhou J, et al. Measuring emotion bifurcation points for individuals in social media. In: 2016 49th Hawaii international conference on system sciences (HICSS). 2016. Koloa: IEEE.

  19. Wang X, et al. A depression detection model based on sentiment analysis in micro-blog social network. In: Trends and applications in knowledge discovery and data mining (PAKDD). 2013.

    Google Scholar 

  20. Nguyen T, et al. Affective and content analysis of online depression communities. IEEE Trans Affect Comput. 2014;5(3):217–26.

    Article  Google Scholar 

  21. Park M, McDonald DW, Cha M. Perception differences between the depressed and non-depressed users in Twitter. In: ICWSM, vol. 9. 2013. p. 217–226.

  22. Wee J, et al. The influence of depression and personality on social networking. Comput Hum Behav. 2017;74:45–52.

    Article  Google Scholar 

  23. Bachrach Y, et al. Personality and patterns of Facebook usage. In: Proceedings of the 4th annual ACM web science conference. 2012. New York: ACM.

  24. Ortigosa A, Martín JM, Carro RM. Sentiment analysis in Facebook and its application to e-learning. Comput Hum Behav. 2014;31:527–41.

    Article  Google Scholar 

  25. Shen G, et al. Depression detection via harvesting social media: A multimodal dictionary learning solution. In: Proceeding of the twenty-sixth international joint conference on artificial intelligence (IJCAI-17). 2017. p. 3838–3844.

  26. https://github.com/ranju12345/Depression-Anxiety-Facebook-page-Comments-Text.

  27. Bazeley P, Jackson K. Qualitative data analysis with NVivo. London: Sage; 2013.

    Google Scholar 

  28. AlYahmady HH, Alabri SS. Using NVivo for data analysis in qualitative research. Int Interdiscip J Educ. 2013;2(2):181–6.

    Article  Google Scholar 

  29. Bandara, W. Using Nvivo as a research management tool: a case narrative. In: Quality and impact of qualitative research: proceedings of the 3rd international conference on qualitative research in IT & IT in Qualitative Research. 2006.

  30. Akkın Gürbüz HG, et al. Use of social network sites among depressed adolescents. Behav Inf Technol. 2017;36(5):517–23.

    Article  Google Scholar 

  31. Zafarani R, Abbasi MA, Liu H. Social media mining: an introduction. New York: Cambridge University Press; 2014.

    Book  Google Scholar 

  32. Bilgihan A, et al. Consumer perception of knowledge-sharing in travel-related online social networks. Tour Manag. 2016;52:287–96.

    Article  Google Scholar 

  33. Fuchs A, Andrews SS. System, method and computer program product for sharing information in a distributed framework. 2017. Google Patents.

  34. Weeks BE, et al. Incidental exposure, selective exposure, and political information sharing: integrating online exposure patterns and expression on social media. J Comput Mediat Commun. 2017;22(6):363–79.

    Article  Google Scholar 

  35. Lane DS, et al. From online disagreement to offline action: how diverse motivations for using social media can increase political information sharing and catalyze offline political participation. Soc Media Soc. 2017. https://doi.org/10.1177/2056305117716274.

    Article  Google Scholar 

  36. Yin J, et al. Using social media to enhance emergency situation awareness. IEEE Intell Syst. 2012;27(6):52–9.

    Article  Google Scholar 

  37. McDougall MA, et al. The effect of social networking sites on the relationship between perceived social support and depression. Psychiatry Res. 2016;246:223–9.

    Article  Google Scholar 

  38. Weedon J, Nuland W, Stamos A. Information operations and Facebook version 1.0. 2017. p. 27.

  39. Krebs F, et al. Social emotion mining techniques for Facebook posts reaction prediction. arXiv Preprint. arXiv:1712.03249. 2017.

  40. Laganas C, McLeod K, Lowe E. Political posts on Facebook: an examination of voting, perceived intelligence, and motivations. Pepperdine J Commun Res. 2017;5(1):18.

    Google Scholar 

  41. Wang Y, Pal A. Detecting emotions in social media: a constrained optimization approach. In: IJCAI. 2015.

  42. Gilbert E, Karahalios K. Predicting tie strength with social media. In: Proceedings of the SIGCHI conference on human factors in computing systems. New York: ACM; 2009.

  43. Hosseinifard B, Moradi MH, Rostami R. Classifying depression patients and normal subjects using machine learning techniques. In: 2011 19th Iranian Conference on Electrical Engineering (ICEE). 2011.

  44. Islam MR, Kamal ARM, Sultana N, Moni MA, Islam R. Depression detection using K-Nearest Neighbors (KNN) classification technique. In: International conference on computer, communication, chemical, materials and electronic engineering, February 8–9, 2018, Rajshahi, Bangladesh.

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Md. Rafiqul Islam.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

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

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s13755-018-0046-0

Keywords

Navigation