Automatic Grade Classification in Prostate Histopathological Images Using EfficientNet and Ordinal Focal Loss
Abstract
1. Introduction
2. Materials and Methods
2.1. Materials
2.2. Preprocessing
2.2.1. Entropy-Based Noise Filtering
2.2.2. Patch Extraction
2.3. Feature Extraction and Model Training
2.4. Performance Evaluation
Metrics and Statistical Analysis
3. Results
3.1. Experimental Environment
3.2. Hyperparameter Configuration
3.3. Impact of Noise Filtering and Loss Functions
3.4. Comparison Among EfficientNet Architectures
4. Discussion
4.1. Performance and Comparison with Related Work
4.2. Impact of the Ordinal Loss Function and Noise Filtering
4.3. Computational Efficiency and Architecture Selection
4.4. Limitations and Future Work
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| ISUP | International Society of Urological Pathology |
| WSI | Whole Slide Image |
| TSOR | Task-Specific Ordinal Regression |
| CNN | Convolutional Neural Network |
| GCN | Graph Convolutional Network |
| AI | Artificial Intelligence |
| BCE | Binary Cross Entropy |
| GG | Grade Group |
| PANDA | Prostate Cancer Grade Assessment |
| ViT | Vision Transformers |
References
- Siegel, R.L.; Giaquinto, A.N.; Jemal, A. Cancer statistics, 2024. CA Cancer J. Clin. 2024, 74, 12–49. [Google Scholar] [CrossRef] [PubMed]
- 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]
- Epstein, J.I.; Egevad, L.; Amin, M.B.; Delahunt, B.; Srigley, J.R.; Humphrey, P.A.; Grading Committee. The 2014 International Society of Urological Pathology (ISUP) Consensus Conference on Gleason Grading of Prostatic Carcinoma: Definition of Grading Patterns and Proposal for a New Grading System. Am. J. Surg. Pathol. 2016, 40, 244–252. [Google Scholar] [CrossRef]
- Bulten, W.; Pinckaers, H.; van Boven, H.; Vink, R.; de Bel, T.; van Ginneken, B.; van der Laak, J.; Hulsbergen-van de Kaa, C.; Litjens, G. Automated deep-learning system for Gleason grading of prostate cancer using biopsies: A diagnostic study. Lancet Oncol. 2020, 21, 233–241. [Google Scholar] [CrossRef]
- Rusliyawati, R.; Sutyarso, S.; Wantoro, A. Expert System Research for Prostate Cancer: A Literature Review. Comput. Biol. Med. 2022, 145, 105487. [Google Scholar]
- Campanella, G.; Hanna, M.G.; Geneslaw, L.; Miraflor, A.; Silva, V.W.K.; Busam, K.J.; Brogi, E.; Reuter, V.E.; Klimstra, D.S.; Fuchs, T.J. Clinical-grade computational pathology using weakly supervised deep learning on whole slide images. Nat. Med. 2019, 25, 1301–1309. [Google Scholar] [CrossRef]
- Araújo, F.H.; Silva, R.R.; Medeiros, F.N.; Neto, J.F.R.; Oliveira, P.H.C.; Bianchi, A.G.C.; Ushizima, D. Active contours for overlapping cervical cell segmentation. Int. J. Biomed. Eng. Technol. 2021, 35, 70–92. [Google Scholar] [CrossRef]
- Xiang, J.; Wang, X.; Wang, X.; Zhang, J.; Yang, S.; Yang, W.; Han, X.; Liu, Y. Automatic diagnosis and grading of Prostate Cancer with weakly supervised learning on whole slide images. Comput. Biol. Med. 2023, 152, 106340. [Google Scholar] [CrossRef]
- Jung, M.; Jin, M.-S.; Kim, C.; Lee, C.; Nikas, I.P.; Park, J.H.; Ryu, H.S. Artificial intelligence system shows performance at the level of uropathologists for the detection and grading of prostate cancer in core needle biopsy: An independent external validation study. Mod. Pathol. 2022, 35, 1449–1457. [Google Scholar] [CrossRef]
- Liu, B.; Wang, Y.; Weitz, P.; Grönberg, H.; Eklund, M.; Rantalainen, M. Using deep learning to detect patients at risk for prostate cancer despite benign biopsies. iScience 2022, 25, 104663. [Google Scholar] [CrossRef] [PubMed]
- Hammouda, K.; Khalifa, F.; Ghazal, M.; Darwish, H.E.; Yousaf, J.; El-Baz, A. A Pyramidal CNN-Based Gleason Grading System Using Digitized Prostate Biopsy Specimens. Proc. Int. Conf. Pattern Recognit. (ICPR) 2022, 4277–4284. [Google Scholar] [CrossRef]
- Kosoko, I.; Garg, A.; Jain, S.; Hewage, P. Leveraging deep learning and explainable ai for diagnosis of prostate cancer. In Proceedings of the International Conference on Applied Artificial Intelligence in Medical Imaging; IEEE: New York, NY, USA, 2024. [Google Scholar]
- Afifi, S.M.; Kaur, R.; GholamHosseini, H.; Mousa, Y.; Menissy, B.; Taha, R.; Baig, M.; Ullah, E. Prostate Cancer Detection Using Deep Learning Models on Histopathological Image Slides: An Experimental Analysis. Proc. Int. Conf. Artif. Intell. Comput. Data Sci. Appl. (ACDSA) 2025, 1–7. [Google Scholar] [CrossRef]
- Alici-Karaca, D.; Akay, B. An efficient deep learning model for prostate cancer diagnosis. IEEE Access 2024, 12, 150776–150790. [Google Scholar] [CrossRef]
- Ikromjanov, K.; Sumon, R.I.; Bhattacharjee, S.; Kim, H.-C.; Hwang, Y.-B.; Choi, H.-K. Whole slide image analysis and detection of prostate cancer using vision transformers. In Proceedings of the International Conference on Medical Imaging and AI; IEEE: New York, NY, USA, 2021. [Google Scholar]
- Bhattacharyya, R.; Roy, P.; Banerji, S.; Mitra, S. Efficient Grading of Prostate Cancer WSI with Deep Learning. In Medical Imaging 2024: Digital and Computational Pathology; SPIE: Bellingham, WA, USA, 2024. [Google Scholar] [CrossRef]
- Kabir, S.; Sarmun, R.; Al Saady, R.M.; Vranic, S.; Murugappan, M.; Chowdhury, M.E.H. Automating Prostate Cancer Grading: A Novel Deep Learning Framework for Automatic Prostate Cancer Grade Assessment using Classification and Segmentation. J. Imaging Inform. Med. 2025, 38, 3992–4014. [Google Scholar] [CrossRef]
- Bhattacharyya, R.; Pal, S.; Mitra, S. Efficient Self-Supervised Grading of Prostate Cancer Pathology. IEEE Trans. Syst. Man. Cybern. Syst. 2026, 1–13. [Google Scholar] [CrossRef]
- PANDA Challenge. Prostate cANcer graDe Assessment Challenge; Kaggle: San Francisco, CA, USA, 2020. [Google Scholar]
- Ali, I.; Khan, A.; Khan, M.; Ahmad, R.; Ullah, I. Shannon Entropy in Artificial Intelligence and Its Applications Based on Information Theory. Entropy 2023, 25, 364. [Google Scholar]
- Lin, T.-Y.; Goyal, P.; Girshick, R.; He, K.; Dollár, P. Focal loss for dense object detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV); IEEE: New York, NY, USA, 2017; pp. 2980–2988. [Google Scholar]
- Baldi, P.; Brunak, S.; Chauvin, Y.; Andersen, C.A.; Nielsen, H. Assessing the accuracy of prediction algorithms for classification: An overview. Bioinformatics 2000, 16, 412–424. [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]
- Powers, D.M.W. Evaluation: From precision, recall and F-measure to ROC, informedness, markedness and correlation. J. Mach. Learn. Technol. 2011, 2, 37–63. [Google Scholar]
- Cohen, J. Weighted kappa: Nominal scale agreement with provision for scaled disagreement or partial credit. Psychol. Bull. 1968, 70, 213–220. [Google Scholar] [CrossRef]
- Efron, B. Bootstrap Methods: Another Look at the Jackknife. Ann. Stat. 1979, 7, 1–26. [Google Scholar] [CrossRef]
- Ozkan, T.A.; Eruyar, A.T.; Cebeci, O.O.; Memik, O.; Ozcan, L.; Kuskonmaz, I. Interobserver variability in Gleason histological grading of prostate cancer. Scand. J. Urol. 2016, 50, 420–424. [Google Scholar] [CrossRef]
- Cinar, I.; Cinar, E. Assessment of interobserver variability in Gleason grading for prostate carcinoma. North Clin. Istanb. 2025, 12, 337–343. [Google Scholar] [CrossRef]











| Parameter | Evaluated Values | Selected Value |
|---|---|---|
| Learning rate | , , | |
| Number of epochs | 50 | 50 |
| Unfrozen layers (fine-tuning) | 100, 150 | 150 |
| Dropout | 0.4, 0.5, 0.6 | 0.4 |
| Batch size | 2 | 2 |
| Loss function | BCE | BCE |
| Optimizer | Adam | Adam |
| Test Quadratic Kappa | Test Accuracy (%) | Test F1 Macro | Test Precision | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Configuration | Result | SD | 95% CI | Result | SD | 95% CI | Result | SD | 95% CI | Result | SD | 95% CI |
| BCE (baseline) | 0.826 | 0.012 | [0.806; 0.846] | 0.592 | 0.012 | [0.572; 0.612] | 0.537 | 0.013 | [0.516; 0.558] | 0.551 | 0.013 | [0.530; 0.572] |
| BCE + Noise Removal | 0.833 | 0.013 | [0.812; 0.853] | 0.638 | 0.116 | [0.619; 0.657] | 0.572 | 0.013 | [0.553; 0.594] | 0.584 | 0.013 | [0.563; 0.606] |
| Ordinal Loss | 0.851 | 0.009 | [0.833; 0.869] | 0.608 | 0.126 | [0.587; 0.628] | 0.559 | 0.014 | [0.537; 0.581] | 0.585 | 0.013 | [0.563; 0.606] |
| Ordinal + Focal (Hybrid) | 0.857 | 0.011 | [0.833; 0.876] | 0.669 | 0.011 | [0.635; 0.683] | 0.612 | 0.013 | [0.587; 0.636] | 0.628 | 0.013 | [0.603; 0.653] |
| Test Quadratic Kappa | Test Accuracy (%) | Test F1 Macro | Test Precision | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Architecture | Result | SD | 95% CI | Result | SD | 95% CI | Result | SD | 95% CI | Result | SD | 95% CI |
| EfficientNet-B0 | 0.857 | 0.011 | [0.833; 0.876] | 0.669 | 0.011 | [0.635; 0.683] | 0.612 | 0.013 | [0.587; 0.636] | 0.628 | 0.013 | [0.603; 0.653] |
| EfficientNet-B3 | 0.849 | 0.013 | [0.824; 0.870] | 0.661 | 0.014 | [0.634; 0.685] | 0.555 | 0.013 | [0.532; 0.576] | 0.605 | 0.012 | [0.585; 0.624] |
| EfficientNet-B7 | 0.842 | 0.015 | [0.815; 0.866] | 0.654 | 0.016 | [0.628; 0.678] | 0.556 | 0.013 | [0.530; 0.579] | 0.561 | 0.013 | [0.536; 0.586] |
| Study | Dataset | Model | Level | Task | Acc. | Kappa |
|---|---|---|---|---|---|---|
| [11] | Radboud | Pyramidal CNN | Patch → WSI | Gleason/GG | 0.773 | - |
| [15] | PANDA | ViT | Patch | Gleason | 0.800 | - |
| [8] | PANDA | ResNet50 + GCN | WSI | ISUP (6) | - | 0.931 (Int.)/0.801 (Ext.) |
| [14] | DiagSet | EffNet-B4 + ECA | Patch | Binary/4 classes | 0.961/0.948 | - |
| [12] | SICAPv2 | VGG19 | Patch | Gleason | 0.780 | - |
| [16] | PANDA | EffNet-B1 + MIL + Ensemble | WSI | ISUP (6) | - | 0.881 |
| [17] | PANDA | EffNet-B0 + DeepLabV3 + RF | WSI + Seg | ISUP (6) | - | 0.921 |
| [18] | PANDA/SICAPv | TSOR | WSI | ISUP (6) | - | 0.884 |
| Proposed (Base) | PANDA | EffNet-B0 + Ordinal Focal Loss | WSI | ISUP (6) | 0.669 | 0.857 |
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. |
© 2026 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.
Share and Cite
Rodrigues, W.V.d.S.; Luz, A.; Lima Araújo, J.D.; Diniz, J.; Filho, A.O. Automatic Grade Classification in Prostate Histopathological Images Using EfficientNet and Ordinal Focal Loss. Bioengineering 2026, 13, 503. https://doi.org/10.3390/bioengineering13050503
Rodrigues WVdS, Luz A, Lima Araújo JD, Diniz J, Filho AO. Automatic Grade Classification in Prostate Histopathological Images Using EfficientNet and Ordinal Focal Loss. Bioengineering. 2026; 13(5):503. https://doi.org/10.3390/bioengineering13050503
Chicago/Turabian StyleRodrigues, Woshington Valdeci de Sousa, Armando Luz, José Denes Lima Araújo, João Diniz, and Antonio Oseas Filho. 2026. "Automatic Grade Classification in Prostate Histopathological Images Using EfficientNet and Ordinal Focal Loss" Bioengineering 13, no. 5: 503. https://doi.org/10.3390/bioengineering13050503
APA StyleRodrigues, W. V. d. S., Luz, A., Lima Araújo, J. D., Diniz, J., & Filho, A. O. (2026). Automatic Grade Classification in Prostate Histopathological Images Using EfficientNet and Ordinal Focal Loss. Bioengineering, 13(5), 503. https://doi.org/10.3390/bioengineering13050503

