Submitted:
20 October 2025
Posted:
21 October 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Dataset Curation and Characteristics
2.2. Image Preprocessing and Augmentation Pipeline
2.3. Model Architectures
2.3.1. Primary Architecture: Xception
- Entry Flow, which extracts low-level features through depthwise convolutions and pooling;
- Middle Flow, containing multiple identical modules that refine hierarchical representations; and
- Exit Flow, where high-level features are aggregated and projected through global average pooling and dense layers.
2.3.2. Comparative Architecture: VGG16 and ResNet50
2.4. Experimental Protocol
- Classes
- For class from one-vs-rest confusion counts
- Per-class precision/recall/F1:
2.5. Client-Side Deployment via TensorFlow.js
2.6. Explainability and Visualization
3. Results
3.1. Quantitative Performance of the Fine-Tuned Xception Model
3.2. Class-Specific Performance and Confusion Matrix Analysis
3.3. Model Interpretability Using Grad-CAM


3.4. Comparative Analysis of Deep Learning Architectures
3.5. Performance of the Deployed Web-Based Tool
4. Discussion
4.1. Interpretation of Findings: The Architectural Advantage of Xception
4.2. Model Interpretability and Clinical Trust
4.3. Clinical Significance and Potential Applications
4.4. The Paradigm Shift of Browser-Based AI in Global Health
4.5. Limitations and Future Research Directions
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Bray, F.; Laversanne, M.; Sung, H.; Ferlay, J.; Siegel, R.L.; Soerjomataram, I.; Jemal, A. Global Cancer Statistics 2022: GLOBOCAN Estimates of Incidence and Mortality Worldwide for 36 Cancers in 185 Countries. CA Cancer J Clin 2024, 74, 229–263. [Google Scholar] [CrossRef] [PubMed]
- Cotache-Condor, C.; Rice, H.E.; Schroeder, K.; Staton, C.; Majaliwa, E.; Tang, S.; Rice, H.E.; Smith, E.R. Delays in Cancer Care for Children in Low-Income and Middle-Income Countries: Development of a Composite Vulnerability Index. Lancet Glob Health 2023, 11, e505–e515. [Google Scholar] [CrossRef]
- Qu, L.G.; Brand, N.R.; Chao, A.; Ilbawi, A.M. Interventions Addressing Barriers to Delayed Cancer Diagnosis in Low- and Middle-Income Countries: A Systematic Review. Oncologist 2020, 25, e1382–e1395. [Google Scholar] [CrossRef]
- Esteva, A.; Kuprel, B.; Novoa, R.A.; Ko, J.; Swetter, S.M.; Blau, H.M.; Thrun, S. Dermatologist-Level Classification of Skin Cancer with Deep Neural Networks. Nature 2017, 542, 115–118. [Google Scholar] [CrossRef]
- Tandon, R.; Agrawal, S.; Rathore, N.P.S.; Mishra, A.K.; Jain, S.K. A Systematic Review on Deep Learning-Based Automated Cancer Diagnosis Models. J Cell Mol Med 2024, 28. [Google Scholar] [CrossRef] [PubMed]
- Rhanoui, M.; Alaoui Belghiti, K.; Mikram, M. Multi-Task Deep Learning for Simultaneous Classification and Segmentation of Cancer Pathologies in Diverse Medical Imaging Modalities. Onco 2025, 5, 34. [Google Scholar] [CrossRef]
- Wang, C.W.; Khalil, M.A.; Firdi, N.P. A Survey on Deep Learning for Precision Oncology. Diagnostics 2022, 12. [Google Scholar] [CrossRef] [PubMed]
- Prakash, U.M.; Iniyan, S.; Dutta, A.K.; Alsubai, S.; Naga Ramesh, J.V.; Mohanty, S.N.; Dudekula, K.V. Multi-Scale Feature Fusion of Deep Convolutional Neural Networks on Cancerous Tumor Detection and Classification Using Biomedical Images. Sci Rep 2025, 15. [Google Scholar] [CrossRef]
- Habeeba, S.; Mahabubullah, Dr.K. Multi-Cancer Detection Using CNN, Inceptionv3, and Vision Transformer (Vit). International Journal of Innovative Research in Engineering 2025, 39–43. [Google Scholar] [CrossRef]
- Nasir, F.; Rahman, S.; Nasir, N. Breast Cancer Detection Using Convolutional Neural Networks: A Deep Learning-Based Approach. Cureus 2025. [Google Scholar] [CrossRef]
- Jian, W.; Haq, A.U.; Afzal, N.; Khan, S.; Alsolai, H.; Alanazi, S.M.; Zamani, A.T. Developing an Innovative Lung Cancer Detection Model for Accurate Diagnosis in AI Healthcare Systems. Sci Rep 2025, 15. [Google Scholar] [CrossRef]
- Naqvi, M.; Gilani, S.Q.; Syed, T.; Marques, O.; Kim, H.C. Skin Cancer Detection Using Deep Learning—A Review. Diagnostics 2023, 13. [Google Scholar] [CrossRef]
- Ghaderzadeh, M.; Aria, M.; Hosseini, A.; Asadi, F.; Bashash, D.; Abolghasemi, H. A Fast and Efficient CNN Model for B-ALL Diagnosis and Its Subtypes Classification Using Peripheral Blood Smear Images. International Journal of Intelligent Systems 2022, 37, 5113–5133. [Google Scholar] [CrossRef]
- Orlov, N. V.; Chen, W.W.; Eckley, D.M.; Macura, T.J.; Shamir, L.; Jaffe, E.S.; Goldberg, I.G. Automatic Classification of Lymphoma Images with Transform-Based Global Features. IEEE Transactions on Information Technology in Biomedicine 2010, 14, 1003–1013. [Google Scholar] [CrossRef] [PubMed]
- Cheng, J. Brain Tumor Dataset. 2017. [Google Scholar] [CrossRef]
- Borkowski, A.A.; Bui, M.M.; Brannon Thomas, L.; Wilson, C.P.; Deland, L.A.; Mastorides, S.M. Lung and Colon Cancer Histopathological Image Dataset (LC25000).
- Islam, M.N.; Hasan, M.; Hossain, M.K.; Alam, M.G.R.; Uddin, M.Z.; Soylu, A. Vision Transformer and Explainable Transfer Learning Models for Auto Detection of Kidney Cyst, Stone and Tumor from CT-Radiography. Sci Rep 2022, 12. [Google Scholar] [CrossRef]
- Plissiti, M.E.; Dimitrakopoulos, P.; Sfikas, G.; Nikou, C.; Krikoni, O.; Charchanti, A. SIPAKMED: A New Dataset for Feature and Image Based Classification of Normal and Pathological Cervical Cells in Pap Smear Images. In Proceedings of the 2018 25th IEEE International Conference on Image Processing (ICIP); 2018; pp. 3144–3148. [Google Scholar]
- Rahman, T.Y.; Mahanta, L.B.; Das, A.K.; Sarma, J.D. Histopathological Imaging Database for Oral Cancer Analysis. Data Brief 2020, 29. [Google Scholar] [CrossRef] [PubMed]
- Spanhol, F.A.; Oliveira, L.S.; Petitjean, C.; Heutte, L. A Dataset for Breast Cancer Histopathological Image Classification. IEEE Trans Biomed Eng 2016, 63, 1455–1462. [Google Scholar] [CrossRef] [PubMed]
- Kim, D.-K. Xception: Deep Learning’s Leap Beyond Inception 2025.
- Yenigün, O. The Architecture of VGGNet: Breaking Down VGG16 2025.
- Kundu, N. Exploring ResNet50: An In-Depth Look at the Model Architecture and Code Implementation 2023.
- Keras. EarlyStopping Callback 2025.
- TensorFlow; Keras. ReduceLROnPlateau Callback 2025.
- Russakovsky, O.; Deng, J.; Su, H.; Krause, J.; Satheesh, S.; Ma, S.; Huang, Z.; Karpathy, A.; Khosla, A.; Bernstein, M.; et al. ImageNet Large Scale Visual Recognition Challenge. Int J Comput Vis 2015, 115, 211–252. [Google Scholar] [CrossRef]
- Sokolova, M.; Lapalme, G. A Systematic Analysis of Performance Measures for Classification Tasks. Inf Process Manag 2009, 45, 427–437. [Google Scholar] [CrossRef]
- Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization.







| Full Cancer Type Name | Train Images | Val Images | Test Images | Total Images |
|---|---|---|---|---|
| Acute Lymphoblastic Leukemia Benign | 4000 | 500 | 500 | 5000 |
| Acute Lymphoblastic Leukemia Early | 4000 | 500 | 500 | 5000 |
| Acute Lymphoblastic Leukemia Pre | 4000 | 500 | 500 | 5000 |
| Acute Lymphoblastic Leukemia Pro | 4000 | 500 | 500 | 5000 |
| Brain Glioma | 4000 | 500 | 500 | 5000 |
| Brain Meningioma | 4000 | 500 | 500 | 5000 |
| Brain Tumor | 4000 | 500 | 500 | 5000 |
| Breast Benign | 4000 | 500 | 500 | 5000 |
| Breast Malignant | 4000 | 500 | 500 | 5000 |
| Cervix Dyskeratotic | 4000 | 500 | 500 | 5000 |
| Cervix Koilocytotic | 4000 | 500 | 500 | 5000 |
| Cervix Metaplastic | 4000 | 500 | 500 | 5000 |
| Cervix Parabasal | 4000 | 500 | 500 | 5000 |
| Cervix Superficial Intermediate | 4000 | 500 | 500 | 5000 |
| Colon Adenocarcinoma | 4000 | 500 | 500 | 5000 |
| Colon Benign Tissue | 4000 | 500 | 500 | 5000 |
| Kidney Normal | 4000 | 500 | 500 | 5000 |
| Kidney Tumor | 4000 | 500 | 500 | 5000 |
| Lung Adenocarcinoma | 4000 | 500 | 500 | 5000 |
| Lung Benign Tissue | 4000 | 500 | 500 | 5000 |
| Lung Squamous Cell Carcinoma | 4000 | 500 | 500 | 5000 |
| Chronic Lymphocytic Leukemia | 4000 | 500 | 500 | 5000 |
| Follicular Lymphoma | 4000 | 500 | 500 | 5000 |
| Mantle Cell Lymphoma | 4000 | 500 | 500 | 5000 |
| Oral Normal | 4000 | 500 | 501 | 5001 |
| Oral Squamous Cell Carcinoma | 4000 | 500 | 501 | 5001 |
| Model | Parameters (Millions) | Model Size (MB) | Total Training Time (Hours) |
| Xception | ~23.9 | ~90 | 10 |
| VGG16 | ~138.4 | ~528 | 30 |
| ResNet50 | ~25.6 | ~98 | 16 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).