1. INTRODUCTION
chine learning and deep learning, provides promising opportunities for improving clinical decision-making in OCD assessment.
Mental health disorders constitute a major global health concern, exerting profound and long-lasting effects on individuals, healthcare systems, and societies. Within this landscape, Obsessive–Compulsive Disorder (OCD) is particularly challenging because of its chronic nature, symptom variability, and frequent comorbidity with other mental health disorders. The integration of data-driven methodologies, especially ma-
OCD is characterized by persistent intrusive thoughts (obsessions) and repetitive behaviours or mental acts (compulsions) performed to reduce distress. The disorder often follows a chronic course, with symptoms fluctuating in severity over time, and is frequently associated with functional impairment, reduced quality of life, and elevated risk of depression and anxiety. From a societal perspective, OCD imposes a substantial economic burden through healthcare use, productivity loss, and long-term disability.
Accurate and timely diagnosis remains difficult in clinical practice. Traditional approaches rely heavily on clinical interviews and standardized rating scales, which are valuable but subjective and dependent on clinician expertise. Predictive modelling can augment conventional assessment by systematically analysing patient data and supporting evidence-based decision-making.
This paper develops a unified framework in which DeepGBM is optimized using NiOA. The key contributions are: (i) a clinical-data-driven OCD classification pipeline; (ii) automated hyperparameter tuning using NiOA; (iii) comparison with ANN, CNN, BiLSTM, and DeepGBM baselines; and (iv) comparison with MVO, BA, and PSO optimized variants under the same evaluation protocol.
2. LITERATURE REVIEW
Research on OCD increasingly uses machine learning and deep learning to address limitations of conventional clinical assessment. Neuroimaging-based models have demonstrated the potential of structural MRI, functional MRI, resting-state connectivity, and EEG-derived biomarkers for identifying OCD-related patterns. Other studies have used demographic, behavioural, and symptom-level data to predict severity, remission, comorbid depression, and long-term clinical course.
Deep learning architectures are attractive because they can model nonlinear interactions among heterogeneous predictors. ANN, CNN, recurrent models, and hybrid architectures have been applied to psychiatric prediction tasks; however, these models are often sensitive to hyperparameter settings and may suffer from overfitting when data are limited. Ensemble and gradient-boosting approaches provide strong tabular-data performance, while model distillation strategies can combine representation learning with decision-tree interpretability and robustness.
Metaheuristic optimization algorithms are increasingly used for feature selection and hyperparameter tuning. Populationbased algorithms such as PSO, MVO, BA, and NiOA are useful when objective functions are nonlinear, multimodal, and not analytically differentiable. Their role is particularly important in clinical decision-support systems, where robust generalization is more important than merely minimizing training error.
3. METHODOLOGY
The proposed methodology combines structured clinical data preprocessing, baseline deep learning classification, Deep-GBM modelling, and metaheuristic optimization. The framework is designed to classify OCD-related clinical records while improving generalization through automated hyperparameter search.
3.1 Problem Formulation
Let X ∈Rm×n denote a clinical dataset containing m patient records and n demographic or clinical attributes, and let y ∈ {0,1}m denote the target class labels. The task is to learn a classifier f : X →y (1) that maximizes predictive performance on unseen patient records while maintaining robustness across sensitivity, specificity, and predictive-value metrics.
3.2 DeepGBM Classification Model
DeepGBM combines deep representation learning with Gradient Boosting Decision Trees. The deep component maps each input vector xi into a latent representation:
hi = φ(Wxi +b), (2) where φ(·) is a nonlinear activation function, W is a weight matrix, and b is a bias vector. The gradient boosting component then learns an additive model:
M ∑ m=1
FM(x) = where M is the number of trees, fm is the mth weak learner, and η is the learning rate.
3.3 Ninja Optimization Algorithm
NiOA is used as the main hyperparameter optimization strategy. Each candidate solution represents a set of DeepGBM hyperparameters, including learning rate, number of estimators, tree depth, regularization terms, and neural representation parameters. The optimization objective is formulated as z∗= argmax
