Privacy-preserving blood cancer detection via vision transformers and federated learning
Main Article Content
Abstract
Artificial Intelligence acts as a powerful tool to analyze medical images in smart healthcare. However, selecting a deep learning architecture is difficult in distributed computing environments due to privacy issues that prohibit centralized training. In this study, five architectures were considered for the evaluation of the performance of blood cancer image classification via federated learning (FL), where a baseline Convolutional Neural Network (CNN), ResNet50, DenseNet121, Xception, and a Vision Transformer (ViT) were selected. This setting allows the exploration of each architecture's performance in terms of image classification in a distributed, data-partitioned setting. These architectures were trained using the same federated learning framework. The experimental results show that such federated configurations offer competitive results compared with traditional methods used in centralized training of neural networks. According to our analysis, the best performance in accuracy, precision, recall, and F1-score was obtained with the ViT architecture, with a score of 0.98. Xception came second by obtaining accuracy and F1-score scores of 0.89, while ResNet50, CNN, and DenseNet121 achieved lower scores in the range of 0.82 - 0.86. The use of FL in conjunction with ViT yielded the highest score of accuracy and was more robust than the other FL methods.
Article Details
Conflict of Interest

© 2026 The authors. This is an open access article distributed under the terms of the Creative Commons Attribution-NonCommercial 4.0 International License.
References
Abd Elaziz, M., Fares, I. A., Dahou, A., & Shrahili, M. (2025). Federated learning framework for IoT intrusion detection using tab transformer and nature-inspired hyperparameter optimization. Frontiers in big Data, 8, 1526480. https://doi.org/10.3389/fdata.2025.1526480
Al-Attas. (2024). Blood Cancer Dataset. Kaggle. https://www.kaggle.com/datasets/mrhashemalattas/blood-cancer/data. Accessed November 12, 2025.
Ananth, C., Mystica, K., Sridharan, M., James, S. A., & Kumar, T. A. (2022). An Advanced Low-cost Blood Cancer Detection System. International Journal of Early Childhood Special Education, 14(5). Von https://www.int-jecse.net/media/article_pdfs/4115-4123.pdf abgerufen
Awan, M. Z., Khan, N. A., Strakos, P., Jhangeer, A., & Riha, L. (2026). Privacy-preserving federated learning with light-weight attention improved CNNs for automated leukemia detection across distributed medical imaging. Scientific Reports, 16(1), 9768. https://doi.org/10.1038/s41598-026-40581-9
Bray, F., Laversanne, M., Sung, H., Ferlay, J., Siegel, R. L., Soerjomataram, I., & Jemal, A. (2024). Global cancer statistics 2022: GLOBOCAN estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA: a cancer journal for clinicians, 74(3), 229-263. https://doi.org/10.3322/caac.21834
Brisimi, T. S., Chen, R., Mela, T., Olshevsky, A., Paschalidis, I. Ch., & Shi, W. (2018). Federated learning of predictive models from federated electronic health records. International Journal of Medical Informatics, 112, 59-67. doi:https://doi.org/10.1016/j.ijmedinf.2018.01.007
Diao, X., Guo, C., Jin, Y., Li, B., Gao, X., Du, X., Chen, Z., Jo, M., Zeng, Y., Ding, C. (2025). Cancer situation in China: an analysis based on the global epidemiological data released in 2024. Cancer Communications, 45(2), 178-97. https://doi.org/10.1002/cac2.12627
Jiang, R., Kumar, Y., & Kruger, D. (2025). Enhanced Privacy-Preserving Architecture for Fundus Disease Diagnosis with Federated Learning. Applied Sciences, 15(6), 3004. https://doi.org/10.3390/app15063004
Le, H. T. P., & Huynh, L. N. T. (2024). Tackling the COVID-19 Detection Problem Using Pre-trained Models. International Conference on Data Analytics & Management, 1302, 225-32. https://doi.org/10.1007/978-981-96-3381-4_19
Liu, Y., James, J. Q., Kang, J., Niyato, D., & Zhang, S. (2020). Privacy-preserving traffic flow prediction: A federated learning approach. IEEE Internet of Things Journal, 7(8), 7751-7763. https://doi.org/10.1109/JIOT.2020.2991401
Mathivanan, S. K., Sonaimuthu, S., Murugesan, S., Rajadurai, H., Shivahare, B. D., & Shah, M. A. (2024). Employing deep learning and transfer learning for accurate brain tumor detection. Scientific Reports, 14(1), 7232. https://doi.org/10.1038/s41598-024-57970-7
Peng, Y., Yao, G., Zhao, Z., Wang, C., Ruan, X., Shi, H., & Ma, R. (2025). BFL-SE: Blockchain federated learning with secure and effective weight-assignment model aggregation. Displays, 91, 103210. https://doi.org/10.1016/j.displa.2025.103210
Pervez, K., Sohail, S. I., Parwez, F., & Zia, M. A. (2025). Towards trustworthy AI-driven leukemia diagnosis: A hybrid Hierarchical Federated Learning and explainable AI framework. Informatics in Medicine Unlocked, 53, 101618. https://doi.org/10.1016/j.imu.2025.101618
Qayyum, A., Ahmad, K., Ahsan, M. A., Al-Fuqaha, A., & Qadir, J. (2022). Collaborative federated learning for healthcare: Multi-modal covid-19 diagnosis at the edge. IEEE Open Journal of the Computer Society, 3, 172-184. https://doi.org/10.1109/OJCS.2022.3206407
Raza, N., Naseer, A., Tamoor, M., & Zafar, K. (2023). Alzheimer disease classification through transfer learning approach. Diagnostics, 13(4), 801. https://doi.org/10.3390/diagnostics13040801
Shehta, A. I., Nasr, M., & El Ghazali, A. E. D. M. (2025). Blood cancer prediction model based on deep learning technique. Scientific Reports, 15(1), 1889. https://doi.org/10.1038/s41598-024-84475-0
Shubyn, B., Kostrzewa, D., Grzesik, P., Benecki, P., Maksymyuk, T., Sunderam, V., Syu, J.-H., Lin, J. C.-W., & Mrozek, D. (2023). Federated Learning for improved prediction of failures in Autonomous Guided Vehicles. Journal of Computational Science, 68, 101956. https://doi.org/10.1016/j.jocs.2023.101956
Singh, S., Kumar, M., Kumar, A., Verma, B. K., Abhishek, K., & Selvarajan, S. (2024). Efficient pneumonia detection using Vision Transformers on chest X-rays. Scientific reports, 14(1), 2487. https://doi.org/10.1038/s41598-024-52703-2
Suresh, P., Keerthika, P., & Kumar, A. R. N. (2026). A personalized communication efficient federated learning framework with low rank adaptation for intelligent leukemia diagnosis. Scientific Reports, 16(1), 339. https://doi.org/10.1038/s41598-025-29672-1
Tang, X., Yan, X., Yuan, X., Liu, X., Lu, Z., Wang, Y., Zhong, H., Li, D., & Catani, F. (2024). FedLD: federated learning for privacy-preserving collaborative landslide detection. IEEE Geoscience and Remote Sensing Letters, 21, 1--5. https://doi.org/10.1109/LGRS.2024.3437743
Wang, C.-Y., Nguyen, H.-T., Fan, W.-S., Lue, J.-H., Saenprasarn, P., Chen, M.-M., Huang, S.-Y., Lin, F.-C., & Wang, H.-C. (2024). Glaucoma detection through a novel hyperspectral imaging band selection and vision transformer integration. Diagnostics, 14(12), 1285. https://doi.org/10.3390/diagnostics14121285
Wang, J., Sheng, L., Lai, Y., & Xu, Z. (2022). An overview on therapeutic efficacy and challenges of nanoparticles in blood cancer therapy. Journal of King Saud University-Science, 34(6), 102182. https://doi.org/10.1016/j.jksus.2022.102182