Region-aware Global Context Modeling for Automatic Nerve Segmentation from Ultrasound Images

Huisi Wu, Jiasheng Liu, Wei Wang, Zhenkun Wen, Jing Qin

Abstract

Automatic nerve segmentation in ultrasound images is a critical yet challenging task due to inherent speckle noise, low contrast, and blurred anatomical boundaries. Traditional pixel-wise attention mechanisms, while effective for global context modeling, are computationally expensive and often amplify noise in ultrasound data. This paper presents a novel deep learning architecture that replaces pixel-wise attention with a Region-aware Pyramid Aggregation (RPA) module and an Adaptive Pyramid Fusion (APF) module. The proposed approach efficiently captures global context and filters noise, achieving state-of-the-art results on the Kaggle Ultrasound Nerve Segmentation benchmark while maintaining the speed required for real-time clinical applications.

Introduction

Accurate nerve localization is essential for administering regional anesthesia, such as inserting catheters for post-surgical pain relief. Currently, this process relies on manual identification by experts, which is subjective and time-consuming. Automating nerve segmentation with Convolutional Neural Networks (CNNs) faces three primary hurdles: poor image quality (speckle noise), high anatomical variation in nerve shape and scale, and the necessity for real-time processing during live procedures.

While global context modeling can improve boundary definition, standard non-local attention mechanisms operate pixel-by-pixel. In the context of ultrasound, this granularity is both computationally prohibitive and technically flawed, as it models irrelevant speckle noise.

Methodology

The proposed network utilizes a U-Net-style encoder-decoder structure with a pre-trained ResNet-34 backbone. To address the limitations of standard attention, two key modules are integrated:

Region-aware Pyramid Aggregation (RPA) Module

The RPA module shifts the focus from individual pixels to regional contexts. It employs adaptive average pooling at three scales (3x3, 7x7, and 11x11) to generate regional feature maps. A self-attention mechanism is then applied to these regions, establishing long-range dependencies while acting as a spatial filter against pixel-level noise.

Adaptive Pyramid Fusion (APF) Module

Standard skip-connections in U-Nets can be misled by noise when concatenating high-level semantic features with low-level spatial features. The APF module utilizes a channel attention mechanism to dynamically re-weight and fuse multi-level feature maps, ensuring that only the most relevant features contribute to the final segmentation.

Overview of the proposed architecture featuring RPA and APF modules.

The model is trained using a combination of Binary Cross-Entropy (BCE) and Dice loss to mitigate the severe class imbalance between small nerve regions and the background.

Experiments and Results

The model was evaluated on the Kaggle Ultrasound Nerve Segmentation Challenge dataset, consisting of 11,143 expert-annotated images.

Quantitative Performance

The proposed architecture outperformed several established baselines, including U-Net, U-Net++, DA-Net, CE-Net, and CPF-Net. It achieved a Dice Coefficient (DC) of 74.23%, an Accuracy (ACC) of 99.37%, and an AUC of 99.66%. Ablation studies confirmed the efficacy of the new modules: the baseline ResNet-34 U-Net achieved 70.71% DC, which improved to 73.34% with the RPA module and reached 74.23% with both RPA and APF.

Qualitative Analysis

Visually, the model demonstrates superior robustness in segmenting nerves with irregular shapes and low contrast. Competing models often failed to detect small nerves or produced false positives in noisy regions.

Qualitative comparison of the proposed method against other state-of-the-art segmentation models.

Conclusion

By elevating attention mechanisms to the regional level and implementing adaptive feature fusion, this work provides an efficient and accurate solution for automatic nerve segmentation. The model's ability to handle noisy ultrasound data while maintaining real-time performance makes it a promising candidate for integration into ultrasound-guided clinical intervention systems. Future work will focus on validating the model across more diverse datasets and clinical settings.

Summary updated

BibTeX
@inproceedings{wu2021region,
  author = {Huisi Wu and Jiasheng Liu and Wei Wang and Zhenkun Wen and Jing Qin},
  title = {{Region-aware Global Context Modeling for Automatic Nerve Segmentation from Ultrasound Images}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i4.16397},
}
Figure