Home→About→Services→Products→Projects→Blog→Contact→
Software DevelopmentCompleted

Eye Disease Detection

An AI screening tool for retinal fundus photos. It flags cataract, glaucoma or diabetic retinopathy, shows why with three heatmaps, and writes a patient-friendly PDF report.

ClientIn-house
Year2025
DivisionSoftware Development

About this engagement

An AI screening tool for retinal fundus photos. It flags cataract, glaucoma or diabetic retinopathy, shows why with three heatmaps, and writes a patient-friendly PDF report. Delivered in close partnership with In-house, this engagement covered discovery, implementation, and post-launch support, with measurable outcomes tracked for 90 days after go-live.

Overview

Eye disease screening needs specialists, and AI models that only output a label are hard to trust. I built a two-tier system: a Flask web app for upload and results, and a FastAPI service that runs a YOLO detector trained on fundus images. The key decision was to never show a prediction without an explanation, so every scan gets occlusion, LIME and SHAP heatmaps. Gemini writes the care report, and every external call has a local fallback so the demo never breaks.

Highlights

  • Explainable by default. Each scan returns occlusion sensitivity, LIME and SHAP heatmaps, so a doctor can see which part of the retina drove the result.
  • Layered inference. Roboflow hosted inference runs first, with an HTTP retry and a local Ultralytics YOLO model as backup, so predictions keep working.
  • Cleaner input, better focus. OpenCV contour detection finds the eye and blurs the background before inference, which keeps the model and heatmaps on the retina.
  • Reports that always arrive. Gemini drafts a structured care plan with backoff on rate limits, and curated per-disease reports take over if it fails.

Technology stack

PythonFastAPIFlaskUltralytics YOLOPyTorchRoboflow InferenceGoogle Gemini APILIMESHAPOpenCV

Project Visuals & Architecture

Working on something similar?Tell us about your scope, we will reply within 48 hours.
Start a conversation
← All projects