Investigative Ophthalmology & Visual Science Cover Image for Volume 65, Issue 7
June 2024
Volume 65, Issue 7
Open Access
ARVO Annual Meeting Abstract  |   June 2024
EyeSAM: Unveiling the Potential of Segment Anything Model in Ophthalmic Image Segmentation
Author Affiliations & Notes
  • Alan Sousa da Silva
    Reading Centre, Moorfields Eye Hospital NHS Foundation Trust, London, London, United Kingdom
  • Gunjan Naik
    Reading Centre, Moorfields Eye Hospital NHS Foundation Trust, London, London, United Kingdom
  • Pallavi Bagga
    Reading Centre, Moorfields Eye Hospital NHS Foundation Trust, London, London, United Kingdom
  • Taha Soomro
    Reading Centre, Moorfields Eye Hospital NHS Foundation Trust, London, London, United Kingdom
  • Ana P. Ribeiro Reis
    Reading Centre, Moorfields Eye Hospital NHS Foundation Trust, London, London, United Kingdom
  • Gongyu Zhang
    Reading Centre, Moorfields Eye Hospital NHS Foundation Trust, London, London, United Kingdom
    Institute of Ophthalmology, University College London, London, United Kingdom
  • Ethan Waisberg
    Department of Clinical Medicine, University of Cambridge, Cambridge, United Kingdom
  • Lynn Kandakji
    Institute of Ophthalmology, University College London, London, United Kingdom
  • Siyin Liu
    Institute of Ophthalmology, University College London, London, United Kingdom
  • Dun Jack Fu
    Reading Centre, Moorfields Eye Hospital NHS Foundation Trust, London, London, United Kingdom
    Institute of Ophthalmology, University College London, London, United Kingdom
  • William Woof
    Reading Centre, Moorfields Eye Hospital NHS Foundation Trust, London, London, United Kingdom
    Institute of Ophthalmology, University College London, London, United Kingdom
  • Ismail Moghul
    Reading Centre, Moorfields Eye Hospital NHS Foundation Trust, London, London, United Kingdom
    Institute of Ophthalmology, University College London, London, United Kingdom
  • Konstantinos Balaskas
    Reading Centre, Moorfields Eye Hospital NHS Foundation Trust, London, London, United Kingdom
    Institute of Ophthalmology, University College London, London, United Kingdom
  • Nikolas Pontikos
    Reading Centre, Moorfields Eye Hospital NHS Foundation Trust, London, London, United Kingdom
    Institute of Ophthalmology, University College London, London, United Kingdom
  • Footnotes
    Commercial Relationships   Alan Sousa da Silva None; Gunjan Naik None; Pallavi Bagga None; Taha Soomro None; Ana P. Ribeiro Reis None; Gongyu Zhang None; Ethan Waisberg None; Lynn Kandakji None; Siyin Liu None; Dun Jack Fu None; William Woof None; Ismail Moghul None; Konstantinos Balaskas None; Nikolas Pontikos None
  • Footnotes
    Support  None
Investigative Ophthalmology & Visual Science June 2024, Vol.65, 2409. doi:
  • Views
  • Share
  • Tools
    • Alerts
      ×
      This feature is available to authenticated users only.
      Sign In or Create an Account ×
    • Get Citation

      Alan Sousa da Silva, Gunjan Naik, Pallavi Bagga, Taha Soomro, Ana P. Ribeiro Reis, Gongyu Zhang, Ethan Waisberg, Lynn Kandakji, Siyin Liu, Dun Jack Fu, William Woof, Ismail Moghul, Konstantinos Balaskas, Nikolas Pontikos; EyeSAM: Unveiling the Potential of Segment Anything Model in Ophthalmic Image Segmentation. Invest. Ophthalmol. Vis. Sci. 2024;65(7):2409.

      Download citation file:


      © ARVO (1962-2015); The Authors (2016-present)

      ×
  • Supplements
Abstract

Purpose : This study evaluates the recently published foundational Segment Anything Model (SAM) and its variants for precise segmentation in Optical Coherence Tomography (OCT) and Fundus Autofluorescence (FAF) images. In addition, we introduce EyeSAM, an unpublished CLI tool facilitating SAM's execution and fine-tuning for custom datasets across various image modalities.

Methods : Retinal and corneal OCT, along with FAF data, were sourced from Moorfields Eye Hospital patients. Expert graders meticulously annotated key features like intraretinal fluid, whole retina, corneal thickness, optic disc, and hyper/hypofluorescence. SAM and MedSAM served as untuned (or vanilla) baseline models, subsequently fine-tuned (retrained) on for specific ophthalmic datasets.
Data division included random patient ID-based splits into training, validation, and test sets. SAM's inferences necessitated prompts, for which we employed box coordinates extracted from graded annotations, as text data alone proved inadequate for the segmentation challenge.
Initial assessments on the test split involved Vanilla SAM and MedSAM. Following this, fine-tuning of these algorithms transpired using the train and validation data splits.

Results : Table 1 illustrates our main results. Fine-tuned SAM excelled in Corneal AS-OCT feature segmentation (0.96 vs. 0.89 for Vanilla SAM). Vanilla MedSAM performed poorly (0.29), with no improvement post fine-tuning. Hypo autofluorescence and hyper-autofluorescence ring features improved with fine-tuning, and similar outcomes were observed for the optic disc in both Vanilla and fine-tuned models. SD-OCT exhibited comparable performance between vanilla and fine-tuned models.

Conclusions : Our findings highlight Vanilla SAM's effectiveness in segmenting specific ophthalmic features. EyeSAM emerges as a valuable tool, facilitating SAM's application and fine-tuning for custom datasets, enhancing performance in AS-OCT and certain FAF features. However, SD-OCT features showed no improvement post fine-tuning. Ongoing efforts aim to refine the fine-tuning process for Vanilla SAM and Vanilla MedSAM in ophthalmic datasets, fostering advancements in image analysis for eye health.

This abstract was presented at the 2024 ARVO Annual Meeting, held in Seattle, WA, May 5-9, 2024.

 

Table 1. Comparative analysis of Vanilla SAM, Vanilla MedSAM, and their fine-tuned versions. All trained for at least 20 epochs. In bold are the cases where fine-tuning improved performance. IRF=intraretinal fluid, AF=autofluorescence.

Table 1. Comparative analysis of Vanilla SAM, Vanilla MedSAM, and their fine-tuned versions. All trained for at least 20 epochs. In bold are the cases where fine-tuning improved performance. IRF=intraretinal fluid, AF=autofluorescence.

×
×

This PDF is available to Subscribers Only

Sign in or purchase a subscription to access this content. ×

You must be signed into an individual account to use this feature.

×