Conflict-Aware Exact-Byte Auditing and Grouped Splitting for Diabetic Retinopathy Grading
Main Article Content
Keywords
diabetic retinopathy grading, exact-byte audit, data leakage, label conflict, group-atomic splitting, data integrity
Abstract
Byte-identical fundus files that cross data partitions or carry conflicting labels can distort evaluations of diabetic retinopathy grading. In the four-grade subset of Bangladesh Multi-Disease Retinal Dataset version 1, we audited file identity and compared conflict exclusion, grouped splitting, and duplicate canonicalization. Among 896 records, SHA-256 grouping followed by direct bytewise confirmation found 117 duplicate pairs, including 45 label-conflict pairs; exclusion retained 806 records in 734 groups. A decoded-RGB sensitivity audit yielded no further mergers. Across six controlled protocols, conflict-aware grouped splitting and its unique-record counterpart eliminated the defined overlap and conflict violations, retaining 806 and 734 records, respectively. A paired training-only multiplicity comparison then used shared unique validation and test cohorts across five grouped splits. Mean quadratic weighted kappa reached 0.645 with duplicate-retaining training and 0.601 with unique-record training; the paired mean difference was 0.044 and remained positive in all five splits. In a controlled leakage injection, training size, class counts, row order, validation, and test data were fixed. Mean kappa changed from 0.557 without exact train–test overlap to 0.625 at 74.5% overlap, although the intermediate means were non-monotonic. Claims are confined to exact-byte integrity within BMRD v1 and do not imply patient-level independence or clinical generalization.
References
- [1]Gulshan, V., and others, “Development and validation of a deep learning algorithm for detection of diabetic retinopathy in retinal fundus photographs,” JAMA, 316, (22), 2402–2410, 2016, https://doi.org/10.1001/jama.2016.17216.
- [2]Ting, D. S. W., and others, “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, (22), 2211–2223, 2017, https://doi.org/10.1001/jama.2017.18152.
- [3]Sahlsten, J., Jaskari, J., Kivinen, J., Turunen, L., Jaanio, E., Hietala, K., and Kaski, K., “Deep learning fundus image analysis for diabetic retinopathy and macular edema grading,” Scientific Reports, 9, 10750, 2019, https://doi.org/10.1038/s41598-019-47181-w.
- [4]Galdran, A., Dolz, J., Chakor, H., Lombaert, H., and Ayed, I. B., Cost-sensitive regularization for diabetic retinopathy grading from eye fundus images, Medical image computing and computer assisted intervention–MICCAI 2020, 665–674, 2020, https://doi.org/10.1007/978-3-030-59722-1_64.
- [5]Kapoor, S., and Narayanan, A., “Leakage and the reproducibility crisis in machine-learning-based science,” Patterns, 4, (9), 100804, 2023, https://doi.org/10.1016/j.patter.2023.100804.
- [6]Davis, S. E., Matheny, M. E., Balu, S., and Sendak, M. P., “A framework for understanding label leakage in machine learning for health care,” Journal of the American Medical Informatics Association, 31, (1), 274–280, 2024, https://doi.org/10.1093/jamia/ocad178.
- [7]Varoquaux, G., and Cheplygina, V., “Machine learning for medical imaging: Methodological failures and recommendations for the future,” npj Digital Medicine, 5, (1), 2022, https://doi.org/10.1038/s41746-022-00592-y.
- [8]Rouzrokh, P., Khosravi, B., Faghani, S., Moassefi, M., Garcia, D. V. V., Singh, Y., Zhang, K., Conte, G. M., and Erickson, B. J., “Mitigating bias in radiology machine learning: 1. Data handling,” Radiology: Artificial Intelligence, 4, (5), e210290, 2022, https://doi.org/10.1148/ryai.210290.
- [9]Yagis, E., Atnafu, S. W., Herrera, A. G. S. de, Marzi, C., Scheda, R., Giannelli, M., Tessa, C., Citi, L., and Diciotti, S., “Effect of data leakage in brain MRI classification using 2D convolutional neural networks,” Scientific Reports, 11, (1), 2021, https://doi.org/10.1038/s41598-021-01681-w.
- [10]Tampu, I. E., Eklund, A., and Haj-Hosseini, N., “Inflation of test accuracy due to data leakage in deep learning-based classification of OCT images,” Scientific Data, 9, (1), 580, 2022, https://doi.org/10.1038/s41597-022-01618-6.
- [11]National Institute of Standards and Technology, Secure hash standard (SHS), National Institute of Standards; Technology, 2015, https://doi.org/10.6028/NIST.FIPS.180-4.
- [12]Truong, T., Jush, F. K., and Lenga, M., Benchmarking pretrained vision embeddings for near- and duplicate detection in medical images, 2024 IEEE international symposium on biomedical imaging, 1–5, 2024, https://doi.org/10.1109/ISBI56570.2024.10635550.
- [13]Northcutt, C. G., Athalye, A., and Mueller, J., Pervasive label errors in test sets destabilize machine learning benchmarks, Advances in neural information processing systems, datasets and benchmarks track, 2021, https://openreview.net/forum?id=XccDXrDNLek.
- [14]Shi, J., Zhang, K., Guo, C., Yang, Y., Xu, Y., and Wu, J., “A survey of label-noise deep learning for medical image analysis,” Medical Image Analysis, 95, 103166, 2024, https://doi.org/10.1016/j.media.2024.103166.
- [15]Oakden-Rayner, L., Dunnmon, J., Carneiro, G., and Ré, C., Hidden stratification causes clinically meaningful failures in machine learning for medical imaging, Proceedings of the ACM conference on health, inference, and learning, 151–159, 2020, https://doi.org/10.1145/3368555.3384468.
- [16]Gebru, T., Morgenstern, J., Vecchione, B., Vaughan, J. W., Wallach, H., III, H. D., and Crawford, K., “Datasheets for datasets,” Communications of the ACM, 64, (12), 86–92, 2021, https://doi.org/10.1145/3458723.
- [17]Ema, R. R., Bangladesh multi-disease retinal dataset (BMRD), Mendeley Data, 2025, https://doi.org/10.17632/959whsbc6v.1.
