Manara - Qatar Research Repository
10.1016_j.cmpbup.2022.100066.pdf (758.25 kB)

Machine learning models to detect anxiety and depression through social media: A scoping review

Download (758.25 kB)
journal contribution
submitted on 2024-04-22, 07:46 and posted on 2024-04-22, 07:46 authored by Arfan Ahmed, Sarah Aziz, Carla T. Toro, Mahmood Alzubaidi, Sara Irshaidat, Hashem Abu Serhan, Alaa A. Abd-alrazaq, Mowafa Househ

Despite improvement in detection rates, the prevalence of mental health disorders such as anxiety and depression are on the rise especially since the outbreak of the COVID-19 pandemic. Symptoms of mental health disorders have been noted and observed on social media forums such Facebook. We explored machine learning models used to detect anxiety and depression through social media. Six bibliographic databases were searched for conducting the review following PRISMA-ScR protocol. We included 54 of 2219 retrieved studies. Users suffering from anxiety or depression were identified in the reviewed studies by screening their online presence and their sharing of diagnosis by patterns in their language and online activity. Majority of the studies (70%, 38/54) were conducted at the peak of the COVID-19 pandemic (2019–2020). The studies made use of social media data from a variety of different platforms to develop predictive models for the detection of depression or anxiety. These included Twitter, Facebook, Instagram, Reddit, Sina Weibo, and a combination of different social sites posts. We report the most common Machine Learning models identified. Identification of those suffering from anxiety and depression disorders may be achieved using prediction models to detect user's language on social media and has the potential to complimenting traditional screening. Such analysis could also provide insights into the mental health of the public especially so when access to health professionals can be restricted due to lockdowns and temporary closure of services such as we saw during the peak of the COVID-19 pandemic.

Other Information

Published in: Computer Methods and Programs in Biomedicine Update
See article on publisher's website:



  • English



Publication Year

  • 2022

License statement

This Item is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Institution affiliated with

  • Weill Cornell Medicine - Qatar
  • Artificial Intelligence (AI) Center for Precision Health - WCM-Q
  • Hamad Bin Khalifa University
  • College of Science and Engineering - HBKU

Usage metrics

    College of Science and Engineering - HBKU


    Ref. manager