arXiv:2611.01992eess.IVNov 2026

Manuscript Offprint

arXiv:2611.01992

Cross-Dataset Generalization of Glaucoma Detection CNNs: Effects of Operating Threshold, Multi-Source Training, and Color Normalization

Al-Amin Rahman, Saifuddin Ahmed, Resalat Ahmed

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Al-Amin Rahman*

Department of Electrical and Electronic Engineering

alaminrahman.eee.33@gmail.com

Saifuddin Ahmed

Department of Electrical and Electronic Engineering

sec.saifuddin@gmail.com

Resalat Ahmed

Department of Electrical and Electronic Engineering

ahmedresalat35@gmail.com

Sylhet Engineering College, Sylhet, Bangladesh

(Affiliated with Shahjalal University of Science & Technology, Sylhet)

Abstract—Deep learning models for glaucoma detection are often tested on images from the same dataset used for training. This does not show how the model will work at a new hospital or with a new camera. We studied this problem using five ImageNet-pretrained CNNs (ResNet50, DenseNet121, MobileNetV2, EfficientNet-B0, and InceptionV3). Each was fine-tuned with identical settings on one of three public fundus datasets (ACRIMA, ORIGA, and RIM-ONE DL), then tested on a held-out part of its own dataset and on the other two datasets in full. All experiments used three random seeds, and we report mean ± SD over seeds. We also examined threshold recalibration, multi-source training, four image normalization methods, and stronger color augmentation to determine whether these approaches could improve transfer performance. The mean in-domain AUC was 0.913, compared with 0.702 for cross-source testing, a drop of 0.211 (SD 0.030; 95% CI 0.135 to 0.286). After correction for multiple comparisons, we found no evidence that any architecture was better than the others, although three seeds give low power. At thresholds chosen on the source validation sets, mean specificity fell from 0.870 to 0.506 and mean sensitivity from 0.831 to 0.726. Recalibrating the threshold on 10% of the target images raised specificity to 0.670 but lowered sensitivity to 0.609, and balanced accuracy rose only from 0.616 to 0.639. Multi-source training did not improve mean held-out AUC compared with single-source training (0.695 versus 0.702). Among the four normalization methods and a stronger color augmentation, LAB reference normalization (cross-source AUC 0.755; paired gain 0.053, 95% CI 0.046 to 0.060 across seeds) and strong color augmentation (0.754; wider brightness, contrast, saturation and hue changes) gave similar results, reducing the drop to 0.155 and 0.158. Ben Graham normalization (0.733) and CLAHE (0.712) gave smaller gains, and gray-world normalization (0.696) gave none. The two best methods raised specificity but lowered sensitivity. On a fourth dataset, G1020, used only for testing, AUC stayed between 0.492 and 0.502 in every condition, and networks trained and tested within G1020 were also close to chance. These findings show that strong in-domain performance does not guarantee reliable cross-dataset glaucoma detection, and that normalization and color augmentation reduce the drop but do not remove it. Studies should include external validation and a check of the operating threshold, not only discrimination.

Index Terms— Glaucoma detection, fundus images, cross-dataset generalization, convolutional neural networks, transfer learning, threshold recalibration, image normalization, color augmentation.

I. INTRODUCTION

Glaucoma is a disease of the optic nerve. It is one of the main causes of permanent blindness in the world [1], [2]. Tham et al. estimated that 64.3 million people aged 40 to 80 years had glaucoma in 2013. They expected this number to reach 111.8 million by 2040 [1]. The damage cannot be reversed. In the early stage there are usually no symptoms, so the disease is found by looking at the optic nerve head [2]. A color fundus photograph shows the optic disc at low cost. Doctors look at the size of the cup compared with the disc (the cup-to-disc ratio), the shape of the rim and the nerve fiber layer. Grading photographs by hand takes time and depends on the skill of the grader. For this reason, automatic screening is attractive, especially where there are few specialists.

Deep learning has shown good agreement with doctors in diabetic retinopathy screening [3]. Many groups have also used convolutional neural networks (CNNs) for glaucoma [4]–[7]. Reported AUC values are often above 0.95. In many of these papers, the training and test images come from the same dataset. They share the same camera, the same hospital, the same cropping and the same labeling habits. A screening tool will not be used under these conditions. It will get images from other devices and other patients. A model that was only checked on its own dataset may behave very differently there. Drops of this kind were found for chest radiographs [8]. The problem of dataset bias in image classification is older than deep learning [9].

In this study we ask a simple question. If a standard ImageNet pre-trained CNN is fine-tuned on one public glaucoma dataset, how much AUC is lost on images from another public dataset? Do some architectures lose less than others? We also ask whether image normalization or a stronger color augmentation can reduce the loss. We do not propose a new network. We use five well-known architectures from one library, train them with one fixed protocol, and report what happens when the test images come from a different source.

The contributions of this paper are as follows.

  1. A comparison of five pre-trained CNNs under identical training settings (same optimizer, learning rate, epochs and 224 × 224 input, with no per-model tuning). Each model was trained on each of three public datasets and tested in-domain and on the other datasets, with three random seeds. Results are given as mean ± SD over seeds.

*Corresponding author: alaminrahman.eee.33@gmail.com

  1. A measurement of the AUC drop from in-domain to cross-source testing for each model and each source dataset. We also report sensitivity and specificity at the threshold chosen on the source validation set.

  2. A check of the G1020 dataset. We computed the cup-to-disc ratio from its masks and also trained and tested the networks inside G1020. G1020 was close to unpredictable for all models, so we use it only as a separate test set.

  3. A test of threshold recalibration. The threshold of each trained network was set again on a small labeled sample (10%) of the target dataset. We compared sensitivity and specificity with the source threshold on the remaining target images.

  4. A leave-one-source-out test of multi-source training. A network was trained on two datasets together and tested on the third. A size-matched control separates the effect of more data from the effect of more varied data.

  5. A comparison of gray-world, Ben Graham, CLAHE and LAB reference normalization with a stronger color augmentation. We report paired seed-level AUC changes, sensitivity and specificity, source-target effects and a separate G1020 test.

The paper is organized as follows. Section II gives related work. Section III describes the datasets, models and protocol. Section IV gives the results. Section V discusses them and the limits of the study. Section VI concludes.

References (42)