A subscription to JoVE is required to view this content. Sign in or start your free trial.

Method Article

FedMediFormer-XAI: Federated Multimodal Transformers with Diffusion Augmentation and Graph-Based Drug Recommendation for Diabetes

155 views

⸱

DOI:

10.3791/73113

⸱

September 8th, 2026

 ,  , 

In This Article

Summary

This protocol proposes FedMediFormer-XAI, a multimodal diabetes intelligence framework that respects privacy through federated learning, multimodal transformers, diffusion-based augmentation, graph-based personalized drug recommendation, and explainable artificial intelligence, for accurate prediction, transparent decision-making, and personalized diabetes management.

Abstract

Diabetes management faces a number of obstacles, such as fragmented healthcare data, privacy concerns, poor explainability, and the lack of personalized therapeutic guidance. This research work introduces FedMediFormer-XAI, a unified and proper framework that incorporates federated learning, multimodal transformers, diffusion-based data augmentation, Graph Neural Networks (GNNs) for drug recommendation, and Explainable Artificial Intelligence (XAI) for diabetes intelligence. The system utilizes diverse healthcare data types, e.g., clinical records, population health indicators, continuous glucose monitoring data, retinal fundus images, wearable sensor measurements, and pharmacological information. To generate synthetic samples and address class imbalance, diffusion models are used, and multimodal transformer architectures are employed to learn relationships among very different data sources. Federated learning enables collaborative training of models in a privacy-preserving manner without sharing raw patient data. The GNN component captures patient-drug and drug-drug interactions for personalized drug recommendations. Explainability methods such as SHapley Additive exPlanations (SHAP), attention visualization, Integrated Gradients, and counterfactual reasoning give transparent interpretations of prediction and recommendation results. In the representative implementation, the proposed framework achieved an accuracy of 94.2%, precision of 93.1%, recall of 92.8%, F1-score of 92.9%, Matthews Correlation Coefficient (MCC) of 0.88, and an Area Under the Receiver Operating Characteristic Curve (AUC-ROC) of 0.96. The graph-based recommendation module achieved precision = 0.89, recall = 0.84, and Normalized Discounted Cumulative Gain (NDCG) = 0.91. The protocol provides a structured approach for integrating heterogeneous healthcare data using multimodal transformers, federated learning, diffusion-based augmentation, graph-based recommendation, and explainable artificial intelligence. The reported computational results demonstrate the framework's potential for diabetes prediction and personalized medication recommendation, while the federated design supports decentralized data handling. A prospective multicenter clinical evaluation is required to establish clinical utility, generalizability, and real-world applicability.

Introduction

Diabetes mellitus is among the top chronic metabolic diseases affecting humanity and poses a major public health issue as it keeps growing, with its long-term effects and the huge costs of treating patients1,2. According to a report, there are currently over 537 million adults living with diabetes worldwide, and the figure is expected to rise significantly over the next few decades3. If high blood sugar levels are not controlled, the person will suffer from the worst complications, such as coronary heart disease4, kidney damage5, nerve dam....

Access restricted. Please log in or start a trial to view this content.

Protocol

All datasets used in this study were obtained from publicly available repositories and contained de-identified patient information. These included the Pima Indians Diabetes Dataset, CDC Diabetes Health Indicators Dataset, OhioT1DM Dataset, APTOS 2019 Blindness Detection Dataset, Drug Review Dataset, and Drug-Drug Interaction Dataset. No direct patient recruitment, intervention, specimen collection, or access to identifiable personal health information was involved. The study was limited to a secondary analysis of publicly available, anonymized datasets for methodological development and validation, and was conducted in accordance with institutional requirements for th....

Access restricted. Please log in or start a trial to view this content.

Results

Predictive performance analysis
FedMediFormer-XAI demonstrated improved predictive performance compared with the evaluated unimodal and conventional baseline models. Diffusion-based augmentation improved minority-class representation, and the resulting predictive performance is summarized in Table 3. The repeated-run evaluation demonstrated stable predictive performance across the evaluated models. FedMediFormer-XAI achieved the highest overall performance, with an accuracy of 94.20 .......

Access restricted. Please log in or start a trial to view this content.

Discussion

Interpretation of key findings
The representative results show that it is possible to combine multimodal transformer learning, federated learning, diffusion-based augmentation, graph neural network-based drug recommendation, and explainable artificial intelligence into a unified diabetes intelligence framework. By integrating clinical records, population health indicators, continuous glucose monitoring data, retinal fundus images, and pharmacological information, the proposed FedMediFormer-XAI fram.......

Access restricted. Please log in or start a trial to view this content.

Disclosures

The authors declare that they have no competing financial interests, conflicts of interest, or personal relationships that could have influenced the work reported in this study. Artificial intelligence tools were used solely to assist with language refinement, manuscript organization, formatting, and editing during the preparation of this article. All scientific content, study design, methodology, data analysis, results interpretation, and conclusions were developed, verified, and approved by the authors. The authors take full responsibility for the accuracy, integrity, and originality of the work presented in this manuscript.

Acknowledgements

The authors acknowledge the developers and maintainers of the publicly available datasets and open-source software resources used in this study.

....

Access restricted. Please log in or start a trial to view this content.

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
AES EncryptionNISTAES-256Data-at-rest / protected model-parameter encryption in federated learning
APTOS 2019 Blindness Detection DatasetKaggle/APTOS2019 ReleaseRetinal fundus image dataset; publicly available and de-identified; https://www.kaggle.com/competitions/aptos2019-blindness-detection/data
CaptumMeta AIVersion 0.8Model interpretability and attribution analysis
CUDA ToolkitNVIDIAVersion 12.2GPU-accelerated computation
Diabetes Health Indicators Dataset (CDC BRFSS 2015)CDC/BRFSS; Kaggle2015 ReleasePopulation health indicators; publicly available and de-identified; https://www.kaggle.com/datasets/alexteboul/diabetes-health-indicators-dataset
Diabetic Retinopathy Detection DatasetKagglePublic ReleaseRetinal image dataset; publicly available and de-identified; https://www.kaggle.com/c/diabetic-retinopathy-detection/data
Digital certificates--Client authentication in federated learning
Drug Interaction DatasetKagglePublic ReleaseDrug-drug interaction graph data; publicly available and de-identified; https://www.kaggle.com/datasets/rohanharode07/drug-drug-interaction
Drug Review DatasetUCI Machine Learning RepositoryDataset 462Drug effectiveness and review dataset; publicly available and de-identified; https://archive.ics.uci.edu/dataset/462/drug+review+dataset+drugs+com
MatplotlibMatplotlib DevelopersVersion 3.9Visualization
MTS Diabetes DatasetKagglePublic ReleaseWearable sensor / diabetes prediction dataset; publicly available and de-identified; https://www.kaggle.com/datasets/marshalpatel3558/diabetespredictiondataset
NetworkXNetworkX DevelopersVersion 3.3Drug interaction graph construction and analysis
NumPyNumPy DevelopersVersion 1.26Numerical computation
NVIDIA RTX 4090 GPUNVIDIARTX 4090Model training and inference; at least 32 GB system memory
OhioT1DM DatasetOhio UniversityPublic ReleaseContinuous glucose monitoring dataset; publicly available and de-identified; https://webpages.charlotte.edu/rbunescu/data/ohiot1dm/OhioT1DM-dataset.html
OpenCVOpenCV FoundationVersion 4.10Image processing
PandasPyDataVersion 2.2Data processing and preprocessing
Pima Indians Diabetes DatasetUCI Machine Learning RepositoryDataset 34Clinical diabetes prediction dataset; publicly available and de-identified; https://archive.ics.uci.edu/dataset/34/diabetes
PythonPython Software FoundationVersion 3.11Primary programming environment
PyTorchMeta AIVersion 2.3Deep learning model development and training
PyTorch GeometricPyG TeamVersion 2.5Graph neural network construction and training
Scikit-learnScikit-learn DevelopersVersion 1.5Machine learning utilities and evaluation
Secure aggregation mechanism--Protected aggregation of local model parameters in federated learning
SHAPSHAP DevelopersVersion 0.47Explainable AI and feature attribution analysis
TensorFlowGoogleVersion 2.15Deep learning model development and training
TransformersHugging FaceVersion 4.45Transformer-based architecture implementation
Transport Layer SecurityIETFTLS 1.3Encrypted communication channel for federated parameter exchange
WorkstationGeneric-Computational environment; at least 32 GB system memory

References

  1. Al-Hejri AM, et al. A hybrid explainable federated-based vision transformer framework for breast cancer prediction via risk factors. Sci Rep. 2025;15:18453.
  2. Dosovitskiy A, et al. An image is worth 16×16 words: transformers for image recognition at scale [conference presentation]. Presented at: International Conference on Learning Representations (ICLR); 2021. [https://arxiv.org/abs/2010.11929]
  3. Touvron H, et al. Training data-efficient image transformers & distillation through attention [conference presentation]. Presented at: 38th International Conference on Machine Learning; 2021. [https://arxiv.org/abs/2012.12877]
  4. Kotelnikov A, Baranchuk D, ....

Access restricted. Please log in or start a trial to view this content.

Reprints and Permissions

Explore More Articles

Federated LearningGraph Neural NetworksDiabetes PredictionExplainable AISynthetic Data GenerationPatient PrivacyPersonalized Medicine