Artificial Intelligence in Obsessive-Compulsive Disorder: A Systematic Review

Jiyeong Kim, Juan S. Lezama-Pacheco, Ashleigh Golden, Elias Aboujaoude, Peter van Roessel, Aayushi Gandhi, Pavithra Mukunda, Tatevik Avanesyan, Haopeng Xue, Ehsan Adeli, Jane Kim, Manish Saggar, Shannon Wiltsey Stirman, Eric Kuhn, Kaustubh Supekar, Kilian M. Pohl, Carolyn I. RodríguezCurrent 2025 · DOI

Abstract

Obsessive-Compulsive Disorder (OCD) is a chronic and disabling condition characterized by a significant delay—averaging 17 years—between symptom onset and the receipt of evidence-based treatment. This systematic review synthesizes recent research on the application of Artificial Intelligence (AI), specifically Natural Language Processing (NLP) and Generative AI, to address this clinical gap. By evaluating 13 key studies, the review highlights AI's potential to automate early symptom detection, scale specialized therapy training, and assist in clinical decision-making, while also identifying critical ethical and methodological hurdles.

Introduction

Obsessive-Compulsive Disorder (OCD) presents a unique challenge in mental healthcare. Despite typically emerging in childhood or adolescence, patients often face a staggering 17-year delay before receiving a formal diagnosis and the gold-standard treatment: Cognitive Behavioral Therapy (CBT) with Exposure and Response Prevention (ERP). This delay is largely driven by the shortage of specially trained mental health professionals capable of delivering high-quality ERP.

Recent advancements in deep learning and Large Language Models (LLMs) offer a potential solution. This paper investigates how these technologies can be leveraged to close the diagnostic gap, scale effective treatments, and improve the overall clinical management of OCD.

Methodology

Following the PRISMA (Preferred Reporting Items for Systematic Reviews and Meta-Analyses) guidelines, the authors conducted a comprehensive search across PubMed, Embase, and Scopus. The review specifically targeted papers focusing on AI, Machine Learning (ML), or NLP interventions for OCD. To maintain a focus on novel computational and generative approaches, older physiology-based studies (such as those involving EEG or deep brain stimulation) were excluded.

PRISMA flow diagram illustrating the study selection process, resulting in 13 included articles.

Out of 349 initial articles identified, 13 met the rigorous inclusion criteria. The underlying research was heavily weighted toward language analysis (69.2%) and prediction modeling (23.1%).

Data Sources

The datasets utilized in the reviewed studies were primarily derived from secondary data analysis (84.6%):

  • Public Data (53.8%): This included social media posts from platforms like Reddit (r/OCD) and Twitter/X, as well as mobile app data.
  • Private/Human Subject Data (23.1%): Clinical interview audio recordings and electronic health records (e.g., the SLaM BRC registry).
  • LLM-Generated Data (23.1%): Synthetic clinical vignettes and AI-generated exposure therapy hierarchies used for model training and evaluation.

Key Insights and Results

Diagnostic Performance

One of the most significant findings is that LLMs—including GPT-4, Gemini 1.5, and Llama 3—consistently demonstrated higher diagnostic accuracy than mental health professionals and medical doctors when evaluating zero-shot clinical vignettes of OCD. This suggests that AI could serve as a powerful diagnostic aid in primary care settings.

Scaling Exposure Therapy

ERP therapy requires the creation of "exposure hierarchies"—graded lists of anxiety-provoking scenarios. Research indicates that ChatGPT-4 can successfully generate appropriate, specific, and highly variable exposure suggestions. This capability could allow paraprofessionals or self-help applications to deliver high-quality, structured care that was previously restricted to specialist clinics.

Social Media as a Diagnostic Sensor

NLP models analyzing social media text across multiple languages (English, Russian, and Arabic) have successfully detected linguistic markers and reduced speech coherence indicative of OCD. This opens the door for large-scale, population-level screening tools that could identify at-risk individuals years before they seek traditional clinical help.

Rapid Field Evolution

The field is expanding at an extraordinary pace; nearly 77% of the included studies were published between 2023 and 2024. Quantitative highlights include ensemble ML classifiers achieving 90% accuracy in predicting mental health states and fine-tuned LLMs increasing classification accuracy by more than 3x compared to base models.

Limitations and Future Directions

Current Challenges

The primary limitation is the small pool of existing literature (13 articles). Furthermore, most studies rely on retrospective, secondary text data. There is a critical lack of prospective, real-world clinical validation to prove that these AI tools translate into improved patient outcomes in practice. Additionally, researchers found that some models harbor significant biases toward neurodivergent terms, necessitating active adversarial debiasing before clinical deployment.

Future Work

  • Computer Vision (CV): CV could revolutionize behavioral assessments by automatically quantifying the duration and frequency of compulsive rituals (e.g., hand-washing or checking) in real-time, replacing subjective self-reporting.
  • Multimodal Biomarkers: Future models should integrate text with structural/functional MRI and behavioral data to identify neurobiological subtypes of OCD, moving toward precision psychiatry.
  • Ethical Frameworks: The authors advocate for standardized evaluation rubrics, such as the FAITA-Mental Health framework, to ensure AI tools are credible, transparent, and safe for clinical use.

Summary updated

Abstract

The online version contains supplementary material available at 10.1007/s40501-025-00359-8.
BibTeX
@inproceedings{kim2025artificial,
  author = {Jiyeong Kim and Juan S. Lezama-Pacheco and Ashleigh Golden and Elias Aboujaoude and Peter van Roessel and Aayushi Gandhi and Pavithra Mukunda and Tatevik Avanesyan and Haopeng Xue and Ehsan Adeli and Jane Kim and Manish Saggar and Shannon Wiltsey Stirman and Eric Kuhn and Kaustubh Supekar and Kilian M. Pohl and Carolyn I. Rodríguez},
  title = {{Artificial Intelligence in Obsessive-Compulsive Disorder: A Systematic Review}},
  booktitle = {Current},
  year = {2025},
  doi = {10.1007/s40501-025-00359-8},
}
Figure