Skip to main content
Kent Academic Repository

Generalizability of Machine Learning to Categorize Various Mental Illness Using Social Media Activity Patterns

Ang, Chee Siang, Venkatachala, Ranjith (2023) Generalizability of Machine Learning to Categorize Various Mental Illness Using Social Media Activity Patterns. Societies, 13 (5). Article Number 117. ISSN 2075-4698. (doi:10.3390/soc13050117) (KAR id:101272)


Mental illness has recently become a global health issue, causing significant suffering in people’s lives and having a negative impact on productivity. In this study, we analyzed the generalization capacity of machine learning to classify various mental illnesses across multiple social media platforms (Twitter and Reddit). Language samples were gathered from Reddit and Twitter postings in discussion forums devoted to various forms of mental illness (anxiety, autism, schizophrenia, depression, bipolar disorder, and BPD). Following this process, information from 606,208 posts (Reddit) created by a total of 248,537 people and from 23,102,773 tweets was used for the analysis. We initially trained and tested machine learning models (CNN and Word2vec) using labeled Twitter datasets, and then we utilized the dataset from Reddit to assess the effectiveness of our trained models and vice versa. According to the experimental findings, the suggested method successfully classified mental illness in social media texts even when training datasets did not include keywords or when unrelated datasets were utilized for testing.

Item Type: Article
DOI/Identification number: 10.3390/soc13050117
Uncontrolled keywords: General Social Sciences
Subjects: Q Science > QA Mathematics (inc Computing science)
Divisions: Divisions > Division of Computing, Engineering and Mathematical Sciences > School of Computing
Funders: University of Kent (
SWORD Depositor: JISC Publications Router
Depositing User: JISC Publications Router
Date Deposited: 16 May 2023 10:39 UTC
Last Modified: 08 Jun 2023 11:54 UTC
Resource URI: (The current URI for this page, for reference purposes)

University of Kent Author Information

Ang, Chee Siang.

Creator's ORCID:
CReDIT Contributor Roles:

Venkatachala, Ranjith.

Creator's ORCID:
CReDIT Contributor Roles:
  • Depositors only (login required):

Total unique views for this document in KAR since July 2020. For more details click on the image.