ASPG Menu
search

American Scientific Publishing Group

verified Journal

Journal of Artificial Intelligence and Metaheuristics

ISSN
Online: 2833-5597
Frequency

Continuous publication

Publication Model

Open access journal. All articles are freely available online with no APC.

Journal of Artificial Intelligence and Metaheuristics
Full Length Article

Volume 11Issue 1PP: 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

Safaa Zaman 1* ,
El-Sayed M. El-Kenawy 2
1Information sciences department , College of life sciences , Kuwait University, Kuwait
2Department of Communications and Electronics, Delta Higher Institute of Engineering and Technology, Mansoura 35111, Egypt; Jadara Research Center, Jadara University, Irbid 21110, Jordan
* Corresponding Author.
Received: August 25, 2025 Revised: October 30, 2025 Accepted: December 24, 2025

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.

Keywords

Obsessive–Compulsive Disorder DeepGBM Ninja Optimization Algorithm Metaheuristic Optimization Clinical Decision Support 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.

Cite This Article

Choose your preferred format

format_quote
Zaman, Safaa, El-Kenawy, El-Sayed M.. "A Metaheuristic-Optimized Deep Learning Framework for Accurate Classification of Obsessive–Compulsive Disorder Using Clinical Data Based on the Ninja Optimization Algorithm." Journal of Artificial Intelligence and Metaheuristics, vol. Volume 11, no. Issue 1, 2026, pp. 32–36. DOI: https://doi.org/10.54216/JAIM.110103
Zaman, S., El-Kenawy, E. (2026). A Metaheuristic-Optimized Deep Learning Framework for Accurate Classification of Obsessive–Compulsive Disorder Using Clinical Data Based on the Ninja Optimization Algorithm. Journal of Artificial Intelligence and Metaheuristics, Volume 11(Issue 1), 32–36. DOI: https://doi.org/10.54216/JAIM.110103
Zaman, Safaa, El-Kenawy, El-Sayed M.. "A Metaheuristic-Optimized Deep Learning Framework for Accurate Classification of Obsessive–Compulsive Disorder Using Clinical Data Based on the Ninja Optimization Algorithm." Journal of Artificial Intelligence and Metaheuristics Volume 11, no. Issue 1 (2026): 32–36. DOI: https://doi.org/10.54216/JAIM.110103
Zaman, S., El-Kenawy, E. (2026) 'A Metaheuristic-Optimized Deep Learning Framework for Accurate Classification of Obsessive–Compulsive Disorder Using Clinical Data Based on the Ninja Optimization Algorithm', Journal of Artificial Intelligence and Metaheuristics, Volume 11(Issue 1), pp. 32–36. DOI: https://doi.org/10.54216/JAIM.110103
Zaman S, El-Kenawy E. A Metaheuristic-Optimized Deep Learning Framework for Accurate Classification of Obsessive–Compulsive Disorder Using Clinical Data Based on the Ninja Optimization Algorithm. Journal of Artificial Intelligence and Metaheuristics. 2026;Volume 11(Issue 1):32–36. DOI: https://doi.org/10.54216/JAIM.110103
S. Zaman, E. El-Kenawy, "A Metaheuristic-Optimized Deep Learning Framework for Accurate Classification of Obsessive–Compulsive Disorder Using Clinical Data Based on the Ninja Optimization Algorithm," Journal of Artificial Intelligence and Metaheuristics, vol. Volume 11, no. Issue 1, pp. 32–36, 2026. DOI: https://doi.org/10.54216/JAIM.110103
Digital Archive Ready