IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v12y2024i24p4003-d1548550.html
   My bibliography  Save this article

Improving Medical Image Segmentation Using Test-Time Augmentation with MedSAM

Author

Listed:
  • Wasfieh Nazzal

    (Department of Computer Languages and Computer Science, University of Málaga, Bulevar Louis Pasteur, 35, 29071 Málaga, Spain)

  • Karl Thurnhofer-Hemsi

    (Department of Computer Languages and Computer Science, University of Málaga, Bulevar Louis Pasteur, 35, 29071 Málaga, Spain
    Biomedic Research Institute of Málaga, IBIMA Plataforma BIONAND, C/Doctor Miguel Díaz Recio, 28, 29010 Málaga, Spain
    ITIS Software, Universidad de Málaga, C/Arquitecto Francisco Peñalosa 18, 29010 Málaga, Spain)

  • Ezequiel López-Rubio

    (Department of Computer Languages and Computer Science, University of Málaga, Bulevar Louis Pasteur, 35, 29071 Málaga, Spain
    Biomedic Research Institute of Málaga, IBIMA Plataforma BIONAND, C/Doctor Miguel Díaz Recio, 28, 29010 Málaga, Spain
    ITIS Software, Universidad de Málaga, C/Arquitecto Francisco Peñalosa 18, 29010 Málaga, Spain)

Abstract

Medical image segmentation is crucial for diagnostics and treatment planning, yet traditional methods often struggle with the variability of real-world clinical data. Deep learning models, like the Segment Anything Model (SAM), have been proposed as a powerful tool that helps to delimit regions using a prompt. This work proposes a methodology to improve the quality of the segmentation by integrating test-time augmentation (TTA) with the SAM for medical applications (MedSAM) by using random circular shifts, addressing challenges such as misalignments and imaging variability. The method generates several input variations during inference that are combined after, improving robustness and segmentation accuracy without requiring retraining. Evaluated across diverse computed tomography (CT) datasets, including Medical Segmentation Decathlon (MSD), KiTS, and COVID-19-20, the proposed method demonstrated consistent improvements in Dice Similarity Coefficient (DSC) and Normalized Surface Dice (NSD) metrics. The highest performances were 93.6% DSC and 97% NSD. Notably, it achieved superior boundary precision and surface alignment in complex regions like the pancreas and colon, outperforming baseline models, including MedSAM and DeepLabv3+. The approach is computationally feasible, leveraging a balance of augmentation intensity and segmentation accuracy.

Suggested Citation

  • Wasfieh Nazzal & Karl Thurnhofer-Hemsi & Ezequiel López-Rubio, 2024. "Improving Medical Image Segmentation Using Test-Time Augmentation with MedSAM," Mathematics, MDPI, vol. 12(24), pages 1-24, December.
  • Handle: RePEc:gam:jmathe:v:12:y:2024:i:24:p:4003-:d:1548550
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/12/24/4003/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/12/24/4003/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:12:y:2024:i:24:p:4003-:d:1548550. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.