Mode
Text Size
Log in / Sign up

Deep learning model identifies neural connectivity patterns in patients with obsessive-compulsive disorder

Deep learning model identifies neural connectivity patterns in patients with obsessive-compulsive di…
Photo by Nick Design / Unsplash
Key Takeaway
Note that deep learning models can identify hypoconnectivity patterns in OCD, though site-to-site generalization remains a challenge.

This cohort study investigated the use of a transformer-based deep learning model, known as Multi-Band Brain Net, to analyze rs-fMRI data for the identification of obsessive-compulsive disorder. The researchers utilized a large-scale pretraining approach on the UK Biobank to enhance model reliability and reduce overconfident predictions.

The study reported modest but competitive classification performance. Through attention weights analysis, the authors observed patterns of widespread hypoconnectivity in the OCD group relative to controls, particularly within the default mode, salience, and somatomotor networks. Notably, the pretraining process helped remove bias related to scanner manufacturers and improved model calibration.

However, several limitations were noted. While pretraining improved calibration, it did not significantly boost overall accuracy or close the observed generalization gap across different sites. The authors also noted a gap in performance during leave-one-site-out validation.

Clinically, this research provides a framework for developing more reliable and trustworthy clinical artificial intelligence for OCD. While the identified connectivity patterns are promising, the current findings should be interpreted with caution until the model demonstrates more robust generalizability across diverse clinical settings.

Study Details

Study typeCohort
Sample sizen = 40,783
EvidenceLevel 3
PublishedApr 2026
View Original Abstract ↓
Background. Studies applying machine learning to obsessive-compulsive disorder (OCD) typically report accuracy in homogeneous samples but rarely assess model reliability, generalizability, and interpretability needed for clinical use. Methods. We applied a transformer-based deep learning model, the Multi-Band Brain Net, to the ENIGMA-OCD cohort - the largest available resting-state functional magnetic resonance imaging (rs-fMRI) dataset in OCD with 1,706 participants (869 cases with OCD, 837 controls) across 23 sites worldwide. We evaluated model reliability by calculating calibration - the model's ability to "know what it doesn't know". We assessed generalizability using leave-one-site-out validation to test performance on unseen sites with different scanners, acquisition protocols, and patient populations. Finally, we examined interpretability by analyzing model attention weights to identify the neural connectivity patterns that influence model predictions. Results. The model achieved modest but competitive classification performance (AUROC = .653, SD = .039). Crucially, while large-scale pretraining on the UK Biobank (N = 40,783) did not boost accuracy, it significantly enhanced model calibration by reducing overconfident predictions. Leave-one-site-out validation showed a generalization gap across sites (AUROC = .427-.819). Pretraining did not close this gap but removed scanner manufacturer bias. Finally, attention-based mapping identified biologically plausible patterns of widespread hypoconnectivity in OCD relative to healthy controls, particularly in low-frequency bands involving the default mode, salience, and somatomotor networks. These findings aligned with known OCD neurobiology. Conclusions. This study provides a framework for developing more reliable and trustworthy clinical artificial intelligence for OCD.
Free Newsletter

Clinical research that matters. Delivered to your inbox.

Join thousands of clinicians and researchers. No spam, unsubscribe anytime.