Manuscript Offprint

arXiv:2610.17951

FETALFusion: Resolution-Aware State-Space Modeling for Multi-Domain Fetal Head Segmentation

Ammar Bhilwarawala, Mainak Bandyopadhyay

Ammar Bhilwarawala

School of Computer Engineering,

KIIT Deemed to be University

Bhubaneswar, India

ammarbhilwarawala@gmail.com

Mainak Bandyopadhyay

School of Computer Engineering,

KIIT Deemed to be University

Bhubaneswar, India

mainak.bandyopadhyayfcs@kiit.ac.in

Abstract—Head circumference (HC) measured from 2D ultrasound is a routine marker of fetal growth, and automating it needs segmentations whose boundaries hold up on individual scans, not only on average. We present FETALFusion, a dual-path CNN-Mamba encoder-decoder for fetal head segmentation across acquisition types. It applies four-directional state-space scans only at the two highest-resolution stages, routes bottleneck features through domain-specific channel gates that are averaged at test time, and adds a weak landmark shape prior. We train jointly on transabdominal (HC-18) and transperineal (PSFHS) images and compare ten methods on a held-out test set of 471 images, each trained under one schedule and scored by surface distances at native resolution. FETALFusion reaches a Dice score of 0.963 and an HD95 of 2.10 mm without test-time augmentation or a domain label. It improves on U-Mamba on all five reported metrics (HD95 reduced by 0.31 mm; Holm-corrected p<10−4p < 10^{-4}), a lead that holds under test-time augmentation and across two independent training runs, and in the mean on U-Net, Attention U-Net and TransUNet. Residual encoders close the gap: a ResNet-34 UNet++ exceeds FETALFusion, and an ImageNet-initialised ResNet-34 U-Net is best overall (HD95 1.75 mm). The ablation agrees. Calibrated against run-to-run variation, it attributes FETALFusion's measurable gains to the landmark shape prior and, on transperineal images, to the domain gates, while removing the state-space branch does not measurably change accuracy. HC from the predicted masks agrees with the clinical reference at an intraclass correlation of 0.9986.

Index Terms—Fetal head segmentation, state-space models, multi-domain generalization, ultrasound image analysis, boundary-aware segmentation.

I. INTRODUCTION

Fetal head circumference (HC) measured from 2D ultrasound is used to track growth through pregnancy and to flag microcephaly and macrocephaly [1]. Manual measurement varies between operators, and automated segmentation is the obvious route to standardised biometry. The harder part is making it dependable on the individual scan: a method that is excellent on average can still return a badly wrong contour for a particular patient.

The difficulty is geometric. The fetal skull appears as a thin elliptical rim whose opposite sides can sit a large fraction of the image apart. A convolutional encoder relates the two sides only after heavy downsampling, by which point the rim has blurred. Our earlier Attention-ResUNet [2] strengthened a residual U-Net for this task with multi-scale attention gates, but it inherits the same limit. Self-attention covers that range directly, as in TransUNet [3], but its cost grows quadratically with the number of tokens, which is expensive at the resolutions where the boundary is still sharp.

State-space models offer linear-time sequence modelling with input-dependent gating. Mamba [4] has been adapted to medical segmentation by flattening 2D feature maps into 1D sequences [5], [6], and later work refines the serialisation itself, with high-order interactions in the 2D selective scan [7] or token clustering for local context [8]. Row-major flattening is weak at high resolution: two boundary points at the top and bottom of the skull, a few dozen pixels apart in the image, sit several thousand positions apart in the sequence at 1282128^{2}, and a causal scan carries information one way only. Columnwise and reversed scans address both. At 32232^{2} the whole map is 1,024 tokens, and the extra directions have far less to add.

That asymmetry suggests assigning scan directions by resolution. FETALFusion (Fig. 1) is built around the idea, with a mechanism for the domain shift between transabdominal and transperineal acquisitions that needs no scanner label at test time. We evaluate it under a strict protocol: a held-out test split, one training schedule for every model, surface distances at native resolution, and an ablation read against run-to-run variation.

References (25)