🤖 AI Summary
This work addresses the challenge of limited model generalization in federated learning caused by data heterogeneity and class imbalance in medical imaging. To this end, we propose a novel federated learning framework that integrates Vision Transformers, Dynamic Adaptive Focal Loss (DAFL), and client-aware weighted aggregation. The DAFL dynamically adjusts loss weights based on an adaptive class imbalance coefficient, while the aggregation strategy is tailored to each client’s local data distribution, thereby enhancing attention to minority classes and improving cross-client generalization—all while preserving data privacy. Extensive experiments on the ISIC, Ocular Disease, and RSNA-ICH datasets demonstrate that our approach consistently outperforms state-of-the-art methods, achieving accuracy improvements ranging from 0.98% to 41.69%.