Automated Pneumothorax Segmentation with a Spatial Prior Contrast Adapter

Pneumothorax is a critical condition that requires rapid and accurate diagnosis from standard chest radiographs. Identifying and segmenting the location of the pneumothorax are essential for developing an effective treatment plan. nnUNet is a self-configuring, deep learning-based framework for medic...

Full description

Saved in:
Bibliographic Details
Main Authors: Yiming Jia, Essam A. Rashed
Format: Article
Language:English
Published: MDPI AG 2025-06-01
Series:Applied Sciences
Subjects:
Online Access:https://www.mdpi.com/2076-3417/15/12/6598
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1849435315837599744
author Yiming Jia
Essam A. Rashed
author_facet Yiming Jia
Essam A. Rashed
author_sort Yiming Jia
collection DOAJ
description Pneumothorax is a critical condition that requires rapid and accurate diagnosis from standard chest radiographs. Identifying and segmenting the location of the pneumothorax are essential for developing an effective treatment plan. nnUNet is a self-configuring, deep learning-based framework for medical image segmentation. Despite adjusting its parameters automatically through data-driven optimization strategies and offering robust feature extraction and segmentation capabilities across diverse datasets, our initial experiments revealed that nnUNet alone struggled to achieve consistently accurate segmentation for pneumothorax, particularly in challenging scenarios where subtle intensity variations and anatomical noise obscure the target regions. This study aims to enhance the accuracy and robustness of pneumothorax segmentation in low-contrast chest radiographs by integrating spatial prior information and attention mechanism into the nnUNet framework. In this study, we introduce the spatial prior contrast adapter (SPCA)-enhanced nnUNet by implementing two modules. First, we integrate an SPCA utilizing the MedSAM foundation model to incorporate spatial prior information of the lung region, effectively guiding the segmentation network to focus on anatomically relevant areas. In the meantime, a probabilistic atlas, which shows the probability of an area prone to pneumothorax, is generated based on the ground truth masks. Both the lung segmentation results and the probabilistic atlas are used as attention maps in nnUNet. Second, we combine the two attention maps as additional input into nnUNet and integrate an attention mechanism into standard nnUNet by using a convolutional block attention module (CBAM). We validate our method by experimenting on the dataset CANDID-PTX, a benchmark dataset representing 19,237 chest radiographs. By introducing spatial awareness and intensity adjustments, the model reduces false positives and improves the precision of boundary delineations, ultimately overcoming many of the limitations associated with low-contrast radiographs. Compared with standard nnUNet, SPCA-enhanced nnUNet achieves an average Dice coefficient of 0.81, which indicates an improvement of standard nnUNet by 15%. This study provides a novel approach toward enhancing the segmentation performance of pneumothorax with low contrast in chest X-ray radiographs.
format Article
id doaj-art-a43540d901184ff2b22086918129cfac
institution Kabale University
issn 2076-3417
language English
publishDate 2025-06-01
publisher MDPI AG
record_format Article
series Applied Sciences
spelling doaj-art-a43540d901184ff2b22086918129cfac2025-08-20T03:26:20ZengMDPI AGApplied Sciences2076-34172025-06-011512659810.3390/app15126598Automated Pneumothorax Segmentation with a Spatial Prior Contrast AdapterYiming Jia0Essam A. Rashed1Graduate School of Information Science, University of Hyogo, Kobe 650-0047, JapanGraduate School of Information Science, University of Hyogo, Kobe 650-0047, JapanPneumothorax is a critical condition that requires rapid and accurate diagnosis from standard chest radiographs. Identifying and segmenting the location of the pneumothorax are essential for developing an effective treatment plan. nnUNet is a self-configuring, deep learning-based framework for medical image segmentation. Despite adjusting its parameters automatically through data-driven optimization strategies and offering robust feature extraction and segmentation capabilities across diverse datasets, our initial experiments revealed that nnUNet alone struggled to achieve consistently accurate segmentation for pneumothorax, particularly in challenging scenarios where subtle intensity variations and anatomical noise obscure the target regions. This study aims to enhance the accuracy and robustness of pneumothorax segmentation in low-contrast chest radiographs by integrating spatial prior information and attention mechanism into the nnUNet framework. In this study, we introduce the spatial prior contrast adapter (SPCA)-enhanced nnUNet by implementing two modules. First, we integrate an SPCA utilizing the MedSAM foundation model to incorporate spatial prior information of the lung region, effectively guiding the segmentation network to focus on anatomically relevant areas. In the meantime, a probabilistic atlas, which shows the probability of an area prone to pneumothorax, is generated based on the ground truth masks. Both the lung segmentation results and the probabilistic atlas are used as attention maps in nnUNet. Second, we combine the two attention maps as additional input into nnUNet and integrate an attention mechanism into standard nnUNet by using a convolutional block attention module (CBAM). We validate our method by experimenting on the dataset CANDID-PTX, a benchmark dataset representing 19,237 chest radiographs. By introducing spatial awareness and intensity adjustments, the model reduces false positives and improves the precision of boundary delineations, ultimately overcoming many of the limitations associated with low-contrast radiographs. Compared with standard nnUNet, SPCA-enhanced nnUNet achieves an average Dice coefficient of 0.81, which indicates an improvement of standard nnUNet by 15%. This study provides a novel approach toward enhancing the segmentation performance of pneumothorax with low contrast in chest X-ray radiographs.https://www.mdpi.com/2076-3417/15/12/6598X-raypneumothorax segmentationnnUNetMedSAM
spellingShingle Yiming Jia
Essam A. Rashed
Automated Pneumothorax Segmentation with a Spatial Prior Contrast Adapter
Applied Sciences
X-ray
pneumothorax segmentation
nnUNet
MedSAM
title Automated Pneumothorax Segmentation with a Spatial Prior Contrast Adapter
title_full Automated Pneumothorax Segmentation with a Spatial Prior Contrast Adapter
title_fullStr Automated Pneumothorax Segmentation with a Spatial Prior Contrast Adapter
title_full_unstemmed Automated Pneumothorax Segmentation with a Spatial Prior Contrast Adapter
title_short Automated Pneumothorax Segmentation with a Spatial Prior Contrast Adapter
title_sort automated pneumothorax segmentation with a spatial prior contrast adapter
topic X-ray
pneumothorax segmentation
nnUNet
MedSAM
url https://www.mdpi.com/2076-3417/15/12/6598
work_keys_str_mv AT yimingjia automatedpneumothoraxsegmentationwithaspatialpriorcontrastadapter
AT essamarashed automatedpneumothoraxsegmentationwithaspatialpriorcontrastadapter