Hybrid Bayesian-Aquila Optimization of Neural Networks for Diabetes Classification with SHAP-Based Interpretation

Authors

  • Ahmad Rifa'i Universitas Duta Bangsa Surakarta, Indonesia
  • Herin Dwibima Aprianto Universitas Duta Bangsa Surakarta, Indonesia
  • Marta Ardiyanto Universitas Duta Bangsa Surakarta, Indonesia
  • Abdullah Azza Al Abas Universitas Duta Bangsa Surakarta, Indonesia
  • Arif Kurniawan Universitas Duta Bangsa Surakarta, Indonesia

DOI:

https://doi.org/10.62411/tc.v25i4.18128

Abstract

Reliable diabetes classification using clinical data remains challenging due to class imbalance, sensitivity to network parameters, and limited interpretability of model predictions. This study proposes a two-stage optimization approach for a Multilayer Perceptron (MLP), combining Bayesian Optimization (BO) for initial parameter selection and Aquila Optimizer (AO) for further refinement. SHapley Additive exPlanations (SHAP) is applied to examine the contribution of individual features to model predictions. Experiments were conducted using 403 records and 18 features from a publicly available diabetes dataset. Under stratified 10-fold cross-validation, the proposed NN + BO-AO model achieved an accuracy of 0.982744, precision of 0.950000, recall of 0.957143, F1-score of 0.945108, PRAUC of 0.9628, and ROC-AUC of 0.998669. The selected network consisted of 88 hidden neurons, a learning rate of 0.012904, and an L2 regularization coefficient of 0.000038. Although NN + BO achieved a slightly higher F1-score of 0.945524, the hybrid model obtained the highest results in most evaluation metrics. A separate computational comparison showed that BO-AO required 42.9580 seconds, compared with 69.3144 seconds for Random Search and 67.7879 seconds for Grid Search. SHAP analysis identified glyhb as the most influential feature, followed by stab.glu and bp.2d. An additional experiment excluding glyhb showed reduced performance, with accuracy of 0.8882 and ROC-AUC of 0.8855, although the remaining 17 features retained predictive information. These findings demonstrate the potential of the combined optimization approach for diabetes classification. However, since glyhb is also involved in constructing the target labels, the results should be interpreted as classification performance within the given dataset rather than evidence of independent clinical diagnostic capability.   Keywords - Aquila Optimizer; Bayesian Optimization Diabetes Classification; Neural Network; SHAP

Downloads

Published

2026-11-30