Depression Detection on Social Media Posts Using BERT and Support Vector Machine
Depression is a growing mental health challenge, affecting countless individuals worldwide. As people increasingly express their mental states on social media platforms like Twitter and Reddit, there is an opportunity to leverage this data to identify signs of depression. This study investigates the potential of social media text for detecting depression using machine learning techniques. We used Kaggle-sourced Twitter and Reddit datasets, each containing labeled samples of depressive and non-depressive content. After extensive preprocessing such as text cleaning, tokenization, and BERT embedding generation we trained Support Vector Machine (SVM) models with various kernel functions. Our results show Twitter data significantly enhances model performance, achieving 94.4% accuracy with the polynomial kernel while 87.5% on twitter dataset with Radial basis function (RBF). These findings underscore the potential for accurate depression detection, suggesting its value for early intervention and use of social media data for depression detection.
Authors
- Rashid Ali (ORCID: https://orcid.org/0000-0002-5977-9755)
- Mohd Adil (ORCID: https://orcid.org/0000-0002-8055-2512)
- Haris Shoaib
- Samreen Khan
Institutions
- Aligarh Muslim University (IN)
Publication Details
- Published
- 2025-03-07
- DOI
- https://doi.org/10.1109/csnt64827.2025.10967659
- Primary Topic
- Mental Health via Writing
- Type
- article
- Field-Weighted Citation Impact
- 0.00