Skip to content
problem genome

One of 592 unsolved problems in the Problem Genome, a collection written up for student design and engineering teams.

health · digital · family: the model was never trained on this

perfect on competition day, blind in the clinic

AI diabetic retinopathy screening achieves competition-grade accuracy but fails in real clinical deployment

Source: Kaggle Diabetic Retinopathy Detection competition and APTOS 2019 competition… Open ↗source: secondaryLast updated: 2026-09-30

Problem statement

A deep learning algorithm for diabetic retinopathy (DR) screening that had been shown to have specialist-level accuracy (>90% sensitivity and specificity) ran into trouble once it was deployed in clinics, and public competitions (Kaggle 2015, APTOS 2019) rank such models only by how well they agree with a clinician's grade. Google's deployment in Thai clinics (Beede et al.) found that 393 of the 1,838 images put through the system in its first six months (21%) were rejected as ungradable; low-quality images came from rooms that could not be darkened, clinics that did not use dilation drops, and a camera that needed repair; internet connectivity was unreliable; and at one clinic half of patients opted out of the study because of the distance and inconvenience of the referral hospital. Beede et al. attribute the trouble to socio-environmental factors — above all the tension between the system's image-quality threshold and the images that an imperfect, resource-constrained clinic produces.

Why this matters

Diabetic retinopathy is estimated to affect over 93 million people (Kaggle 2015 competition page) and is the leading cause of blindness among working-age adults. Specialists are too few to screen everyone: Thailand has about 1,500 ophthalmologists for roughly 4.5 million patients with diabetes, a ratio of about 1:3,000, about double the ratio in the United States. AI screening promised to close this gap, but in the Thai deployment nurses somewhat questioned the system when it rejected images they felt they could read themselves. The pattern plausibly extends beyond DR to other imaging-based screening applications (cervical cancer, skin cancer, tuberculosis).

What’s been tried and why it hasn’t worked

Competition images are not pristine — both the Kaggle 2015 and APTOS 2019 pages warn that images "may contain artifacts, be out of focus, underexposed, or overexposed" — but the leaderboard scores only agreement with a clinician's grade (quadratic weighted kappa); it does not measure what happens when a deployed system refuses an image while a patient waits. In the Thai clinics Beede et al. studied, images were taken by nurses or camera technicians with the clinic's existing fundus camera, often in rooms that were not darkened, in Pathum Thani without dilation drops, and in one case with a camera that needed repair; age-related cataract can also leave the ocular media too cloudy to image. Image quality filtering creates a tradeoff: the deployed system was designed for patient safety to assess only the highest-quality images and rejected any with a bit of blur or a dark area, even where it could have made a strong prediction; the paper leaves open what threshold ensures accuracy and safety and what the risk is of deferring a prediction on imperfect data. The Beede et al. study found that ungradable images had the largest effect on model performance and the patient experience, that slow or lost internet connections delayed patients, that concern about far-away referrals led some nurses to discourage patients from joining the study, and that nurses worked around the study protocol rather than refer every patient whose image was ungradable.

What would unlock progress

Three complementary approaches: (1) camera-agnostic model architectures that explicitly handle image quality variation as an input feature rather than a rejection criterion; (2) offline-capable deployment systems that don't depend on cloud connectivity for inference; (3) co-design of the screening workflow with actual clinical staff in target settings before, not after, algorithm development. The deeper lesson is that AI medical device development must integrate human factors engineering from the start rather than optimizing accuracy on clean data and hoping deployment works.

Where to start

A team can reproduce the deployment gap at a desk instead of buying cameras: take a public DR-graded fundus set and apply a simulated acquisition-degradation pipeline — defocus and motion blur, uneven or reduced illumination, JPEG compression, and cropped field of view — then measure how a model trained on clean images loses sensitivity at each degradation level and how many images its quality filter rejects along the way. The DDR dataset (https://github.com/nkicsl/DDR-dataset, dataset licensed CC BY-NC-SA 4.0 with code under MIT, direct download) and the 45-image CC-BY High-Resolution Fundus set (https://www5.cs.fau.de/research/data/fundus-images/) need no registration; the EyeQ re-annotation supplies Good/Usable/Reject quality labels for 28,792 EyePACS images (https://github.com/HzFu/EyeQ) so the simulated degradation can be calibrated against real clinical quality grades, though those images must be pulled from the Kaggle EyePACS competition (https://www.kaggle.com/c/diabetic-retinopathy-detection, free account plus rules acceptance) and Messidor-2 requires a registration form with personal information (https://www.adcis.net/en/third-party/messidor2/). Alternatively, a team could design a screening workflow prototype that addresses the specific failure modes identified in the Beede study — capture-time guidance on lighting and dilation, offline operation, and a referral rule that does not send every ungradable image to a hospital an hour away — and test it in a mock clinic with role-played patient flow rather than in a live one. Skills: machine learning, human-computer interaction, clinical workflow design, mobile development.

Genes

Related problems

Stuck the same way, in other fields.

field: digital & spaceevery tool call compounds the errorAI agents that chain tool calls suffer exponential reliability decaytested in the wrong worldsource: secondaryfield: food & the living worldevery spray breeds the next survivorEffective pesticides drive resistance evolution, trapping agriculture on an escalating chemical treadmilltested in the wrong worldsource: primaryfield: food & the living worldone fix for a million hectares of peatIndonesia's canal-blocking strategy for peatland rewetting lacks the landscape-scale hydrological planning its own actors say it needstested in the wrong worldsource: secondaryfield: food & the living worldthe eye that doesn't exist yetMapping Earth's ecosystems and minerals from space requires an imaging spectrometer nobody has builttested in the wrong worldsource: primary

Sources

  • Kaggle Diabetic Retinopathy Detection competition (2015) and APTOS 2019 competition post-mortems.
  • Beede et al, "A Human-Centered Evaluation of a Deep Learning System Deployed in Clinics for the Detection of Diabetic Retinopathy," CHI 2020. Link ↗
  • Google Health Thailand deployment reports.
Revision notes

This brief gets checked against its sources and contains the following revisions. Future revisions get added here.

Worth knowing

  • What Would Unlock Progress is the write-up's own proposal and was not checked against a source.

Full check

Sources read

  • Beede et al., deep learning system deployed in clinics for diabetic retinopathy (CHI 2020): full text
  • Kaggle Diabetic Retinopathy Detection competition page (2015): full text (an archived copy)
  • APTOS 2019 competition page: full text (an archived copy)
  • Google Health Thailand deployment reports: could not be opened (no document is named)
  • competition post-mortems: could not be opened (no document is named)

What changed

  • Not found in the sources, removed: smartphone attachments, minimally trained staff, patient movement and domain adaptation as causes, and a sentence on transfer learning.
  • Not found in the sources, replaced with what they say: nurses struggling with the camera and patients leaving before results; the page now gives the paper's reasons: undarkened rooms, no dilation drops, a camera needing repair, and half of one clinic's patients opting out over the distant referral hospital; "the gap is not algorithmic," replaced with the paper's own framing of social and environmental factors; that the failure slowed adoption by years and eroded trust in AI diagnostics; the paper says nurses questioned the system when it rejected images they could read; the list of failure causes, now the paper's: ungradable images, slow or lost connections, nurses discouraging far-away referrals, and workarounds to the protocol; "preventable blindness," now the APTOS page's "leading cause of blindness among working aged adults".
  • Stated more strongly than the source: that real-world deployments consistently underperform; the page now speaks of the one deployment the paper documents, and the extension to other screening is marked as plausible.
  • Contradicted by the source, corrected: that competition images are high-quality photographs taken in controlled conditions; both competition pages warn the images may have artifacts or poor focus and exposure.
  • Numbers: sensitivity and specificity figures for competition models, replaced with the deployed algorithm's reported accuracy (over 90%); the competitions score agreement with a clinician instead; a comparison with competition rejection rates, removed; about 100 million people affected, now over 93 million (Kaggle page); an ophthalmologist ratio of 1:500,000, replaced with Thailand's ratio of about 1:3,000 from the paper.
  • Credit: "Google Health" is now "Google," the affiliation the paper gives.
  • Entry points: the workflow entry point now names failure modes the paper reports, not ones it does not; the DDR dataset's licence now reads CC BY-NC-SA 4.0 for the data (MIT for the code only), after a change by its maintainers; Messidor-2 needs a form completed, not signed.

Left open

  • the Kaggle competition's current account and rules terms (only an archived copy could be read)

Separate check of specific claims: An entry point that needed eye imaging with clinical cameras was replaced with a simulated image-quality study on public datasets, and the other entry point was tightened.