Classification of Depression and Anxiety with Machine Learning Applying Random Forest Models
Anxiety and depression have a strong correlation; although they often differ in their symptoms, both disorders frequently coexist in individuals, leading to a significant impairment of their daily functioning. Anxiety is among the most common conditions that, over time, can develop into a depressive disorder, or vice versa. The simultaneous presence of these disorders contributes to a range of symptoms, including mood disturbances, anhedonia, sleep problems, persistent fear, suicidal thoughts or ideation, distress, irritability, and constant worry, which result in substantial suffering for affected individuals. Recognizing this complex interplay, the present research applied Machine Learning models, particularly Random Forest, which is renowned for its robustness in classification tasks and its ability to identify both linear and non-linear relationships. The study involved the use of 17 predictor variables to train two models, each focused on predicting different outcomes: “Depression Severity” and “Anxiety Severity.” By leveraging the strengths of Random Forest, the research achieved highly accurate classifications. Specifically, the model for “Depression Severity” attained an accuracy of 99.35% and an F1 Score of 99.34%, while the model for “Anxiety Severity” reached an accuracy of 98.04% and an F1 Score of 98.05%. These results underscore the effectiveness and precision of the Random Forest algorithm in accurately identifying the severity of these mental health conditions.
Authors
- Fabiana Alexandra Apaza Davila
- Wilson Mamani (ORCID: https://orcid.org/0000-0002-5408-4284)
- J. E. Cruz (ORCID: https://orcid.org/0000-0002-5201-0265)
- Saúl Huaquipaco Encinas (ORCID: https://orcid.org/0000-0003-2323-3061)
- Trinidad Dorotea Cruz de la Cruz
- Camila Britany Alvarez Espezua
Institutions
- University of Alicante (ES)
- Universidad de San Martín de Porres (PE)
- Universidad Privada de Tacna (PE)
- Universidad Católica San Pablo (PE)
- Universidad Nacional del Altiplano (PE)
- Ministry of Health (PE)
- Universidad Nacional de Moquegua (PE)
Publication Details
- Published
- 2024-12-27
- DOI
- https://doi.org/10.1145/3715931.3715955
- Citations
- 2
- Primary Topic
- Mental Health Research Topics
- Type
- article
- Field-Weighted Citation Impact
- 1.02