Manuscript Offprint
arXiv:2608.31094Robust retinal biometrics for patient identity verification and retrieval across age and imaging devices
Introduction
Reliable patient identity is a prerequisite for safe digital medicine. Modern healthcare systems and large population databases increasingly depend on longitudinal electronic health records, imaging archives, screening programs, and AI-enabled decision support. These systems assume that each examination, image, diagnosis, and clinical label is correctly linked to the individual to whom it belongs. In practice, however, patient identity errors do occur , leading to consequences ranging from administrative inconvenience to the exclusion of valid measurements, fragmentation of clinical records, misattribution of findings to the wrong person, pollution of research databases, and downstream decisions based on incomplete or incorrect information . Medical imaging is no exception because many clinical, screening, and research workflows rely on human entry of a patient identifier at the point of capture , making them vulnerable to human error . When such errors are discovered retrospectively, correcting mistakes in image identity can require searching across large PACS repositories making systematic correction difficult and often impractical.
However, many medical imaging modalities capture anatomical structures that can serve as biometric identifiers because they contain patterns that are highly unique of an organ or individual. This creates an opportunity to use the image itself to detect identity mismatches and recover the correct identity . In radiology, this idea has been explored using a range of image-matching approaches, including normalized cross-correlation, hand-crafted image features, and template- or edge-based methods . In computer vision and pattern recognition, the related task of matching observations to the correct individual is commonly referred to as person re-identification , and has been extensively studied using faces or body appearance. More recently, deep metric learning has enabled patient identity to be used directly as a supervision signal, allowing models to learn image representations in which images from the same individual are close together and those from different individuals are separated. Such approaches have shown that chest X-rays can support patient re-identification across repeated examinations and substantial time intervals . Similar AI-based approaches have also been investigated using MR imaging and trunk CT, including for applications in data curation . Together, these studies suggest that medical images can contain sufficient identity information to support automated patient verification and retrieval.
Retinal imaging is a particularly promising setting for this approach. Retinal vascular patterns, visible in commonly used modalities such as color fundus imaging (CFI) and optical coherence tomography (OCT), have long been described as highly individual and have even been shown to differ between monozygotic twins . At the same time, retinal imaging is no longer confined to specialist ophthalmology clinics. Its use is expanding through national diabetic-eye screening programs , teleophthalmology , portable color fundus cameras, assistive AI systems in primary care, and emerging ‘oculomics’ applications . Despite this growing volume and diversity of retinal imaging, the use of retinal images as biometric identifiers for patient verification and retrieval has received comparatively little attention. Early work explored matching retinal vascular patterns using fuzzy logic and detection of vascular bifurcations and crossings . More recently, deep learning foundation models have been investigated for patient retrieval from ophthalmic images, demonstrating that retinal images contain information that can support re-identification . A response to this article argued that the re-identification ability of the model could be explained by the presence of near-duplicate images in the evaluation set, highlighting the importance of dataset composition . However, these studies did not primarily aim to develop and optimize a system for patient re-identification. Transfer performance to independent datasets or performance across clinically relevant imaging and longitudinal scenarios was not evaluated. Reported identity retrieval performance also remains considerably below that achieved in several radiological imaging settings and is further thrown into question by the concern about near-duplicate images.
It therefore remains unclear whether AI-based retinal biometrics can provide a robust and generalizable solution to patient identity errors in clinical and research settings. In this study, we address this question by developing and comprehensively evaluating an AI-based system for identity verification and image retrieval in longitudinal ophthalmic cohorts. We use CFIs from the Rotterdam Study (RS), a large population-based cohort containing over 30 years of repeated ophthalmic imaging, which enables training and evaluation across diverse ages, imaging devices, image quality levels, and retinal fields. In addition to evaluation in a held-out RS evaluation set, we assess transfer performance in two independent population databases: the UK Biobank and AREDS.
Due to the presence of patient identity errors in the evaluation datasets themselves, we start by performing a rigorous identity label expert audit before final evaluation of our model. In addition to a correct evaluation set, the identity audit of the evaluation datasets provides a case study in the application of our verification system in real population-scale retinal imaging databases. We then evaluate the performance of our system in two complementary tasks: identity verification, in which the goal is to determine whether an image belongs to the claimed individual, and identity retrieval, in which the goal is to identify the correct individual from a database. Evaluation is performed under various clinically relevant scenarios, including the removal of near-duplicate images. Finally, we characterize the latent features learnt by our system with respect to imaging device and patient demographics and health characteristics.
We propose that AI-based retinal image patient verification and identity retrieval systems may represent a powerful technology in clinical settings, by helping mitigate the effects of human error, both by retrospectively correcting existing records and by integrating safeguards in future systems. To support these goals, we make our system available for clinical and research purposes under an End User License Agreement.
Identity Encoder Training

Training set: 227 004 images / 21 851 identities (patient-eye)
Application in clinical and research workflows

Figure 1. Overview of our system, which is based on an Identity Encoder with a ConvNextV2 backbone, a combination of Triplet and ArcFace losses, and trained on longitudinal imaging with 21851 patient-eye identities. The encoder was trained to produce identity embeddings, where images from the same patient-eye cluster together in embedding space, while images from distinct patient-eyes are separated. The system is evaluated in two clinical and research applications: 1) Identity verification, where an incoming or target image's embeddings are compared to the embeddings from a patient's existing images to flag wrong identity assignments before they occur, or to retrospectively flag issues in existing databases. 2) Patient identity retrieval, where the goal is to find the correct patient identity given an image.
Training and evaluation databases
We made use of large databases with color fundus imaging to train and evaluate our system. The Rotterdam Study (RS) is an ongoing, prospective, population-based cohort study conducted in the Ommoord district of Rotterdam, the Netherlands. It was initiated in 1990 to investigate chronic diseases in middle-aged and older adults. In total, the RS includes approximately 15,000 participants aged 45 years. Participants undergo repeated examinations and longitudinal follow-up, including extensive clinical, imaging, genetic, and lifestyle assessments. The RS contains CFIs from various conventional monoscopic fundus cameras as well as stereoscopic CFIs (Topcon Corp., Tokyo, Japan). Both macula and optic disc-centered CFIs were included. The resulting dataset contained 327,519 images from 15,705 participants with a range of follow up between zero (single-visit) and 32.61 years. The mean follow-up was 8.6 years, with an average of 2.7 visits per patient, and a maximum of 8.
Because left and right eyes contain distinct anatomical patterns, and attribution mistakes often involve mis-assignment of left-right eye laterality, we defined the identity as the participant-eye combination. In other words, left and right eyes from the same participant are treated as separate identities for training and evaluation purposes. The RS dataset was divided at the identity level into a 70/10/20 split for training, validation and testing / benchmarking. This ensured that no participant-eye identity was shared between the training and held-out test sets. The resulting dataset consisted of 21,851 training identities (227,004 CFIs); 3,123 validation identities (32,477 CFIs); and 6,243 testing / benchmarking identities (65,018 CFIs).
For external evaluation, we used CF imaging from the UK Biobank (UKBB) – a large-scale, population-based prospective cohort of approximately 500,000 participants from the United Kingdom – and from the Age-Related Eye Disease Study (AREDS) – a large, multicenter, longitudinal clinical study designed primarily to investigate age-related macular degeneration and collected in the United States across 11 clinical sites .
Of the UKBB cohort, 68,514 participants with mean age 57.3 years (standard deviation of 8.2) underwent retinal imaging between 2009 and 2010 at 6 assessments centers. CFIs in the UK Biobank were acquired using a Topcon 3D OCT-1000 Mark II camera with a 45° field-of-view and are macula-centered . Our evaluation set consisted exclusively of subjects with repeat imaging (two visits), which amounted to 2,254 patients, 4,440 identities, and 8,880 CFIs. In most cases, this set contains a single image per visit per eye. Of these visits, only 33 contain a repeat image, usually due to the first CFI being of poor quality. In these cases, we kept only the latest image to ensure consistency.
The AREDS dataset was collected between 1992 and 1998 from participants aged 55–80 years with varying degrees of AMD who were enrolled and followed longitudinally . CFI images were captured by the Zeiss FF450 camera over a mean follow-up time of 7.2 years, with a maximum of 12 years. The mean number of visits per patient was 7.6, with a maximum of 15. Our evaluation set consists of 4,474 patients, 8,882 identities and 156,853 CFIs. AREDS includes CFIs centered on the macula, the optic disc, and peripheral regions, usually temporal to the macula.
Identity encoder model development
The foundation of our system was an identity encoder trained as a metric-learning model. Because our goal was to design an AI system for biometric recognition robust to imaging differences, we drew on best practices from computer vision literature on face recognition and person re-identification . The training objective combined additive angular-margin softmax loss (ArcFace), originally developed for face recognition with triplet loss, which directly encourages an embedding space suited to retrieval-based matching . The triplet loss encouraged embeddings from the same patient-eye identity to be closer than embeddings from different identities by a margin, while the ArcFace loss promoted angular separation between identity classes on the normalized embedding hypersphere.
A ConvNextV2-Tiny architecture initialized from ImageNet-pretrained weights was used as the backbone. This choice was motivated by the strong performance of ConvNeXt-style convolutional backbones across image benchmarks, as well as evidence that ImageNet-pretrained representations transfer well to downstream visual recognition tasks . The original classification layer was replaced by an embedding head consisting of a linear projection to a 512-dimensional vector followed by batch normalization. The resulting embedding was L2-normalized, and Euclidean distances in this normalized embedding space were used both during training and at inference for identity verification and retrieval. Images were resized to pixels and normalized using ImageNet statistics.
We used PK identity sampling together with hard triplet mining, following established practice in person re-identification . PK sampling constructs each training batch by selecting a fixed number of patient identities (P) and multiple images per identity (K), ensuring that each batch contains both same-identity and different-identity examples for metric learning. In our setting, each batch contained 8 identities with 4 images per identity. Hard triplet mining then selected the most challenging examples within the batch—the most dissimilar same-identity image as the positive and the most similar different-identity image as the negative—to focus learning on difficult identity comparisons. Together, these strategies provided informative within-batch comparisons and encouraged representations that are robust to within-patient imaging variation while separating similar-looking patients.
We applied stochastic augmentations designed to preserve identity-relevant retinal structure while improving robustness to acquisition variability. These included random centered circular field-of-view crops, small affine perturbations with translation, scaling, and rotation, photometric augmentation through color jitter, gamma correction, contrast enhancement, and warm yellow-purple color shifts, as well as occasional defocus blur and Gaussian noise. Random rectangular erasing was applied to up to 25% of the image area to reduce reliance on localized artifacts. Supplementary Figure 1 displays a random sample of training and testing identities as presented to the model.
The ConvNeXtV2 backbone was fine-tuned end-to-end using the AdamW optimizer. Models were trained for up to 60 epochs with mixed precision, with hyperparameters and stopping criteria selected based on validation mean average precision (mAP). For inference, the classification head was discarded, and patient identity verification and retrieval were performed using distances between the normalized embeddings.
Identity label audit of the evaluation databases
Large research datasets such as RS, UKBB, and AREDS likely contain a fraction of identity assignment errors and unusable images. We therefore performed a structured identity-label audit of the evaluation databases before the final performance evaluation. The objectives were to identify images that were assigned to the wrong patient-eye label, identify images with no visible anatomy that would make them impossible to adjudicate, and establish a reliable ground truth for evaluating the model. The audit also provided an opportunity to assess the occurrence of identity mis-adjudication in large ophthalmic imaging databases.
Because a complete manual review of all images would be impractical at the scale of these datasets, we used the identity encoder as a screening tool to identify candidate identity inconsistencies for expert review. Importantly, model-based screening was used only to determine which images warranted further review; the model output was not used as the criterion for determining whether an image was incorrectly labelled. Final decisions were made by ophthalmic researchers experienced in retinal vascular analysis of color fundus images, based on direct visual comparison of retinal anatomy.
For each recorded patient-eye identity containing at least two images, the identity encoder was first used to extract an embedding for every CFI. All pairwise Euclidean distances between images assigned to the same patient-eye identity were then calculated. These distances were used to construct an undirected graph for each identity, in which two images were connected when their embedding distance was below a same-identity verification threshold calibrated on the independent validation set. Connected components were identified within each graph. The largest component was designated as the main cluster and was taken to represent the predominant identity pattern for that patient-eye. Images belonging to smaller disconnected components were flagged as candidate outliers for expert review.
Each candidate outlier was subsequently reviewed alongside images from its corresponding main cluster. The reviewer assessed the retinal anatomy and classified the image into one of four categories: incorrect identity, correct identity, anatomy not visible, or undecidable other. The review was performed independently of the model output: reviewers were not provided with the model score or distance that had led to the image being flagged.
An image was classified as having an incorrect identity when the expert was certain that it captured a different eye from those in the main identity cluster, based primarily on discordant anatomy. Conversely, an image was classified as having the correct identity when the expert was certain that it corresponded to the same eye as the main cluster. Images were classified as anatomy not visible when the retinal anatomy was not visible in the image, normally due to a failed acquisition. Poor image quality, or blur alone did not qualify for this category when retinal anatomy remained visible. All other cases were classified as undecidable other, indicating that the identity was undecidable for other reasons. To ensure a fair evaluation of the algorithm, only images classified as incorrectly adjudicated or having no visible anatomy were excluded from the primary evaluation set. Images classified as correctly adjudicated or undecidable for other reasons were retained.
For each dataset, the audit proceeded in rounds. The verification threshold was first calibrated to produce five false alerts per 1000 cases in the independent validation set of the Rotterdam Study, for the same verification task. This tight threshold tended to produce a small number of true positive clusters – real mis-assigned images – in the evaluation set, which were audited manually. After excluding images confirmed by expert review to have incorrect identity assignments or no visible anatomy from the database and excluding all previously reviewed images from being flagged again, the screening and review process was repeated using progressively more permissive thresholds calibrated for 10 and 20 false alerts per 1,000 cases. These thresholds increased the number of candidate images presented for review and thereby allowed additional potential identity errors to be identified. The audit was stopped when further relaxation of the threshold resulted predominantly in false alerts and no longer yielded substantial numbers of confirmed identity corrections.
Evaluation of patient verification and identity retrieval performance
We evaluated the performance of our identity encoder as two different but related systems. The rationale was to mimic two relevant applications of our system: patient verification, where the (anonymized) identity assignment of an image is verified; and identity retrieval, in which the system attempts to link an image to the correct patient identity.
Patient verification evaluation
In patient verification, a retinal image has a claimed identity assignment that must be verified. Given a query image and its claimed identity, the system compares the query embedding with embeddings from images assigned to the claimed identity, and flags the assignment when the images are insufficiently similar. We considered two clinically motivated scenarios. In the Retrospective-only scenario, only images acquired before the query date were available as references, representing a real-time check against the patient's existing imaging history. In the Retrospective + Prospective scenario, all other eligible images from the claimed identity were available, representing verification when the complete longitudinal record can be accessed.
Evaluation required to present both correct and incorrect assignments to the system. Correct assignments (negative cases) were constructed trivially by using a query image from the same patient-eye identity as the reference set. Incorrect assignments (positive cases) were constructed from the corresponding negative cases by replacing the query image with an image from a different patient, while matching the same laterality (left or right eye), device, and retinal region (macula, optic disc, or other). This sampling strategy was intended to reflect plausible identity mis-assignments while avoiding cases that could be distinguished trivially
Unless otherwise specified, evaluation was performed after removing near-duplicate images within each eye. Near-duplicates were defined as images of the same retinal region (macula- or optic-disc-centered) acquired during the same visit using the same imaging device. For each such group, only the latest image by timestamp was retained. We additionally evaluated several sub-scenarios to assess robustness to clinically relevant sources of variation. In the Same device scenario, the reference set was restricted to images acquired using the same device as the query, to simulate a database acquired using a single device. In the Near-duplicates sub-scenario, near-duplicate images were included in the evaluation, to measure performance on the complete database. Other sub-scenarios were obtained by stratifying or filtering the full database according to retinal region—optic-disc-centered images (F1) and macula-centered images (F2)— or image quality (Q1+Q2 and Q3+Q4 quartiles). Image quality was estimated using a deep learning model trained on the EyePACS EyeQ quality assessment CFI dataset .
For each verification case, the system calculates the Euclidean distance between the query embedding and the embeddings of all eligible reference images. The verification score was defined as the minimum distance to any reference image belonging to the claimed identity. Thus, a small minimum distance indicates consistency with the claimed identity, whereas a large distance indicates a potentially incorrect assignment. Discrimination between correct and incorrect assignments was quantified using the area under the receiver operating characteristic curve (AUROC). To assess performance at clinically relevant operating points, we used thresholds pre-specified and calibrated on the validation set to generate 5, 10 or 15 false alerts per 1,000 correct assignments. At these operating points, we reported the number of false alerts (false positives) and missed incorrect assignments (false negatives).
Patient identity retrieval evaluation
In our evaluation of patient identity retrieval, the identity of a query image is presumably unknown. The goal of the system is to retrieve the correct identity by comparing the query image's embeddings with those of the full imaging database, known as the gallery. For each query, the system compares its embedding with the embeddings of eligible gallery images and ranks patient identities according to their similarity to the query.
We considered the same two longitudinal scenarios as in the verification evaluation. In the Retrospective + Prospective scenario, the gallery consisted of the complete imaging databases from the Rotterdam Study (RS), UK Biobank (UKBB), and AREDS, after removal of near-duplicate images. In the Retrospective-only scenario, the gallery was restricted to images acquired before the query image, thereby simulating retrieval using only information that would have been available at the time of the query. Queries for which no eligible prior imaging was available for the relevant evaluation were excluded. The same sub-scenarios were used to assess the effect of imaging device, retinal region, and image quality. For the Same device scenario, the gallery was restricted to images acquired using the same device as the query. Other scenarios used galleries restricted to macula- or optic-disc-centered images, or to the Q1+Q2 or Q3+Q4 image-quality quartiles.
Retrieval performance was summarized using Recall@1, Recall@5, and mean average precision (mAP). Recall@1 represents the proportion of queries for which the correct identity was ranked first, whereas Recall@5 represents the proportion for which the correct identity appeared among the five highest-ranked identities. Mean average precision summarizes ranking quality across the complete result list by calculating the average precision for each query and then averaging these values across queries. Together, these metrics capture both the accuracy of the highest-ranked identity and the quality of the broader retrieval ranking.
Analysis of identity embeddings
To characterize the information encoded by the learned identity embeddings, we evaluated their ability to predict imaging-device, demographic, and disease-related variables. The analysis was performed using embeddings generated for CFI images from the Rotterdam Study test set. The variables considered were imaging device, patient sex, age, ethnicity, hypertension, smoking status, age-related macular degeneration (AMD), and glaucoma status. Disease status variables and smoking status were assessed for each RS visit, matching the imaging date. Ophthalmic diseases (AMD and glaucoma) were assessed and linked separately for the left and right eyes.
Each patient-eye identity was represented by a single CFI selected as the image with the highest image-quality score. The resulting dataset was split at the identity level into training, validation, and test sets using a 65%/10%/25% split. For each target variable, an L2-regularized logistic regression classifier was trained using the corresponding identity embedding as input, and a categorical variable as predictive outcome. The regularization strength was selected on the validation set from a predefined grid, and the final classifier was evaluated on the held-out test set. Binary target variables were evaluated using the area under the Area Under the Receiver Operating Characteristic Curve (AUC), while multi-class target variables (ethnicity, imaging device and patient age) were evaluated using multiclass, one-vs-rest AUC.
Results
The evaluation of our system in clinically motivated application scenarios was preceded by a rigorous identity-label audit of the evaluation databases. The following sections present the results from the identity label audit; the main evaluation of our system in patient identity verification and patient identity retrieval, and a characterization of the identity embeddings in relation to demographics and disease variables.
Identity audit of UKBB, AREDS, and Rotterdam Study CFI databases
The audit consisting of manual, expert verification of images flagged by the model as potentially assigned to the wrong patient (see Identity label audit of the evaluation databases in the Methods section) was performed on the Rotterdam Study (evaluation set only), AREDS, and UKBB CFI databases. The audit was performed by one expert for the RS and AREDS databases, and a different auditor for the UKBB database. Both experts reported little difficulty assessing flagged cases when the anatomy was visible in both the flagged and reference images. Cases with little overlap between imaged regions – more common in RS and AREDS – often required more time. Figure 2 shows sample flagged and reference images shown to the expert as part of the identity label audit of the RS database, for the four possible review decisions. Equivalent samples are included in the Supplementary Appendix B for AREDS and UKBB.
Rotterdam Study: manual identity-label audit examples

Figure 2. Samples from the identity label audit of the Rotterdam Study CFIs. The first three columns display images from the majority cluster shown to the human expert. The fourth column (Flagged image) shows the image identified by the system as potentially assigned to the wrong identity. By comparing the vascular patterns in the flagged image with those in the main cluster images, the reviewer decided between confirming an incorrect identity, confirming a correct identity, or an undecidable outcome.
As expected, tighter thresholds tended to produce fewer, more correct candidate images, for which the patient identity was indeed confirmed to be incorrect or undecidable. Initially, a high proportion of flagged images had unrecognizable anatomy due to acquisition failure or extreme poor quality. As the threshold was loosened and the database was cleaned, the number of correct flags and low-quality images decreased until most flags were incorrect or undecidable. Table 1 presents the outcomes from the audit of the suggestions produced by the model at increasingly loose thresholds (calibrated at 5, 10, and 20 FP/1000 samples, for the three databases.
Table 1. Outcome of the identity-label audit of CFIs from the UKBB, AREDS, and Rotterdam Study population databases. Candidate images indicate the number of images flagged as potentially having a wrong identity at the indicated threshold level. "Wrong identity" refers to images that were confirmed to have the wrong identity assignment. "Correct identity" refers to images for which the flag was incorrect, as they were correctly assigned. "Low quality" indicates cases for which the low quality of the images made it impossible to see the vascular patterns and make a decision. "Different region" indicates that there was no apparent overlap between the retinal regions imaged, which made it impossible to make a decision.
| Dataset | Round | Threshold | N images flagged | Incorrect identity | Correct identity | Anatomy not Visible | Undecidable Other |
|---|---|---|---|---|---|---|---|
| Rotterdam | |||||||
| Study | 1 | 5 | 414 | 215 (51.9%) | 1 (0.242%) | 178 (43%) | 20 (4.83%) |
| 2 | 10 | 424 | 109 (25.7%) | 106 (25%) | 135 (31.8%) | 74 (17.5%) | |
| 3 | 20 | 425 | 39 (9.18%) | 246 (57.9%) | 87 (20.5%) | 53 (12.5%) | |
| Total | 1,618 | 363 (22.4%) | 708 (43.8%) | 400 (24.7%) | 147 (9.09%) | ||
|---|---|---|---|---|---|---|---|
| AREDS | 1 | 5 | 934 | 250 (26.8%) | 179 (19.2%) | 241 (25.8%) | 264 (28.3%) |
| 2 | 10 | 1,765 | 8 (0.453%) | 1,201 (68%) | 110 (6.23%) | 446 (25.3%) | |
| Total | 3,349 | 258 (7.7%) | 2,030 (60.6%) | 351 (10.5%) | 710 (21.2%) | ||
| UKBB | 1 | 5 | 552 | 23 (4.17%) | 34 (6.16%) | 470 (85.1%) | 25 (4.53%) |
| 2 | 10 | 252 | 0 (0%) | 166 (65.9%) | 76 (30.2%) | 10 (3.97%) | |
| Total | 804 | 23 (2.86%) | 200 (24.9%) | 546 (67.9%) | 35 (4.35%) | ||
Relative to the total number of CFIs in each database, 0.588% of CFI images in the Rotterdam Study evaluation set were identified by the audit as being misadjudicated, with 0.164% for AREDS and 0.259% for the UK Biobank. For UK Biobank, these were identified as cases where the laterality (left or right eye) of the images was incorrectly recorded, rather than the patient identifier. A further 0.615% of images in the Rotterdam Study, 0.224% of images in AREDS and 6.15% of images in the UKBB were identified during the audit as showing no recognizable anatomy (Anatomy not Visible).
Patient verification
The first main evaluation of our system concerns patient identity verification, where the system decides whether to flag an image as being adjudicated to the wrong identity, given the image itself, and reference image(s) from the claimed identity. In practice, the system uses a threshold on the minimum distance between the embeddings of the target image and any of the images in the reference set to make a decision.
We present verification performance results for several application scenarios and sub-scenarios (see Patient verification evaluation in the Methods section). Table 2 presents the AUROC, false positives per 1000 cases (FP/1000), and false negatives per 1000 cases (FN/1000) for each scenario at a fixed operating point tuned in the held-out validation set. To further characterize performance on each scenario, FP/1000 is also reported for different levels of FN/1000 in the evaluation set, not pre-calibrated in the held-out test set. The number of reference images available to the model is a relevant variable that changes with the sub-scenarios evaluated.
Table 2. Evaluation of patient verification scenarios in a held-out set of identities from the Rotterdam Study. In this application, the model decides whether to flag an image as an identity mis-assignment given the image itself and a reference set of images from the corresponding patient. N indicates the number of cases evaluated. Mean ref. images is the mean number of reference images available from the patient under the scenario. Threshold @ 20 FP/1000 indicates that the metrics were measured using a fixed decision threshold that was calibrated on the held-out validation set for 20 false positives per 1000 images (TODO: log threshold). FN/1000 at fixed FP/1000 indicates the false negative rates measured at a given false positive rate on the benchmark set.
| Scenario | N | Mean ref. images | Threshold @ 15 FP/1000 (val) | FN/1000 at fixed FP/1000 | ||||
|---|---|---|---|---|---|---|---|---|
| AUROC | FP/1000 | FN/1000 | FP=3 | FP=5 | FP=10 | |||
Retrospective-only verification
| Overall (duplicates included) | 78518 | 6.1 | 0.9998 | 3 | 3.5 | 3.5 | 1.1 | 0.1 |
| Overall (duplicates removed) | 48470 | 3.9 | 0.9998 | 2.7 | 2.5 | 2 | 0.4 | 0.1 |
|---|---|---|---|---|---|---|---|---|
| Same device | 20330 | 1.6 | 0.9996 | 6.1 | 2.8 | 12.9 | 4.8 | 0.5 |
| Disc-centred images (F1) | 13150 | 2.1 | 1 | 0.2 | 3.3 | 0.2 | 0.2 | 0 |
| Macula-centred images (F2) | 30816 | 2.5 | 0.9998 | 4.1 | 2.7 | 5.2 | 1.5 | 0.3 |
| Image quality Q1+Q2 (best) | 20476 | 2.6 | 1 | 0.2 | 2.4 | 0 | 0 | 0 |
| Image quality Q3+Q4 (worst) | 20158 | 2.6 | 0.9996 | 5.6 | 3.9 | 13.7 | 5.8 | 1.3 |
| Retrospective + prospective verification | ||||||||
| 11027 | ||||||||
| Overall (duplicates included) | 2 | 13.1 | 0.9999 | 1 | 5.2 | 0.1 | 0 | 0 |
| Overall (duplicates removed) | 70548 | 7.5 | 0.9998 | 1.6 | 4.5 | 0.9 | 0.1 | 0.1 |
| Same device | 67224 | 1.8 | 0.9999 | 2 | 2.7 | 0.5 | 0.1 | 0 |
| Disc-centred images (F1) | 24422 | 3.1 | 1 | 0.2 | 4 | 0.1 | 0 | 0 |
| Macula-centred images (F2) | 44626 | 4.1 | 0.9998 | 2.5 | 3 | 2 | 0.4 | 0 |
| Image quality Q1+Q2 (best) | 34626 | 4.5 | 1 | 0.1 | 4.9 | 0 | 0 | 0 |
| Image quality Q3+Q4 (worst) | 31934 | 4.7 | 0.9996 | 3.5 | 5.3 | 9.4 | 2 | 0.1 |
Table 3 presents equivalent results from external validation on the AREDS and UK Biobank CFI databases. Here, the number of scenarios has been reduced due to some scenarios not being applicable in these datasets. Most notably, the “Same device”, “Disc-centered images” and “Macula-centered images” scenarios have been eliminated since both AREDS and UKBB contain a single device and most or all CFIs are macula-centered.
Table 3. External evaluation of the system in different patient verification scenarios on the AREDS and UK Biobank CFI databases. In this application, the model decides whether to flag an image as an identity mis-assignment given the image itself and a reference set of images from the corresponding patient. N indicates the number of cases evaluated. Mean ref. images is the mean number of reference images available from the patient under the scenario. Threshold @ 10 FP/1000 indicates that the metrics were measured using a fixed decision threshold that was calibrated on the held-out validation set for 10 false positives per 1000 images (TODO: log threshold). FN/1000 at fixed FP/1000 indicates the false negatives rates measured at a given false positive rate on the benchmark set.
| Scenario | N | Mean ref. images | Threshold @ 10 FP/1000 (val) | FN/1000 at fixed FP/1000 | ||||
|---|---|---|---|---|---|---|---|---|
| AUROC | FP/1000 | FN/1000 | FP=3 | FP=5 | FP=10 | |||
UKBB
| Retrospective-only verification | ||||||||
|---|---|---|---|---|---|---|---|---|
| Overall (duplicates removed) | 7742 | 1 | 0.9997 | 13.9 | 0.8 | 16.5 | 9.3 | 1 |
| Image quality Q1+Q2 (best) | 3012 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
| Image quality Q3+Q4 (worst) | 2630 | 1 | 0.9993 | 35 | 0.8 | 89 | 34.2 | 11.4 |
| Retrospective + prospective verification | ||||||||
| Overall (duplicates removed) | 15484 | 1 | 0.9996 | 13.9 | 0.8 | 18.9 | 9.7 | 1.3 |
| Image quality Q1+Q2 (best) | 6024 | 1 | 1 | 0 | 0.7 | 0 | 0 | 0 |
|---|---|---|---|---|---|---|---|---|
| Image quality Q3+Q4 (worst) | 5260 | 1 | 0.9992 | 35 | 1.5 | 84.8 | 29.3 | 14.8 |
| AREDS | ||||||||
| Retrospective-only verification | ||||||||
| 25730 | ||||||||
| Overall (duplicates included) | 2 | 11.9 | 0.9998 | 2.7 | 4.1 | 3 | 0.5 | 0.1 |
| Overall (duplicates removed) | 12904 | 6.4 | 0.9998 | 3.7 | 2.9 | 5.3 | 1.1 | 0.1 |
| Disc-centred images (F1) | 12942 | 3.3 | 0.9999 | 0.6 | 0.6 | 0 | 0 | 0 |
| 11610 | ||||||||
| Macula-centred images (F2) | 0 | 4.5 | 0.9997 | 4.9 | 2.3 | 7.6 | 2.3 | 0.2 |
| Image quality Q1+Q2 (best) | 60378 | 4.7 | 1 | 0.6 | 1.7 | 0 | 0 | 0 |
| Image quality Q3+Q4 (worst) | 56888 | 3.8 | 0.9987 | 18.1 | 3.4 | 116.7 | 56.9 | 17.6 |
| Retrospective + prospective verification | ||||||||
| 29732 | ||||||||
| Overall (duplicates included) | 8 | 22.2 | 0.9999 | 0.5 | 5.5 | 0 | 0 | 0 |
| Overall (duplicates removed) | 14838 | 11.4 | 0.9998 | 2 | 4.4 | 1.7 | 0.3 | 0 |
| Disc-centred images (F1) | 15318 | 5.6 | 0.9999 | 0.4 | 1.4 | 0 | 0 | 0 |
| 13305 | ||||||||
| Macula-centred images (F2) | 6 | 7.8 | 0.9998 | 2.8 | 2.7 | 2 | 0.3 | 0 |
| Image quality Q1+Q2 (best) | 75048 | 7.9 | 1 | 0.3 | 2.9 | 0 | 0 | 0 |
| Image quality Q3+Q4 (worst) | 69544 | 6.2 | 0.9997 | 5.3 | 4.7 | 13.3 | 5.4 | 0.9 |
Image-based retrieval of the correct patient identity
The second main application of our system is patient identity retrieval, where the model, given a query image and a gallery of images assigned to ground truth identities, must associate the query image with the most likely identity from the gallery. Our system simply selects the identity of the image with the most similar embeddings, compared to those of the query image. We measured retrieval performance results for several application scenarios and sub-scenarios (see Patient identity retrieval evaluation in the Methods section).
Table 4. Results of the retrospective patient identity retrieval evaluation on the Rotterdam Study, UKBB, and AREDS CFI databases. In this scenario that system had access only to imaging acquired previous to the query image. N queries indicates the number of images queried, Mean comparison identities is the average number of identities in the gallery, across all queries.
| Scenario | N queries | Mean comparison identities | Mean images / identity | Recall@1 | Recall@5 | mAP |
|---|---|---|---|---|---|---|
| Rotterdam Study | ||||||
| Overall (duplicates included) | 3360 | 4482 | 4.7 | 0.997 | 0.998 | 0.998 |
| Overall (duplicates removed) | 3271 | 4435.8 | 3.3 | 0.997 | 0.997 | 0.997 |
| Same device | 3058 | 3082 | 1.9 | 0.993 | 0.994 | 0.994 |
| Disc-centred images (F1) | 1540 | 3186.7 | 2.5 | 1 | 1 | 1 |
| Macula-centred images (F2) | 3170 | 4307.5 | 2.6 | 0.995 | 0.995 | 0.995 |
| Image quality Q1+Q2 (best) | 2015 | 3532.6 | 2.3 | 1 | 1 | 1 |
| Image quality Q3+Q4 (worst) | 2009 | 3706 | 2.3 | 0.992 | 0.995 | 0.993 |
UK Biobank
| Overall (duplicates included) | 1971 | 4339 | 1 | 0.975 | 0.989 | 0.981 |
|---|---|---|---|---|---|---|
| Overall (duplicates removed) | 1976 | 4339 | 1 | 0.972 | 0.987 | 0.979 |
| Image quality Q1+Q2 (best) | 779 | 2472 | 1 | 0.999 | 1 | 0.999 |
| Image quality Q3+Q4 (worst) | 688 | 1867 | 1 | 0.935 | 0.974 | 0.951 |
| AREDS | ||||||
| Overall (duplicates included) | 7084 | 8511.3 | 8.8 | 0.983 | 0.989 | 0.986 |
| Overall (duplicates removed) | 7128 | 8509.8 | 4.7 | 0.976 | 0.986 | 0.98 |
| Disc-centred images (F1) | 993 | 1189.8 | 3.3 | 0.998 | 0.998 | 0.998 |
| Macula-centred images (F2) | 7123 | 8515.6 | 3.7 | 0.985 | 0.991 | 0.988 |
| Image quality Q1+Q2 (best) | 4797 | 6676.9 | 3.1 | 0.989 | 0.992 | 0.991 |
| Image quality Q3+Q4 (worst) | 5240 | 6787.9 | 3 | 0.943 | 0.962 | 0.952 |
Table 4 presents the retrieval metrics – Recall@1, Recall@5 and mAP – for the scenario in which the model has access only to prior imaging for each identity (Retrospective-only scenario). Results for the Retrospective + Prospective scenario are included in Appendix C.
Identity embeddings have limited predictive power towards demographic variables
Finally, we investigated whether the learned identity embeddings encoded information beyond patient-eye identity. Table 5 presents the performance evaluation of logistic regression models trained to predict demographic and disease variables from the identity embeddings of our model, in the Rotterdam Study evaluation set.
Table 5. Evaluation of CFI identity embeddings for predicting imaging, demographic and disease targets. Results suggest limited discriminative power of identity embeddings towards prediction of these variables.
| Target | N identities | N train | N test | N classes | Test AUC |
|---|---|---|---|---|---|
| Ethnicity | 5,566 | 3,617 | 1,392 | 4 | 0.933 |
| Imaging device | 6,243 | 4,057 | 1,561 | 11 | 0.775 |
| Patient age (decade) | 6,242 | 4,056 | 1,561 | 6 | 0.751 |
| AMD | 4,527 | 2,942 | 1,132 | 2 | 0.736 |
| Glaucoma | 3,901 | 2,535 | 976 | 2 | 0.695 |
| Hypertension | 5,677 | 3,689 | 1,420 | 2 | 0.631 |
| Patient sex | 6,240 | 4,056 | 1,560 | 2 | 0.704 |
| Smoking | 4,865 | 3,161 | 1,217 | 2 | 0.630 |
Figure 3 presents t-SNE visualizations of the learned identity embeddings, where each dot represents a single Rotterdam Study CFI. The first panel displays a random sample of identities, while the subsequent panels show the same embeddings stratified by imaging device, patient age, sex, ethnicity, hypertension status (yes/no), age-related macular degeneration (yes/no), glaucoma and smoking status.
Identity (100 identities)
Color indicates identity

Imaging device
Patient sex
Patient age (decade buckets)
Ethnicity (ancestry)
Color
Dev 1
Dev 2
Dev 3
Dev 4
Dev 5
Dev 6
Dev 7
Dev 8
Dev 9
Dev 10
Hypertension
AMD
Color
30s
40s
50s
60s
70s
80s
90s
Color
Admixture
African
East-Asian
European
Glaucoma
Smoking
Color
no
yes
Color
no
yes
Color
no
yes
Figure 3. t-SNE visualizations of our model's identity embeddings, color-coded according to patient-eye identity (first cell) and other imaging, demographic and disease variables such as imaging device; patient sex, age, ethnicity and smoking status; and hypertension, age-related macular degeneration, glaucoma and smoking status. The visualization shows that embeddings clearly discriminate between patient-eye identities, but are less discriminative towards imaging, demographic and disease variables.
Discussion
Our results demonstrate that an AI model trained for patient re-identification on the large, diverse, population-scale color fundus imaging dataset from the Rotterdam Study can accurately detect patient assignment errors and retrieve the correct patient identity from a database of thousands of individuals. The model remained robust across imaging devices and a wide range of patient ages.
The expert verification of images flagged by the model as having potentially incorrect identities (Table 1) revealed that large-scale population databases such as the Rotterdam Study, UK Biobank and AREDS do contain a small proportion of mis-adjudicated images. We estimated this proportion to be up to 0.6% in the Rotterdam Study and 0.2% in both AREDS and UKBB. The identity audit served as a case study demonstrating the application of our system, confirming that the identity embedding distances between target and reference images provided a clear signal for outlier detection. It further highlighted image quality and differences in retinal region – particularly prevalent in AREDS – as factors that can challenge the model and, in some cases, make adjudication impossible even for a human grader.
Evaluation on the diverse Rotterdam Study validation set, comprising images acquired with multiple image devices, varying image quality, and both macula and optic disc-centered fields (Table 1) demonstrated strong performance across all evaluation scenarios. AUROC provided limited discrimination between scenarios because performance approached saturation on most benchmarks. As expected, in the fixed threshold evaluation (Threshold @ 15 FP/1000), the observed false positives rates (FP/1000) were lower than the calibrated 15 FP/1000 because the calibration set was not audited and corrected. FP/1000 and FN/1000 varied substantially across scenarios, indicating that model performance at a fixed pre-calibrated, threshold is highly dependent on database characteristics and scenario assumptions.
Retrospective-only verification, as expected, was more challenging than when prospective imaging was also available to the system. Removal of near-duplicate images (same retinal region, visit and imaging device) had no discernible effect on performance. The likely reason is that in the RS the same retinal region is only imaged more than once during the same visit when the quality of previous photographs is not satisfactory. Limiting query and reference images to the same device (Same device scenario) resulted in only a modest change in performance in both scenarios, despite a much lower number of reference images – as low as 1.6 for the retrospective scenario. Stratification by retinal region (Disc-centred and Macula-centred scenarios) revealed better performance for images centered on the optic disc, with as low as 0.2 FP/1000 and 3.3 FN/1000 for the retrospective scenario. This difference is likely due a better visibility of the major retinal vessels surrounding the optic disc. In many macula-centered images from RS, the field of view includes only a partial view of the optic disc and major retinal vascular arcades, which limits the anatomy available for identity matching. Image quality stratification had an even greater impact on overall performance, with the evaluation on the top 50% of images by quality having the best performance scores across both scenarios, and the evaluation on the bottom 50% having the worst scores.
External evaluation on UKBB and AREDS (Table 2) showed similar strong performance, indicating that the model generalizes well across datasets acquired under different imaging conditions. Performance on the UKBB was high despite this database having only one reference image per query. Performance on AREDS was on par, despite this dataset containing non-standard imaging regions. In both cases, the model achieved perfect or near-perfect performance when restricting the database to disc-centered images, or to the top 50% of images by quality. In both databases, the difference in performance between image quality levels was larger than for the RS. Reasons for this may include domain differences that affect transfer performance differently across quality levels, and potentially a different, less dispersed distribution of image quality levels in these databases.
The retrieval evaluation tested the ability of the model to find the correct patient identity given an image. Retrieval performance was consistently high across datasets and evaluation scenarios. Recall@1 was consistently above 0.97 in the primary retrospective-only scenario after duplicate removal, indicating that the model retrieved the correct identity in more than 97% of cases. In the Rotterdam Study the system ranked the correct identity first in 99.7% of cases in the RS, retrieving the correct individual from a database of 4,436 identities on average, by comparing with 3.3 reference images per identity. The correct identity was ranked amongst the top 5 retrieval results (Recall@5) in at least 98.6% of cases for all databases. Mean average precision (mAP) had a consistent behavior. The size of the gallery – measured as the mean number of comparison identities (Table 4) did not appear to drive performance.
Sub-scenario results were consistent with the identity verification evaluation. In the RS, reducing the gallery to images from the same device as the query resulted in a modest drop in performance in the Retrospective scenario but not in the Retrospective + Prospective scenario, which saw an improvement. This can be attributed to a reduction in the number of matching images of the same retinal region after removal of other-device images. This is likely to affect retrospective queries asymmetrically because they are less likely to have an image with matching field and device in the gallery when compared to the same Retrospective + Prospective query. Retrieval performance was the highest when filtering to F1 images only, and for the top 50% of images by quality, across databases. For images centered on the optic disc, Recall@1 was 100% for the RS and as high as 99.8% for AREDS.
We measured retrieval performance substantially higher than reported in previous work. Nebbia et al. report image-level and patient-level recall scores for a foundation model fine-tuned for CFI retrieval. In their image-level evaluation, equivalent to our evaluation setup, the authors report a Recall@1 of 82.3, internally evaluated on a held-out test set, using a dataset not available publicly. The size of the evaluation gallery is not reported explicitly but is mentioned to be 20% of a 901-patient longitudinal cohort, which is equivalent to 180 patients. The dataset is reported to have 21.7 images per patient on average. There are several likely reasons for the superior performance of our system on larger evaluation sets with less images per patient – which represent more challenging scenarios. Our development set is unique in its diversity and long follow up, where the same eyes were imaged by multiple devices, with a maximum follow up of 30 years[TODO add follow up stats]. The variability in image conditions and the longitudinal differences present in the dataset due to retinal aging likely acted as natural regularizers for our model. Furthermore, we applied best practices from computer vision person re-identification in the development of our model architecture and training pipeline, with strong augmentations, hard triplet mining, a relatively high resolution of 384x384 and a composite loss.
In accordance with the quantitative results, inspection of failure cases (Appendix DAppendix E) revealed that many algorithm mistakes can be explained by imaging factors and anatomical similarity. Most patient verification false positives relate to query images with severe occlusion, blurriness; or an imaging region different from the reference set. Most false negatives correspond to query images with similar vascular patterns as those in the reference images. Similarly, retrieval failures are often for query images with poor quality, severe occlusion of the anatomy, or a non-standard imaging region without visibility of the optic disc. In these cases, the top matching image generally has similar characteristics.
Using identity embeddings to predict imaging, demographic and disease variables revealed that the identity embeddings encode these variables weakly. Ethnicity stood out as the most predictable variable by AUC. However, the RS is highly imbalanced with respect to ethnicity, with around 97% of participants being European, making ethnicity alone unlikely to explain the model's re-identification performance. Nevertheless, previous work has shown that retinal pigmentation, which is associated to ethnicity, can be measured reproducibly from CFIs . We therefore hypothesize that our identity encoder may have learned to use retinal pigmentation as a stable cue for re-identification across time and imaging devices. The device used for imaging was more difficult to predict in comparison, despite its obvious effect on overall image appearance. Age and sex were also less predictable, with AUC scores considerably lower than those reported in previous work for dedicated models . Among the disease variables, age-related macular degeneration showed the strongest association, potentially reflecting the presence of lesions in severe cases that may provide strong re-identification cues. Overall, these findings are consistent with an encoder that relies primarily on anatomical pattern matching, but is not completely agnostic to imaging, demographics, and disease-related factors.
In summary, our results provide the first evidence that a retinal biometrics system for patient identity verification and retrieval can achieve very high performance on diverse longitudinal datasets spanning multiple image devices, participant demographics, and image acquisition conditions representative of both research and clinical settings. In ophthalmology, where clinical care is highly image-driven and longitudinal, we consider that AI-assisted verification and retrieval workflows have the potential to drastically improve the time-effectiveness of identity auditing in clinical and research settings, potentially making new workflows cost-effective; and enhancing the integrity of longitudinal clinical records and research databases. More broadly, the performance and generalizability of our system motivate further research on CFI-based retinal biometrics for clinical deployment, and the extension to other ophthalmic modalities.
Despite the strong performance of our system, our analysis also identified a key limitation when the anatomy – particularly vascular patterns – are not consistently visible in the images. In applications with high proportion of such low quality images, we recommend the deployment of our algorithm in conjunction with a suitable quality filtering algorithm . Furthermore, we do not recommend its application as a fully autonomous correction system without rigorous validation on the target context.
A word on privacy
Our work shows that AI systems can use the retinal anatomy as a powerful biometric identifier. While our work opens the door for new clinical applications, this technology could also be used maliciously to de-identify clinical and research databases that are otherwise considered anonymous. This scenario would require an attacker to be in possession of a second reference database with retinal imaging linked to patient identities. A good identity encoder would allow the attacker to cross-reference images across databases, thereby de-anonymizing patient information. We consider this a highly unlikely scenario due to the current lack of accessible reference databases containing retinal imaging linked to sensitive patient data. Such databases are most often limited to clinical institutions and are protected from public sharing by privacy laws. However, we acknowledge that data leaks of clinical and research data are an ever-present risk .
Furthermore, in recent years, policy discussions around the sharing of personal (medical) data have often centered around the risk of de-identification, with uncertainty about the status of retinal images as biometric identifiers . The public availability of algorithms for retinal biometrics may alter policy decisions around the open sharing of ophthalmic imaging in some parts of the world, potentially curtailing research progress. For that reason, instead of being publicly available, our model will be made available to verified parties for clinical and research purposes under an End User License Agreement (EULA). The EULA requires signing parties to provide a clear motivation for use – commercial or non-commercial – and to commit to an adequate handling and responsible use of the model.
Author Contributions
JDVQ led the conceptualization and planning of the study, designed and developed the proposed system, performed the primary evaluation on the Rotterdam Study and AREDS, and drafted the manuscript. DB contributed with the execution of the identity audit and evaluation on the UKBB and provided feedback on the manuscript. JV and BL contributed with data management related to RS and AREDS, and provided feedback on the manuscript. SB conceived, acquired funding for, and led the VascX Research Consortium. CCWK secured funding for VascX and the RS, supervised ophthalmic data collection within RS, and provided feedback on the manuscript. All authors reviewed and approved the final manuscript.
Acknowledgments & Funding
This work was funded by the Swiss National Science Foundation grant no. CRSII5 209510.394. The Rotterdam Study is funded by Erasmus Medical Center and Erasmus University, Rotterdam, Netherlands Organization for the Health Research and Development (ZonMw), the Research Institute for Diseases in the Elderly (RIDE), the Ministry of Education, Culture and Science, the Ministry for Health, Welfare and Sports, the European Commission (DG XII), and the Municipality of Rotterdam. The authors are grateful to the study participants, the staff from the Rotterdam Study and the participating general practitioners and pharmacists. The authors acknowledge the staff of the EyeNED Reading Center for their contributions.
The Age-Related Eye Disease Study (AREDS) Database used in this study was obtained through the database of Genotypes and Phenotypes (dbGaP), accession number phs000001.v3.p1.
Funding support for AREDS was provided by the National Eye Institute (N01-EY-0-2127). We thank the AREDS participants and the AREDS Research Group for their valuable contributions to this research.
This research has been conducted using the UK Biobank Resource under Application Number 90947.
Data Availability
Data for the primary Rotterdam Study dataset can be obtained upon request. Requests should be directed towards the management team of the Rotterdam Study (datamanagement.ergo@erasmusmc.nl), which has a protocol for approving data requests. Because of restrictions based on privacy regulations and informed consent of the participants, data cannot be made freely available in a public repository. The Rotterdam Study has been approved by the Medical Ethics Committee of the Erasmus MC (registration number MEC 02.1015) and by the Dutch Ministry of Health, Welfare and Sport (Population Screening Act WBO, license number 1071272-159521-PG). The Rotterdam Study has been entered into the Netherlands National Trial Register (NTR) and into the WHO International Clinical Trials Registry Platform (ICTRP) under shared catalogue number NTR6831. All participants provided written informed consent to participate in the study and to have their information obtained from treating physicians.
References
-
Sadigh G, Loehfelm T, Applegate KE, Tridandapani S. JOURNAL CLUB: Evaluation of Near-Miss Wrong-Patient Events in Radiology Reports. AJR Am J Roentgenol. 2015;205(2):337-343. doi:10.2214/AJR.14.13339
-
Morishita J, Watanabe H, Katsuragawa S, et al. Investigation of misfiled cases in the PACS environment and a solution to prevent filing errors for chest radiographs. Acad Radiol. 2005;12(1):97-103. doi:10.1016/j.acra.2004.11.008
-
Toge R, Morishita J, Sasaki Y, Doi K. Computerized image-searching method for finding correct patients for misfiled chest radiographs in a PACS server by use of biological fingerprints. Radiol Phys Technol. 2013;6(2):437-443. doi:10.1007/s12194-013-0221-6
-
Kneifati-Hayek JZ, Geist E, Applebaum JR, et al. Retrospective cohort study of wrong-patient imaging order errors: how many reach the patient? BMJ Qual Saf. 2024;33(2):132-135. doi:10.1136/bmjqs-2023-016162
-
Kim T, Howe J, Franklin E, et al. Health Information Technology–Related Wrong-Patient Errors: Context is Critical. Patient Safety. 2020;2:40-57. doi:10.33940/data/2020.12.3
-
Kuzmak PM, Dayhoff RE. Minimizing Digital Imaging and Communications in Medicine (DICOM) Modality Worklist patient/study selection errors. J Digit Imaging. 2001;14(Suppl 1):153-157. doi:10.1007/BF03190323
-
IHE Radiology Technical Committee. IHE Radiology Technical Framework Supplement - Imaging Object Change Management (IOCM). Published online June 8, 2013. Accessed June 25, 2026.
https://www.ihe.net/uploadedFiles/Documents/Radiology/IHE_RAD_Suppl_IOCM_Rev1.2_TI_2013-09-06.pdf
-
Tridandapani S, Ramamurthy S, Galgano SJ, Provenzale JM. Increasing Rate of Detection of Wrong-Patient Radiographs: Use of Photographs Obtained at Time of Radiography. AJR Am J Roentgenol. 2013;200(4):W345-W352. doi:10.2214/AJR.12.9521
-
Dargan S, Kumar M. A comprehensive survey on the biometric recognition systems based on physiological and behavioral modalities. Expert Syst Appl. 2020;143(C). doi:10.1016/j.eswa.2019.113114
-
Shaheed K, Mao A, Qureshi I, et al. A Systematic Review on Physiological-Based Biometric Recognition Systems: Current and Future Trends. Arch Computat Methods Eng. 2021;28(7):4917-4960. doi:10.1007/s11831-021-09560-3
-
Fu B, Damer N. Biometric Recognition in 3D Medical Images: A Survey. IEEE Access. 2023;11:125601-125615. doi:10.1109/ACCESS.2023.3331118
-
Kao EF, Lin WC, Jaw TS, Liu GC, Wu JS, Lee CN. Automated patient identity recognition by analysis of chest radiograph features. Acad Radiol. 2013;20(8):1024-1031. doi:10.1016/j.acra.2013.04.006
-
Shimizu Y, Matsunobu Y, Morishita J. Evaluation of the usefulness of modified biological fingerprints in chest radiographs for patient recognition and identification. Radiol Phys Technol. 2016;9(2):240-244. doi:10.1007/s12194-016-0355-4
-
Morishita J, Katsuragawa S, Kondo K, Doi K. An automated patient recognition method based on an image-matching technique using previous chest radiographs in the picture archiving and communication system environment. Medical Physics. 2001;28(6):1093-1097. doi:10.1118/1.1373403
-
Gray D, Tao H. Viewpoint Invariant Pedestrian Recognition with an Ensemble of Localized Features. In: Forsyth D, Torr P, Zisserman A, eds. Computer Vision – ECCV 2008. Springer; 2008:262-275. doi:10.1007/978-3-540-88682-2_21
-
Ye M, Shen J, Lin G, Xiang T, Shao L, Hoi SCH. Deep Learning for Person Re-Identification: A Survey and Outlook. Accessed June 25, 2026. https://www.computer.org/cSDL/journal/tp/2022/06/09336268/1qHLD1Hj52U
-
Luo H, Gu Y, Liao X, Lai S, Jiang W. Bag of Tricks and a Strong Baseline for Deep Person Re-Identification. In: 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW). 2019:1487-1495. doi:10.1109/CVPRW.2019.00190
-
Hermans A, Beyer L, Leibe B. In Defense of the Triplet Loss for Person Re-Identification. arXiv. Preprint posted online November 21, 2017:arXiv:1703.07737. doi:10.48550/arXiv.1703.07737
-
Ueda Y, Morishita J. Patient Identification Based on Deep Metric Learning for Preventing Human Errors in Follow-up X-Ray Examinations. J Digit Imaging. 2023;36(5):1941-1953. doi:10.1007/s10278-023-00850-9
-
Packhäuser K, Gündel S, Münster N, Syben C, Christlein V, Maier A. Deep learning-based patient re-identification is able to exploit the biometric nature of medical chest X-ray data. Sci Rep. 2022;12(1):14851. doi:10.1038/s41598-022-19045-3
-
Ueda Y, Morishita J, Kudomi S, Ueda K. Usefulness of biological fingerprint in magnetic resonance imaging for patient verification. Med Biol Eng Comput. 2016;54(9):1341-1351. doi:10.1007/s11517-015-1380-x
-
Ueda Y, Ogawa D, Ishida T. Patient Re-Identification Based on Deep Metric Learning in Trunk Computed Tomography Images Acquired from Devices from Different Vendors. J Imaging Inform Med. 2024;37(3):1124-1136. doi:10.1007/s10278-024-01017-w
-
Bouthillier A, Berthiaume LF, Nguyen AXL, et al. Distinguishing Familial from Acquired Traits in the Retinal Blood Vessel Arborization. Trans Vis Sci Tech. 2020;9(8):27. doi:10.1167/tvst.9.8.27
-
Scanlon PH. The English National Screening Programme for diabetic retinopathy 2003–2016. Acta Diabetol. 2017;54(6):515-525. doi:10.1007/s00592-017-0974-1
-
Berrada L, Crenier L, Lytrivi M, Burniat A, Motulsky E, Cnop M. Real-world performance of an AI system for diabetic retinopathy screening. Sci Rep. 2026;16(1):7609. doi:10.1038/s41598-026-37292-6
-
Than J, Sim PY, Muttuvelu D, et al. Teleophthalmology and retina: a review of current tools, pathways and services. Int J Retina Vitreous. 2023;9:76. doi:10.1186/s40942-023-00502-8
-
Ong AY, Hogg HDJ, Kale AU, et al. AI as a Medical Device for Ophthalmic Imaging in Europe, Australia, and the United States: Protocol for a Systematic Scoping Review of Regulated Devices. JMIR Res Protoc. 2024;13:e52602. doi:10.2196/52602
-
Prediction of cardiovascular risk factors from retinal fundus photographs via deep learning | Nature Biomedical Engineering. Accessed June 25, 2026. https://www.nature.com/articles/s41551-018-0195-0
-
Tan YY, Kang HG, Lee CJ, et al. Prognostic potentials of AI in ophthalmology: systemic disease forecasting via retinal imaging. Eye Vis (Lond). 2024;11:17. doi:10.1186/s40662-024-00384-3
-
Barkhoda W, Akhlaqian F, Amiri MD, Nouroozzadeh MS. Retina identification based on the pattern of blood vessels using fuzzy logic. EURASIP J Adv Signal Process. 2011;2011(1):113. doi:10.1186/1687-6180-2011-113
-
Semerád L, Drahanský M. Retina Recognition Using Crossings and Bifurcations. In: Applications of Pattern Recognition. IntechOpen; 2021. doi:10.5772/intechopen.96142
-
Nebbia G, Kumar S, McNamara SM, et al. Re-identification of patients from imaging features extracted by foundation models. npj Digit Med. 2025;8(1):469. doi:10.1038/s41746-025-01801-0
-
Engelmann J, Wagner SK, Zhou Y, Keane PA. Matters Arising: Near-identical images, not foundation models, explain purported re-identification of patients from medical imaging. npj Digit Med. 2026;9(1):159. doi:10.1038/s41746-026-02440-9
-
Sudlow C, Gallacher J, Allen N, et al. UK biobank: an open access resource for identifying the causes of a wide range of complex diseases of middle and old age. PLoS Med. 2015;12(3):e1001779. doi:10.1371/journal.pmed.1001779
-
Age-Related Eye Disease Study Research Group. The Age-Related Eye Disease Study (AREDS): design implications. AREDS report no. 1. Control Clin Trials. 1999;20(6):573-600. doi:10.1016/s0197-2456(99)00031-8
-
Warwick AN, Curran K, Hamill B, et al. UK Biobank retinal imaging grading: methodology, baseline characteristics and findings for common ocular diseases. Eye. 2023;37(10):2109-2116. doi:10.1038/s41433-022-02298-7
-
Deng J, Guo J, Xue N, Zafeiriou S. ArcFace: Additive Angular Margin Loss for Deep Face Recognition. In: 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2019:4685-4694. doi:10.1109/CVPR.2019.00482
-
Kornblith S, Shlens J, Le QV. Do Better ImageNet Models Transfer Better? In: 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 2019:2656-2666. doi:10.1109/CVPR.2019.00277
-
Woo S, Debnath S, Hu R, et al. ConvNeXt V2: Co-Designing and Scaling ConvNets With Masked Autoencoders. In: 2023:16133-16142. Accessed July 8, 2026. https://openaccess.thecvf.com/content/CVPR2023/html/Woo_ConvNeXt_V2_Co-Designing_and_Scaling_ConvNets_With_Masked_Autoencoders_CVPR_2023_paper.html
-
Fu H, Wang B, Shen J, et al. Evaluation of Retinal Image Quality Assessment Networks in Different Color-Spaces. In: Shen D, Liu T, Peters TM, et al., eds. Medical Image Computing and Computer Assisted Intervention – MICCAI 2019. Springer International Publishing; 2019:48-56. doi:10.1007/978-3-030-32239-7_6
-
Vargas Quiros J, Liefers B, van Garderen KA, Vermeulen JP, Klaver C. VascX Models: Deep Ensembles for Retinal Vascular Analysis From Color Fundus Images. Trans Vis Sci Tech. 2025;14(7):19. doi:10.1167/tvst.14.7.19
-
Nebbia G, Kumar S, McNamara SM, et al. Re-identification of patients from imaging features extracted by foundation models. npj Digit Med. 2025;8(1):469. doi:10.1038/s41746-025-01801-0
-
Rajesh AE, Olvera-Barrios A, Warwick AN, et al. Machine learning derived retinal pigment score from ophthalmic imaging shows ethnicity is not biology. Nat Commun. 2025;16(1):60. doi:10.1038/s41467-024-55198-7
-
Khan NC, Perera C, Dow ER, et al. Predicting Systemic Health Features from Retinal Fundus Images Using Transfer-Learning-Based Artificial Intelligence Models. Diagnostics (Basel). 2022;12(7):1714. doi:10.3390/diagnostics12071714
-
Zhou Y, Wagner SK, Chia MA, et al. AutoMorph: Automated Retinal Vascular Morphology Quantification Via a Deep Learning Pipeline. Translational Vision Science & Technology. 2022;11(7):12. doi:10.1167/tvst.11.7.12
-
UK Biobank Oversight Committee. UK Biobank Oversight Committee Report. Published online April 6, 2026. https://www.ukbiobank.ac.uk/news/report-into-data-security-at-uk-biobank-published/
-
Nakayama LF, de Matos JCRG, Stewart IU, et al. Retinal Scans and Data Sharing: The Privacy and Scientific Development Equilibrium. Mayo Clin Proc Digit Health. 2023;1(2):67-74. doi:10.1016/j.mcpdig.2023.02.003
-
Balancing Benefits and Risks: The Case for Retinal Images to Be Considered as Nonprotected Health Information for Research Purposes - 2024. American Academy of Ophthalmology. June 1, 2024. Accessed June 5, 2026. https://www.aao.org/education/clinical-statement/balancing-benefits-risks-case-retinal-images-to-be
-
American Society of Retinal Specialists. ASRS Recommends NIH Modify Policy that Would Restrict Sharing Retina Images. Published online March 10, 2026. https://www.asrs.org/advocacy/updates/10478/asrs-recommends-nih-modify-policy-that-would-restrict-sharing-retina-images?utm_source=chatgpt.com
Appendix A. AI model development
Training batch

Validation batch
Val ID1
Val ID2
Val ID3
Val ID4
Supplementary Figure 1. Sample training and validation identities and image samples used in development of the CFI identity encoder. Each row in each batch displays CFIs from the same patient-eye identity. Training samples underwent heavy augmentations while validation samples were kept as-is. Stereoscopic CFIs were included in development.
Appendix B. Identity label audit of the evaluation databases.

Hidden in pre-print
Supplementary Figure 2. Samples from the identity label audit of the AREDS CFI database. The first three columns display images from the main identity cluster shown to the human expert. The fourth column (Flagged image) shows the image identified by the system as potentially assigned to the wrong identity. The reviewer decided between confirming an incorrect identity, confirming a correct identity, or an undecidable outcome.

Hidden in pre-print
Supplementary Figure 3. Samples from the identity label audit of the UKBB CFI database. The first three columns display images from the main identity cluster shown to the human expert. The fourth column (Flagged image) shows the image identified by the system as potentially assigned to the wrong identity. The reviewer decided between confirming an incorrect identity, confirming a correct identity, or an undecidable outcome.
Resolved
Expert confirmed correct or incorrect identity assignment

Anatomy not visible
Undecidable due to lack of anatomical landmarks

Undecidable other
Undecidable due to low anatomical overlap or poor quality.

Supplementary Figure 4. Sample of images flagged during the identity audit of the Rotterdam Study. Most flagged images were of relatively poor quality. Resolved images were confirmed during the expert audit to have a correct or incorrect identity assignment by comparing their vascular patterns to those of the reference images, not seen here. Different region images are undecidable due to imaging a region different from that of the reference images. Low-quality images were those for which the quality was too bad to make a decision.

Hidden in pre-print
Supplementary Figure 5. Sample of images flagged during the identity audit of the AREDS CFI database. Most flagged images were of relatively poor quality. Resolved images were confirmed during the expert audit to have a correct or incorrect identity assignment by comparing their vascular patterns to those of the reference images, not seen here. Different region images are undecidable due to imaging a region different from that of the reference images. Low-quality images were those for which the quality was too bad to make a decision.

Hidden in pre-print
Supplementary Figure 6. Sample of images flagged during the identity audit of the UK Biobank database. Resolved images were confirmed during the expert audit to have a correct or incorrect identity assignment by comparing their vascular patterns to those of the reference images, not seen here. Different region images are undecidable due to imaging a region different from that of the reference images. Low-quality images were those for which the quality was too bad to make a decision.
Appendix C. Complimentary retrieval evaluation
Supplementary Table 1. Results of the retrospective + prospective patient identity retrieval evaluation on the Rotterdam Study, UKBB, and AREDS CFI databases. In this scenario that system had access to retrospective and prospective imaging relative to the query's acquisition date. N queries indicates the number of images queried, Mean comparison identities is the average number of identities in the gallery, across all queries.
| Scenario | N queries | Mean comparison identities | Mean images / identity | Recall@1 | Recall@5 | mAP |
|---|---|---|---|---|---|---|
| Rotterdam Study | ||||||
| Overall (duplicates included) | 5651 | 6242 | 9 | 0.996 | 0.997 | 0.996 |
| Overall (duplicates removed) | 5605 | 6242 | 5.8 | 0.994 | 0.996 | 0.995 |
| Same device | 13520 | 2478.6 | 2.3 | 0.997 | 0.998 | 0.998 |
| Disc-centred images (F1) | 3360 | 3847 | 3.3 | 0.999 | 0.999 | 0.999 |
| Macula-centred images (F2) | 5343 | 6238 | 3.7 | 0.994 | 0.996 | 0.995 |
| Image quality Q1+Q2 (best) | 3959 | 5115 | 3.5 | 0.999 | 1 | 1 |
| Image quality Q3+Q4 (worst) | 3859 | 5322 | 3.4 | 0.991 | 0.994 | 0.992 |
| UK Biobank | ||||||
| Overall (duplicates included) | 3871 | 4440 | 1.9 | 0.972 | 0.986 | 0.978 |
| Overall (duplicates removed) | 3871 | 4440 | 1.9 | 0.972 | 0.986 | 0.979 |
| Image quality Q1+Q2 (best) | 1506 | 2649 | 1.6 | 0.999 | 1 | 0.999 |
| Image quality Q3+Q4 (worst) | 1315 | 2841 | 1.5 | 0.929 | 0.96 | 0.944 |
| AREDS | ||||||
| Overall (duplicates included) | 8872 | 8881 | 17.6 | 0.99 | 0.996 | 0.993 |
| Overall (duplicates removed) | 8480 | 8881 | 9.3 | 0.981 | 0.99 | 0.985 |
| Disc-centred images (F1) | 1188 | 1190 | 6.4 | 1 | 1 | 1 |
| Macula-centred images (F2) | 8478 | 8881 | 7.5 | 0.986 | 0.991 | 0.988 |
| Image quality Q1+Q2 (best) | 6467 | 7684 | 5.3 | 0.992 | 0.996 | 0.994 |
| Image quality Q3+Q4 (worst) | 6989 | 8067 | 5.1 | 0.958 | 0.975 | 0.966 |
Appendix D. Patient verification failure cases
Retrospective-only scenario
Query
Ref 1
Ref 2

Region: F2
Region: F2
Region: F2
Query
Ref 1
Ref 2

Region: F2
Region: F2
Region: other

Region: F2
Region: F2
Region: F2

Region: F2
Region: F2
No image

Region: F2
Region: F2
No image

Region: F2
Region: F2
No image

Region: F2
Region: F2
No image

Region: F2
Region: F2
Region: F2

Region: F2
Region: F2
No image

Region: F2
Region: F2
No image
Supplementary Figure 7. Sample of patient verification false positives produced by our system in the evaluation of the Retrospective-only scenario on the Rotterdam Study database. Each group of three images (Query + Ref 1 + Ref 2) represents the query image and two reference images as presented to the verification system. The three images are assigned to the same patient-eye identity in the reference database, but the verification system flagged an incorrect identity. Reference sets larger than two images were randomly sampled due to space constraints. The vascular patterns partially visible on the images can be used to visually verify that the images correspond to the same eye in most cases. In others, the vascular patterns may be difficult to match.
Query
Ref 1
Ref 2

Region: F2
Query
Ref 1
Ref 2
Region: F2
Region: F2

Region: F2
Region: F2
Region: F2

Region: F2
Region: F2
Region: F1

Region: F1
Region: F1
Region: F1

Region: F2
Region: F2
Region: F2

Region: F1
Region: F2
Region: F2

Region: F2
Region: F2
No image

Region: F2
Region: F2
Region: F2

Region: F1
Region: F2
Region: F1

Region: F1
Region: F2
Region: F2
Supplementary Figure 8. Sample of patient verification false negatives produced by our system in the evaluation of the Retrospective-only scenario on the Rotterdam Study database. Each group of three images presents a simulated incorrect identity assignment consisting in two reference images (Ref 1 and Ref 2) and a query image (marked in red) that was deliberately sampled from a different eye (see Evaluation of patient verification and identity retrieval performance). The model failed to flag an incorrect assignment.

Hidden in pre-print
Supplementary Figure 9. Sample of patient verification false positives produced by our system in the evaluation of the Retrospective-only scenario on the UK Biobank database. Each group of images (Query + Ref 1 + Ref 2) represents the query image and two reference images as presented to the verification system. The three images are assigned to the same patient-eye identity in the reference database, but the verification system flagged an incorrect identity. Reference sets larger than two images were randomly sampled due to space constraints. The vascular patterns partially visible on the images can be used to visually verify that the images correspond to the same eye in most cases. In others, the vascular patterns may be difficult to match.

Hidden in pre-print
Supplementary Figure 10. Sample of patient verification false negatives produced by our system in the evaluation of the Retrospective-only scenario on the UK Biobank database. Each group of three images presents a simulated incorrect identity assignment consisting in two reference images (Ref 1 and Ref 2) and a query image (marked in red) that was deliberately sampled from a different eye (see Evaluation of patient verification and identity retrieval performance). The model failed to flag an incorrect assignment.

Hidden in pre-print
Supplementary Figure 11. Sample of patient verification false positives produced by our system in the evaluation of the Retrospective-only scenario on the AREDS database. Each group of images (Query + Ref 1 + Ref 2) represents the query image and two reference images as presented to the verification system. The three images are assigned to the same patient-eye identity in the reference database, but the verification system flagged an incorrect identity. Reference sets larger than two images were randomly sampled due to space constraints. The vascular patterns partially visible on the images can be used to visually verify that the images correspond to the same eye in most cases. In others, the vascular patterns may be difficult to match.

Hidden in pre-print
Supplementary Figure 12. Sample of patient verification false negatives produced by our system in the evaluation of the Retrospective-only scenario on the AREDS database. Each group of three images presents a simulated incorrect identity assignment consisting in two reference images (Ref 1 and Ref 2) and a query image (marked in red) that was deliberately sampled from a different eye (see Evaluation of patient verification and identity retrieval performance). The model failed to flag an incorrect assignment.
The quick brown fox jumps over the lazy dog.
Appendix E. Patient retrieval failure cases

Hidden in pre-print
Supplementary Figure 13. Cases for which the model retrieved an incorrect patient identity during the Retrieval evaluation, for the Retrospective-only verification scenario on the RS, UKBB and AREDS databases. The Query image identity does not correspond with the model's top match shown below it.

Hidden in pre-print
Supplementary Figure 14. Cases for which the model retrieved an incorrect patient identity during the Retrieval evaluation, for the Retrospective + Prospective verification scenario on the RS, UKBB and AREDS databases. The Query image identity does not correspond with the model's top match shown below it.
Appendix F. Members of the VascX Research Consortium
The VascX Research Consortium (in alphabetical order):
Ciara Bergin 3; Sven Bergmann 1,2,4; Michael Beyeler 1,2,5; Dennis Bontempi 1,2; Sacha Bors 1,2; Leah Böttger 1,2; Bogdan Draganski 5,6,7; Adham Elwakil 3,8; Györgyi V. Hamvas 9,10; Janna Hastings 11,12; Ilaria Iuliani 1,2; Caroline C.W. Klaver 13,14,15,16; Ihor Kuras 6,7; Bart Liefers 13,14; Ilenia Meloni 3,8; Sofia Ortin Vela 1,2; David Presby 1,2; Ian Quintas 1,2; José Vargas Quiros 13,14,; Marc Schindewolf 9,10; Reinier O. Schlingemann 3,17; Mattia Tomasoni 3,8; Olga Trofimova 1,2.
1 Department of Computational Biology, University of Lausanne, Lausanne, Switzerland
2 Swiss Institute of Bioinformatics, Lausanne, Switzerland
3 Department of Ophthalmology, University of Lausanne, Fondation Asile des Aveugles, Jules Gonin Eye Hospital, Lausanne, Switzerland.
4 Department of Integrative Biomedical Sciences, University of Cape Town, Cape Town, South Africa
5 Insel University Hospital Bern, Switzerland
6 Department of Neurology, Max Planck Institute for Human Cognitive and Brain Sciences, Germany
7 Department of Clinical Neuroscience, Lausanne University Hospital and University of Lausanne, Switzerland
8 Platform for Research in Ocular Imaging, Fondation Asile des Aveugles, Jules Gonin Eye Hospital, Lausanne, Switzerland.
9 Inselspital, Bern University Hospital, University of Bern, Switzerland.
10 Department for BioMedical Research, Bern University Hospital, University of Bern, Switzerland.
11 Institute for Implementation Science in Health Care, Faculty of Medicine, University of Zurich, Zürich, Switzerland
12 School of Medicine, University of St Gallen, St. Gallen, Switzerland
13 Department of Ophthalmology, Erasmus University Medical Center, Rotterdam, The Netherlands.
14 Department of Epidemiology, Erasmus University Medical Center, Rotterdam, The Netherlands.
15 Department of Ophthalmology, Radboud University Medical Center, Nijmegen, the Netherlands.
16 Institute of Molecular and Clinical Ophthalmology, University of Basel, Switzerland.
17 University Medical Centres, Amsterdam, The Netherlands.