Skip to content

farrell236/retina_segmentation

Repository files navigation

Domain Agnostic Pipeline for Retina Vessel Segmentation

sd sd sd

Fundus Image Predicted Vessel Segmentation

Test image obtained from: https://www.opsweb.org/page/fundusimaging

Retina Image Standardization

The captured retina photo is first turned into grayscale, where it is thresholded by 1/3 of the mean pixel intensity to get a preliminary mask. The mask is then cleaned by a median blur filter (ks=25), followed by 2 iterations of erode and 2 iterations of dilate to remove any speckle that may arise from the edges. Finally, the bounding box for the retina can then be inferred by the contour edge of the mask, which can then be padded to square.

Results

DeepLabV3+ Model trained on DRIVE dataset only (with 5-Fold Cross Validation).

Dice Sensitivity Specificity AUC
DRIVE (1stHO) 0.757 (0.001) 0.795 (0.005) 0.974 (0.000) 0.963 (0.000)
DRIVE (2ndHO) 0.766 (0.001) 0.814 (0.007) 0.974 (0.001) 0.968 (0.001)
CHASE_DB1 (1stHO) 0.699 (0.024) 0.774 (0.051) 0.972 (0.004) 0.955 (0.010)
CHASE_DB1 (2ndHO) 0.687 (0.021) 0.756 (0.080) 0.971 (0.007) 0.952 (0.013)
STARE (ah) 0.726 (0.004) 0.724 (0.021) 0.977 (0.002) 0.940 (0.004)
STARE (vk) 0.701 (0.007) 0.662 (0.025) 0.982 (0.002) 0.919 (0.008)

() denotes Confidence Interval at 95%

Run Model

usage: run_segmentation.py [-h] [-i INPUT_FN] [-o OUTPUT_FN] [-m MODEL_FN] [-v]

Retina Vessel Segmentation

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT_FN, --input_fn INPUT_FN
                        Input Retina Image
  -o OUTPUT_FN, --output_fn OUTPUT_FN
                        Output Segmentation
  -m MODEL_FN, --model_fn MODEL_FN
                        Trained Model
  -v, --verbose         Verbose Output

Requirements

Python 3.7.11

Packages:

matplotlib==3.5.2
numpy==1.21.6
opencv-contrib-python-headless==4.6.0.66
opencv-python-headless==4.6.0.66
pandas==0.25.2
tensorflow==2.9.1
tensorflow-addons==0.17.1
tqdm==4.36.1

References

@article{hou2023vesselseg,
  title={Domain Agnostic Pipeline for Retina Vessel Segmentation},
  author={Hou, Benjamin},
  journal={arXiv},
  year={2023}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages