Impact of Color and Contrast Enhancement Techniques on Hard Exudate Segmentation Performance Using U-Net
Hard exudates are early signs of diabetic retinopathy, and their automatic segmentation in fundus images can support screening. Color conversion and contrast enhancement are widely used as preprocessing steps, but their effect is usually evaluated together with changes in network architecture or training, so their specific contribution to segmentation performance remains unclear. This study aimed to quantify the effect of color representation and contrast enhancement on hard exudate segmentation when all other experimental factors are held constant. Nine preprocessing configurations, combining Original RGB, Green Channel, and Grayscale representations with Histogram Equalization (HE), Adaptive Histogram Equalization (AHE), and Contrast Limited Adaptive Histogram Equalization (CLAHE) in a sequential, partially crossed design, were evaluated on the IDRiD dataset using an identical Standard U-Net and training protocol. Performance was measured on 27 fully reconstructed test images using the Dice score, Intersection over Union (IoU), Precision, Recall, and false-positive rate, and configurations were compared with paired statistical tests and Holm–Bonferroni correction. Grayscale achieved the highest Dice and IoU (0.698 ± 0.190 and 0.561 ± 0.178), but it did not differ significantly from Original RGB (Dice 0.678 ± 0.200) or Green Channel (Dice 0.692 ± 0.199). HE was the only contrast enhancement method that significantly reduced Dice relative to the baseline, by 0.042 using Grayscale (p_Holm = 0.002) and by 0.056 using Original RGB (p_Holm = 0.003), whereas AHE and CLAHE did not differ significantly from the corresponding baselines. On IDRiD with a Standard U-Net, commonly used color and contrast preprocessing therefore did not significantly improve segmentation performance, and global HE reduced it. These findings support evaluating preprocessing separately from other design choices through controlled experiments
[1] Z. L. Teo et al., “Global Prevalence of Diabetic Retinopathy and Projection of Burden through 2045: Systematic Review and Meta-analysis,” Ophthalmology, vol. 128, no. 11, pp. 1580–1591, 2021, doi: 10.1016/j.ophtha.2021.04.027.
[2] L. Toto et al., “A deep learning approach to hard exudates detection and disorganization of retinal inner layers identification on OCT images,” Sci. Rep., vol. 14, no. 1, p. 16652, 2024, doi: 10.1038/s41598-024-63844-9.
[3] I. Rajesh, B. Reshmi, B. Malakreddy, and S. Bilakeri, “Automatic Detection of Hard Exudate in Color Retinal Fundus Image and Diabetic Maculopathy Grading,” IEEE Access, vol. 13, pp. 6618–6631, Jan. 2025, doi: 10.1109/ACCESS.2025.3525499.
[4] A. Malhi, R. Grewal, and H. S. Pannu, “Detection and diabetic retinopathy grading using digital retinal images,” Int. J. Intell. Robot. Appl., vol. 7, no. 2, pp. 426–458, 2023, doi: 10.1007/s41315-022-00269-5.
[5] Y. Fu, G. Zhang, X. Lu, H. Wu, and D. Zhang, “RMCA U-net: Hard exudates segmentation for retinal fundus images,” Expert Syst. Appl., vol. 234, p. 120987, 2023, doi: 10.1016/j.eswa.2023.120987.
[6] Q. Van Do et al., “Segmentation of hard exudate lesions in color fundus image using two-stage CNN-based methods,” Expert Syst. Appl., vol. 241, p. 122742, 2024, doi: 10.1016/j.eswa.2023.122742.
[7] A. Skouta, A. Elmoufidi, S. Jai-Andaloussi, and O. Ouchetto, “Hemorrhage semantic segmentation in fundus images for the diagnosis of diabetic retinopathy by using a convolutional neural network,” J. Big Data, vol. 9, no. 1, p. 78, 2022, doi: 10.1186/s40537-022-00632-0.
[8] S. Prakash and J. Kakarla, “Automatic Segmentation of Hard Exudates Using LAB Color Space Contours Edge Detection and Morphological Operation,” in Computer Vision and Image Processing (CVIP 2023), H. Kaur, V. Jakhetiya, P. Goyal, P. Khanna, B. Raman, and S. Kumar, Eds., Communications in Computer and Information Science, vol. 2010. Cham, Switzerland: Springer, 2024, pp. 324–335, doi: 10.1007/978-3-031-58174-8_28.
[9] D. Toresa, M. A. E. Shahril, N. H. Harun, J. A. Bakar, and H. Amnur, “Automated detection and counting of hard exudates for diabetic retinopathy by using watershed and double top-bottom hat filtering algorithm,” Int. J. Informatics Vis., vol. 5, no. 3, pp. 242–247, 2021, doi: 10.30630/joiv.5.3.664.
[10] N. S. Datta, H. S. Dutta, K. Majumder, S. Chatterjee, and N. A. Wasim, “An Improved Method for Automated Identification of Hard Exudates in Diabetic Retinopathy Disease,” IETE J. Res., vol. 68, no. 1, pp. 611–621, Jan. 2022, doi: 10.1080/03772063.2019.1618206.
[11] V. Kurilová, J. Goga, M. Oravec, J. Pavlovičová, and S. Kajan, “Support vector machine and deep-learning object detection for localisation of hard exudates,” Sci. Rep., vol. 11, no. 1, p. 16045, Aug. 2021, doi: 10.1038/s41598-021-95519-0.
[12] O. Ronneberger, P. Fischer, and T. Brox, “U-Net: Convolutional Networks for Biomedical Image Segmentation,” in Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015, N. Navab, J. Hornegger, W. M. Wells, and A. F. Frangi, Eds., Lecture Notes in Computer Science, vol. 9351. Cham, Switzerland: Springer, 2015, pp. 234–241, doi: 10.1007/978-3-319-24574-4_28.
[13] W. Jiangtao, N. I. R. Ruhaiyem, and F. Panpan, “A Comprehensive Review of U-Net and Its Variants: Advances and Applications in Medical Image Segmentation,” IET Image Process., vol. 19, no. 1, p. e70019, 2025, doi: 10.1049/ipr2.70019.
[14] J. Owler and P. Rockett, “Influence of background preprocessing on the performance of deep learning retinal vessel detection,” J. Med. Imaging, vol. 8, no. 6, p. 64001, Nov. 2021, doi: 10.1117/1.JMI.8.6.064001.
[15] B. C. Anupama, S. N. Rao, M. B. Malini, and V. V. Athreya, “Comparative analysis of novel preprocessing techniques and deep learning based multi modal feature fusion for diabetic retinopathy grading,” Sci. Rep., vol. 16, no. 1, p. 1743, 2026, doi: 10.1038/s41598-025-31339-w.
[16] P. K. Jena, B. Khuntia, C. Palai, M. Nayak, T. K. Mishra, and S. N. Mohanty, “A Novel Approach for Diabetic Retinopathy Screening Using Asymmetric Deep Learning Features,” Big Data Cogn. Comput., vol. 7, no. 1, p. 25, 2023, doi: 10.3390/bdcc7010025.
[17] G. Alwakid, W. Gouda, and M. Humayun, “Deep Learning-Based Prediction of Diabetic Retinopathy Using CLAHE and ESRGAN for Enhancement,” Healthcare, vol. 11, no. 6, p. 863, 2023, doi: 10.3390/healthcare11060863.
[18] G. Alwakid, W. Gouda, and M. Humayun, “Enhancement of Diabetic Retinopathy Prognostication Using Deep Learning, CLAHE, and ESRGAN,” Diagnostics, vol. 13, no. 14, p. 2375, 2023, doi: 10.3390/diagnostics13142375.
[19] S. Phimphisan and N. Sriwiboon, “A Customized CNN Architecture with CLAHE for Multi-Stage Diabetic Retinopathy Classification,” Eng. Technol. Appl. Sci. Res., vol. 14, no. 6, pp. 18258–18263, 2024, doi: 10.48084/etasr.8932.
[20] K. Zuiderveld, “Contrast limited adaptive histogram equalization,” in Graphics Gems IV, P. S. Heckbert, Ed. San Diego, CA, USA: Academic Press, 1994, pp. 474–485, doi: 10.1016/B978-0-12-336156-1.50061-6.
[21] G. Latha, P. A. Priya, and V. K. Smitha, “Enhanced diabetic retinopathy detection and exudates segmentation using deep learning: A promising approach for early disease diagnosis,” Multimed. Tools Appl., vol. 83, no. 32, pp. 77785–77808, 2024, doi: 10.1007/s11042-024-18629-7.
[22] Z. Wang, H. Lu, H. Yan, H. Kan, and L. Jin, “Vison transformer adapter-based hyperbolic embeddings for multi-lesion segmentation in diabetic retinopathy,” Sci. Rep., vol. 13, no. 1, p. 11178, 2023, doi: 10.1038/s41598-023-38320-5.
[23] A. El hossi, A. Elmoufidi, and M. Nachaoui, “Implementation of a Modified U-Net Architecture for Hard Exudate Semantic Segmentation using Fundus Images,” Prog. Artif. Intell., vol. 14, no. 4, pp. 549–561, 2025, doi: 10.1007/s13748-025-00379-8.
[24] C. Pratheeba and N. C. J. Rufus, “DenseExudatesNet: a novel approach for hard exudates detection in retinal images using deep learning,” Int. J. Mach. Learn. Cybern., vol. 16, no. 5, pp. 2939–2956, 2025, doi: 10.1007/s13042-024-02429-4.
[25] X. Zhang, J. Zhang, Y. Zhang, M. Jia, H. Li, and X. Liu, “Adaptive learning Unet-based adversarial network with CNN and transformer for segmentation of hard exudates in diabetes retinopathy,” IET Image Process., vol. 17, no. 11, pp. 3337–3348, 2023, doi: 10.1049/ipr2.12865.
[26] P. Porwal et al., “Indian Diabetic Retinopathy Image Dataset (IDRiD): A Database for Diabetic Retinopathy Screening Research,” Data, vol. 3, no. 3, p. 25, Jul. 2018, doi: 10.3390/data3030025.
[27] P. Porwal et al., “IDRiD: Diabetic Retinopathy – Segmentation and Grading Challenge,” Med. Image Anal., vol. 59, p. 101561, 2020, doi: 10.1016/j.media.2019.101561.
[28] S. Chankhachon, S. Kansomkeat, P. Bhurayanontachai, and S. Intajag, “Refined IDRiD: An Enhanced Dataset for Diabetic Retinopathy Segmentation with Expert-Validated Annotations and Comprehensive Anatomical Context,” Data, vol. 11, no. 2, p. 30, 2026, doi: 10.3390/data11020030.
[29] V. V. Starovoitov et al., “A Universal Field-of-View Mask Segmentation Method on Retinal Images From Fundus Cameras,” IEEE Access, vol. 12, pp. 77092–77103, 2024, doi: 10.1109/ACCESS.2024.3402125.
[30] N. Sharma and P. Lalwani, “A multi model deep net with an explainable AI based framework for diabetic retinopathy segmentation and classification,” Sci. Rep., vol. 15, p. 8777, 2025, doi: 10.1038/s41598-025-93376-9.
[31] M. Yinghua, Y. Heng, R. Amarnath, and Z. Hui, “Hard Exudates Segmentation in Diabetic Retinopathy Using DiaRetDB1,” IEEE Access, vol. 12, pp. 126486–126502, 2024, doi: 10.1109/ACCESS.2024.3455433.
[32] F. Isensee, P. F. Jaeger, S. A. A. Kohl, J. Petersen, and K. H. Maier-Hein, “nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation,” Nat. Methods, vol. 18, no. 2, pp. 203–211, 2021, doi: 10.1038/s41592-020-01008-z.
[33] R. Yamashita, M. Nishio, R. K. G. Do, and K. Togashi, “Convolutional neural networks: an overview and application in radiology,” Insights Imaging, vol. 9, no. 4, pp. 611–629, 2018, doi: 10.1007/s13244-018-0639-9.
[34] M. Yeung, E. Sala, C.-B. Schönlieb, and L. Rundo, “Unified Focal loss: Generalising Dice and cross entropy-based losses to handle class imbalanced medical image segmentation,” Comput. Med. Imaging Graph., vol. 95, p. 102026, 2022, doi: 10.1016/j.compmedimag.2021.102026.
[35] Y. Bian, C. Si, and L. Wang, “Diabetic Retinopathy Lesion Segmentation Method Based on Multi-Scale Attention and Lesion Perception,” Algorithms, vol. 17, no. 4, p. 164, 2024, doi: 10.3390/a17040164.
[36] D. Hassan, H. M. Gill, M. Happe, A. D. Bhatwadekar, A. R. Hajrasouliha, and S. C. Janga, “Combining transfer learning with retinal lesion features for accurate detection of diabetic retinopathy,” Front. Med., vol. 9, p. 1050436, 2022, doi: 10.3389/fmed.2022.1050436.
[37] K. Yue, B. Zou, Z. Chen, and Q. Liu, “Retinal vessel segmentation using dense U-net with multiscale inputs,” J. Med. Imaging, vol. 6, no. 3, p. 34004, Jul. 2019, doi: 10.1117/1.JMI.6.3.034004.
[38] Q. Zhang et al., “AOSLO-net: A Deep Learning-Based Method for Automatic Segmentation of Retinal Microaneurysms From Adaptive Optics Scanning Laser Ophthalmoscopy Images,” Transl. Vis. Sci. Technol., vol. 11, no. 8, p. 7, Aug. 2022, doi: 10.1167/tvst.11.8.7.
[39] N. Bice et al., “A sensitivity analysis of probability maps in deep-learning-based anatomical segmentation,” J. Appl. Clin. Med. Phys., vol. 22, no. 8, pp. 105–119, Aug. 2021, doi: 10.1002/acm2.13331.
[40] A. A. Taha and A. Hanbury, “Metrics for evaluating 3D medical image segmentation: analysis, selection, and tool,” BMC Med. Imaging, vol. 15, p. 29, 2015, doi: 10.1186/s12880-015-0068-x.
[41] L. Maier-Hein et al., “Metrics reloaded: recommendations for image analysis validation,” Nat. Methods, vol. 21, no. 2, pp. 195–212, 2024, doi: 10.1038/s41592-023-02151-z.
[42] D. Chicco, A. Sichenze, and G. Jurman, “A simple guide to the use of Student’s t-test, Mann-Whitney U test, Chi-squared test, and Kruskal-Wallis test in biostatistics,” BioData Min., vol. 18, p. 56, 2025, doi: 10.1186/s13040-025-00465-6.
[43] S. S. Shapiro and M. B. Wilk, “An analysis of variance test for normality (complete samples),” Biometrika, vol. 52, no. 3–4, pp. 591–611, Dec. 1965, doi: 10.1093/biomet/52.3-4.591.
[44] F. Wilcoxon, “Individual Comparisons by Ranking Methods,” in Breakthroughs in Statistics: Methodology and Distribution, S. Kotz and N. L. Johnson, Eds. New York, NY, USA: Springer, 1992, pp. 196–202, doi: 10.1007/978-1-4612-4380-9_16.
[45] J. Cohen, Statistical Power Analysis for the Behavioral Sciences, 2nd ed. Hillsdale, NJ, USA: Lawrence Erlbaum Associates, 1988. doi: 10.4324/9780203771587.
[46] J. van Doorn, A. Ly, M. Marsman, and E.-J. Wagenmakers, “Bayesian rank-based hypothesis testing for the rank sum test, the signed rank test, and Spearman’s ρ,” J. Appl. Stat., vol. 47, no. 16, pp. 2984–3006, 2020, doi: 10.1080/02664763.2019.1709053.
[47] S. Holm, “A Simple Sequentially Rejective Multiple Test Procedure,” Scand. J. Stat., vol. 6, no. 2, pp. 65–70, 1979, doi: 10.2307/4615733.
[48] B. Efron and R. J. Tibshirani, An Introduction to the Bootstrap. New York, NY, USA: Chapman & Hall, 1993. doi: 10.1007/978-1-4899-4541-9.
[49] C. Xu et al., “Prior-guided attention fusion transformer for multi-lesion segmentation of diabetic retinopathy,” Sci. Rep., vol. 14, no. 1, p. 20892, 2024, doi: 10.1038/s41598-024-71650-6.
[50] S. Wang, Y. Chen, and Z. Yi, “nmODE-Unet: A Novel Network for Semantic Segmentation of Medical Images,” Appl. Sci., vol. 14, no. 1, p. 411, Jan. 2024, doi: 10.3390/app14010411.
[51] M. Herrero-Tudela et al., “DDFU-Net: A Deep Decoder-Focused U-Net Model for Retinal Lesion Segmentation,” Ann. Biomed. Eng., vol. 54, no. 9, pp. 3231–3251, 2026, doi: 10.1007/s10439-026-04032-w.
Copyright (c) 2026 Suluh Arif Wibowo, S.Kom., Erwin Erwin (Author)

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution-ShareAlikel 4.0 International (CC BY-SA 4.0) that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).







