SA$^{2}$Net: Scale-Adaptive Structure-Affinity Transformation for Spine Segmentation from Ultrasound Volume Projection Imaging

Hao Xie, Zixun Huang, Yushen Zuo, Yakun Ju, Frank H. F. Leung, N. F. Law, Kin-Man Lam, Yong-Ping Zheng, Sai Ho Ling · DOI

TL;DR

SA$^2$Net introduces a novel scale-adaptive, structure-aware deep learning network designed to segment spine anatomy from ultrasound Volume Projection Imaging (VPI). By combining a scale-adaptive channel-spatial attention mechanism with a transformer-based structure-affinity decoder, it achieves state-of-the-art segmentation performance, paving the way for accurate, radiation-free scoliosis assessment.

What Problem Does This Paper Address?

Adolescent idiopathic scoliosis (AIS) is a prevalent spinal deformity primarily diagnosed during crucial growth years. While X-ray radiography remains the gold standard for quantifying spinal curvature (via the Cobb Angle), its repeated use poses significant radiation-induced health risks to children, such as increased cancer rates.

Ultrasound Volume Projection Imaging (VPI) has emerged as a safe, radiation-free alternative. VPI compresses 3D ultrasound data into 2D coronal images that look similar to X-rays, allowing clinicians to locate critical bony features like ribs, thoracic processes, and lumbar "lumps." However, automatically segmenting these bones from ultrasound VPI is incredibly challenging. Ultrasound images suffer from low contrast and speckle noise, and adjacent bone features often blend together in the feature space, leading to ambiguous boundaries. Standard convolutional networks (CNNs) struggle to capture long-range spatial dependencies, while standard Transformers can fail to preserve the strict structural and shape priors inherent to human anatomy.

Figure 1: An illustration of spine segmentation from ultrasound VPI images. (a) Spinal 3D ultrasound volume data, which are in the form of an ultrasound sequence of 2D slices; (b) One extracted ultrasound VPI image based on the projection on the 2D coronal plane; and (c) Different bone features in the spinal image. The segmented rib and thoracic process are painted red and green, respectively. The lump, which is formed by the combined shadow of the partial bilateral inferior articular process, laminae, and the superior articular process of the inferior vertebrae, is painted blue.

Methods

To overcome these limitations, the authors propose SA$^2$Net (Scale-Adaptive Structure-Aware Network), which integrates two main novel components into an encoder-decoder architecture:

  1. Scale-Adaptive Channel-Spatial Attention Module (SACSAM): Standard attention mechanisms often look at spatial layout or channel correlations independently. SACSAM uses two parallel branches—a Global Channel Attention (GCA) module and stacked Spatial Criss-cross Attention (SCA) modules—modulated by learnable scale parameters ($\lambda_1, \lambda_2$). This allows the network to dynamically balance and fuse cross-dimensional features based on the varying sizes of the bone structures.
  2. Structure-Aware Module (SAM) with Structure-Affinity Transformation: The authors exploit the fact that multi-head self-attention in Transformers inherently captures semantic-level affinity. SAM introduces learnable class-specific queries that act as structural prototypes. It computes a Structure-Affinity Transformation by taking pixel-level classification confidences and multiplying them by class-specific affinity matrices. This mathematical constraint forces features belonging to the same bone category closer together while pushing different categories apart, sharpening ambiguous segment boundaries.
Figure 2: (a) An overview of the proposed SA2Net. 𝑥represents an input spinal image while ̂𝑦denotes the predicted segmentation result. 𝑡𝑜𝑡𝑎𝑙is the optimized loss during the training process; (b) An illustration of the specially designed Transformer decoder with cross-attention. The query features are input into this Transformer decoder and are updated with multi-scale image features, generating semantic class masks.

Additionally, the network utilizes a Feature Mixing Loss Aggregation strategy during training. Instead of only supervising the final output, it creates synthetic intermediate predictions by mixing features from different modules and calculates a combinatorial Cross-Entropy loss, optimizing the network from fine-grained details to the overall global structure.

Datasets

The model was trained and evaluated on a clinical dataset consisting of 109 patients undergoing scoliosis assessment.

  • Data Acquisition: 3D ultrasound scans were captured using the Scolioscan system and projected into 2D coronal VPI images (originally ~2600 × 640 pixels, resized to 2048 × 512 pixels).
  • Ground Truth: Manually annotated by three ultrasound experts, delineating three critical bone classes: ribs, thoracic processes, and lumps.
  • Evaluation: The authors utilized a rigorous 3-fold subject-independent cross-validation strategy to ensure the model generalizes well to unseen patients.

Key Insights and Ideas

  • Anatomy as a Geometric Constraint: Instead of relying purely on pixel-level appearance, SA$^2$Net treats anatomical consistency as a geometric affinity problem. By explicitly weighting transformer attention maps with classification confidence, the model learns where bones should realistically exist relative to one another.
  • The Power of Learnable Scaling: Fixed dual-attention mechanisms often over- or under-emphasize spatial context. Introducing simple learnable parameters ($\lambda_1, \lambda_2$) allows the network to adaptively scale its focus depending on whether it is segmenting large, elongated ribs or smaller, localized thoracic processes.

Key Results

The authors evaluated SA$^2$Net using standard segmentation metrics: Dice Similarity Score (DSC), Intersection over Union (IoU), and Pixel Accuracy (Acc). The framework proved highly flexible, achieving state-of-the-art results across both CNN and Transformer backbones:

  • With a Swin-Large Backbone: SA$^2$Net achieved an average DSC of 86.71%, IoU of 77.18%, and Accuracy of 86.84%, outperforming competitive baselines like UPerNet.
  • With a ResNet-50 Backbone: It achieved a DSC of 85.21% and IoU of 74.92%, significantly outperforming specialized spine segmentation networks like SEAM and SADANet.
  • Efficiency: Despite the architectural additions, the ResNet-50 variant maintains a highly practical inference speed of 1.9 FPS, making it viable for real-world clinical deployment.

Limitations and Future Work

While SA$^2$Net shows excellent accuracy, it demands substantial computational power during training; the Swin-Large variant requires roughly 23 hours of training and consumes up to 20.9 GB of GPU memory. This could limit its optimization in resource-constrained settings. Furthermore, while 109 clinical cases provide a solid baseline, the dataset is relatively small. The authors note that incorporating semi-supervised or self-supervised learning strategies in the future will be essential to scale the model to more diverse anatomical variations and imaging conditions without requiring extensive expert annotations.

Summary updated

BibTeX
@inproceedings{xie2025sa,
  author = {Hao Xie and Zixun Huang and Yushen Zuo and Yakun Ju and Frank H. F. Leung and N. F. Law and Kin-Man Lam and Yong-Ping Zheng and Sai Ho Ling},
  title = {{SA$^\{2\}$Net: Scale-Adaptive Structure-Affinity Transformation for Spine Segmentation from Ultrasound Volume Projection Imaging}},
  booktitle = {Comput. Medical Imaging Graph},
  year = {2025},
}
Figure