HHO-optimized VAE-transformer framework for robust clinical phenotyping and EHR reconciliation in diabetes management

Effective Type 2 diabetes management requires reliable Electronic Health Record (EHR) auditing. While hybrid generative-attention models can predict medication usage to ensure documentation integrity, they often suffer from training instability under suboptimal hyperparameters. Furthermore, the efficacy of metaheuristic optimization in stabilizing these complex architectures remains systematically under-investigated. We propose a Variational Autoencoder (VAE)-Transformer framework optimized via Harris Hawks Optimization (HHO). The task is rigorously structured as a supervised mapping from non-medication clinical covariates (X) to a binary medication status ($$Y\in \{\text{0,1}\}$$). To strictly prevent data leakage, target-revealing variables (e.g., insulin administration and medication changes) were explicitly excluded from $$X$$. The VAE extracts noise-resistant latent embeddings from raw tabular logs, the Transformer captures complex clinical dependencies, and the HHO algorithm adaptively fine-tunes the continuous learning rate to maximize system stability. Evaluated on the Diabetes 130-US Hospitals dataset (> 100, 000 encounters) via strict patient-level grouped cross-validation, the model achieved 90.03% accuracy, 98.21% precision, an F1-score of 0.91, and an AUC of 0.953. Specificity exceeded 99% with only $$32$$ false positives. Ablation studies validated the synergistic contribution of all modules, while convergence analysis confirmed rapid loss stabilization within five epochs. Metaheuristic optimization of the learning rate substantially enhances the generalizability of hybrid deep learning models. The HHO-enhanced VAE-Transformer provides a highly reproducible, leakage-free framework for trustworthy AI-driven EHR reconciliation and automated clinical phenotyping. A novel VAE-Transformer framework for automated clinical phenotyping and EHR reconciliation Continuous learning rate optimized via the Harris Hawks Optimization (HHO) metaheuristic algorithm Achieved a superior accuracy of 90.03%, outperforming tabular deep learning baselines HHO-optimized architecture demonstrates state-of-the-art performance in complex clinical mapping Provides a computationally feasible for clinical integration, hyperparameter-robust tool for automated healthcare registries

Authors

Institutions

Publication Details

Journal
Discover Artificial Intelligence
Published
2026-07-25
DOI
https://doi.org/10.1007/s44163-026-01815-x
Primary Topic
Machine Learning in Healthcare
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

HHO-optimized VAE-transformer framework for robust clinical phenotyping and EHR reconciliation in diabetes management

Jafar Abdollahi
Discover Artificial Intelligence
Machine Learning in Healthcare
article

HHO-optimized VAE-transformer framework for robust clinical phenotyping and EHR reconciliation in diabetes management

Jafar Abdollahi
article en

Abstract

Effective Type 2 diabetes management requires reliable Electronic Health Record (EHR) auditing. While hybrid generative-attention models can predict medication usage to ensure documentation integrity, they often suffer from training instability under suboptimal hyperparameters. Furthermore, the efficacy of metaheuristic optimization in stabilizing these complex architectures remains systematically under-investigated. We propose a Variational Autoencoder (VAE)-Transformer framework optimized via Harris Hawks Optimization (HHO). The task is rigorously structured as a supervised mapping from non-medication clinical covariates (X) to a binary medication status ($$Y\in \{\text{0,1}\}$$). To strictly prevent data leakage, target-revealing variables (e.g., insulin administration and medication changes) were explicitly excluded from $$X$$. The VAE extracts noise-resistant latent embeddings from raw tabular logs, the Transformer captures complex clinical dependencies, and the HHO algorithm adaptively fine-tunes the continuous learning rate to maximize system stability. Evaluated on the Diabetes 130-US Hospitals dataset (> 100, 000 encounters) via strict patient-level grouped cross-validation, the model achieved 90.03% accuracy, 98.21% precision, an F1-score of 0.91, and an AUC of 0.953. Specificity exceeded 99% with only $$32$$ false positives. Ablation studies validated the synergistic contribution of all modules, while convergence analysis confirmed rapid loss stabilization within five epochs. Metaheuristic optimization of the learning rate substantially enhances the generalizability of hybrid deep learning models. The HHO-enhanced VAE-Transformer provides a highly reproducible, leakage-free framework for trustworthy AI-driven EHR reconciliation and automated clinical phenotyping. A novel VAE-Transformer framework for automated clinical phenotyping and EHR reconciliation Continuous learning rate optimized via the Harris Hawks Optimization (HHO) metaheuristic algorithm Achieved a superior accuracy of 90.03%, outperforming tabular deep learning baselines HHO-optimized architecture demonstrates state-of-the-art performance in complex clinical mapping Provides a computationally feasible for clinical integration, hyperparameter-robust tool for automated healthcare registries

Discover Artificial Intelligence
Islamic Azad University Central Tehran Branch (IR)
Openalex Percentile: Top 6%
Machine Learning in Healthcare
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.