Skip to main content
Frontiers in Psychiatry logoLink to Frontiers in Psychiatry
. 2026 Feb 17;17:1776019. doi: 10.3389/fpsyt.2026.1776019

Commentary: Deep learning in obsessive-compulsive disorder: a narrative review

Olga Kashevarova 1, Galina Portnova 1, Guzal Khayrullina 1,2, Krystsina Liaukovich 1, Ekaterina Proshina 1, Anastasia Gaidareva 1,2, Rohit Verma 3, Rupali Bhardwaj 4, Olga Martynova 1,2,*
PMCID: PMC12953513  PMID: 41783732

Introduction

The narrative review by Zaboski et al. (1) provides a timely and valuable synthesis of the application of deep learning (DL) to obsessive-compulsive disorder (OCD). The authors effectively argue for the unique potential of DL to handle the marked heterogeneity and complexity of OCD, which often eludes traditional statistical methods. By focusing exclusively on OCD, the review offers a necessary and nuanced examination that broader psychiatric AI reviews might miss. The reported diagnostic accuracies of 80–98% are certainly impressive and validate the technical promise of these approaches. However, as the field stands at this promising juncture, the most critical challenge has shifted from proving technical feasibility to ensuring clinical translation. Building on this foundation, the present discussion highlights the challenges of scalability and clinical implementation while advocating for two specific research avenues: data-driven subtyping and genetic integration.

Challenges in clinical translation

Zaboski et al. (1) correctly identify that models relying on resource-intensive data like functional magnetic resonance imaging (fMRI) or clinician-administered scales must demonstrate “incremental utility” beyond specialist diagnosis. While impressive performance metrics are achieved in controlled research settings, the “last mile” to the clinic is fraught with practical obstacles. For instance, the proof-of-concept by Wahl et al. (2) for detecting hand-washing via smartwatch is compelling, yet its real-world utility depends on seamless integration into patients’ lives and clinical practice. Issues of user compliance, device battery life, data synchronization, and false positive management present significant barriers to sustained use. Future research should focus on both model optimization and implementation feasibility.

Furthermore, the review’s discussion on leveraging electronic medical records (EMRs) for scalable detection is a vital direction. However, it is crucial to acknowledge that EMR data comes with its own set of complexities, including significant selection bias (over-representing severe cases), fragmented documentation across different healthcare providers, and a high degree of unstructured, “noisy” data. Developing models that are robust to these real-world data imperfections is a fundamental prerequisite for their clinical application.

Data-driven subtyping and genetic integration

A significant opportunity beyond diagnostic classification, also highlighted in the review, lies in using DL to deconstruct the marked heterogeneity of OCD into empirically grounded, data-driven subtypes. Current subtyping based on symptom dimensions (e.g., contamination/washing, symmetry/ordering) has clinical utility but may not capture underlying neurobiological or genetic distinctions. Indeed, a growing body of evidence, including work from our group, suggests that distinct OCD subtypes are underpinned by divergent neurobiological pathways involving dysregulation across glutamatergic, serotonergic, dopaminergic, and neurotrophic systems, as well as distinct patterns of brain region engagement (3). This neurobiological heterogeneity provides a strong rationale for applying DL models, which are uniquely suited to analyze high-dimensional multimodal data, such as neuroimaging, clinical scales, and behavioral data from wearables, to identify clusters of patients that share common biological and symptom trajectories (4). For example, a model might discover a subtype characterized by specific cortico-striatal connectivity patterns, high autonomic arousal during compulsions, and poor response to anti-obsessive medications but better response to exposure and response prevention (ERP) therapy (5). A network-level dysregulation contributes to OCD pathophysiology (6) and highlights the importance of connectivity analyses in subtyping efforts. Such a data-driven taxonomy would advance precision medicine beyond a one-size-fits-all diagnostic label.

The review mentions OCD’s genetic basis but notes the scarcity of DL applications in this area. Integrating genetic data, such as polygenic risk scores or specific risk variants from genome-wide association studies, into multimodal DL models could powerfully enhance their predictive and explanatory power (7). A model that simultaneously processes a patient’s fMRI data, symptom profile, and genetic risk could achieve several goals: 1) identify individuals at high risk before the full onset of disorder, enabling preventive strategies; 2) uncover how genetic risk manifests in specific brain circuit dysfunctions; and 3) significantly improve the prediction of treatment response by linking genetic markers to pharmacological mechanisms. While this vision is compelling, its realization requires navigating substantial practical challenges. These include the need for rigorous data harmonization across heterogeneous genetic datasets, careful control for population stratification to avoid spurious findings, and the ongoing challenge of assembling the large, multimodal sample sizes required for robust DL analysis. While sample sizes for such integrated analyses remain challenging, consortia like ENIGMA-OCD and the International OCD Foundation Genetics Collaborative are building the necessary large-scale datasets to eventually overcome these hurdles.

Explainability and mechanistic understanding

The authors briefly mention model interpretability, but this issue warrants center stage in future work. The “black box” nature of many DL models is a major barrier to clinician adoption and patient trust. A clinician is unlikely to base a high-stakes treatment decision on a model’s output without understanding the rationale, especially when contradicting clinical judgment.

The next wave of innovation must invest in Explainable AI (XAI) techniques tailored to psychiatric applications. For example, generating saliency maps that highlight which brain regions or genetic loci most influenced a classification or subtype assignment can build essential trust and provide clinically meaningful insights. Concretely, such outputs could be integrated into clinical workflows by visually overlaying a saliency map on a patient’s own brain scan during a case review, pinpointing circuits of high model relevance. This could directly inform the targeting of neuromodulation therapies or the psychoeducation of a patient about the neurobiological basis of their symptoms. Moreover, integrating behavioral and electrophysiological data can illuminate mechanisms underlying model predictions. The recent antisaccade studies revealed attentional bias toward negative stimuli in OCD, with corresponding electrophysiological abnormalities suggesting emotional dysregulation’s role in impaired inhibitory control (8, 9). Thus, more proactive selection of feature space can improve the model accuracy and increase their physiological interpretation.

Zaboski et al. (1) have clearly outlined the promising potential of DL in OCD research. The path forward requires a multifaceted approach that prioritizes several key objectives. First, DL must be leveraged to discover data-driven OCD subtypes grounded in neurobiological and genetic distinctions. Second, integrating genetic data into multimodal models could enable early identification of high-risk individuals before full disorder onset, uncover how genetic risk manifests in specific brain circuit dysfunctions, and improve treatment response prediction by linking genetic markers to pharmacological mechanisms. While acknowledging the practical constraints of data harmonization and sample size. Third, explainability must become central to model development, integrating behavioral and electrophysiological insights to build clinician trust and patient engagement, for instance by providing interpretable visual aids for clinical decision-making. Finally, prospective clinical trials are needed to validate these approaches and test real-world impact on patient outcomes. By addressing these translational challenges with the same rigor applied to algorithmic innovation, the field can ensure that DL’s remarkable potential translates into meaningful advancements in precision psychiatry for the millions affected by OCD.

Funding Statement

The author(s) declared that financial support was received for this work and/or its publication. The study was supported by the Russian Science Foundation grant. No. 24-45-02034, https://rscf.ru/en/project/24-45-02034/.

Footnotes

Edited by: Sandra Carvalho, University of Minho, Portugal

Reviewed by: Lucas Murrins Marques, Santa Casa de Sao Paulo School of Medical Sciences, Brazil

Author contributions

OK: Writing – original draft, Conceptualization. GP: Writing – review & editing, Conceptualization. GK: Project administration, Conceptualization, Writing – review & editing. KL: Conceptualization, Writing – review & editing. EP: Conceptualization, Writing – review & editing. AG: Writing – review & editing, Conceptualization. RV: Conceptualization, Writing – review & editing. RB: Conceptualization, Writing – review & editing. OM: Supervision, Writing – review & editing, Funding acquisition, Conceptualization.

Conflict of interest

The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declared that generative AI was not used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

  • 1. Zaboski BA, Bednarek L, Ayoub K, Pittenger C. Deep learning in obsessive-compulsive disorder: a narrative review. Front Psychiatry. (2025) 16:1581297. doi:  10.3389/fpsyt.2025.1581297, PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2. Wahl K, Scholl PM, Miché M, Wirth S, Burchard R, Lieb R. Real-time detection of obsessive-compulsive hand washing with wearables: Research procedure, usefulness and discriminative performance. J Obsessive-Compuls Relat Disord. (2023) 39:100845. doi:  10.1016/j.jocrd.2023.100845 [DOI] [Google Scholar]
  • 3. Proshina E, Gaidareva A, Beskhizhko M, Kazaryan G, Bainbridge E, Khayrullina G. Biomarkers of obsessive-compulsive disorder subtypes: A literature review. Int J Mol Sci. (2025) 26:8578. doi:  10.3390/ijms26178578, PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4. Yang P, Wei Z, Yang Q, Xiao X, Wang T, Lei B, et al. OCD diagnosis via smooth sparse network and fused sparse auto-encoder learning. Expert Syst Appl. (2023) 216:119389. doi:  10.1016/j.eswa.2022.119389 [DOI] [Google Scholar]
  • 5. Zaboski BA, Bednarek L. Precision psychiatry for obsessive-compulsive disorder: clinical applications of deep learning architectures. J Clin Med. (2025) 14:2442. doi:  10.3390/jcm14072442, PMID: [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Mitiureva D, Sysoeva O, Proshina E, Portnova G, Khayrullina G, Martynova O. Comparative analysis of resting-state EEG functional connectivity in depression and obsessive-compulsive disorder. Psychiatry Res Neuroimaging. (2024) 342:111828. doi:  10.1016/j.pscychresns.2024.111828, PMID: [DOI] [PubMed] [Google Scholar]
  • 7. Kalmady SV, Paul AK, Narayanaswamy JC, Agrawal R, Shivakumar V, Greenshaw AJ, et al. Prediction of obsessive-compulsive disorder: importance of neurobiology-aided feature design and cross-diagnosis transfer learning. Biol Psychiatry Cognit Neurosci Neuroimaging. (2022) 7:735–46. doi:  10.1016/j.bpsc.2021.12.003, PMID: [DOI] [PubMed] [Google Scholar]
  • 8. Liaukovich K, Panfilova E, Khayrullina G, Martynova O. Event-related potentials and presaccadic activity in response to affective stimuli in participants with obsessive-compulsive disorder. Int J Psychophysiol. (2025) 207:112475. doi:  10.1016/j.ijpsycho.2024.112475, PMID: [DOI] [PubMed] [Google Scholar]
  • 9. Khayrullina G, Panfilova E, Martynova O. Increased error rate and delayed response to negative emotional stimuli in antisaccade task in obsessive-compulsive disorder. Int J Psychophysiol. (2023) 192:62–71. doi:  10.1016/j.ijpsycho.2023.08.009, PMID: [DOI] [PubMed] [Google Scholar]

Articles from Frontiers in Psychiatry are provided here courtesy of Frontiers Media SA

RESOURCES