Volume 11 • Issue 1 • PP: 32–36 • 2026
A Metaheuristic-Optimized Deep Learning Framework for Accurate Classification of Obsessive–Compulsive Disorder Using Clinical Data Based on the Ninja Optimization Algorithm
Open Access & Copyright
© 2026 The Author(s). Published by ASPG. This article is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
Ethics and Consent Declaration:
The authors confirmed that the research involving human participants was conducted in accordance with applicable institutional and ethical standards. Participation was voluntary, and informed consent was obtained from all participants. Supporting confirmation is retained by the journal.
Abstract
The growing prevalence and clinical complexity of Obsessive–Compulsive Disorder (OCD) motivate the need for reliable, data-driven decision-support systems capable of improving diagnostic accuracy and robustness beyond traditional assessment methods. In this study, we propose an optimized deep learning framework that integrates a Deep Learning framework distilled by Gradient Boosting Decision Trees (DeepGBM) with a novel metaheuristic optimizer, the Ninja Optimization Algorithm (NiOA), to enhance OCD-related classification using structured demographic and clinical data. The main contribution of this work lies in the design of a unified optimization pipeline in which NiOA is employed for automated hyperparameter tuning of DeepGBM, and in the comprehensive comparison of this approach against baseline deep learning models and alternative metaheuristic optimizers, including Multiverse Optimization (MVO), Bat Algorithm (BA), and Particle Swarm Optimization (PSO). Experimental evaluation demonstrates that, at the baseline stage, DeepGBM outperforms Artificial Neural Networks (ANN), Convolutional Neural Networks (CNN), and Bidirectional Long Short-Term Memory networks (BiLSTM), achieving an accuracy of 0.8970 and an F-score of 0.8935. Following optimization, the proposed NiOA+DeepGBM framework achieves substantial performance gains, reaching an accuracy of 0.9779, sensitivity of 0.9763, specificity of 0.9793, and an F-score of 0.9770, consistently surpassing MVO+DeepGBM, BA+DeepGBM, and PSO+DeepGBM across all evaluation metrics. These results confirm the superior capability of NiOA in navigating complex hyperparameter spaces and enhancing both predictive accuracy and generalization. The implications of this work are significant for intelligent mental health assessment, as the proposed NiOA-optimized DeepGBM model offers a robust, clinically relevant decision-support tool that can assist clinicians in improving diagnostic reliability, reducing uncertainty, and supporting the development of scalable, AI-driven mental healthcare systems.
References
[1] World Health Organization, World Mental Health Report: Transforming Mental Health for All. Geneva, Switzerland: WHO, 2022.
[2] B. Stahnke, “A systematic review of misdiagnosis in those with obsessive-compulsive disorder,” Journal of Affective Disorders Reports, vol. 6, p. 100231, 2021.
[3] F.-F. Huang et al., “Functional and structural MRI based obsessive-compulsive disorder diagnosis using machine learning methods,” BMC Psychiatry, vol. 23, no. 1, p. 792, 2023.
[4] B. A. Zaboski and L. Bednarek, “Precision psychiatry for obsessive-compulsive disorder: Clinical applications of deep learning architectures,” Journal of Clinical Medicine, vol. 14, no. 7, p. 2442, 2025.
[5] B. A. Zaboski, A. Wilens, J. P. McNamara, and G. N. Muller, “Predicting OCD severity from religiosity and personality: A machine learning and neural network approach,” Journal of Mood & Anxiety Disorders, vol. 8, p. 100089, 2024.
[6] M. Grassi et al., “Prediction of illness remission in patients with obsessive-compulsive disorder with supervised machine learning,” Journal of Affective Disorders, vol. 296, pp. 117–125, 2022.
[7] C. Segalas et al., “Cognitive and clinical predictors of a long-term course in obsessive compulsive disorder: A machine learning approach in a prospective cohort study,” Journal of Affective Disorders, vol. 350, pp. 648– 655, 2024.
[8] W. B. Bruin et al., “The functional connectome in obsessive-compulsive disorder: Resting-state megaanalysis and machine learning classification for theENIGMA-OCD consortium,” Molecular Psychiatry, vol. 28, no. 10, pp. 4307–4319, 2023.
[9] S. Hinduja et al., “Multimodal prediction of obsessivecompulsive disorder and comorbid depression severity and energy delivered by deep brain electrodes,” IEEE Transactions on Affective Computing, vol. 15, no. 4, pp. 2025–2041, 2024.
[10] Z. Zhao et al., “Exploring potential resting-state EEG biomarkers of obsessive-compulsive disorder based on explainable machine learning analysis,” BMC Psychiatry, vol. 25, no. 1, p. 1164, 2025.
Continue Reading
-
Full Length Article · Previous pp. 16–31An Intelligent Metaheuristic-Optimized Deep Learning Approach for Heart Disease Diagnosis and Patient Stratification
Khaled Sh. Gaber, Amal H. Alharbi
-
Full Length Article · Next pp. 37–49A Human-Inspired Metaheuristic Optimization Framework for Accurate Liver Disease Prediction Using Clinical Laboratory Data
Benyamin Abdollahzadeh, Marwa M. Eid
-
Full Length Article pp. 01–15A Deep Learning and Metaheuristic Optimization Framework for Short-Term Electricity Consumption Forecasting Using High-Resolution SCADA Data
Wei Hong Lim, Amel Ali Alhussan
-
Full Length Article pp. 50–55Enhancing Gamma–Hadron Separation in Imaging Atmospheric Cherenkov Telescopes Using Attention-Guided Deep Learning and Adaptive Balanced Greylag Goose Optimization
Ebrahim A. Mattar, S. K. Towfek
-
Full Length Article pp. 56–67An Enhanced LSTM Framework for Solar Radiation Forecasting Using Hybrid Grey Wolf–Waterwheel Plant Optimization
Alaa Mohamed Abdel-Moati, Abdullah Muhammad Ibrahim
-
Full Length Article pp. 68–82An Intelligent DGGO-Based Machine Learning Framework for Predicting Student Adaptability in Online Education
Osama Alabedallat
-
Full Length Article JAIM pp. 66 –83Bio-Inspired Cyber Defense: Enhancing Intrusion Detection through the Waterwheel Plant Optimization Algorithm
Omar Bani Fayyad
-
Full Length Article JAIM pp. 94–114Global Crop Yields Forecasting Using Informer Architecture Optimized with Football-Inspired Metaheuristic
Toufik Mzili
-
Full Length Article JAIM pp. 42–54Hybrid Metaheuristic Optimization for Time Series Forecasting: Integrating Grey Wolf and Greylag Goose Strategies
Ghassan AL-Thabhawee, Hussein Alkattan
-
Full Length Article JAIM pp. 35–54A Hybrid Al-Biruni Earth Radius–Random Forest Model for Accurate and Efficient Student Performance Classification
Mohamed E. Ghoneim
Cite This Article
Choose your preferred format
Publisher's Note
The statements, opinions, and data presented in this article are solely those of the author(s) and do not necessarily represent those of ASPG, the journal, or its editors. ASPG and the editors disclaim responsibility for any harm arising from the use of any ideas, methods, instructions, or products described in this article, to the fullest extent permitted by applicable law.