Correction to: Nature Communications https://doi.org/10.1038/s41467-024-50911-y, published online 10 August 2024

In the version of the article initially published, in the Methods “Image dataset” section and in the Acknowledgements, the wrong audit number was reported, when in fact Research on Anonymised Data approval (ROAD17/034) was used in accessing ophthalmological image data from Moorfields Eye Hospital NHS Foundation Trust, as is now amended in the HTML and PDF versions of the article.