Morphological Transition Flow-based Feature Extraction for Five-Class Diabetic Retinopathy Classification
view PDF
view PDF

How to Cite

Esserkassi, Basma, Souad Eddarouich, and Abdennaser Bourouhou. 2026. “Morphological Transition Flow-Based Feature Extraction for Five-Class Diabetic Retinopathy Classification”. Journal of Innovative Image Processing 8 (3): 810-26. https://doi.org/10.36548/jiip.2026.3.004.

Keywords

Diabetic Retinopathy
Random Forest
ELM
Bayesian Optimization
Clinical Deployment
EyePACS

Abstract

Diabetic retinopathy threatens the vision of 103 million people globally, yet computational and infrastructural barriers continue to block automated screening where it is needed most. We propose RF-MTF, a three-module framework evaluated on 34,860 EyePACS fundus images across five ICDR grades (validation set n=6,972). Module 1 applies AMS-CLAHE with Gabor morphological guidance. Module 2 introduces the Morphological Transition Flow — RGB channels processed by random projection networks (ELM, RVFL, BLS) with dual-scale morphological operations, yielding 384-dimensional feature vectors. Module 3 benchmarks three classifiers across 34 configurations spanning four optimization levels. Preprocessing variants produced near-identical F1-scores (0.9045–0.9086, Δ=0.41 pp) despite large image quality divergence, questioning the assumption that preprocessing optimization is critical for DR classification. The optimal configuration reached F1-weighted=0.9701, F1-macro=0.8910, AUC-ROC=0.9941. Random Forest achieved exceptional configuration-wise stability (σ=0.0002), in contrast to XGBoost's high optimization sensitivity (σ=0.2097) and SVM's persistent low performance on this feature space (σ=0.0108, F1≈0.25 across all configurations). Inference runs in 1–3 ms within a 20–40 MB footprint. RF-MTF delivers competitive 5-class ICDR classification on CPU hardware (F1-weighted=0.9701, F1-macro=0.8910), with minority-class performance (Grade 4 F1=0.78, 95% CI [0.70, 0.85], n=70) reflecting the inherent statistical challenges of evaluating rare classes under the natural 95.9:1 class imbalance of real-world DR screening populations — identified as the primary minority-class improvement target. External validation on Messidor-2, APTOS 2019, and IDRiD is the immediate next step.

References

  1. Teo, Zhen Ling, Yih-Chung Tham, Marco Yu, Miao Li Chee, Tyler Hyungtaek Rim, Ning Cheung, Mukharram M. Bikbov et al. "Global Prevalence of Diabetic Retinopathy and Projection of Burden Through 2045: Systematic Review and Meta-Analysis." Ophthalmology 128, no. 11 (2021): 1580-1591.
  2. Ting, Daniel Shu Wei, Carol Yim-Lui Cheung, Gilbert Lim, Gavin Siew Wei Tan, Nguyen D. Quang, Alfred Gan, Haslina Hamzah et al. "Development and Validation of a Deep Learning System for Diabetic Retinopathy and Related Eye Diseases Using Retinal Images from Multiethnic Populations with Diabetes." Jama 318, no. 22 (2017): 2211-2223.
  3. Gulshan, V., Peng, L., Coram, M., Stumpe, M. C., Wu, D., Narayanaswamy, A., Venugopalan, S., Widner, K., Madams, T., Cuadros, J., Kim, R., Raman, R., Nelson, P. C., Mega, J. L., & Webster, D. R. (2016). Development And Validation of a Deep Learning Algorithm for Detection of Diabetic Retinopathy in Retinal Fundus Photographs. JAMA, 316(22), 2402–2410. https://doi.org/10.1001/jama.2016.17216
  4. Santos, Ana Rita, Luis Mendes, Maria Helena Madeira, Ines P. Marques, Diana Tavares, João Figueira, Conceição Lobo, and José Cunha-Vaz. "Microaneurysm Turnover in Mild Non-Proliferative Diabetic Retinopathy Is Associated with Progression and Development of Vision-Threatening Complications: A 5-Year Longitudinal Study." Journal of Clinical Medicine 10, no. 10 (2021): 2142.
  5. Wilkinson, Charles P., Frederick L. Ferris III, Ronald E. Klein, Paul P. Lee, Carl David Agardh, Matthew Davis, Diana Dills et al. "Proposed International Clinical Diabetic Retinopathy and Diabetic Macular Edema Disease Severity Scales." Ophthalmology 110, no. 9 (2003): 1677-1682.
  6. Zuiderveld, K. (1994). Contrast Limited Adaptive Histogram Equalization. In P. S. Heckbert (Ed.), Graphics Gems IV (pp. 474–485). Academic Press. https://doi.org/10.1016/B978-0-12-336156-1.50061-6
  7. Kirszenberg, Alexandre, Guillaume Tochon, Élodie Puybareau, and Jesus Angulo. "Going Beyond P-Convolutions to Learn Grayscale Morphological Operators." In International Conference on Discrete Geometry and Mathematical Morphology, Cham: Springer International Publishing, 2021, 470-482.
  8. Early Treatment Diabetic Retinopathy Study Research Group. "Grading Diabetic Retinopathy from Stereoscopic Color Fundus Photographs—An Extension of the Modified Airlie House Classification: ETDRS Report Number 10." Ophthalmology 98, no. 5 (1991): 786-806.
  9. Decencière, Etienne, Xiwei Zhang, Guy Cazuguel, Bruno Lay, Béatrice Cochener, Caroline Trone, Philippe Gain et al. "Feedback on a Publicly Distributed Image Database: the Messidor Database." Image Analysis & Stereology (2014): 231-234.
  10. Breiman, L Random Forests. Machine Learning, 45(1), 5–32. 2001. https://doi.org/10.1023/A:1010933404324
  11. Parthasharathi, G. U., Vasantha Kumar, R. Premnivas, and K. Jasmine. "Diabetic Retinopathy Detection Using Machine Learning." Journal of Innovative Image Processing 4, no. 1 (2022): 26-33.
  12. Tianqi Chen and Carlos Guestrin. 2016. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD '16). Association for Computing Machinery, New York, NY, USA, 785–794. https://doi.org/10.1145/2939672.2939785.
  13. Cortes, C., & Vapnik, V. Support-Vector Networks. Machine Learning, 20(3), 273–297. 1995. https://doi.org/10.1007/BF00994018
  14. Ul Haq, N., Waheed, T., Ishaq, K., Hassan, M. A., Safie, N., Elias, N. F., & Shoaib, M. (2024). Computationally Efficient Deep Learning Models for Diabetic Retinopathy Detection: A Systematic Literature Review. Artificial Intelligence Review, 57, Article 309. https://doi.org/10.1007/s10462-024-10942-9.
  15. Cuadros, Jorge, and George Bresnick. "EyePACS: An Adaptable Telemedicine System for Diabetic Retinopathy Screening." Journal of diabetes science and technology 3, no. 3 (2009): 509-516.
  16. California Healthcare Foundation. (2015). Diabetic Retinopathy Detection [Data set]. Kaggle. https://www.kaggle.com/c/diabetic-retinopathy-detection
  17. Neogi, A. (2021). Diabetic Retinopathy Arranged [Data set]. Kaggle. https://www.kaggle.com/datasets/amanneo/diabetic-retinopathy-resized-arranged
  18. Cawley, Gavin C., and Nicola LC Talbot. "On Over-Fitting in Model Selection and Subsequent Selection Bias in Performance Evaluation." The Journal of Machine Learning Research 11 (2010): 2079-2107.
  19. Dharrao, Deepak, Madhuri Dharrao, Shreyas Patil, Sangeeth Salvin, Prashant Ahire, and Yashwant Dongre. "AI-Driven Detection and Classification of Diabetic Retinopathy Stages Using EfficientNetB0." Discover Applied Sciences (2025).
  20. Arora, Lakshay, Sunil K. Singh, Sudhakar Kumar, Hardik Gupta, Wadee Alhalabi, Varsha Arya, Shavi Bansal, Kwok Tai Chui, and Brij B. Gupta. "Ensemble Deep Learning and EfficientNet for Accurate Diagnosis of Diabetic Retinopathy." Scientific Reports 14, no. 1 (2024): 30554.
  21. Nazir, Kinza, Jisoo Kim, and Yung-Cheol Byun. "Enhancing Early-Stage Diabetic Retinopathy Detection Using a Weighted Ensemble of Deep Neural Networks." IEEE Access 12 (2024): 113565-113579.
  22. Niculescu-Mizil, Alexandru, and Rich Caruana. "Predicting Good Probabilities with Supervised Learning." In Proceedings of the 22nd international conference on Machine learning, 625-632. 2005.
  23. Guo, Chuan, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. "On Calibration of Modern Neural Networks." In International conference on machine learning, PMLR, 2017, 1321-1330.
  24. Bouthillier, Xavier, Pierre Delaunay, Mirko Bronzi, Assya Trofimov, Brennan Nichyporuk, Justin Szeto, Nazanin Mohammadi Sepahvand et al. "Accounting for Variance in Machine Learning Benchmarks." Proceedings of machine learning and systems 3 (2021): 747-769.