RLPNet: A Regional Window and Local-Global Position-Aware Network for Thyroid Nodule Segmentation in Ultrasound Images

Hengkai Lou, Hongwei Wang, Shengli Li, Chunlian Wang, Zhenyu Zhou, Yong Zhou, Ningbo Zhu, Kenli LiBHI 2026

TL;DR

Automatically outlining thyroid nodules in ultrasound images is notoriously tricky because of speckle noise, low contrast, and blurry boundaries. RLPNet tackles this with a lightweight encoder–decoder design that pairs regional window attention, a Mamba-based global–local coupler, and position-aware skip connections. The result is sharper nodule boundaries and higher segmentation accuracy than much heavier Transformer and Mamba baselines—all at just 3.64G FLOPs.

What Problem Does This Paper Address?

Ultrasound is the frontline tool for thyroid screening because it is fast, cheap, and non-invasive. However, ultrasound images are messy: they suffer from speckle noise, uneven intensity, weak tissue boundaries, and nodules that vary dramatically in size.

Existing deep learning approaches each hit a wall:

  • CNNs (like UNet) excel at local textures and edges, but their fixed receptive fields struggle to capture global context—especially for large or irregular nodules.
  • Transformers model long-range dependencies well, but self-attention is computationally expensive on high-resolution medical images and can overfit when labeled data is scarce.
  • Mamba-based models offer efficient global sequence modeling, yet purely global modeling can dull sensitivity to fine local boundaries.

The authors frame this as three coupled challenges: preserving local detail, modeling long-range context, and restoring accurate spatial positions during decoding—without blowing up the compute budget.

Methods

RLPNet builds on a standard CNN encoder–decoder backbone, introducing three complementary modules:

Fig. 1. Overall architecture and details of the proposed RLPNet.
  • Regional Window Modeling (RWM): Instead of using Swin Transformer's shifted-window attention, RWM partitions encoder features into resolution-adaptive, non-overlapping windows (default $4 \times 4$) that align directly with CNN downsampling. This restricts self-attention to local regions—cutting complexity from $O(n^2)$ to roughly $O(k^2 n)$—and softly weights multi-stage encoder features to combine shallow details with deep semantics.
  • Local–Global Coupling Module (LGCM): Sits at the bottleneck to fuse local RWM features with global context. The global branch uses Hidden State Container Mamba (HSC-Mamba) to project tokens into a compact hidden-state space, plus a parallel stochastic injection branch that adds structured Gaussian noise to encourage robustness. Rather than summing or concatenating branches blindly, LGCM computes cosine similarity between local and global features at each position to dynamically weight their contributions, followed by a $3 \times 3$ convolution to sharpen edges.
  • Positional Enhancement Attention (PEA): Enhances skip connections before they enter the decoder. PEA combines a coordinate attention branch (horizontal and vertical global average pooling to preserve exact spatial coordinates), a multi-scale dilated convolution branch (dilation rates $\{1, 2, 5\}$), and an edge-aware branch, using a learned gate to adaptively fuse them.

Datasets

The authors evaluate RLPNet on two public benchmarks and one private clinical dataset (all images resized to $256 \times 256$):

  • TN3K (public): 3,493 ultrasound images from 2,421 patients (2,879 training, 614 testing).
  • DDTI (public): 637 ultrasound images (520 training, 117 testing).
  • Private Clinical Dataset: 18,677 images from 195 patients collected at the Second Affiliated Hospital of Wenzhou Medical University using Mindray and Siemens ultrasound systems. Split strictly at the patient level (156 patients / 16,208 images for training; 39 patients / 2,469 images for testing) to test cross-device and cross-operator generalization.

Key Insights and Ideas

  • Adaptive-resolution windows beat shifted windows: Aligning $4 \times 4$ regional windows directly with CNN feature scales (RWM) outperforms both standard windowed attention (W-MSA) and Swin-style shifted windows (SW-MSA) without extra shifting overhead.
  • Similarity-guided fusion > fixed fusion: Dynamically weighting local and global branches via cosine similarity in LGCM consistently beats fixed-weight summation, concatenation with $1 \times 1$ convolution, or using either branch alone.
  • A little noise helps: Removing the stochastic noise injection inside HSC-Mamba drops IoU/Dice by 0.26/0.18 on TN3K and 0.23/0.17 on DDTI, showing that mild perturbation acts as an effective regularizer.
  • Lightweight doesn't mean weak: With 13.44M parameters and 3.64G FLOPs, RLPNet is drastically lighter than baselines like TransUNet (91.76G FLOPs) and SegFormer (19.56G FLOPs), while outperforming them.

Key Results

  • TN3K: RLPNet achieves 74.15% IoU and 84.43% Dice, outperforming VMUNet (+1.86 IoU points), SegFormer (+2.87 IoU points), and BiSeNet (+5.72 IoU points).
  • DDTI: RLPNet achieves 73.84% IoU (highest overall, +0.89 over SegFormer) and 84.14% Dice (within 0.02 points of SegFormer's 84.16%).
  • Private Dataset: RLPNet leads across all metrics with 70.45% IoU and 82.13% Dice, beating UNet++, TransUNet, and Swin-UMamba.
  • Boundary Quality: On boundary-aware metrics, RLPNet achieves lower Hausdorff Distance 95 (HD95) and higher Boundary F1 (BF1) than SegFormer and VMUNet on both TN3K (7.45 HD95 / 83.52 BF1) and DDTI (7.86 HD95 / 82.91 BF1).

Limitations and Future Work

The authors note that very small nodules and extremely weak boundaries remain challenging. In future work, they plan to explore more selective feature filtering, stronger boundary enhancement mechanisms, and validation on larger multi-center datasets.

Summary updated

BibTeX
@inproceedings{lou2026rlpnet,
  author = {Hengkai Lou and Hongwei Wang and Shengli Li and Chunlian Wang and Zhenyu Zhou and Yong Zhou and Ningbo Zhu and Kenli Li},
  title = {{RLPNet: A Regional Window and Local-Global Position-Aware Network for Thyroid Nodule Segmentation in Ultrasound Images}},
  booktitle = {BHI},
  year = {2026},
  url = {https://openreview.net/forum?id=8Zqc7NYdL4},
}
Figure