Metadata Conditioning via Feature-Wise Linear Modulation for Multi-Domain 3D Abdominal Segmentation: A Comparative Study Between U-Net and nnU-Net.
Аннотация
Automatic 3D abdominal organ segmentation in magnetic resonance imaging presents a major challenge: data heterogeneity, caused by differences in acquisition protocol, contrast, spatial resolution, and imaging characteristics, which can degrade model generalization. This work investigates the use of FiLM (Feature-wise Linear Modulation) as a metadata-conditioning mechanism to improve the contextual adaptation of 3D segmentation networks. To this end, two reference architectures, U-Net and nnU-Net v2, were compared in both their baseline versions and their FiLM-conditioned variants. The evaluation was carried out on the CHAOS and AMOS datasets, as well as on a combined CHAOS+AMOS setting to analyze multi-domain robustness. The results show that the effect of FiLM clearly depends on the underlying architecture. In U-Net, FiLM produced favourable quantitative trends in the final post-processed predictions, with a small gain in CHAOS, a clearer improvement in AMOS, and the largest effect in the combined scenario, where the increase reached +0.0215 in clean Dice, together with reductions of -6.66 mm in HD95 and -3.85 mm in ASD. However, these improvements were not uniform across all metrics and organs. In contrast, in nnU-Net the conditioning did not provide consistent benefits and reduced performance in some scenarios, particularly in AMOS. In addition, when post-processing was applied to remove islands and disconnected components, its impact was much greater in U-Net than in nnU-Net, indicating that the latter produced cleaner and more stable segmentations directly from the raw output. Overall, this work suggests that FiLM can be useful to reinforce more generic architectures such as U-Net, especially when problem heterogeneity increases, but it was not consistently beneficial for nnU-Net, whose baseline already constituted the most robust and best-balanced model in the study. These results support the idea that the value of metadata conditioning is not universal, but instead depends on the base architecture and the generalization scenario under consideration.
Другие публикации по теме
Перевод полного текста: Перевод в очереди
Полный текст источника
https://creativecommons.org/licenses/by/4.0/ Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license .
1. Introduction
Automatic segmentation of abdominal organs in three-dimensional magnetic resonance imaging (MRI) is an important task in medical image analysis due to its relevance in clinical practice and biomedical research. Accurate delineation of structures such as the liver, spleen, and kidneys can support surgical and radiotherapy planning, anatomical quantification, disease monitoring, and patient-specific assessment. However, manual segmentation of 3D abdominal images remains time-consuming and observer-dependent, particularly when volumetric studies require slice-by-slice annotation. These limitations have motivated the development of automatic segmentation methods capable of producing accurate, reproducible, and efficient organ masks [ 1 , 2 ].
Abdominal MRI remains a challenging segmentation scenario because organs vary considerably in shape, size, position, and relationship with surrounding tissues. In addition, organ boundaries may be difficult to distinguish due to low soft-tissue contrast, partial volume effects, respiratory motion, intensity inhomogeneity, and the similar appearance of adjacent structures [ 3 ]. These difficulties are further amplified by acquisition-related variability. Unlike computed tomography, MRI does not provide a universal absolute intensity scale, and image appearance may change substantially depending on sequence type, scanner configuration, spatial resolution, reconstruction process, contrast characteristics, and protocol-specific parameters [ 4 ].
This variability can produce a domain shift, understood as a mismatch between the data distribution used during training and the distribution encountered during validation, testing, or real-world deployment. In medical imaging, such shifts may arise from differences in scanner manufacturer, acquisition sequence, spatial resolution, reconstruction settings, or contrast properties. Consequently, a segmentation model trained under specific conditions may experience reduced performance when applied to images acquired under different conditions. This problem is especially relevant in multi-domain scenarios, where images from different datasets or acquisition protocols are combined within the same segmentation task [ 5 , 6 , 7 , 8 ].
Deep learning has substantially improved medical image segmentation, particularly through convolutional encoder–decoder architectures [ 1 , 9 ]. Among them, U-Net and its three-dimensional extensions have become widely used baselines for volumetric biomedical segmentation because they combine contextual feature extraction with spatial resolution recovery [ 10 , 11 ]. However, standard U-Net architectures do not explicitly account for acquisition-dependent variability, since all input images are processed using the same learned operations regardless of sequence type, dataset domain, or intensity characteristics. In contrast, nnU-Net has emerged as a strong reference framework for biomedical image segmentation by automatically adapting key elements of the segmentation pipeline to each dataset [ 12 ]. For this reason, recent work has emphasized that new architectural proposals should be compared against strong baselines such as nnU-Net to avoid overestimating methodological improvements [ 13 ].
One possible strategy to improve robustness under heterogeneous acquisition conditions is to provide the model with auxiliary information describing the acquisition context or global appearance of each image. Instead of forcing the network to infer all sources of variability from the image alone, metadata can be used to condition its internal representations. Feature-wise Linear Modulation (FiLM) provides a simple and flexible mechanism for this purpose by using an external conditioning vector to generate feature-wise scaling and shifting parameters that modulate intermediate feature maps [ 14 ]. Although FiLM was originally introduced in visual reasoning tasks, its general formulation makes it suitable for medical imaging scenarios where acquisition-related or image-derived metadata may help adapt learned representations [ 15 ].
In abdominal MRI segmentation, FiLM is particularly appealing because differences in acquisition sequence, contrast, and intensity distribution can affect the interpretation of anatomical structures. However, the benefit of metadata conditioning should not be assumed to be universal. Its effectiveness may depend on the selected metadata, the degree of heterogeneity, the location of the modulation layers, and the robustness of the baseline architecture. In a standard 3D U-Net, FiLM may provide an additional adaptation mechanism, whereas in nnU-Net part of the variability may already be handled by its automatic preprocessing, planning, normalization, and training configuration.
To investigate this question, this work evaluates metadata conditioning through FiLM for 3D abdominal organ segmentation in MRI. Two reference architectures are compared: a standard 3D U-Net and nnU-Net v2. Each architecture is evaluated in its baseline form and in a FiLM-conditioned variant. The experiments are performed on two public abdominal MRI benchmarks, CHAOS and AMOS, as well as on a combined CHAOS+AMOS scenario designed to increase acquisition-related and dataset-related heterogeneity [ 16 , 17 , 18 ]. In addition, both raw and connected-component post-processed predictions are analyzed in order to distinguish the intrinsic stability of the model outputs from the final performance of the complete segmentation pipeline.
The main contributions of this work are: first, the integration and evaluation of FiLM as a metadata-conditioning mechanism for 3D abdominal MRI segmentation; second, the systematic comparison of standard 3D U-Net and nnU-Net v2, with and without FiLM, across CHAOS, AMOS, and CHAOS+AMOS; third, the analysis of metadata conditioning under different levels of acquisition-related heterogeneity; and fourth, the evaluation of connected-component post-processing by comparing raw and clean predictions. Rather than assuming that metadata conditioning provides a universal improvement, this study analyzes when FiLM is beneficial and when its contribution is limited by the strength of the underlying segmentation framework.
The remainder of this paper is organized as follows. Section 2 reviews related work on medical image segmentation, nnU-Net, metadata conditioning, FiLM, and domain shift in medical imaging. Section 3 describes the methodology, including datasets, preprocessing, metadata extraction, model training, post-processing, and evaluation. Section 4 presents the experimental results, Section 5 discusses the main findings, and Section 6 summarizes the conclusions and future research directions.
2. Related Work
Deep learning has become the dominant approach for medical image segmentation, particularly after the introduction of fully convolutional networks for dense prediction tasks [ 19 ]. In biomedical imaging, U-Net became one of the most widely used encoder–decoder architectures due to its skip connections and its ability to combine contextual information with spatial detail [ 10 ]. This design was later extended to volumetric data through 3D U-Net, allowing the model to exploit inter-slice anatomical continuity [ 11 ], while other architectures such as V-Net further consolidated fully convolutional 3D segmentation and Dice-based optimization for imbalanced medical data [ 20 ]. Subsequent methods have introduced dense skip pathways, attention gates, transformer-based global context modeling, and self-supervised pretraining, as illustrated by UNet++, Attention U-Net, TransUNet, Swin UNETR, and Models Genesis [ 21 , 22 , 23 , 24 , 25 ]. Despite this diversity, U-Net-like architectures remain strong baselines for medical and abdominal organ segmentation [ 1 , 26 ].
Among current reference methods, nnU-Net has become one of the most influential frameworks in biomedical image segmentation. Rather than proposing only a fixed architecture, nnU-Net automatically adapts key elements of the segmentation pipeline, including preprocessing, resampling, normalization, network configuration, training, inference, and post-processing, to the properties of each dataset [ 12 ]. Its importance as a benchmark has also been emphasized in recent work on rigorous validation of 3D medical segmentation methods [ 13 ]. This is particularly relevant for the present study, since the effect of metadata conditioning should be evaluated not only against a standard 3D U-Net, but also against a strong and carefully optimized framework such as nnU-Net v2.
Abdominal MRI segmentation remains challenging because image appearance is strongly affected by acquisition sequence, scanner configuration, contrast properties, spatial resolution, and intensity distribution. Recent works have addressed this problem from complementary perspectives. Zhuang et al. proposed MRISegmenter for automated multiorgan and structure segmentation in abdominal MRI, reflecting the growing interest in robust MRI-specific abdominal segmentation systems [ 27 ]. Ciausu et al. investigated the use of synthesized data generated from CT labels to support abdominal MRI organ segmentation, addressing the limited availability of voxel-level MR annotations and the difficulty of learning from heterogeneous MRI data [ 28 ]. Public benchmarks such as CHAOS and AMOS provide useful data sources for studying these challenges, since they include abdominal MRI data acquired under different sequences, protocols, and clinical conditions [ 16 , 17 ].
Most segmentation models, however, still process the medical image as the only input and do not explicitly use contextual information associated with the acquisition process. Metadata conditioning aims to incorporate auxiliary information, such as acquisition-related or image-derived descriptors, so that the network can adapt its internal representations to each case. Related ideas have been explored through conditional normalization and feature modulation mechanisms [ 29 , 30 ]. Feature-wise Linear Modulation (FiLM) provides a simple implementation of this idea by using an external conditioning vector to generate feature-wise scaling and shifting parameters for intermediate feature maps [ 14 ]. Its simplicity and low computational cost make it attractive for medical imaging, where it is often desirable to preserve a validated segmentation backbone while adding lightweight contextual adaptation [ 31 ]. In medical segmentation, Lemay et al. showed that metadata can be integrated through low-cost feature modulation [ 15 ], while Khan et al. proposed a metadata-aware cardiac segmentation framework to improve robustness under acquisition- and patient-related variability [ 32 ]. These studies suggest that metadata can be useful, although its benefit may depend on the metadata type, anatomy, architecture, modulation strategy, and degree of heterogeneity.
The motivation for metadata conditioning is closely related to domain shift in medical imaging. Recent surveys on domain adaptation and domain generalization have highlighted that robustness to out-of-distribution data and inter-site variability remains a major challenge for medical image analysis systems [ 5 , 6 ]. In segmentation, this mismatch may cause performance degradation when models are applied to images acquired with different scanners, protocols, or population characteristics. Karani et al. showed that CNN-based segmentation models can degrade under such shifts and proposed test-time adaptation as a strategy to improve robustness [ 7 ]. Multi-domain and multi-dataset learning can also improve generalization by exposing models to different sources, although it introduces challenges related to resolution, intensity distribution, annotation protocol, and label availability [ 18 ]. In this context, FiLM can be interpreted as a lightweight strategy for adapting internal representations according to acquisition-related or image-derived descriptors, without replacing dedicated domain adaptation or domain generalization methods.
Recent segmentation research has also explored alternative strategies to improve representation robustness, including knowledge distillation, contrastive learning, and prototype-based learning. Zhou et al. proposed MRKD-PBCL, a class-incremental semantic segmentation method based on multi-level region-wise knowledge distillation and prototype balanced contrastive learning [ 33 ]. This work is relevant because it reflects the increasing interest in preserving useful representations and improving class separation under changing learning conditions. However, it addresses a different problem from the present study: MRKD-PBCL focuses on learning new classes while retaining previous knowledge, whereas our work focuses on 3D abdominal MRI segmentation under acquisition-related and dataset-related variability. Therefore, MRKD-PBCL is not considered a direct baseline here, but it provides useful context for positioning FiLM-based metadata conditioning among recent strategies aimed at improving segmentation robustness.
Evaluation methodology is also important because no single metric fully captures segmentation quality. The Dice Similarity Coefficient is widely used to quantify volumetric overlap [ 34 ], but it is commonly complemented with surface-distance metrics such as Hausdorff Distance and Average Surface Distance to assess boundary accuracy and spatial agreement [ 35 , 36 ]. In addition, connected-component post-processing is frequently used to remove small disconnected regions or isolated false positives, and previous work has shown that automatic post-processing can improve abdominal MRI segmentation by correcting common prediction errors [ 37 ]. Evaluating both raw and post-processed predictions can therefore help distinguish the intrinsic stability of the model output from the final performance of the complete segmentation pipeline.
Unlike previous FiLM-based medical segmentation studies, which mainly showed that metadata can be incorporated through feature modulation [ 15 , 32 ], this work evaluates FiLM as an architecture-dependent strategy. Specifically, we compare its effect in a generic 3D U-Net and in nnU-Net v2, whose self-configuring pipeline already adapts preprocessing, normalization, planning, training, and inference [ 12 ]. Thus, the main conceptual contribution is to assess when metadata conditioning remains useful across different levels of built-in adaptability and across single- and multi-domain abdominal MRI settings.
Overall, previous work shows that U-Net-like architectures remain strong foundations for biomedical segmentation, nnU-Net represents a robust reference framework, abdominal MRI segmentation is still affected by acquisition variability and limited annotation availability, and FiLM provides a lightweight mechanism for incorporating contextual information into neural networks. At the same time, recent methods such as MRKD-PBCL show that robust segmentation increasingly relies on improved representation learning, although through strategies different from metadata conditioning. This motivates the present study, which evaluates whether FiLM-based metadata conditioning provides measurable benefits in 3D abdominal MRI segmentation, and whether these benefits differ between a standard 3D U-Net and a strong nnU-Net v2 baseline across CHAOS, AMOS, and a combined CHAOS+AMOS scenario.
3. Materials and Methods
This section describes the experimental protocol used to evaluate FiLM-based metadata conditioning for 3D abdominal MRI segmentation. Four model configurations were compared: a baseline 3D U-Net, a FiLM-conditioned 3D U-Net, a baseline nnU-Net v2, and a FiLM-conditioned nnU-Net v2. Experiments were conducted in three scenarios: CHAOS, AMOS, and a combined CHAOS+AMOS setting. The individual datasets were used to assess model behavior under dataset-specific conditions, whereas the combined scenario was designed to evaluate robustness under increased multi-domain heterogeneity.
This design allowed us to analyze whether FiLM provides additional benefit depending on the underlying architecture and data variability. The standard 3D U-Net was used as a generic encoder–decoder baseline, while nnU-Net v2 was included as a strong self-configuring framework. In all scenarios, both raw and connected-component post-processed predictions were evaluated to assess segmentation accuracy and structural stability.
3.1. Datasets and Acquisition Context
Two publicly available abdominal imaging datasets were used: CHAOS and AMOS [ 16 , 17 ]. Both datasets are commonly used for the development and evaluation of automatic abdominal organ segmentation methods. In this study, only magnetic resonance imaging data were considered. From a biomedical sensing perspective, each MRI volume can be interpreted as the output of an acquisition system in which the measured signal is shaped by scanner hardware, pulse sequence, spatial sampling, reconstruction, and protocol-specific parameters. Therefore, the input data used in this study are not only image volumes, but sensor-derived biomedical measurements whose appearance may vary across acquisition settings.
The CHAOS MRI subset included 60 volumetric series from 20 subjects, with three acquisitions per subject: T1 in-phase, T1 out-of-phase, and T2-SPIR. These acquisitions introduce differences in contrast and tissue appearance within a relatively controlled dataset structure. The AMOS MRI subset included 60 MRI cases with available annotations for the target organs. Compared with CHAOS, AMOS represents a more heterogeneous setting, with images acquired under more diverse clinical and acquisition conditions. However, detailed acquisition metadata were not available in a homogeneous way across all cases and both datasets, which limited the possibility of explicitly analyzing scanner- or protocol-specific effects. In addition to the individual CHAOS and AMOS experiments, a combined CHAOS+AMOS scenario was defined by integrating MRI cases from both datasets, allowing the evaluation of a single model across two public abdominal MRI sources.
A common five-class label space was used across all experiments: background (0), liver (1), right kidney (2), left kidney (3), and spleen (4). Since the original annotation conventions differed between datasets, all masks were remapped before training and evaluation to ensure a consistent segmentation task. In CHAOS, the source labels were 63 for liver, 126 for right kidney, 189 for left kidney, and 252 for spleen. In AMOS, the corresponding source labels were 6, 2, 3, and 1, respectively.
A fixed 70/15/15 train/validation/test split was used in all experiments to ensure a direct comparison between baseline and FiLM-conditioned models under identical data partitions. In CHAOS, the split was performed at subject level to avoid data leakage between the different MRI sequences from the same subject. In AMOS, each case was treated as an independent volumetric study. In the combined CHAOS+AMOS scenario, the test set was balanced between domains, including 9 CHAOS and 9 AMOS cases. The dataset composition and split are summarized in Table 1 .
All data used in this study were obtained from publicly available and anonymized benchmark datasets. No private, proprietary, or internally collected clinical data were used, and the study did not involve direct patient recruitment, prospective data acquisition, or access to identifiable clinical information. Although this improves reproducibility, the experiments depend on the specific MRI subsets, label harmonization strategy, preprocessing pipeline, and fixed data partitions defined in this study.
3.2. Preprocessing, Metadata Extraction and Normalization
The preprocessing pipeline converted the original CHAOS and AMOS data into a common volumetric format suitable for training and evaluation. Since both datasets used different image formats and annotation conventions, dataset-specific preprocessing was first applied. The final output consisted of paired NIfTI volumes, including one MRI image and its corresponding multi-class segmentation mask.
For CHAOS, MR images were reconstructed from DICOM series while preserving the available spatial metadata, including voxel spacing, orientation, and origin. The original two-dimensional PNG masks were sorted, stacked into 3D label volumes, and remapped to the shared label space defined in Section 3.1 . When the number of image and mask slices did not match, both volumes were center-cropped along the slice direction to obtain a consistent image-label pair. For AMOS, preprocessing started from the original NIfTI images and labels. Only MRI cases with valid ground-truth annotations were retained, and labels not included in the target organ set were assigned to background.
After dataset-specific preprocessing, all valid cases were registered in a unified metadata index containing the dataset origin, case identifier, image and label paths, sequence information when available, voxel spacing, and split assignment. Quality-control checks verified file existence, valid label values, shape consistency, affine compatibility, and non-empty foreground masks. This ensured that all models were trained and evaluated using consistent image-label pairs while preserving the acquisition-related variability required for the robustness analysis.
Metadata were extracted at case level to provide the FiLM-conditioned models with contextual information related to the acquisition setting or the global appearance of each MRI volume. The objective was not to introduce clinical variables, but to define image-level descriptors that could help the network adapt its internal representations to differences in sequence type, intensity distribution, contrast, and dataset domain.
Different metadata configurations were used depending on the experimental scenario, as summarized in Table 2 . In CHAOS, sequence metadata were used because the acquisition sequence was explicitly available and represented a relevant source of appearance variability. The sequence was encoded using a three-dimensional one-hot vector indicating whether the input corresponded to T1 in-phase, T1 out-of-phase, or T2-SPIR. In AMOS and CHAOS+AMOS, intensity-based descriptors were selected to summarize global image characteristics in a dataset-independent way.
For AMOS, no categorical sequence information equivalent to the CHAOS MRI sequence labels was available. Therefore, image-derived intensity descriptors were used as metadata. These descriptors were selected because they can be computed directly from the input MRI volume and provide a compact summary of its global appearance. Specifically, the mean intensity, standard deviation, and robust lower and upper percentiles were used to characterize the overall signal level, intensity dispersion, and dynamic range of each case. The resulting variables were standardized and denoted as mean z , std z , p 05 z , and p 95 z .
For the combined CHAOS+AMOS scenario, foreground-based intensity descriptors were used instead of whole-volume statistics to better account for differences in background, field of view, cropping, and intensity distribution between datasets. The foreground region was estimated directly from each MRI volume by selecting finite non-background voxels, without using the ground-truth masks, thereby avoiding anatomical label leakage and allowing the same procedure to be applied during inference. Foreground intensities were robustly clipped using the 1st and 99th percentiles and rescaled to [ 0 , 1 ] . The selected descriptors were the 25th and 75th percentiles, foreground mean, skewness, and a contrast ratio, summarizing the central intensity range, average signal level, distribution asymmetry, and relative contrast of the foreground region. The contrast ratio was defined as: (1) contrast _ ratio = p 75 − p 25 p 95 − p 05 + ε where ε is a small numerical stability constant. A zero or near-zero value of p 95 − p 05 is not expected in normal cases, but it could occur in degenerate or nearly constant foreground regions. Therefore, ε was retained to avoid numerical instability without affecting ordinary cases.
All continuous metadata variables were standardized before being provided to the FiLM modules. For each experimental scenario, the mean and standard deviation of each metadata variable were computed using only the training cases and then applied to the validation and test cases. This avoided information leakage from the evaluation data. For each raw continuous metadata variable m , its standardized version m z was computed as: (2) m z = m − μ train σ train + ε where μ train and σ train are the mean and standard deviation estimated from the training set, and ε is included for numerical stability. Categorical sequence metadata were not standardized because they were represented using one-hot encoding.
3.3. Baseline Architectures
Baseline models were included to establish reference segmentation performance without metadata conditioning. Two architectures were evaluated across CHAOS, AMOS, and CHAOS+AMOS: a standard 3D U-Net and nnU-Net v2. In both cases, only the preprocessed MRI volume was used as input, and the resulting performance served as the reference for comparison with the FiLM-conditioned variants.
3.3.1. U-Net Baseline
The first baseline was a standard 3D U-Net implemented in PyTorch 2.8.0 for multi-class abdominal organ segmentation. The network received a single-channel MRI volume as input and produced voxel-wise logits for the five-class segmentation task. It followed a classical encoder–decoder structure with three encoder levels, a bottleneck, and a symmetric decoder connected through skip connections. In the encoder, spatial resolution was progressively reduced while feature representations evolved from low-level local patterns to more abstract contextual and anatomical features. The bottleneck provided the deepest contextual representation of the input volume. In the decoder, spatial resolution was progressively restored using transposed convolutions, while skip connections fused encoder and decoder features to support feature recovery at coarse, intermediate, and fine levels of detail.
Each convolutional block was implemented as a DoubleConv module composed of two consecutive Conv3D–InstanceNorm–LeakyReLU operations, using a kernel size of 3 and padding of 1. The base number of feature channels was set to 32 and doubled after each downsampling operation, reaching 256 channels at the bottleneck. A final 1 × 1 × 1 convolution mapped the decoder output to the five target classes. When required, center-cropping was applied before concatenating encoder and decoder features to preserve skip-connection alignment. No metadata or explicit conditioning mechanism was included in this baseline. The architecture is summarized in Figure 1 .
3.3.2. nnU-Net Baseline
The second baseline was nnU-Net v2, included as a strong self-configuring reference framework for 3D biomedical image segmentation. Unlike the custom 3D U-Net, nnU-Net v2 defines a complete segmentation pipeline that adapts preprocessing, network configuration, training, and inference to the properties of each dataset. This made it suitable for assessing whether FiLM-based metadata conditioning provides additional benefit when the underlying segmentation pipeline is already highly optimized.
For each experimental scenario, the preprocessed NIfTI volumes were converted to the standard nnU-Net dataset structure using a single MRI input channel and the harmonized five-class label space. Three independent nnU-Net datasets were prepared for CHAOS, AMOS, and CHAOS+AMOS, and planning and preprocessing were performed separately for each scenario using the corresponding dataset fingerprint. All baseline nnU-Net models were trained with the 3d_fullres configuration and fold 0. A custom splits_final.json file was used to match the predefined training and validation partitions, ensuring comparability with the other experiments.
3.4. FiLM-Conditioned Architectures
The FiLM-conditioned architectures were derived from the corresponding baseline models by adding metadata-dependent feature modulation modules. In these models, the MRI volume remained the main input, while the case-level metadata vector was used to generate scaling and shifting parameters that modulated intermediate feature maps. Therefore, metadata were not concatenated to the image but used as contextual information to adapt the internal representations of the network.
Feature-wise Linear Modulation was implemented as a lightweight affine conditioning mechanism, following the general FiLM framework proposed by Perez et al. [ 14 ]. Let x i ∈ R B × C × H × W × D be an intermediate feature map, where B is the batch size, C the number of channels, and H , W , and D the spatial dimensions. Let m ∈ R B × M be the metadata vector associated with each case. The FiLM generator h i , implemented as a multilayer perceptron, receives m as input and generates two channel-wise modulation vectors, γ i and β i : (3) [ γ i , β i ] = h i ( m ) where γ i , β i ∈ R B × C . These vectors are broadcast along the spatial dimensions before being applied to the corresponding feature map.
In this implementation, these vectors modulate the feature maps using a residual scaling form: (4) FiLM ( x i ∣ m ) = 1 + γ i ⊙ x i + β i where ⊙ denotes the Hadamard product. This residual formulation allows the FiLM layer to represent an identity mapping when γ i = 0 and β i = 0 , which can help preserve the behavior of the baseline feature extractor when no modulation is required.
3.4.1. FiLM Integration in U-Net
The FiLM-conditioned U-Net used the same 3D U-Net backbone described in Section 3.3.1 . The main modification was the replacement of selected DoubleConv blocks with FiLMDoubleConv blocks, which first applied the standard convolutional operations and then modulated the resulting feature maps using FiLM. The FiLM generator was implemented as a multilayer perceptron with one hidden layer of 64 units, producing the corresponding γ i and β i parameters for each modulated feature level.
The FiLM insertion points were scenario-dependent and were selected empirically from a limited set of candidate placements during model development. In CHAOS, FiLM was applied to encoder level 3, the bottleneck, and decoder level 3. In AMOS, FiLM was applied more broadly across encoder, bottleneck, and decoder blocks. In the combined CHAOS+AMOS scenario, modulation was restricted to encoder levels 2 and 3 and the bottleneck, leaving the first encoder level and decoder path unmodulated. Apart from these FiLM blocks and the corresponding metadata input, the model remained identical to the baseline 3D U-Net. Since FiLM placement may influence performance, additional exploratory configurations are analyzed in Section 4.4.3 .
3.4.2. FiLM Integration in nnU-Net
FiLM was integrated into nnU-Net v2 by extending the PlainConvUNet backbone generated by the standard nnU-Net planning procedure. The resulting architecture, referred to as PlainConvUNetFiLM, preserved the original encoder–decoder structure, input and output channels, deep supervision configuration, and dataset-dependent architectural parameters. The only architectural modification was the insertion of FiLM modules at selected internal stages of the network. These modules applied channel-wise affine modulation to the corresponding feature maps, using γ i and β i parameters generated from the case-level metadata vector by a multilayer perceptron with hidden dimension 64.
The FiLM placement was adapted to each experimental scenario following the same general conditioning rationale used in the U-Net experiments, although a direct layer-by-layer correspondence was not possible because the PlainConvUNet backbone is generated by the nnU-Net planning procedure. For CHAOS and AMOS, modulation was applied stage-wise within the PlainConvUNet backbone, whereas in the combined CHAOS+AMOS scenario a more selective configuration was used, mainly conditioning deeper encoder stages and leaving the decoder path unmodulated. To provide metadata during training and inference, a custom nnU-Net trainer retrieved the metadata vector associated with each case from a meta_mapping.npy file and passed it to the network through a meta_override mechanism. Thus, all patches from the same volume were conditioned with the same case-level metadata vector. Apart from the FiLM modules and this metadata-passing mechanism, the standard nnU-Net v2 pipeline was kept unchanged, including the 3d_fullres configuration, fold 0, fixed data split, and harmonized five-class segmentation task.
3.5. Training Protocol
All models were trained independently for each experimental scenario using the fixed train/validation/test split described at the beginning of Section 3 . Within each scenario, baseline and FiLM-conditioned variants followed the same data partitions and training conditions, so that performance differences could be attributed to the addition of metadata conditioning rather than to differences in data splitting or optimization.
The custom 3D U-Net models were trained using volumetric patches with class-balanced sampling. The loss function combined Dice loss, computed without the background class, with class-weighted cross-entropy, and additional present-only Dice terms were included for selected foreground classes. Data augmentation included class-balanced cropping, flips, 90-degree rotations, affine transformations, Gaussian noise, contrast perturbations, and intensity shifts. In all three experimental scenarios, the same main training hyperparameters were used: a patch size of 128 × 128 × 64 , six patches per case, a batch size of 2, the AdamW optimizer, a weight decay of 1 × 10 − 5 , a peak learning rate of 4 × 10 − 4 , and a minimum learning rate of 1 × 10 − 6 . Training was allowed to run for a maximum of 300 epochs, with early stopping after 25 epochs without validation Dice improvement, and the checkpoint with the best validation Dice was selected for test evaluation. During validation and test inference, full-volume predictions were obtained using sliding-window inference with a region of interest of 112 × 112 × 64 , an overlap of 0.5, and Gaussian weighting.
The nnU-Net v2 models followed the standard nnU-Net workflow. For each scenario, the corresponding dataset was planned, preprocessed, and trained using the 3d_fullres configuration and fold 0. The internal nnU-Net dataset identifiers were 501 for CHAOS, 502 for AMOS, and 503 for CHAOS+AMOS. A custom splits_final.json file ensured that fold 0 matched the predefined training and validation split. Baseline models used the default nnU-Net trainer, whereas FiLM-conditioned models used custom trainers to pass the case-level metadata vector to the FiLM-compatible network. Specifically, nnUNetTrainerFiLM was used for CHAOS and AMOS, and nnUNetTrainerFiLMV3 was used for the combined CHAOS+AMOS scenario. Apart from this metadata-conditioning mechanism, the remaining nnU-Net pipeline was preserved.
All custom preprocessing, metadata extraction, training, inference, post-processing, metric computation, and statistical analyses were implemented in Python 3.12.13 (Python Software Foundation, Wilmington, DE, USA). The custom 3D U-Net and FiLM-conditioned models were trained using CUDA 12.8 and cuDNN 9.10. Numerical computations and statistical analyses were performed using NumPy 2.0.0 and SciPy 1.16.3. Medical image handling was performed using NiBabel 5.2.1 and SimpleITK 2.5.2, while additional image-processing and machine-learning utilities were implemented using scikit-image 0.25.2 and scikit-learn 1.6.1. The nnU-Net experiments were performed using nnU-Net v2 2.6.4. Training and inference were carried out on an NVIDIA L4 GPU with 23,034 MiB of memory (NVIDIA Corporation, Santa Clara, CA, USA).
3.6. Post-Processing and Evaluation Metrics
After inference, each model output was converted into a discrete segmentation mask by assigning each voxel to the class with the highest predicted probability. This direct output was considered the raw prediction. A second version, referred to as the clean prediction, was generated using connected-component-based post-processing.
Post-processing was applied to remove small isolated regions, disconnected false positives, and anatomically implausible components. Connected-component analysis was performed independently for each foreground class using 26-connectivity, retaining the main component and removing smaller disconnected regions. To avoid excessive correction, conservative safeguards were included: when the cleaning step removed an organ completely or produced an implausibly large reduction of the predicted foreground, the original raw prediction for that class was preserved. The same procedure was applied to all models and scenarios.
Segmentation performance was evaluated for both raw and post-processed predictions using the Dice Similarity Coefficient (DSC), Hausdorff Distance at the 95th percentile (HD95), and Average Surface Distance (ASD). These metrics were selected to assess both volumetric overlap and boundary accuracy in 3D abdominal organ segmentation. For a predicted mask P and a ground-truth mask G , Dice was defined as: (5) DSC ( P , G ) = 2 | P ∩ G | | P | + | G |
Dice was computed independently for each foreground class and then averaged across target classes. HD95 was used to quantify large boundary errors while reducing sensitivity to isolated outliers, whereas ASD measured the average distance between predicted and reference surfaces. Both surface metrics were reported in millimeters using the physical voxel spacing of each volume. Reported values correspond to the mean across foreground classes and test cases. Evaluating both raw and post-processed predictions allowed the analysis to quantify the effect of connected-component cleaning and to distinguish between the intrinsic model output and the final segmentation pipeline.
3.7. Statistical Analysis
Statistical analysis was performed on the clean predictions, since these represent the final output of the complete segmentation pipeline after connected-component post-processing. For each dataset and architecture, baseline and FiLM-conditioned models were compared using paired results obtained from the same test cases. For the primary case-level analysis, Dice, HD95, and ASD were computed for each foreground organ and averaged across organs to obtain one value per case. Thus, for a metric m and test case i , the case-level score was defined as (6) m i = 1 | O | ∑ o ∈ O m i , o , where O denotes the set of foreground organs: liver, right kidney, left kidney, and spleen. The paired difference between FiLM and baseline was then computed as (7) d i = m i FiLM − m i Baseline .
Results were summarized using the median and interquartile range of the case-level scores, together with the median paired difference, denoted as d ˜ : (8) d ˜ = median ( d 1 , d 2 , … , d n ) .
For Dice, positive values of d i indicate improved overlap with FiLM, whereas for HD95 and ASD, negative values indicate improved surface accuracy. Since d ˜ was computed from the paired case-wise differences, it does not necessarily equal the difference between the two reported medians.
Since the metric distributions were not assumed to be normal and the comparisons were paired, the Wilcoxon signed-rank test was used to assess whether the median paired difference differed from zero. The null hypothesis was defined as H 0 : d ˜ = 0 . For each comparison, zero differences were discarded, the absolute differences | d i | were ranked, and each rank R i was assigned the sign of the original difference. The positive and negative rank sums were computed as (9) W + = ∑ d i > 0 R i , W − = ∑ d i < 0 R i . For two-sided testing, the Wilcoxon statistic was defined as (10) W = min ( W + , W − ) , and the corresponding p -value was obtained from its null distribution. In addition to the primary case-level analysis, Dice was analyzed independently for each foreground organ to assess the anatomical consistency of the FiLM effect. Organ-wise comparisons were also performed using paired Wilcoxon signed-rank tests. Since multiple organ-wise comparisons were performed within each dataset–architecture setting, the resulting p -values were adjusted using the Holm–Bonferroni method to control the family-wise error rate. In this procedure, the unadjusted p -values are sorted in ascending order and compared sequentially with increasingly less stringent significance thresholds. Adjusted p -values were capped at 1. A significance level of α = 0.05 was used throughout the analysis.
4. Results
This section reports the quantitative evaluation performed in the three experimental scenarios. The baseline and FiLM-conditioned versions of both 3D U-Net and nnU-Net v2 were compared using Dice, HD95, and ASD, considering both raw model outputs and connected-component post-processed predictions. Results are first presented separately for each scenario, followed by a compact cross-scenario analysis. Additional analyses then examine the effect of FiLM conditioning, the sensitivity to the FiLM configuration, the statistical significance of the observed differences, the computational overhead introduced by FiLM, and the impact of post-processing.
4.1. CHAOS Dataset
The first experimental scenario evaluated the four model configurations on the CHAOS MRI dataset. In this scenario, FiLM-conditioned models used sequence metadata as conditioning information.
The quantitative results on the CHAOS dataset are reported in Table 3 . On CHAOS, nnU-Net achieved the highest clean Dice value, with 0.9257. In the 3D U-Net models, FiLM slightly improved clean performance, increasing Dice from 0.9005 to 0.9056 and reducing HD95 from 9.4780 mm to 8.2495 mm and ASD from 2.1367 mm to 1.9364 mm. In contrast, nnU-Net and nnU-Net + FiLM produced very similar clean results, indicating that sequence-based FiLM conditioning had little effect on nnU-Net in this scenario.
4.2. AMOS Dataset
The second experimental scenario evaluated the four model configurations on the AMOS MRI subset. In this scenario, FiLM-conditioned models used intensity metadata as conditioning information.
Quantitative findings for the AMOS scenario are summarized in Table 4 . Baseline nnU-Net achieved the highest clean Dice value, with 0.9262. In the 3D U-Net models, FiLM improved clean performance, increasing Dice from 0.9054 to 0.9208 and reducing HD95 from 9.5000 mm to 7.9490 mm and ASD from 2.3900 mm to 1.5287 mm. This made U-Net + FiLM the best-performing model in terms of clean surface-distance metrics. In contrast, nnU-Net + FiLM reduced clean Dice compared with the nnU-Net baseline, from 0.9262 to 0.8997, while producing only mixed changes in the surface metrics.
4.3. Combined CHAOS and AMOS Datasets
The third experimental scenario evaluated the four model configurations on the combined CHAOS+AMOS dataset, representing the multi-domain setting of the study. In this scenario, FiLM-conditioned models used foreground intensity metadata as conditioning information.
Results for the multi-domain CHAOS+AMOS scenario are reported in Table 5 . Baseline nnU-Net achieved the best clean performance across all metrics, with a Dice of 0.9346, HD95 of 6.1100 mm, and ASD of 1.1500 mm. In the 3D U-Net models, FiLM produced the largest improvement observed for this architecture, increasing clean Dice from 0.8868 to 0.9083 and reducing clean HD95 from 26.2700 mm to 19.6100 mm and clean ASD from 7.6300 mm to 3.7800 mm. In contrast, nnU-Net + FiLM obtained lower clean performance than the nnU-Net baseline, although it remained more accurate than the U-Net-based models in this multi-domain setting.
4.4. Cross-Scenario Visual Summary
Figure 2 provides a compact visual overview of the clean segmentation performance across the three experimental scenarios and the four evaluated model configurations.
4.4.1. Effect of FiLM
To assess the effect of FiLM conditioning, delta values were computed from the clean predictions by subtracting each baseline result from its corresponding FiLM-conditioned model. Positive values in Dice indicate improved overlap after FiLM conditioning, whereas negative values in HD95 and ASD indicate reduced surface error. The resulting deltas are summarized in Figure 3 .
4.4.2. Effect of Post-Processing
The effect of connected-component post-processing was assessed by computing the difference between clean and raw predictions for each model. Delta values were calculated as clean minus raw. Therefore, positive values in Dice indicate improved overlap after post-processing, whereas negative values in HD95 and ASD indicate reduced surface error. The resulting deltas are summarized in Figure 4 .
4.4.3. Exploratory FiLM Configuration Analysis
To complement the main FiLM analysis, a small set of representative exploratory configurations was included to illustrate the sensitivity of the method to metadata selection and modulation design. These exploratory tests were restricted to the 3D U-Net architecture because the choice of metadata and FiLM layer placement was mainly optimized during the development of this model. The most relevant conditioning strategies were then transferred to nnU-Net, where additional experimentation was more limited due to the greater complexity of modifying the nnU-Net pipeline. Table 6 summarizes the selected exploratory U-Net configurations.
4.4.4. Statistical Comparison of FiLM Effects
The paired statistical analysis was performed on the clean predictions to assess whether the differences between baseline and FiLM-conditioned models were consistent at the case level. Table 7 reports the median and IQR for each metric, together with the median paired difference ( d ˜ ) and the Wilcoxon signed-rank p -value. FiLM showed favourable case-level trends for U-Net, with increased Dice and reduced surface distances in most scenarios. However, statistical significance was only reached for ASD in CHAOS and CHAOS+AMOS. In contrast, nnU-Net did not show statistically significant improvements with FiLM in any case-level comparison.
To further assess the anatomical distribution of these effects, an organ-wise Dice analysis was performed and is represented in Table 8 . Since multiple organ-wise comparisons were involved, Holm–Bonferroni-adjusted p -values are also reported. The organ-wise results showed small and anatomically variable Dice differences. In U-Net, several organs presented positive median differences, but none remained significant after correction. In nnU-Net, only the AMOS liver comparison remained significant after correction; however, this isolated finding was not accompanied by consistent improvements across organs or datasets.
4.4.5. Computational Cost
Computational cost was assessed in the combined CHAOS+AMOS scenario to quantify the overhead introduced by FiLM conditioning. All measurements were obtained on the same NVIDIA L4 GPU. Table 9 reports the number of trainable parameters, the percentage of parameters corresponding to the FiLM modules, model size, forward-pass time per patch, forward-plus-backward time per patch, full-volume inference time, and peak GPU memory allocated during inference. Forward-plus-backward time was included as an estimate of the relative cost of a training-like step, whereas inference time was measured using the corresponding sliding-window inference pipeline for each model.
5. Discussion
This section discusses the main findings of the comparative evaluation between baseline and FiLM-conditioned segmentation models. The analysis focuses on the architecture-dependent effect of FiLM, model behavior under acquisition- and dataset-related heterogeneity, the role of connected-component post-processing, and the statistical and computational evidence supporting the observed trends.
5.1. Architecture-Dependent Effect of FiLM: Quantitative and Statistical Evidence
The main finding of this study is that the effect of FiLM conditioning was architecture-dependent. In the standard 3D U-Net, FiLM produced favourable quantitative changes in the clean predictions, especially in the AMOS and CHAOS+AMOS scenarios. In contrast, the same conditioning strategy did not provide a consistent benefit when integrated into nnU-Net v2. This indicates that the effect of metadata conditioning depends not only on the availability of auxiliary information, but also on the adaptability already present in the segmentation framework.
In U-Net, the largest quantitative improvement was observed in the combined CHAOS+AMOS scenario, as reported in Table 5 . In this setting, FiLM increased clean Dice from 0.8868 to 0.9083 and reduced clean HD95 and ASD by 6.66 mm and 3.85 mm , respectively. This behaviour suggests that FiLM may help a generic encoder–decoder architecture adapt its intermediate representations when acquisition- and dataset-related heterogeneity increases. However, the paired statistical analysis showed that these improvements should be interpreted as favourable trends rather than uniform statistically significant gains. As shown in Table 7 , statistical significance at case level was reached only for ASD in CHAOS and CHAOS+AMOS, while Dice and HD95 did not show significant improvements across all scenarios.
For nnU-Net, FiLM did not lead to statistically supported improvements at case level. Although some surface-distance values changed slightly in specific scenarios, the baseline nnU-Net remained the strongest overall model and the FiLM-conditioned variant did not show a robust advantage. A plausible explanation is that nnU-Net already incorporates a high degree of adaptation through its self-configuring pipeline, including dataset-specific preprocessing, normalization, target spacing, patch size, network configuration, training strategy, and inference. In this context, additional feature modulation may become redundant or may interfere with representations that are already well adapted by the baseline pipeline. However, this interpretation should be regarded as a qualitative hypothesis supported by the observed quantitative and statistical trends, rather than as a causal mechanism directly demonstrated by this study. A mechanistic validation would require additional analyses of internal activations, learned FiLM parameters, feature representations, and targeted ablation experiments within the nnU-Net pipeline.
The organ-wise Dice analysis, summarized in Table 8 , further supports a cautious interpretation. In U-Net, several organs showed positive median differences with FiLM, but none remained statistically significant after Holm–Bonferroni correction. In nnU-Net, only the AMOS liver comparison remained significant after correction, but this isolated result was not accompanied by consistent improvements across organs, datasets, or metrics. Therefore, the statistical analysis does not support a uniform organ-specific benefit of FiLM, but rather suggests that its effect is small, variable, and dependent on both architecture and scenario.
The representative examples shown in Figure 5 are consistent with this interpretation. In the U-Net examples, FiLM improves the anatomical consistency of the clean predictions, particularly in the AMOS case, whereas its effect is more moderate in CHAOS. In contrast, the nnU-Net example illustrates that the baseline prediction is already close to the reference segmentation, while the FiLM-conditioned version introduces a visible degradation.
Overall, these findings suggest that FiLM can be useful as a lightweight conditioning mechanism for a generic 3D U-Net, particularly under heterogeneous acquisition conditions. Nevertheless, the statistical results indicate that this benefit is not uniform across metrics or organs. For nnU-Net, the evaluated FiLM configurations did not provide additional robust value over the self-configuring baseline. Therefore, FiLM should be interpreted as an architecture-dependent strategy rather than as a universally beneficial modification.
5.2. Interpretation of FiLM Configuration Sensitivity
The exploratory FiLM configurations reported in Table 6 indicate that the effect of metadata conditioning depends on the specific modulation design. In particular, FiLM performance was influenced by the selected metadata, the insertion points within the network, and the underlying architecture. This supports the interpretation that FiLM should not be regarded as a plug-and-play improvement, but as a context-dependent conditioning mechanism whose effectiveness must be validated for each segmentation setting.
For this reason, the FiLM placements used in the main experiments were selected empirically from a limited set of candidate configurations during model development. Localized FiLM insertion provides a more constrained form of conditioning, whereas applying FiLM across several encoder, bottleneck, or decoder stages increases the strength of metadata-driven adaptation but may also increase the risk of over-conditioning, particularly in small datasets. Therefore, the purpose of this analysis was not to provide an exhaustive ablation study of all possible FiLM designs, but to assess whether alternative reasonable configurations led to similar or markedly different behaviour. The observed sensitivity reinforces the need to consider FiLM placement, metadata type, and baseline architecture when applying metadata conditioning to heterogeneous abdominal MRI segmentation.
5.3. Multi-Domain Robustness and Acquisition Variability
The combined CHAOS+AMOS experiment is useful for interpreting how metadata conditioning behaves when segmentation is performed across data from different MRI sources. Rather than providing a uniformly more robust model, FiLM showed an architecture-dependent response: it was more helpful for the generic U-Net backbone, but it did not improve the already self-configuring nnU-Net pipeline. This suggests that metadata conditioning may partially support robustness under dataset-related variability, but only when the baseline architecture does not already include strong mechanisms for adapting preprocessing, normalization, training, and inference to the data.
Therefore, the multi-domain results should not be interpreted as evidence that FiLM generally solves acquisition variability. Instead, they indicate that the value of metadata conditioning depends on how much variability remains unaccounted for by the segmentation pipeline itself. In this sense, FiLM appears more appropriate as a lightweight adaptation mechanism for simpler architectures than as a direct robustness enhancement for highly optimized frameworks such as nnU-Net.
5.4. Role of Post-Processing Across Segmentation Architectures
Connected-component post-processing had a markedly different impact depending on the architecture. Its effect was more evident in the U-Net-based models, where raw predictions were more frequently affected by isolated false positives and disconnected components. In these cases, post-processing mainly improved structural consistency and surface-distance metrics by removing anatomically implausible regions. In contrast, nnU-Net showed much smaller raw-to-clean changes, suggesting that its predictions were already more spatially coherent before post-processing.
This pattern is illustrated in Figure 6 . In the U-Net examples, post-processing visibly removes disconnected components and produces cleaner organ masks, whereas in the nnU-Net example the raw prediction is already close to the post-processed output. Therefore, post-processing should be interpreted as an important refinement step for U-Net-based models, but as a comparatively minor correction for nnU-Net, whose baseline pipeline already produces more stable raw segmentations.
5.5. Computational Cost and Practical Relevance
The computational analysis showed that FiLM introduced only a small overhead with respect to each baseline architecture. As reported in Table 9 , the FiLM-conditioned U-Net increased the number of trainable parameters from 5.60 M to 5.66 M, with FiLM modules representing 1.05% of the total parameters. Similarly, nnU-Net + FiLM increased the parameter count from 30.71 M to 30.85 M, with FiLM accounting for 0.47% of the model parameters. These results confirm that the proposed conditioning mechanism is lightweight in terms of model size and parameter cost.
From a practical perspective, the relevance of this overhead depends on the baseline architecture. In U-Net, FiLM produced favourable quantitative trends while preserving a substantially smaller model than nnU-Net. Although U-Net + FiLM did not surpass the baseline nnU-Net, it reduced part of the performance gap in the combined CHAOS+AMOS setting with a lower computational footprint, which may be relevant when memory, inference time, hardware availability, or implementation simplicity are important constraints. In contrast, the low overhead of FiLM did not translate into a clear advantage for nnU-Net, where the conditioned variant did not provide robust performance gains. Therefore, the practical value of FiLM should be assessed as a balance between added complexity and measurable improvement, which in this study was more favourable for the generic U-Net than for the self-configuring nnU-Net framework.
5.6. Implications for Biomedical Imaging Systems
From the perspective of biomedical imaging systems, the results highlight the importance of considering the acquisition context of MRI data when designing automatic segmentation models. MRI volumes are generated by specific acquisition systems and protocols, and their appearance can vary according to sequence type, spatial resolution, contrast properties, reconstruction process, and intensity distribution. These factors are not only technical characteristics of the input data, but also potential sources of variability that can affect model reliability when public benchmarks or multi-source datasets are combined.
In this context, acquisition- or image-derived metadata can provide a lightweight way to expose part of this variability to the segmentation model. However, the results also show that metadata conditioning should not be applied as a generic solution. Its practical value depends on the information contained in the available metadata, the heterogeneity of the imaging data, the preprocessing strategy, and the adaptability of the segmentation architecture. Therefore, metadata-aware segmentation may be useful for biomedical imaging pipelines, particularly when acquisition variability is relevant and the baseline model does not already include strong mechanisms for handling such variability.
5.7. Limitations
This study has several limitations. First, the experiments were based on two public abdominal MRI datasets, CHAOS and AMOS, with relatively limited test sets. Although these datasets provide useful benchmarks for evaluating segmentation under acquisition- and dataset-related variability, validation on larger external and multi-center cohorts would be necessary to confirm the generality of the findings. In addition, the available acquisition information was not homogeneous across datasets, which limited the possibility of explicitly analyzing the effect of scanner vendor, magnetic field strength, acquisition parameters, reconstruction settings, or detailed protocol information.
Second, the metadata variables and FiLM insertion strategies were manually selected and scenario-dependent. Although a limited set of exploratory configurations was evaluated, this analysis was not intended as an exhaustive ablation study of all possible metadata types, insertion points, generator architectures, or conditioning mechanisms. Other metadata combinations, automatically selected descriptors, or alternative modulation designs could lead to different results, particularly if more complete and homogeneous acquisition information were available. Therefore, the conclusions should be interpreted in relation to the specific FiLM implementations evaluated in this work.
Third, the comparison was performed using a fixed train/validation/test split to ensure direct paired evaluation between baseline and FiLM-conditioned models. Although paired statistical testing was included, the limited number of test cases and the absence of repeated splits or cross-validation restrict the assessment of result stability. Future work should include repeated partitions, cross-validation, or external test cohorts to better quantify the robustness of the observed trends.
Fourth, the present evaluation was restricted to abdominal MRI and to four abdominal organs. Therefore, the findings cannot be assumed to directly generalize to other imaging modalities, anatomical regions, segmentation targets, or clinical tasks. Future work should evaluate whether FiLM-based metadata conditioning provides similar benefits in other medical imaging modalities, such as CT or ultrasound, as well as in larger multi-center datasets with more complete and harmonized acquisition metadata.
Finally, the computational analysis was performed on a single hardware configuration and focused on the combined CHAOS+AMOS scenario. Inference time, memory usage, and training overhead may vary depending on the implementation, GPU, patch size, batch size, and inference strategy. Moreover, the evaluation was based on quantitative metrics and representative visual examples, but no prospective clinical validation was performed. Further assessment would therefore be required to determine the practical impact of metadata-conditioned segmentation models in real biomedical imaging workflows.
6. Conclusions
This work evaluated Feature-wise Linear Modulation as a metadata-conditioning strategy for 3D abdominal organ segmentation in MRI. A standard 3D U-Net and nnU-Net v2 were compared in baseline and FiLM-conditioned variants across three scenarios: CHAOS, AMOS, and the combined CHAOS+AMOS setting. The study was designed to assess whether acquisition- or image-derived metadata can improve segmentation under heterogeneous MRI conditions, and whether this effect depends on the underlying segmentation framework.
The results indicate that the effect of FiLM was clearly architecture-dependent. In the standard 3D U-Net, FiLM produced favourable quantitative trends, particularly in the AMOS and CHAOS+AMOS scenarios. In the combined setting, U-Net + FiLM increased clean Dice from 0.8868 to 0.9083 and reduced clean HD95 and ASD by 6.66 mm and 3.85 mm , respectively. However, the statistical analysis showed that these improvements were not uniform across all metrics or organs. At case level, statistical significance was reached only for ASD in CHAOS and CHAOS+AMOS, while the organ-wise Dice analysis did not support a consistent anatomical benefit after correction for multiple comparisons. Therefore, FiLM should be interpreted as providing favourable but scenario-dependent improvements in U-Net, rather than a uniformly significant gain.
In contrast, the evaluated FiLM configurations did not provide a robust advantage when integrated into nnU-Net v2. The baseline nnU-Net remained the strongest overall model, especially in the combined CHAOS+AMOS scenario, where it achieved the best clean Dice, HD95, and ASD values. This suggests that the self-configuring nnU-Net pipeline may already account for part of the variability that FiLM aims to address through its dataset-specific preprocessing, planning, training, and inference strategies. In this context, additional feature modulation may be redundant or may interfere with representations that are already well adapted by the baseline framework.
The analysis also showed that FiLM is sensitive to the selected metadata, insertion points, modulation design, and baseline architecture. Thus, metadata conditioning should not be considered a plug-and-play improvement, but a design-dependent mechanism that requires validation for each segmentation setting. Similarly, connected-component post-processing had an architecture-dependent effect: it was more relevant for U-Net-based models, where it helped remove disconnected components and improve surface consistency, whereas nnU-Net produced more stable raw predictions with comparatively smaller raw-to-clean changes.
From a practical perspective, FiLM introduced only a small computational overhead. This makes U-Net + FiLM a potentially relevant lightweight alternative when memory, inference time, hardware availability, or implementation simplicity are important constraints. Nevertheless, U-Net + FiLM did not surpass the baseline nnU-Net, and in nnU-Net the low overhead of FiLM did not translate into robust performance gains. Therefore, the practical value of metadata conditioning should be assessed as a balance between additional complexity and measurable improvement.
Overall, this study supports the idea that metadata conditioning can be useful for reinforcing generic segmentation architectures under heterogeneous abdominal MRI conditions, but its benefit is not universal. Its effectiveness depends on the available metadata, the modulation design, the degree of acquisition-related variability, and the adaptability of the segmentation framework. For biomedical imaging systems, these findings highlight the importance of considering acquisition context when designing segmentation models, while also showing that metadata-aware approaches should be adapted to the characteristics of each pipeline rather than applied as general-purpose modifications.
Future work should validate these findings on larger external and multi-center MRI cohorts, ideally including more complete and homogeneous acquisition information, such as scanner vendor, magnetic field strength, acquisition parameters, reconstruction settings, and detailed protocol descriptors. Further studies should also investigate automatic metadata selection, alternative conditioning mechanisms, repeated splits or cross-validation, and prospective clinical evaluation. In self-configuring frameworks such as nnU-Net, future approaches could explore incorporating metadata into fingerprinting, planning, preprocessing, normalization, augmentation, or adaptation stages, rather than adding feature modulation only as an external architectural modification.
Acknowledgments
The authors would like to thank the participants for their time and effort in completing this study.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Author Contributions
Conceptualization, J.F.G.-M., J.M.-A. and J.F.Z.-P.; methodology, J.F.G.-M., J.M.-A. and J.F.Z.-P.; software, J.F.G.-M.; validation, J.F.G.-M., J.M.G.-L., J.M.-A. and J.F.Z.-P.; formal analysis, J.F.G.-M., J.M.G.-L., J.M.-A. and J.F.Z.-P.; investigation, J.F.G.-M.; resources, J.M.-A. and J.F.Z.-P.; data curation, J.F.G.-M.; writing—original draft preparation, J.F.G.-M. and J.M.G.-L.; writing—review and editing, J.M.-A. and J.F.Z.-P.; visualization, J.F.G.-M. and J.M.G.-L.; supervision, J.M.-A. and J.F.Z.-P.; project administration, J.M.-A. and J.F.Z.-P.; funding acquisition, J.M.-A. and J.F.Z.-P. All authors have read and agreed to the published version of the manuscript.
Institutional Review Board Statement
Ethical review and approval were waived for this study due to the retrospective nature of the analysis and the use of fully anonymized imaging data, in accordance with applicable institutional policies and regulations.
Informed Consent Statement
Patient consent was waived due to the retrospective design of the study and the use of fully anonymized data.
Data Availability Statement
The data presented in this study are available on request from the corresponding author.
Conflicts of Interest
The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
References
1. Litjens G. Kooi T. Bejnordi B.E. Setio A.A.A. Ciompi F. Ghafoorian M. van der Laak J.A. van Ginneken B. Sánchez C.I. A survey on deep learning in medical image analysis Med. Image Anal. 2017 42 60 88 10.1016/J.MEDIA.2017.07.005 28778026
2. Hesamian M.H. Jia W. He X. Kennedy P. Deep Learning Techniques for Medical Image Segmentation: Achievements and Challenges J. Digit. Imaging 2019 32 582 596 10.1007/S10278-019-00227-X 31144149 PMC6646484
3. Lundervold A.S. Lundervold A. An overview of deep learning in medical imaging focusing on MRI Z. Med. Phys. 2019 29 102 127 10.1016/J.ZEMEDI.2018.11.002 30553609
4. Nyúl L.G. Udupa J.K. On Standardizing the MR Image Intensity Scale Magn. Reson. Med. 1999 42 1072 1081 10.1002/(SICI)1522-2594(199912)42:6<1072::AID-MRM11>3.0.CO;2-M 10571928
5. Li Y. Fan Y. Medical Image Segmentation with Domain Adaptation: A Survey arXiv 2023 10.48550/arXiv.2311.01702 2311.01702
6. Niu Z. Ouyang S. Xie S. Chen Y.W. Lin L. A Survey on Domain Generalization for Medical Image Analysis arXiv 2024 2402.05035
7. Karani N. Erdil E. Chaitanya K. Konukoglu E. Test-time adaptable neural networks for robust medical image segmentation Med. Image Anal. 2021 68 101907 10.1016/J.MEDIA.2020.101907 33341496
8. Tajbakhsh N. Jeyaseelan L. Li Q. Chiang J.N. Wu Z. Ding X. Embracing Imperfect Datasets: A Review of Deep Learning Solutions for Medical Image Segmentation Med. Image Anal. 2020 63 101693 10.1016/j.media.2020.101693 32289663
9. Cheplygina V. de Bruijne M. Pluim J.P. Not-so-supervised: A survey of semi-supervised, multi-instance, and transfer learning in medical image analysis Med. Image Anal. 2019 54 280 296 10.1016/J.MEDIA.2019.03.009 30959445
10. Ronneberger O. Fischer P. Brox T. U-Net: Convolutional Networks for Biomedical Image Segmentation Medical Image Computing and Computer-Assisted Intervention–MICCAI 2015 Lecture Notes in Computer Science Springer Cham, Switzerland 2015 Volume 9351 234 241 10.1007/978-3-319-24574-4_28
11. Çiçek Ö. Abdulkadir A. Lienkamp S.S. Brox T. Ronneberger O. 3D U-Net: Learning Dense Volumetric Segmentation from Sparse Annotation Medical Image Computing and Computer-Assisted Intervention–MICCAI 2016 Lecture Notes in Computer Science Springer Cham, Switzerland 2016 Volume 9901 424 432 10.1007/978-3-319-46723-8_49
12. Isensee F. Jaeger P.F. Kohl S.A. Petersen J. Maier-Hein K.H. nnU-Net: A self-configuring method for deep learning-based biomedical image segmentation Nat. Methods 2020 18 203 211 10.1038/s41592-020-01008-z 33288961
13. Isensee F. Wald T. Ulrich C. Baumgartner M. Roy S. Maier-Hein K. Jäger P.F. nnU-Net Revisited: A Call for Rigorous Validation in 3D Medical Image Segmentation Medical Image Computing and Computer Assisted Intervention–MICCAI 2024 Lecture Notes in Computer Science Springer Cham, Switzerland 2024 Volume 15009 488 498 10.1007/978-3-031-72114-4_47
14. Perez E. Strub F. de Vries H. Dumoulin V. Courville A. FiLM: Visual Reasoning with a General Conditioning Layer Proceedings of the 32nd AAAI Conference on Artificial Intelligence, AAAI 2018 New Orleans, LA, USA 2–7 February 2018 3942 3951 10.1609/aaai.v32i1.11671
15. Lemay A. Gros C. Vincent O. Liu Y. Cohen J.P. Cohen-Adad J. Benefits of Linear Conditioning with Metadata for Image Segmentation Proc. Mach. Learn. Res. 2021 143 416 430
16. Kavur A.E. Gezer N.S. Barış M. Aslan S. Conze P.H. Groza V. Pham D.D. Chatterjee S. Ernst P. Özkan S. CHAOS Challenge—Combined (CT-MR) healthy abdominal organ segmentation Med. Image Anal. 2021 69 101950 10.1016/j.media.2020.101950 33421920
17. Ji Y. Bai H. Ge C. Yang J. Zhu Y. Zhang R. Li Z. Zhang L. Ma W. Wan X. AMOS: A Large-Scale Abdominal Multi-Organ Benchmark for Versatile Medical Image Segmentation Adv. Neural Inf. Process. Syst. 2022 35 36722 36732 10.52202/068431-2661
18. Fang X. Yan P. Multi-organ Segmentation over Partially Labeled Datasets with Multi-scale Feature Abstraction IEEE Trans. Med. Imaging 2020 39 3619 3629 10.1109/TMI.2020.3001036 32746108 PMC7665851
19. Long J. Shelhamer E. Darrell T. Fully convolutional networks for semantic segmentation Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition Boston, MA, USA 7–12 June 2015 431 440 10.1109/CVPR.2015.7298965
20. Milletari F. Navab N. Ahmadi S.A. V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation Proceedings of the 2016 4th International Conference on 3D Vision (3DV) Stanford, CA, USA 25–28 October 2016 565 571 10.1109/3DV.2016.79
21. Zhou Z. Siddiquee M.M.R. Tajbakhsh N. Liang J. UNet++: A Nested U-Net Architecture for Medical Image Segmentation Proceedings of the Deep Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support: 4th International Workshop, DLMIA 2018, and 8th International Workshop, ML-CDS 2018 Granada, Spain 20 September 2018 Volume 11045 3 11 10.1007/978-3-030-00889-5_1 32613207 PMC7329239
22. Oktay O. Schlemper J. Folgoc L.L. Lee M. Heinrich M. Misawa K. Mori K. McDonagh S. Hammerla N.Y. Kainz B. Attention U-Net: Learning Where to Look for the Pancreas arXiv 2018 1804.03999
23. Chen J. Lu Y. Yu Q. Luo X. Adeli E. Wang Y. Lu L. Yuille A.L. Zhou Y. TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation arXiv 2021 2102.04306
24. Hatamizadeh A. Nath V. Tang Y. Yang D. Roth H.R. Xu D. Swin UNETR: Swin Transformers for Semantic Segmentation of Brain Tumors in MRI Images Brainlesion: Glioma, Multiple Sclerosis, Stroke and Traumatic Brain Injuries (BrainLes 2021); Lecture Notes in Computer Science Springer Cham, Switzerland 2022 Volume 12962 272 284 10.1007/978-3-031-08999-2_22
25. Zhou Z. Sodha V. Siddiquee M.M.R. Feng R. Tajbakhsh N. Gotway M.B. Liang J. Models Genesis: Generic Autodidactic Models for 3D Medical Image Analysis Medical Image Computing and Computer Assisted Intervention–MICCAI 2019 Springer Cham, Switzerland 2019 Volume 11767 384 393 10.1007/978-3-030-32251-9_42 32766570 PMC7405596
26. Hu P. Li J. Wang Y. Kong D. Deep learning in abdominal organ segmentation: A review Intell. Oncol. 2025 1 277 289 10.1016/J.INTONC.2025.06.007
27. Zhuang Y. Mathai T.S. Mukherjee P. Khoury B. Kim B. Hou B. Rabbee N. Suri A. Summers R.M. MRISegmenter: A Fully Accurate and Robust Automated Multiorgan and Structure Segmentation Tool for T1-weighted Abdominal MRI Radiology 2025 315 e241979 10.1148/radiol.241979 40261178 PMC13150504
28. Ciausu C. Krishnaswamy D. Billot B. Pieper S. Kikinis R. Fedorov A. Towards Automatic Abdominal MRI Organ Segmentation: Leveraging Synthesized Data Generated From CT Labels arXiv 2024 2403.15609
29. Dumoulin V. Shlens J. Kudlur M. A Learned Representation For Artistic Style Proceedings of the 5th International Conference on Learning Representations, ICLR 2017—Conference Track Proceedings Toulon, France 24–26 April 2017
30. de Vries H. Strub F. Mary J. Larochelle H. Pietquin O. Courville A. Modulating Early Visual Processing by Language Adv. Neural Inf. Process. Syst. 2017 2017 6595 6605
31. Dumoulin V. Perez E. Schucher N. Strub F. de Vries H. Courville A. Bengio Y. Dumoulin V. Perez E. Schucher N. Feature-wise transformations Distill 2018 3 e11 10.23915/DISTILL.00011
32. Khan A. Asad M. Benning M. Roney C. Slabaugh G. Compositional Segmentation of Cardiac Images Leveraging Metadata Proceedings of the Winter Conference on Applications of Computer Vision (WACV) Tucson, AZ, USA 26 February–6 March 2025 9471 9480
33. Zhou H. Tao H. Zhang Q. Xie C. Li B. MRKD-PBCL: Multi-level region-wise knowledge distillation and prototype balanced contrastive learning for class incremental semantic segmentation Neurocomputing 2026 679 133285 10.1016/J.NEUCOM.2026.133285
34. Dice L.R. Measures of the Amount of Ecologic Association Between Species Ecology 1945 26 297 302 10.2307/1932409
35. Taha A.A. Hanbury A. Metrics for Evaluating 3D Medical Image Segmentation: Analysis, Selection, and Tool BMC Med. Imaging 2015 15 29 10.1186/s12880-015-0068-x 26263899 PMC4533825
36. Maier-Hein L. Reinke A. Godau P. Tizabi M.D. Buettner F. Christodoulou E. Glocker B. Isensee F. Kleesiek J. Kozubek M. Metrics reloaded: Recommendations for image analysis validation Nat. Methods 2024 21 195 212 10.1038/s41592-023-02151-z 38347141 PMC11182665
37. Furtado P. Improving Deep Segmentation of Abdominal Organs MRI by Post-Processing BioMedInformatics 2021 1 88 105 10.3390/biomedinformatics1030007
Предметные рубрики MeSH
Подготовка и перевод публикации
Обработка статьи · этапы, ошибки и управление
Ошибки и ограничения
История · было → стало
Состояние обновляется каждые 5 секунд, пока блок открыт. Процент показывается только там, где известен объём работы. Пауза останавливает продолжение этапа; текущий запрос к источнику может завершиться.
Тип публикации указан по данным источника. Уровень доказательности автоматически не присваивается.