Latency-Aware Breast Cancer Detection in Mammography Images Using a Fog-Cloud Framework Based on Stacked Transfer Learning and PSO-Optimized XGBoost

Authors

    Zahraa Abdulmajeed Ibrahim Al-Mohammed 1PhD student, Department of Computer Engineering, Isf.C., Islamic Azad University, Isfahan, Iran
    Esmaeil Bagheri * Department of Engineering, Deh.C., Islamic Azad University, Isfahan, Iran bagheri@iau.ac.ir
    Ameer Hussein Mohammed Ali Al-Najaf Technical Institute, Al-Furat Al-Awsat Technical University, Najaf, Iraq
    Mehdi Hamidkhani Department of Electrical Engineering, Isf.C., Islamic Azad University, Isfahan, Iran
https://doi.org/10.61838/

Keywords:

breast cancer, mammography, fog computing, transfer learning, stacked ensemble, XGBoost, particle swarm optimization, CBIS-DDSM

Abstract

Breast cancer is one of the most important public health challenges worldwide, and the quality of its early detection is directly associated with reduced mortality, lower treatment costs, and improved care pathways. Mammography remains one of the principal screening tools; however, the interpretation of mammographic images is affected by human error and infrastructural limitations in the presence of tissue density, noise, similarities between benign and malignant lesions, and variations in imaging protocols. This paper presents an automated breast cancer detection framework focused on reducing processing latency and increasing diagnostic reliability within a fog-cloud architecture. At the fog layer, mammographic images are standardized through resizing, intensity normalization, noise reduction, and lightweight preparation to reduce data-transmission volume and initial response time. At the cloud layer, three transfer-learning models—ResNet50, DenseNet121, and EfficientNetB7—are employed to extract deep features. The probabilistic outputs of these models are integrated in a three-level stacked ensemble architecture, with XGBoost used as the final meta-classifier. To reduce dependence on manual tuning and control overfitting, the key hyperparameters of the base models and the meta-classifier are optimized using particle swarm optimization. Evaluation was conducted on the public CBIS-DDSM dataset using stratified cross-validation. The results showed that the proposed model achieved an accuracy of 97.5% on the test subset, balanced performance across the two classes, a recall of 98.0% for the benign class, and 96.9% for the malignant class. The findings indicate that combining near-source preprocessing, transfer-based feature extraction, stacked ensembling, and metaheuristic optimization can provide a deployable framework for intelligent screening in distributed healthcare environments.

Breast cancer is one of the most important public health challenges worldwide, and the quality of its early detection is directly associated with reduced mortality, lower treatment costs, and improved care pathways. Mammography remains one of the principal screening tools; however, the interpretation of mammographic images is affected by human error and infrastructural limitations in the presence of tissue density, noise, similarities between benign and malignant lesions, and variations in imaging protocols. This paper presents an automated breast cancer detection framework focused on reducing processing latency and increasing diagnostic reliability within a fog-cloud architecture. At the fog layer, mammographic images are standardized through resizing, intensity normalization, noise reduction, and lightweight preparation to reduce data-transmission volume and initial response time. At the cloud layer, three transfer-learning models—ResNet50, DenseNet121, and EfficientNetB7—are employed to extract deep features. The probabilistic outputs of these models are integrated in a three-level stacked ensemble architecture, with XGBoost used as the final meta-classifier. To reduce dependence on manual tuning and control overfitting, the key hyperparameters of the base models and the meta-classifier are optimized using particle swarm optimization. Evaluation was conducted on the public CBIS-DDSM dataset using stratified cross-validation. The results showed that the proposed model achieved an accuracy of 97.5% on the test subset, balanced performance across the two classes, a recall of 98.0% for the benign class, and 96.9% for the malignant class. The findings indicate that combining near-source preprocessing, transfer-based feature extraction, stacked ensembling, and metaheuristic optimization can provide a deployable framework for intelligent screening in distributed healthcare environments.

Downloads

Download data is not yet available.

References

Atrey, K., Singh, B. K., Bodhey, N. K., & Pachori, R. B. (2023). Mammography and ultrasound based dual modality classification of breast cancer using a hybrid deep learning approach. Biomedical Signal Processing and Control, 86, 104919.

Bonomi, F., Milito, R., Zhu, J., & Addepalli, S. (2012). Fog computing and its role in the Internet of Things. Proceedings of the First Edition of the MCC Workshop on Mobile Cloud Computing, 13–16.

Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 785–794.

Chougrad, H., Zouaki, H., & Alheyane, O. (2020). Multi-label transfer learning for the early diagnosis of breast cancer. Neurocomputing, 392, 168–180.

Cruz-Ramos, C., Garcia-Avila, O., Almaraz-Damian, J. A., Ponomaryov, V., Reyes-Reyes, R., & Sadovnychiy, S. (2023). Benign and malignant breast tumor classification in ultrasound and mammography images via fusion of deep learning and handcrafted features. Entropy, 25(7), 991.

He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 770–778.

Huang, G., Liu, Z., van der Maaten, L., & Weinberger, K. Q. (2017). Densely connected convolutional networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 4700–4708.

Kennedy, J., & Eberhart, R. (1995). Particle swarm optimization. Proceedings of ICNN’95 – International Conference on Neural Networks, 1942–1948.

Khourdifi, Y., El Alami, A., Zaydi, M., Maleh, Y., & Er-Remyly, O. (2024). Early breast cancer detection based on deep learning: An ensemble approach applied to mammograms. BioMedInformatics, 4(4), 2338–2373.

Lee, R. S., Gimenez, F., Hoogi, A., Miyake, K. K., Gorovoy, M., & Rubin, D. L. (2017). A curated mammography data set for use in computer-aided detection and diagnosis research. Scientific Data, 4, 170177.

Maruf, N. A., Basuhail, A., & Ramzan, M. U. (2025). Enhanced breast cancer diagnosis using multimodal feature fusion with radiomics and transfer learning. Diagnostics, 15(17), 2170.

McKinney, S. M., Sieniek, M., Godbole, V., Godwin, J., Antropova, N., Ashrafian, H., Back, T., Chesus, M., Corrado, G. S., Darzi, A., Etemadi, M., Garcia-Vicente, F., Gilbert, F. J., Halling-Brown, M., Hassabis, D., Jansen, S., Karthikesalingam, A., Kelly, C. J., King, D., ... Shetty, S. (2020). International evaluation of an AI system for breast cancer screening. Nature, 577, 89–94.

Murty, P. S. R. C., Anuradha, C., Naidu, P. A., Mandru, D., Ashok, M., Atheeswaran, A., Rajeswaran, N., & Saravanan, V. (2024). Integrative hybrid deep learning for enhanced breast cancer diagnosis: Leveraging the Wisconsin Breast Cancer Database and the CBIS-DDSM dataset. Scientific Reports, 14, 26287.

Petrini, D. G. P., Shimizu, C., Roela, R. A., Valente, G. V., Folgueira, M. A. A. K., & Kim, H. Y. (2022). Breast cancer diagnosis in two-view mammography using end-to-end trained EfficientNet-based convolutional network. IEEE Access, 10, 77723–77731.

Sandhu, J. K., Sharma, C., Kaur, A., Gogna, P. V. S., & Sharma, V. (2024). Improving breast cancer detection with deep learning techniques: A study using CBIS-DDSM dataset. Proceedings of the 2024 4th International Conference on Technological Advancements in Computational Sciences, 1703–1707.

Shifa, N., Saleh, M., Akbari, Y., & Al Maadeed, S. (2025). A review of explainable AI techniques and their evaluation in mammography for breast cancer screening. Clinical Imaging, 123, 110492.

Tan, M., & Le, Q. V. (2019). EfficientNet: Rethinking model scaling for convolutional neural networks. Proceedings of the 36th International Conference on Machine Learning, 6105–6114.

World Health Organization. (2026). Breast cancer. World Health Organization.

Published

2026-06-23

Issue

Section

Emerging Technologies in Health

How to Cite

Al-Mohammed, Z. A. I. ., Bagheri, E., Ali, A. H. M. ., & Hamidkhani, M. . (2026). Latency-Aware Breast Cancer Detection in Mammography Images Using a Fog-Cloud Framework Based on Stacked Transfer Learning and PSO-Optimized XGBoost. Health Nexus. https://doi.org/10.61838/