# Classifying Obsessive-Compulsive Disorder from Resting-State EEG Using Convolutional Neural Networks: A Pilot Study

**Authors:** Brian Zaboski, Sarah Fineberg, Patrick Skosnik, Stephen Kichuk, Madison Fitzpatrick, Christopher Pittenger

PMC · DOI: 10.5334/cpsy.149 · Computational Psychiatry · 2026-01-16

## TL;DR

This pilot study shows that deep learning models can classify OCD using resting-state EEG data better than traditional methods.

## Contribution

The study demonstrates that CNNs outperform SVMs in classifying OCD from EEG data, suggesting new potential for deep learning in psychiatric diagnosis.

## Key findings

- CNNs achieved 85% accuracy and 0.88 AUC in classifying OCD vs. controls.
- SVM performance was at chance level (45% accuracy, 0.47 AUC).
- Clinical and demographic variables added no significant predictive value.

## Abstract

Identifying obsessive-compulsive disorder (OCD) using brain data remains challenging. Resting-state electroencephalography (EEG) offers an affordable and noninvasive approach, but identifying predictive signals in EEG data has met with little success, even with the application of traditional machine learning methods. We explored whether convolutional neural networks (CNNs) applied to EEG time-frequency representations can distinguish individuals with OCD from healthy controls.

We collected resting-state EEG data from 20 unmedicated participants (10 with OCD, 10 healthy controls). Four-second EEG segments were transformed into time-frequency representations. We then trained a 2D CNN using a leave-one-subject-out cross-validation framework to perform subject-level classification and compared its performance to a more traditional support vector machine (SVM) approach. Next, using multimodal fusion, we examined whether adding clinical and demographic information improved classification.

The CNN classifier achieved high subject-level performance, distinguishing individuals with an accuracy of 85.0% and an area under the curve (AUC) of 0.88. This significantly outperformed the SVM baseline, which performed no better than chance (45.0% accuracy, AUC: 0.47). A subsequent multimodal analysis revealed that clinical and demographic variables did not contribute any additional independent information.

CNNs applied to resting-state EEG show promise for identifying OCD, outperforming traditional machine learning methods. These findings highlight the potential of deep learning to uncover complex, diagnostically relevant patterns in neural data. While limited by sample size, this work supports further investigation into multimodal models for psychiatric classification, warranting replication in larger, more diverse samples.

## Linked entities

- **Diseases:** obsessive-compulsive disorder (MONDO:0008114), OCD (MONDO:0001158)

## Full-text entities

- **Diseases:** OCD (MESH:D009771), psychiatric (MESH:D001523)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12829452/full.md

## Figures

2 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12829452/full.md

## References

72 references — full list in the complete paper: https://tomesphere.com/paper/PMC12829452/full.md

---
Source: https://tomesphere.com/paper/PMC12829452