Accepted for/Published in: JMIR Public Health and Surveillance
Date Submitted: Feb 12, 2025
Date Accepted: Aug 28, 2025
Severity Classification of Anxiety and Depression Using GAD-7 and PHQ-9: A National Cross-sectional Study Applying CART Models
ABSTRACT
Background:
Scalable, cost-effective tools are essential for mental health screening. Machine learning offers innovative ways to enhance accuracy and optimize existing instruments for assessing anxiety and depression severity.
Objective:
This study applied decision tree models to refine mental health screening by identifying the most predictive components of anxiety and depression severity in Brazil.
Methods:
Data from 20,585 adults across all 27 Brazilian states and 3,000+ cities, covering urban and rural areas, were analyzed. Mental health symptoms were assessed using the GAD-7 and PHQ-9 scales. Decision trees, built using the CART algorithm, identified the most predictive items. Sociodemographic variables were also tested as predictors.
Results:
The models derived concise decision rules using two (GAD-7) or three (PHQ-9) items, achieving high accuracy for Minimum/Mild and Severe severity levels (86.1%/85.1% for GAD-7, 81.7%/78.8% for PHQ-9) with AUC > 0.900. Moderate severity had lower reliability (51.5% GAD-7; 66.8% PHQ-9; AUC = 0.728/0.776). Sociodemographic factors had minimal predictive value. Findings suggest a balance between efficiency and precision.c
Conclusions:
Machine learning facilitates streamlined mental health screening by optimizing severity classification, improving scalability while maintaining reliability. These results reinforce the potential of decision-tree models to enhance screening efficiency in public health applications.
Citation
Request queued. Please wait while the file is being generated. It may take some time.
Copyright
© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.