Skip to content

ardhigagan/Optic-Disc-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optic Disc Detection in Retinal Fundus Images

Python Version OpenCV TensorFlow/PyTorch License

A comprehensive comparative study of traditional computer vision techniques and deep learning models for the automated localization and segmentation of the optic disc.

📖 About The Project

Accurately locating and segmenting the optic disc in retinal fundus images is a critical preliminary step in the development of automated diagnostic systems for ophthalmic conditions like Glaucoma, Diabetic Retinopathy, and Macular Degeneration.

This repository serves as an experimental pipeline, implementing and comparing four distinct methodologies ranging from unsupervised clustering to advanced convolutional neural networks.

Built With

🗂️ Project Architecture & Methodologies

The project is modularized based on the specific detection algorithm employed:

  • CNN/: Deep learning approach utilizing Convolutional Neural Networks for high-accuracy feature extraction and pixel-wise segmentation.
  • DBSCAN/: Density-Based Spatial Clustering of Applications with Noise, used to cluster high-intensity pixel regions while filtering out noise and artifacts (like blood vessels).
  • K-Mean Clustering/: An unsupervised machine learning approach that segments the retinal image into distinct color/intensity clusters to isolate the optic disc.
  • Morphological + Thresholding/: Traditional computer vision pipeline applying adaptive thresholding, followed by morphological operations (erosion, dilation, opening/closing) to refine the optic disc boundaries.
  • original/: The raw, unprocessed dataset of retinal fundus images used for training, testing, and validation.
  • summary.docx: Complete project documentation, including mathematical background, detailed methodology, and analytical comparisons.

📊 Results & Evaluation

The performance of each methodology was evaluated using standard medical image segmentation metrics: Mean Dice Coefficient, Mean Intersection over Union (IoU / Jaccard), and Mean Pixel Accuracy.

Methodology Mean Dice Mean IoU Pixel Accuracy Key Observations
CNN (VGG / U-Net) 92.17% 86.63% 99.76% Exceptional score for a supervised deep learning method. The U-Net encoder-decoder architecture captures localized context precisely, ignoring the vast retinal background.
K-Means Clustering 85.41% 77.98% 99.34% Exceptional unsupervised score. Forcing the final cluster into a mathematically perfect shape eliminated jagged boundaries.
DBSCAN Clustering 84.34% 76.40% 99.25% Strong baseline for an unsupervised density-based algorithm. Successfully grouped dense core pixels while discarding scattered retinal noise and exudates.
Morphological + Thresholding 83.71% 76.83% 98.76% Highly successful and robust for a "No-training" algorithm. The IoU score confirms masks are well-localized and consistent.

About

A comparative study of deep learning (U-Net) and unsupervised computer vision techniques for automated optic disc detection and segmentation in retinal images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages