Skip to content
Baburam Adhikari logoBaburam Adhikari
All projects
AI/ML Published · SERA 2026

Lightweight CNN for Retinal Fundus Images

A four-class retinal fundus image classifier reaching 91.16% validation accuracy with only four convolutional layers, outperforming an SE-block CNN and a pre-trained EfficientNetB0. It was built so screening support does not require GPU-class hardware.

Key result

91.16% accuracy— 4 retinal classes, ~12.9M parameters, beat a fine-tuned EfficientNetB0

01Problem

Retinal screening depends on specialist review of fundus images, which is scarcest where the disease burden is highest. Published deep models reach strong accuracy but assume compute that low-resource clinics do not have.

02Objective

Design a compact CNN that classifies four retinal conditions accurately enough to be useful for screening triage, while staying small enough to run without specialist hardware.

03Architecture

  1. Fundus Images
  2. Preprocessing
  3. Lightweight CNN
  4. 4-Class Prediction
Image pipeline through to four-class prediction

04Technology

  • Python
  • TensorFlow
  • CNN
  • OpenCV

05Implementation

Key technical decisions

  1. 01Designed a compact architecture with a constrained compute budget instead of fine-tuning a large pretrained backbone.
  2. 02Targeted precision as the headline metric, since a false positive sends a patient for unnecessary specialist review.
  3. 03Kept preprocessing identical across splits so evaluation reflects deployment conditions.

What was built

  • Lightweight convolutional architecture built in TensorFlow — four convolutional layers, ~12.9M parameters.
  • OpenCV preprocessing ahead of training and inference.
  • Four-class classification over the retinal fundus dataset.
  • Compared against an SE-block CNN and a pre-trained EfficientNetB0.

06Data

Image dataset

  • Retinal fundus image dataset across four classes
  • Variable image quality and illumination across the set
  • Preprocessing applied consistently across train and evaluation splits

07Results