Next Article in Journal
A Three-Layer Adaptive Kalman Filter Approach for Multi-Source Time Fusion Using Temperature-Compensated Oscillators with GNSS and eLoran Backup
Previous Article in Journal
Simplified Lead Detection: Graphene-Based Potentiometric Sensors for Pb(II) Monitoring
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Semantic Prior-Guided Period-Aware Multi-Expert Segmentation for Long-Term Fixed-View Visual Monitoring

1
School of Computer, Qinghai Normal University, Xining 810008, China
2
Academy of Plateau Science and Sustainability, People’s Government of Qinghai Province & Beijing Normal University, Xining 810008, China
3
State Key Laboratory of Tibetan Intelligent, Qinghai Normal University, Xining 810008, China
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(17), 5396; https://doi.org/10.3390/s26175396
Submission received: 3 June 2026 / Revised: 12 August 2026 / Accepted: 24 August 2026 / Published: 26 August 2026
(This article belongs to the Section Sensing and Imaging)

Abstract

Accurate semantic segmentation is essential for long-term fixed-view monitoring, where seasonal, illumination, weather, and environmental changes alter local appearance while the global scene layout remains relatively stable. To address this structure–appearance modeling problem, we propose SPMES, a Semantic Prior-Guided Period-Aware Multi-Expert Segmentation framework. SPMES comprises a Global Expert that learns stable semantic-prior maps from the complete training set, a Semantic-Guided Fusion Module that injects these priors into the input representation, and period-specific experts that model recurring appearance characteristics according to acquisition time. Experiments on a long-term fixed-view monitoring dataset collected for this study evaluate SPMES with U-Net, U-Net++, U2-Net, Swin-Unet, and Mamba-UNet. Compared with the corresponding baselines, SPMES obtains better point estimates across all six evaluation metrics for each backbone, although the magnitude of the changes varies across architectures and metrics. Ablation studies show that individual configurations exhibit metric- and backbone-dependent effects, whereas the complete integration of global semantic priors, semantic-guided fusion, and period-specific learning provides the best overall balance. These results support the effectiveness and backbone-level compatibility of SPMES within the studied monitoring setting.

1. Introduction

Vision-based monitoring systems are widely used for continuous observation, process analysis, and early-warning applications in environmental and engineering scenarios. In these systems, fixed-position cameras or visual sensors can continuously acquire images of the same target area over long periods. Semantic segmentation provides pixel-level scene understanding for such monitoring data and has been widely studied in image understanding, remote sensing analysis, medical image processing, and video surveillance [1,2,3,4,5]. Despite recent progress, segmentation in long-term fixed-view monitoring scenes remains challenging. Images acquired in different periods may show substantial appearance variations caused by seasonal changes, illumination differences, weather conditions, and environmental disturbances. These factors can change local texture, contrast, and boundary visibility, thereby weakening segmentation accuracy and structural stability [6,7,8].
A distinctive property of long-term fixed-view monitoring is that the camera viewpoint remains stable while the visual appearance of the monitored scene changes over time. Therefore, the global spatial layout and semantic structure of the monitored target are usually more stable than local appearance patterns. This property suggests that fixed-view segmentation should not only fit local appearance, but should also exploit stable scene-level semantic structure. However, a single model trained on all acquisition periods may average out period-specific appearance patterns, while independently trained period-specific models may suffer from limited samples and insufficient global structural knowledge. This creates a structure–appearance modeling problem: the model should preserve globally shared structure while adapting to recurring period-specific appearance changes.
To address this problem, we propose a Semantic Prior-Guided Period-Aware Multi-Expert Segmentation framework, termed SPMES, for long-term fixed-view visual monitoring scenes. Instead of treating all images as independent samples from a generic segmentation dataset, SPMES explicitly exploits the monitoring setting: the stable spatial layout is modeled as a global semantic prior, and the recurring appearance variations are modeled by period-specific experts. The framework consists of a Global Expert (GE), a Semantic-Guided Fusion Module (SGFM), and multiple period-specific experts (PSEs). GE is trained on the entire training set to produce stable semantic-prior maps as global structural references. SGFM injects these priors into the input representation through semantic-guided interaction, enabling period-specific features to be enhanced under global structural guidance. PSEs specialize in different recurring acquisition periods according to image capture time, improving period-aware segmentation while preserving structural consistency.
Although SPMES is conceptually related to the Mixture of Experts (MoE) paradigm [9,10], it differs from conventional gated MoE architectures in two aspects. First, expert specialization is explicitly grounded in acquisition-period information provided by the monitoring system, rather than being learned only from ambiguous appearance cues. Second, expert collaboration is constrained by a shared global semantic prior, which helps prevent period-specific appearance modeling from drifting away from the stable scene structure. This design is intended for fixed-view monitoring scenes, where the scene layout remains stable while appearance varies across acquisition periods.
The main contributions of this work are summarized as follows:
  • We formulate long-term fixed-view monitoring segmentation as a structure–appearance collaborative modeling problem, where stable scene-level semantic structure and recurring acquisition-period-specific appearance variations need to be jointly considered.
  • We propose SPMES, a Semantic Prior-Guided Period-Aware Multi-Expert Segmentation framework. It integrates a Global Expert for learning stable semantic-prior maps, a Semantic-Guided Fusion Module for structure-aware representation fusion, and period-specific experts with deterministic acquisition-period-based routing for appearance-specialized segmentation under global structural guidance.
  • We conduct systematic experiments on a long-term fixed-view monitoring dataset collected for this study. Results across multiple representative segmentation backbones, together with sensitivity analysis, ablation studies, qualitative comparisons, and complexity analysis, support the effectiveness of SPMES in the studied deployment setting and its compatibility with different segmentation backbones.

2. Related Work

Existing studies have improved semantic segmentation from the perspectives of backbone architectures, feature fusion and attention mechanisms, period-aware scene modeling, and multi-expert systems. However, for long-term fixed-view monitoring scenes, the key challenge is not only to improve generic feature extraction, but also to exploit the coexistence of stable scene structure and acquisition-period-specific appearance variation. This section reviews these research directions and clarifies how SPMES differs from existing approaches.

2.1. Backbone Semantic Segmentation Models

Encoder–decoder architectures remain a dominant paradigm in semantic segmentation. Classical CNN-based models such as U-Net [11], U-Net++ [12], and U2-Net [13] improve multi-scale semantic modeling and boundary recovery. More recently, Transformer-based segmentation models, including SETR [14], Segmenter [15], SegFormer [16], and Swin-Unet [17], have demonstrated strong representation capabilities. Among them, Swin-Unet is adopted in this study as a representative Transformer-based segmentation backbone. Foundation-model-based approaches [2,4,5] have also shown considerable potential for semantic segmentation. State-space-model-based architectures, such as Mamba-UNet [18,19,20,21,22,23], further provide new alternatives for efficient visual modeling. These models are powerful general-purpose segmentation backbones, but they usually do not explicitly exploit acquisition-period information or fixed-view structural priors. In this work, SPMES is designed as a framework that can be integrated with different backbones to introduce period-aware and semantic-prior-guided modeling.

2.2. Feature Fusion and Attention Mechanisms

Feature fusion and attention mechanisms are widely used to improve semantic segmentation by integrating multi-scale semantics and reweighting informative regions [24,25,26]. Recent studies on high-quality segmentation also indicate that preserving boundary and topology consistency is important for reliable segmentation results [27]. However, most existing fusion or attention modules operate within the internal feature space of a single model and do not explicitly use stable scene-level semantic priors from fixed-view monitoring data. In long-term monitoring scenes, local textures, contrast, and boundary visibility may vary substantially across acquisition periods. Under such conditions, purely internal feature interactions may still be affected by appearance changes. Therefore, SPMES introduces a global semantic prior produced by GE and uses SGFM to inject this prior into period-specific representations, enabling appearance modeling to be guided by stable structure.

2.3. Period-Aware Scene Modeling

The period-related variations considered in this work are caused by recurring seasonal, illumination, weather, and environmental changes under a fixed viewpoint, rather than by object motion as in video segmentation tasks. Existing studies have addressed temporal and condition-induced appearance variations from different perspectives. Time-aware or stage-aware methods introduce acquisition time as an auxiliary condition for scene modeling [28]. Cross-season semantic segmentation and long-term visual localization methods exploit correspondences between observations captured under different seasons or visual conditions to improve semantic consistency [29,30]. Cross-condition adaptation methods further align or contrast corresponding observations to enhance segmentation robustness under adverse conditions [31,32], while style-adaptive methods address appearance variations from the perspective of domain generalization [8]. These methods generally formulate the problem through temporal conditioning, cross-condition consistency, domain adaptation, or domain generalization, and may rely on explicit source and target domains, unlabeled target-domain data, or corresponding observations captured under different conditions. In contrast, the present work considers fully supervised segmentation within a single fixed-view monitoring scene, where the training images are provided with pixel-level annotations and acquisition timestamps, without constructing explicit source and target domains. The purpose of period-specific learning is therefore to reduce recurring intra-scene appearance heterogeneity while retaining the approximately stable spatial structure shared across different acquisition periods. A straightforward alternative is to train separate models for different periods; however, independently trained models may suffer from limited period-specific samples and insufficient global structural knowledge. This motivates the proposed collaborative design that combines period-specific expert specialization with a shared global semantic prior.

2.4. Multi-Expert Systems in Vision Tasks

Mixture of Experts (MoE) improves model flexibility and generalization by assigning complementary expert modules to different data patterns [10,33,34]. This idea is naturally related to long-term fixed-view monitoring scenes, where different acquisition periods correspond to different appearance patterns. However, most existing vision MoE methods rely on learned gates or implicit expert partitioning strategies [34]. Such strategies may introduce additional routing uncertainty and usually do not impose a unified global semantic constraint. By contrast, SPMES adopts deterministic routing based on acquisition periods and introduces a shared global semantic prior to constrain period-specific experts, aiming to preserve both period-specific expressiveness and global structural consistency.

3. Methods

In long-term fixed-view monitoring scenes, seasonal, illumination, weather, and environmental changes may cause substantial appearance variations across acquisition periods. These variations affect local textures, contrast, and boundary visibility, leading to degraded segmentation accuracy and unstable boundary prediction.
The design of SPMES is motivated by a practical property of fixed-view visual monitoring systems: although local appearance may change substantially, the camera viewpoint and the global spatial layout of the monitored target usually remain stable. Therefore, segmentation can benefit from a collaborative design that uses global structural knowledge as a stable reference while allowing specialized models to adapt to recurring period-specific appearance patterns.
To this end, we propose a Semantic Prior-Guided Period-Aware Multi-Expert Segmentation framework, termed SPMES. It consists of three components: a Global Expert (GE), a Semantic-Guided Fusion Module (SGFM), and period-specific experts (PSEs). GE learns stable semantic priors from the whole training set and produces soft semantic-prior maps; SGFM injects these priors into the input representation for structure-aware enhancement; and PSEs model period-specific appearance characteristics. The overall architecture is shown in Figure 1. The following subsections describe the overall architecture, the three principal components, the training objective, and the staged training and timestamp-based inference strategy.

3.1. Overall Architecture

Given an input image X R C × H × W , SPMES performs semantic segmentation through three stages: global semantic-prior extraction, semantic-guided representation fusion, and period-specific expert prediction. First, GE produces a stable semantic-prior map from the input image. Then, SGFM fuses the global semantic prior with the input representation to obtain a structure-enhanced representation. Finally, the fused representation is routed to the corresponding period-specific expert according to the acquisition period.
The overall process is formulated as:
X G = G E ( X ) ,
F O = S G F M ( X , X G ) ,
Y = M t ( F O ) ,
where X G denotes the global semantic-prior map, F O denotes the fused structure-enhanced representation, M t denotes the expert selected according to the acquisition period of the input image, and Y denotes the final prediction.
The framework explicitly coordinates globally shared structural information and period-specific appearance information. GE models stable semantic structure from all training samples, PSEs model acquisition-period-specific appearance patterns, and SGFM establishes representation-level interaction between them. SPMES can be integrated with different backbones, including U-Net, U-Net++, U2-Net, Swin-Unet, and Mamba-UNet.

3.2. Global Expert

The Global Expert (GE) is designed to learn globally shared semantic structure and provide a stable semantic-prior reference for subsequent period-specific representation learning. In long-term fixed-view monitoring scenarios, although local appearance may change significantly due to seasonal, illumination, weather, and environmental variations, the overall spatial layout of the monitored target is usually relatively stable. For example, in water-body monitoring, local water boundaries and surface textures may fluctuate across periods, whereas the overall spatial distribution of the water region is usually more consistent. Therefore, it is desirable to introduce an independent module to model such stable structure shared by samples from different acquisition periods.
In implementation, GE adopts the same network architecture as the selected backbone and is pretrained on the entire training set to capture semantic structural patterns shared by all periods. Unlike the period-specific experts, GE is not optimized for a specific acquisition period. Instead, it extracts globally shared structural information from the overall data distribution and thereby forms a stable global semantic prior.
During subsequent training stages, the parameters of GE are kept frozen. The main purpose of this design is to use GE as a stable semantic-prior extractor, preventing it from being biased toward any specific acquisition period during the optimization of period-specific experts. If GE were jointly updated with different period-specific experts, its representation might gradually drift toward local period-specific appearance patterns, thereby weakening its role as a global structural reference. By contrast, freezing GE ensures that all period-specific experts refer to the same global semantic basis, which helps improve structural consistency and reduce overfitting caused by limited period-specific samples.
As defined in Equation (1), GE outputs the global semantic-prior map X G R C G × H × W . For binary water-body segmentation, C G = 1 .
In practice, X G denotes the soft semantic probability map produced by GE before thresholding, rather than the binarized segmentation mask. Therefore, X G preserves continuous confidence information and provides a soft structural prior for subsequent semantic-guided fusion.
Since this prior map is learned from samples across all acquisition periods, it provides a stable structural reference for subsequent modules and helps reduce the influence of period-specific illumination, seasonal, and environmental variations on feature learning.

3.3. Period-Specific Experts

Unlike the relatively stable semantic structure shared across acquisition periods, local appearance in long-term monitoring data often exhibits clear period-specific differences. For instance, seasonal changes may alter vegetation coverage, water boundaries, or background textures, while illumination variation directly affects brightness, contrast, and local texture patterns. To better model such period-related appearance variation, we introduce multiple period-specific experts (PSEs), each dedicated to a specific acquisition period.
Before period-specific optimization, the parameters of the pretrained Global Expert are copied to initialize all period-specific experts. After initialization, the experts do not share parameters with the Global Expert or with one another, and each expert is further optimized using only the training samples belonging to its corresponding acquisition period.
Specifically, based on the acquisition time of each image within the annual cycle, the annual acquisition cycle is uniformly divided into T recurring acquisition periods, and an expert model { M 1 , M 2 , , M T } is assigned to each period. For example, when T = 4 , the annual cycle is divided into four periods: from January to March, from April to June, from July to September, and from October to December. Samples acquired during the same period in different years are assigned to the same expert.
The uniform partition is intended as a simple and reproducible routing approximation rather than an exact representation of natural-season or hydrological boundaries. Such transitions are gradual and may vary across regions and years, while precipitation, runoff, snowmelt, and episodic ice-avalanche events can cause irregular changes that cannot be inferred reliably from timestamps alone. We therefore adopt calendar-based routing without requiring additional environmental metadata and evaluate its temporal granularity through the sensitivity analysis of T.
This partitioning strategy is designed to capture recurring seasonal, illumination-related, and environmental appearance patterns while keeping the routing process deterministic. Each period-specific expert adopts the same architecture as the selected backbone, but different experts do not share parameters and are trained only on samples belonging to their corresponding periods. Consequently, each expert focuses on a relatively narrower range of appearance variations rather than fitting all heterogeneous long-term conditions within a single parameter space.
For a fused representation F O with acquisition time τ , the sample is routed to expert M t when τ S t , where S t denotes the t-th recurring acquisition period. The final prediction is then obtained according to Equation (3).
Because timestamps directly indicate the acquisition period to which a sample belongs, we adopt a deterministic routing strategy based on image capture time instead of introducing an additional gating network. This design deterministically assigns each sample to the corresponding period-specific expert while avoiding the additional uncertainty and training complexity associated with learned gating.
From the perspective of appearance modeling, samples from different acquisition periods contain distinct visual characteristics. If a single model is used to fit all periods jointly, it must represent multiple heterogeneous appearance patterns within the same parameter space, which may lead to performance trade-offs across periods. In contrast, the period-aware multi-expert design decomposes the overall learning problem into several relatively simpler period-specific subproblems, thereby improving appearance representation while GE and SGFM provide global structural guidance.

3.4. Semantic-Guided Fusion Module

To effectively inject globally stable semantic structure into the period-specific input representation, we design a Semantic-Guided Fusion Module (SGFM), as illustrated in Figure 2. This module establishes interactions between the input representation and the global semantic-prior map through a prior-guided channel-attention mechanism for cross-feature fusion, so that stable structural information can guide period-specific appearance features while enhancing the representation of key target regions.
The inputs of SGFM include the input image tensor X R C × H × W and the global semantic-prior map X G R C G × H × W produced by GE. Since the two inputs need to share the same spatial scale before fusion, they are first downsampled to a unified spatial resolution:
X R C × H × W , X G R C G × H × W .
Although X G and X have C G and C channels, respectively, C G is not required to be equal to C. The Query projection Conv Q maps the global semantic-prior representation from C G channels to C channels, whereas Conv K and Conv V preserve the C-channel dimension of the input representation. For the binary segmentation task considered in this work, C G = 1 , and Conv Q projects the single-channel soft semantic prior into C Query channels. Then, convolution, normalization, and nonlinear activation are applied to generate the Value, Key, and Query representations, which are reshaped into matrix form:
V = reshape ReLU BN V Conv V ( X ) R C × ( H × W ) ,
K = reshape ReLU BN K Conv K ( X ) R C × ( H × W ) ,
Q = reshape ReLU BN Q Conv Q ( X G ) R C × ( H × W ) .
Here, Conv V , Conv K , and Conv Q are independent 3 × 3 convolution layers that generate channel-aligned Value, Key, and Query representations, and BN V , BN K , and BN Q are the corresponding independent batch-normalization layers. These projections constitute the initial projection stage within the SGFM operation F O = S G F M ( X , X G ) defined in Equation (2).
Different from standard self-attention, SGFM uses the global semantic-prior map X G to generate Query, while Key and Value are generated from the input representation X . The core idea of this design is to use stable semantic structural priors to reweight channel responses in the input representation, thereby enhancing target-related responses. In other words, through a structure–query–appearance–response mechanism, the model is encouraged to focus on regions that are more consistent with the global semantic structure under dynamic appearance conditions.
Based on these representations, the channel-wise attention matrix is computed as:
A = softmax ( Q K ) R C × C ,
where softmax ( · ) normalizes the channel correlations to obtain feature-reweighting coefficients guided by the global semantic prior. The channel-wise formulation is adopted because the input representation and the GE-generated semantic prior are spatially aligned in the fixed-view setting. SGFM therefore focuses on modulating semantic-related channel responses, while the residual pathway introduced below preserves the original spatial information. Moreover, the proposed formulation constructs a C × C attention matrix, whereas full pairwise spatial attention would construct an ( H W ) × ( H W ) matrix, with computational complexities of O ( C 2 H W ) and O ( C ( H W ) 2 ) , respectively. This design reduces the memory and computational cost of the fusion operation relative to full pairwise spatial attention.
Next, the attention matrix is used to weight the Value feature, and the resulting feature is reshaped back into the spatial form:
F 1 = reshape ( A V ) R C × H × W .
To preserve local appearance details while introducing structure-enhanced representations, we first construct the fused representation by
F F = concat X G , F 1 + X R ( C + C G ) × H × W .
Since the concatenation increases the channel dimension, a projection layer is further introduced to perform channel alignment and feature adaptation:
F O = ReLU BN F Conv 1 × 1 ( F F ) R C × H × W .
Here, the residual term F 1 + X helps retain local appearance details from the input representation while injecting semantic-guided information, whereas concatenation with X G explicitly preserves the global semantic structure. The projection layer, implemented by Conv 1 × 1 followed by BN F and ReLU, further performs feature mixing and dimensional alignment, enabling the fused representation to be consistently adapted to the input interface of the period-specific expert. In this way, SGFM enables collaborative fusion of global structural priors and local appearance representations.
Overall, unlike conventional attention mechanisms that rely solely on internal feature interactions, SGFM introduces global semantic priors to establish guided interactions across representation spaces. This design enhances responses in key structural regions, suppresses background noise and semantic ambiguity under complex visual conditions, and improves structural consistency for period-specific expert prediction.
For clarity, the principal symbols and tensor dimensions used in the preceding formulation are summarized in Table 1.

3.5. Loss Function

To improve both pixel-wise classification accuracy and region-level overlap consistency, we adopt a weighted combination of Binary Cross-Entropy (BCE) loss and Dice loss as the training objective.
The BCE loss is defined as:
L B C E = 1 N i = 1 N [ g i log ( p i ) + ( 1 g i ) log ( 1 p i ) ] ,
where p i denotes the predicted probability that pixel i belongs to the foreground class, g i denotes the corresponding ground-truth label, and N denotes the total number of pixels in the image.
Dice loss is used to measure the overlap between the predicted region and the ground-truth annotation, and is defined as:
L D i c e = 1 2 i = 1 N p i g i + ϵ i = 1 N p i + i = 1 N g i + ϵ ,
where ϵ is a smoothing term to avoid division by zero.
The final training loss is formulated as:
L = α L B C E + β L D i c e ,
where α and β denote the weighting coefficients of BCE loss and Dice loss, respectively. The ratio α : β controls the relative contributions of pixel-wise classification supervision and region-overlap optimization. A larger α places greater emphasis on pixel-wise classification, whereas a larger β increases the contribution of region-level overlap consistency. In the main experiments, α : β was set to 5 : 1 , as selected through the validation-set sensitivity analysis presented in Section 4.4.1.

3.6. Training and Inference Strategy

SPMES is optimized in two stages. GE is first trained on the complete training set and then frozen, while its parameters are copied to initialize all PSEs. During the second stage, each sample is deterministically routed to its corresponding PSE according to the acquisition timestamp; the shared SGFM and the routed PSE are optimized, whereas GE remains fixed. During inference, the timestamp selects one PSE, and GE, SGFM, and the selected PSE sequentially produce the final prediction. The complete procedure is summarized in Algorithm 1.
Algorithm 1 Staged training and inference of SPMES
  • Require: Training set D = { ( X i , Y i , τ i ) } i = 1 N ; number of periods T; period-assignment function π ( τ ; T ) ; segmentation loss L
  • Ensure: Trained GE parameters θ G , shared SGFM parameters ϕ , and PSE parameters { θ 1 , , θ T }
  1:
Stage 1: Global Expert pretraining
  2:
Initialize GE parameters θ G
  3:
for each GE training epoch do
  4:
    for each mini-batch B D  do
  5:
        Let X and Y denote the input images and labels in B
  6:
         Y ^ G G E ( X ; θ G )
  7:
         L G L ( Y ^ G , Y )
  8:
        Update θ G by minimizing L G
  9:
    end for
 10:
end for
 11:
Stage 2: Period-specific initialization and optimization
 12:
for  t = 1 , , T  do
 13:
    Initialize the t-th PSE by θ t θ G
 14:
end for
 15:
Freeze θ G
 16:
Initialize the shared SGFM parameters ϕ
 17:
for each period-specific training epoch do
 18:
    for each mini-batch B D  do
 19:
         L B 0
 20:
        for  t = 1 , , T  do
 21:
            B t { ( X i , Y i , τ i ) B π ( τ i ; T ) = t }
 22:
           if  B t  then
 23:
               Let X t and Y t denote the input images and labels in B t
 24:
                X G StopGrad G E ( X t ; θ G )
 25:
                F O S G F M ( X t , X G ; ϕ )
 26:
                Y ^ t M t ( F O ; θ t )
 27:
                L B L B + L ( Y ^ t , Y t )
 28:
           end if
 29:
        end for
 30:
        Update ϕ and the active parameters among { θ t } t = 1 T by minimizing L B ; keep θ G fixed
 31:
    end for
 32:
end for
 33:
Inference for an image X acquired at time τ
 34:
t * π ( τ ; T )
 35:
Select the corresponding expert M t *
 36:
X G G E ( X ; θ G )
 37:
F O S G F M ( X , X G ; ϕ )
 38:
Y ^ M t * ( F O ; θ t * )
 39:
return  Y ^

4. Experiments and Results

This section first describes the dataset, experimental settings, and evaluation metrics. We then report validation-based sensitivity analyses of the loss-weight ratio and the number of acquisition periods, followed by comparisons across five segmentation backbones and direct comparisons with representative period-aware baselines. A focused repeated-seed analysis with paired confidence intervals is further conducted for representative Swin-Unet configurations. Additional experiments examine the effect of input resolution, followed by qualitative comparisons and component ablations. Finally, model complexity, inference-time resource requirements, and the deployment implications and limitations of SPMES in the studied low-frequency server-side monitoring setting are analyzed.

4.1. Dataset

The dataset was collected by a long-term visual monitoring system deployed at an ice-avalanche-induced river blockage site. A fixed-position camera repeatedly observes the same scene, with images acquired approximately once per hour and transmitted through a satellite link to a central server, where the segmentation model is currently executed.
The raw image collection spans from April 2021 to October 2023 and contains 7231 RGB images with a resolution of 2560 × 1440 in JPG format. After corrupted or low-quality images were removed, representative samples were selected across the full annotated interval and manually annotated to provide long-term temporal coverage. The annotated images used in the experiments were acquired from 19 April 2021 to 30 April 2023, covering approximately two annual acquisition cycles.
The segmentation task was formulated as binary pixel-level classification, with the visually identifiable water surface treated as the foreground class and all non-water regions treated as background. The water-region boundary was delineated along the visible interface between the water surface and adjacent non-water regions.
The 1360 masks were manually annotated at the original image resolution using LabelMe [35] by two annotators following the same class and boundary criteria. Each completed annotation was cross-checked by the other annotator. Ambiguous boundaries or inconsistent labels were jointly reviewed and corrected by consensus before the final annotation was determined. The resulting LabelMe annotations were subsequently converted into binary segmentation masks for model training and evaluation. Because the final masks were obtained through consensus correction rather than retained as two separate independent annotations, quantitative inter-annotator agreement statistics are not available.
Representative images and their ground-truth masks are provided in the qualitative comparisons presented later. Together with the annotation criteria and quality-control procedure described above, these examples provide a reference for understanding the annotation process.
The final annotated dataset contains 1025 training images, 100 validation images, and 235 test images. The dataset split was performed at the calendar-day level before acquisition-period labels were assigned. All images acquired on the same calendar day were treated as one date group and assigned exclusively to the training, validation, or test set. Therefore, observations from the same daily acquisition sequence were not distributed across different subsets. For each subset, the selected date groups were distributed approximately uniformly over the full annotated interval rather than being concentrated within a short temporal segment. Consequently, the training, validation, and test sets all contain observations acquired throughout the long-term monitoring interval. No explicit categorization or balancing according to illumination, weather, environmental conditions, or the subsequently defined acquisition periods was performed during dataset splitting.
The purpose of period partitioning in this work is not future forecasting or chronological generalization. Instead, acquisition time is used as auxiliary metadata to divide the long-term monitoring samples into several recurring appearance-related periods within the annual acquisition cycle, thereby enabling period-specific expert specialization. All annotated images were acquired using the same fixed-position monitoring device at a single monitoring site. The camera viewpoint remained stable throughout the data-collection period; therefore, no additional image registration or stabilization was applied during preprocessing. The dataset supports evaluation of recurring long-term appearance variations represented within this deployment, but it does not directly evaluate chronological, cross-camera, or cross-site generalization.
Most publicly available semantic segmentation datasets, such as Cityscapes [36] and ADE20K [37], emphasize spatial semantic diversity rather than long-term repeated observation of the same scene from a fixed viewpoint. By contrast, our dataset provides a fixed observation viewpoint, a monitoring duration of more than two years, and substantial variation in illumination, weather conditions, and water-body morphology. These characteristics make it suitable for studying period-aware segmentation in long-term fixed-view monitoring scenes, where stable spatial layout and period-specific appearance variation coexist. Since the proposed expert specialization relies on recurring acquisition periods under a stable viewpoint, conventional public segmentation datasets without long-term repeated observations and acquisition-time metadata are not directly suitable for evaluating this setting.

4.2. Experimental Settings

All experiments were conducted under a unified hardware and software environment. The hardware configuration includes an Intel Xeon Gold 6430 CPU, 32 GB memory, and one NVIDIA A30 GPU with 24 GB memory. The software environment consists of Debian 12, Python 3.11, PyTorch 2.5.1, and CUDA 11.8.
During training, the Adam optimizer was adopted with an initial learning rate of 1 × 10 4 , and cosine annealing was used for learning-rate scheduling. The maximum number of training epochs was set to 300, and the batch size was 2. Unless otherwise stated, all input images were resized to 320 × 320 . To examine the possible loss of thin boundary information caused by spatial downsampling, an additional controlled input-resolution analysis was conducted using 320 × 320 , 480 × 480 , and 640 × 640 , as described in Section 4.7. Strong geometric augmentations, such as random cropping and random rotation, were not applied because the stable fixed-view setting provides useful spatial correspondence between image coordinates and scene structures.
Given the relatively limited number of annotated training images, several measures were adopted to mitigate overfitting and prevent optimistic evaluation. First, the dataset was split at the calendar-day level, such that all images acquired on the same day were assigned exclusively to one subset. This reduces the possibility that highly similar observations from the same daily acquisition sequence appear in both the training and evaluation sets. Second, model and hyperparameter selection were performed using the validation set, while the test set was reserved for final evaluation.
For SPMES, the period-specific experts were not trained from random initialization using only their relatively small period-specific subsets. Instead, GE was first trained using all 1025 training images, and its parameters were then copied to initialize each PSE. During subsequent period-specific optimization, GE was frozen and provided a common semantic prior, while the shared SGFM received training samples from all acquisition periods. This staged initialization and shared structural guidance reduce the number of period-specific patterns that must be learned from scratch. Cosine learning-rate annealing was also used to stabilize optimization. These measures mitigate, but do not completely eliminate, the risk of overfitting associated with the limited and scene-specific dataset.
To examine the compatibility of the proposed framework with different segmentation architectures, five representative semantic segmentation backbones were selected as baselines, namely U-Net [11], U-Net++ [12], U2-Net [13], Swin-Unet [17], and Mamba-UNet [18]. For each backbone, we trained both the original baseline model and its SPMES-enhanced counterpart under identical experimental settings. Here, U2-Net corresponds to the u2netp implementation released in the official U2-Net repository.
For the loss setting, the weighted combination of BCE loss and Dice loss defined in Section 3.5 was used as the training objective. The ratio α : β = 5 : 1 was selected using the Swin-Unet-based GE validation analysis in Section 4.4.1 and was kept unchanged in the subsequent experiments.
For fair comparison, all baseline models and their SPMES-enhanced counterparts were trained and evaluated using the same train/validation/test split and preprocessing pipeline described in Section 4.1.
Unless otherwise specified, the number of acquisition periods was set to T = 4 , which was selected exclusively through the validation-set sensitivity analysis described in Section 4.4.2. Candidate values T { 2 , 3 , 4 , 5 } were compared using the same training and validation sets, without using the test set for model selection. After T = 4 was fixed, the test set was used only for final performance evaluation. Under this setting, the annual acquisition cycle was divided into four periods: January to March, April to June, July to September, and October to December. For SPMES, the acquisition-period labels were derived directly from image timestamps and used only for deterministic expert routing. The corresponding period-wise distributions of the training, validation, and test sets are reported in Table 2.
The five-backbone comparison, most component ablations, the loss-weight analysis, and the input-resolution analysis were conducted once per configuration and are therefore interpreted descriptively. Complete end-to-end repeated training was limited to four representative Swin-Unet-based configurations using seeds 3407, 2026, and 42, as detailed in Section 4.6.

4.3. Evaluation Metrics

To comprehensively evaluate segmentation performance from the perspectives of region overlap, boundary accuracy, and shape preservation, we adopt IoU, Dice, Recall, Boundary F1-score (BF1), 95% Hausdorff Distance (HD95), and Perimeter Error (PE) as evaluation metrics.
IoU, Recall, and Dice are defined as follows:
IoU = T P T P + F P + F N ,
Recall = T P T P + F N ,
Dice = 2 T P 2 T P + F P + F N .
where T P , F P , and F N denote the numbers of true-positive, false-positive, and false-negative pixels, respectively.
In addition to region-based metrics, we also introduce BF1, HD95, and PE to evaluate the consistency between predicted and ground-truth boundaries as well as overall shape error. BF1 is computed as:
P b = p B P d ( p , B G ) r | B P | ,
R b = g B G d ( g , B P ) r | B G | ,
BF 1 = 2 P b R b P b + R b .
HD95 is defined as:
HD 95 = max Percentile 95 d ( B P , B G ) , Percentile 95 d ( B G , B P ) ,
and PE is defined as:
PE = Perimeter ( P ) Perimeter ( G ) Perimeter ( G ) .
Here, r = 11 denotes the pixel-level distance tolerance, and B P and B G denote the predicted and ground-truth boundary sets, respectively. Before computing boundary-based metrics, the predicted masks are resized back to the original image resolution. Therefore, both the BF1 distance tolerance r and the HD95 distance values are measured in pixels at the original resolution. For tabular presentation, IoU, Dice, Recall, BF1, and PE are multiplied by 100 and reported as percentages, whereas HD95 is reported directly in pixels. Overall, IoU, Dice, and Recall mainly reflect region-level segmentation quality, while BF1, HD95, and PE focus more on boundary continuity and shape consistency. Therefore, the combination of these metrics provides a more comprehensive evaluation of segmentation accuracy, boundary continuity, and shape preservation in long-term fixed-view monitoring scenes.

4.4. Hyperparameter Sensitivity Analysis

4.4.1. Loss-Weight Ratio

The loss-weight ratio was determined before selecting the number of acquisition periods. Because the BCE-to-Dice weighting is independent of the period partition and is shared by the GE and PSE training stages, we first evaluated α : β { 1 : 5 , 1 : 3 , 1 : 1 , 3 : 1 , 5 : 1 , 7 : 1 } , using the Swin-Unet-based Global Expert as the representative segmentation model. The GE was trained using the complete training set without period-specific partitioning, and the candidate ratios were compared exclusively on the validation set. All other training settings, including the data split, optimizer, learning-rate schedule, and model-selection protocol, were kept unchanged. The test set was not used for selecting the loss weights.
As shown in Table 3, the validation performance varies non-monotonically with the BCE-to-Dice loss-weight ratio. The Dice-dominant setting of 1 : 5 obtains relatively high Recall and BF1 values, but produces the lowest IoU of 79.16%. Increasing the relative contribution of BCE generally improves IoU within the tested range, although small fluctuations are observed between adjacent settings. The highest IoU of 81.52% is obtained at α : β = 7 : 1 .
The 5 : 1 setting achieves the highest Recall of 83.26% and the highest BF1 of 71.63%, while maintaining an IoU of 81.24%. Compared with 7 : 1 , it sacrifices only 0.28 percentage points in IoU, while improving Recall and BF1 by 0.68 and 1.45 percentage points, respectively. It also outperforms the Dice-dominant 1 : 5 setting across all three reported metrics. Considering the overall balance among region-overlap accuracy, foreground coverage, and boundary quality, α : β = 5 : 1 was retained for the subsequent experiments. Because each candidate ratio was evaluated using a single training run, these results are interpreted as descriptive validation-set comparisons rather than statistical estimates.

4.4.2. Number of Acquisition Periods

To determine the number of acquisition periods without involving the test set, Swin-Unet was selected as the representative backbone and evaluated with T { 2 , 3 , 4 , 5 } . This range covers relatively coarse temporal partitions, the quarterly partition adopted in the final configuration, and a finer five-period partition.
Using the same pretrained and frozen GE checkpoint, the period-specific stage was repeated three times for each T { 2 , 3 , 4 , 5 } . Figure 3 reports the validation IoU, Recall, and BF1 as mean ± sample standard deviation. Accordingly, the reported variability reflects run-to-run variation in the period-specific optimization stage conditional on the fixed GE checkpoint, rather than variability across complete end-to-end retraining of SPMES.
The highest mean values are obtained at T = 4 , although the differences among neighboring settings are modest. We therefore selected T = 4 from the validation results before test evaluation and interpret it as a dataset-specific choice within the examined range rather than a universal temporal partition.

4.5. Comparison with Baseline Methods

To evaluate the compatibility of SPMES with different network architectures, five representative segmentation models were selected, including U-Net, U-Net++, U2-Net, Swin-Unet, and Mamba-UNet. Here, U2-Net corresponds to the u2netp implementation released in the official U2-Net repository. These models cover classical CNN-based architectures, Transformer-based segmentation networks, and state-space-model-based segmentation networks. This design examines whether the observed improvements are tied to a single backbone or remain consistent across the evaluated architectures under the studied monitoring setting. The experimental results are reported in Table 4.
As shown in Table 4, SPMES yields better point estimates across all six reported metrics for the five evaluated backbones on the presented dataset. However, the magnitude of these differences varies substantially across backbones and metrics. For U-Net, relatively clear gains are observed in IoU, Recall, BF1, HD95, and PE. For Swin-Unet, PE decreases from 9.08% to 8.28%, corresponding to a modest reduction of 0.80 percentage points, whereas the changes in BF1 and HD95 are more pronounced, with BF1 increasing from 68.39% to 72.66% and HD95 decreasing from 81.50 to 72.63 pixels.
Taken together, the five-backbone results show a consistent favorable direction in the reported point estimates, although the magnitude of the differences varies across architectures and metrics. Because the results in Table 4 were obtained from one run per configuration, they are interpreted descriptively and should not be regarded as evidence of statistical significance or uniformly large improvements across all backbones and metrics.

4.6. Comparison with Temporal Conditioning and Period-Specific Expert Baselines

To determine whether the improvement arises merely from using acquisition-period information, SPMES is compared with Timestamp Conditioning and Period-wise Fine-Tuning (PFT) using Swin-Unet. For this dedicated repeated-run analysis, Swin-Unet, Timestamp Conditioning, PFT, and Swin-Unet with SPMES were independently trained using seeds 3407, 2026, and 42 under the same train/validation/test split, preprocessing pipeline, augmentation strategy, optimization settings, and validation-based model-selection protocol. The results in Table 5 are reported as the mean and sample standard deviation over the three runs.
Timestamp Conditioning maps the acquisition-period index to a learnable embedding and adds it to the bottleneck representation of one shared Swin-Unet. PFT initializes period-specific experts from a GE trained on the complete training set and independently fine-tunes each expert using only its corresponding period. During inference, the timestamp deterministically selects one PFT expert; the original GE prior branch and SGFM are not retained. PFT is therefore a controlled hard-routed period-specific expert baseline rather than a conventional learned-gating mixture-of-experts model.
Because the same three seed identifiers were used for all four configurations, the statistical uncertainty reported in Table 6 was evaluated using paired seed-level differences. For IoU, Dice, Recall, and BF1, the paired difference was defined as the SPMES result minus the comparison result. For HD95 and PE, it was defined as the comparison result minus the SPMES result, so that a positive value consistently indicates better performance for SPMES. For each metric, the two-sided 95 % confidence interval of the mean paired difference was calculated as
d ¯ ± t 0.975 , n 1 s d n ,
where n = 3 , d ¯ is the mean paired difference, and s d is its sample standard deviation. An improvement was regarded as statistically supported for an individual metric when the corresponding interval excluded zero.
This paired analysis was restricted to the four Swin-Unet-based configurations evaluated in this subsection. The five-backbone comparison and most component ablations were conducted once per configuration and are therefore interpreted as descriptive point estimates.
Timestamp Conditioning does not improve upon the shared Swin-Unet baseline, suggesting that injecting a coarse acquisition-period embedding into one shared model is insufficient under the present setting. In contrast, PFT improves the mean IoU, Dice, Recall, BF1, and HD95, confirming the value of period-specific specialization, although its PE increases from 8.48 % to 10.45 % .
SPMES achieves the best mean result for all six metrics. Relative to Swin-Unet, it improves IoU, Dice, Recall, and BF1 by 1.55, 0.95, 2.56, and 3.94 percentage points, respectively, while reducing HD95 by 9.67 pixels and PE by 0.84 percentage points. Relative to PFT, it further improves IoU by 0.73 percentage points and BF1 by 1.64 percentage points and reduces HD95 and PE by 6.85 pixels and 2.82 percentage points, respectively. Because PFT and SPMES share the same GE-based initialization, expert number, and deterministic routing rule, these differences indicate benefits from retaining the GE prior branch and SGFM beyond period-wise fine-tuning alone.
The paired confidence intervals support the IoU, Dice, Recall, and BF1 improvements over Swin-Unet and the IoU, Dice, and BF1 improvements over PFT. The remaining intervals include zero and are therefore interpreted as favorable mean trends rather than statistically established differences. In particular, although the mean PE value favors SPMES over Swin-Unet, the corresponding 95 % confidence interval includes zero; this change is therefore interpreted as a modest favorable mean trend rather than a statistically supported improvement. Given the three paired runs, the intervals provide focused uncertainty estimates rather than exhaustive statistical validation.

4.7. Effect of Input Resolution

The original monitoring images have a resolution of 2560 × 1440 , whereas the default network input size is 320 × 320 . Although the predicted masks are restored to the original image resolution before metric calculation, this operation only provides a common evaluation coordinate system and cannot recover fine spatial information that may already have been removed during input downsampling. To examine the influence of input resolution on thin water boundaries and delicate structures, Swin-Unet and the complete Swin-Unet-based SPMES were evaluated using input sizes of 320 × 320 , 480 × 480 , and 640 × 640 .
All resolution-specific configurations were trained once using the same random seed, 3407. At each input resolution, the corresponding Swin-Unet baseline was trained first and subsequently used as the Global Expert for SPMES. The data partition, augmentation pipeline, patch size, window size, embedding dimension, stage depths, attention-head configuration, loss weights, optimization settings, training schedule, and acquisition-period partition were kept unchanged. Only the spatial input resolution and the resulting feature-map dimensions were varied. The default 320 × 320 setting used in the main experiments had been fixed before this additional analysis, and the test-set comparison was not used for input-resolution selection. Therefore, the experiment is interpreted as a controlled single-seed resolution analysis rather than a repeated-run statistical comparison.
As shown in Table 7, increasing the input resolution does not improve test-set boundary performance under the unchanged Swin-Unet architecture and training protocol. For Swin-Unet, BF1 decreases from 69.25% at 320 × 320 to 65.49% and 62.49% at 480 × 480 and 640 × 640 , respectively, while HD95 increases from 85.04 to 94.89 and 103.43 pixels. The corresponding IoU decreases from 82.25% to 80.39% and 79.09%. For SPMES, BF1 decreases more moderately from 74.68% to 73.87% and 73.67%, while HD95 increases from 70.16 to 87.81 and 98.06 pixels. Its IoU decreases from 84.43% to 83.85% and 83.41%. These results show that simply increasing the number of input pixels does not guarantee improved thin-boundary recovery when the model architecture, local window size, optimization settings, and training schedule remain unchanged.
Across the three evaluated input resolutions, SPMES yields higher IoU and BF1 and lower HD95 than the corresponding Swin-Unet baseline. At 320 × 320 , 480 × 480 , and 640 × 640 , the IoU differences are 2.18, 3.46, and 4.32 percentage points, respectively, while the BF1 differences are 5.43, 8.38, and 11.18 percentage points. The corresponding HD95 reductions are 14.88, 7.08, and 5.37 pixels.
When the input size increases from 320 × 320 to 640 × 640 , Swin-Unet decreases by 3.16 percentage points in IoU and 6.76 percentage points in BF1, whereas SPMES decreases by 1.02 and 1.01 percentage points, respectively. Thus, within these single-run comparisons, SPMES shows smaller reductions in IoU and BF1 as the evaluated resolution increases. Nevertheless, HD95 deteriorates for both methods at higher resolutions, indicating that larger local boundary deviations cannot be eliminated solely through increased spatial sampling.
Increasing the input resolution raises the peak inference memory from 128.07 MiB to 302.49 MiB for Swin-Unet and from 198.42 MiB to 403.47 MiB for SPMES. The 640 × 640 configuration also produces the lowest inference speed for both methods. Under the current controlled architecture and training protocol, the default 320 × 320 setting therefore provides the best observed combination of region accuracy, boundary quality, and computational efficiency. This conclusion is restricted to the evaluated square-input configurations and does not imply that higher-resolution spatial information is intrinsically unhelpful.

4.8. Qualitative Analysis

Figure 4 and Figure 5 present qualitative comparisons on three representative test samples. Figure 5 additionally provides enlarged local regions to highlight differences that are less apparent in the complete masks.
The examples suggest that SPMES can recover some locally omitted regions and reduce boundary discontinuities, although the magnitude of the visual difference varies across samples and backbones. The enlarged regions show that the improvements for Swin-Unet and Mamba-UNet are often localized rather than visually dominant over the entire mask. These observations are broadly consistent with the favorable BF1 and HD95 results, whereas the comparatively small PE changes should be interpreted cautiously.

4.9. Ablation Study

To isolate the contributions of period-specific specialization, semantic-prior guidance, and SGFM, five configurations are evaluated for each backbone: the original baseline; PSEs only; PSEs with SGFM but without the retained GE prior branch, where Value, Key, and Query are all derived from the input representation; Direct Semantic-Prior Concatenation (DSPC), which retains GE and the PSEs but replaces SGFM with channel concatenation followed by a 1 × 1 projection; and the complete SPMES, where Value and Key are derived from the input representation and Query is derived from the GE prior. The two intermediate configurations are parallel controls rather than successive stages, and the results are reported in Table 8.
Table 8 shows that PSE-only training improves IoU, Dice, Recall, and BF1 for all five backbones, confirming the value of period-specific specialization. However, HD95 and PE do not improve uniformly, indicating that better region overlap and local boundary agreement do not necessarily eliminate isolated or spatially displaced boundary errors. Adding SGFM without the retained GE prior branch also produces backbone-dependent trade-offs, showing that input-derived channel attention alone is insufficient to provide consistently favorable improvements.
DSPC likewise exhibits metric-dependent effects. For U-Net++, its IoU decreases slightly from 83.99% for PSE-only training to 83.80%, while HD95 and PE improve from 81.50 to 78.50 pixels and from 7.66% to 7.19%, respectively. Because DSPC is a parallel control rather than a successive stage of SPMES, this result represents a trade-off between region overlap and boundary geometry rather than an unexpected failure of a cumulative component. The result also suggests that direct prior concatenation can reduce large geometric deviations without consistently improving local overlap, potentially because imperfect prior predictions or feature-scale mismatch interfere with the period-specific representation.
The complete SPMES achieves the best point estimates across all six metrics for every evaluated backbone and outperforms both parallel controls. For Swin-Unet, relative to SGFM without the GE prior, IoU increases from 82.26% to 83.55%, BF1 from 70.15% to 72.66%, and HD95 decreases from 81.78 to 72.63 pixels. Relative to DSPC, the overlap improvements are modest, with IoU increasing from 83.48% to 83.55% and BF1 from 72.54% to 72.66%, but HD95 decreases markedly from 81.91 to 72.63 pixels. These results indicate that the GE prior and SGFM provide complementary benefits and that, for some backbones, their principal contribution lies in reducing large boundary deviations rather than substantially changing average region overlap. Since the component ablations were conducted once per configuration, these comparisons are interpreted descriptively rather than as statistically established differences.

4.10. Complexity Analysis

The computational cost of SPMES is evaluated using U-Net, Swin-Unet, and Mamba-UNet, representing CNN-, Transformer-, and state-space-model-based backbones, respectively. Table 9 reports loaded parameters, FLOPs, peak GPU memory, latency, and FPS at an input size of 320 × 320 .
As shown in Table 9, SPMES approximately doubles the loaded parameters and FLOPs of each baseline because its inference path contains one frozen GE and one active PSE with the same backbone architecture. SGFM operates over the channel dimension and introduces only a comparatively small additional cost. DSPC and SPMES have identical loaded parameter counts and nearly identical FLOPs, while SPMES requires slightly more memory and latency because of its feature interaction and intermediate-feature storage.
Under these approximately parameter- and computation-matched conditions, SPMES outperforms DSPC across all six metrics for all five evaluated backbones. For Swin-Unet, the improvements over DSPC in region-overlap metrics are modest, whereas HD95 decreases from 81.91 to 72.63 pixels. This result indicates that the benefit of SPMES cannot be attributed solely to the increased model capacity and that SGFM is particularly useful for suppressing large boundary deviations. Nevertheless, the doubled backbone computation remains a cost, and SPMES should therefore be regarded as an accuracy–complexity trade-off rather than a universally parameter-efficient architecture.
The slowest evaluated configuration, Mamba-UNet with SPMES, requires 49.03 ms per image and achieves 20.40 FPS on the NVIDIA A30 GPU. This cost is acceptable for the current central-server pipeline, in which images are acquired and transmitted approximately once per hour, but it does not establish feasibility for resource-constrained edge devices, high-frequency emergency-warning systems, or multi-camera processing. Future work will investigate shared GE–PSE feature extraction, lightweight adapters or low-rank modules, a shallower or lower-resolution GE, knowledge distillation, mixed-precision inference, quantization, pruning, and operator fusion.

5. Discussion

The experiments suggest that the benefit of SPMES arises from combining period-specific specialization with global semantic-prior guidance. PSEs adapt the model to recurring appearance changes, whereas the frozen GE supplies a common structural prior and SGFM integrates it with the routed expert input. The ablation results show that neither input-derived channel attention nor direct prior concatenation achieves the same overall performance as the complete framework, indicating that both the source of the prior and the manner in which it is incorporated are important.
The effects are nevertheless metric- and backbone-dependent. PSE-only training generally improves overlap and local boundary agreement but may worsen HD95 or PE because isolated distant errors can remain. DSPC also exhibits trade-offs; for U-Net++, its IoU decreases slightly relative to PSE-only training while HD95 and PE improve. The complete SPMES obtains the best point estimates across all six metrics for every evaluated backbone, but some differences are modest. In particular, the Swin-Unet PE reduction is approximately 0.8 percentage points in both the main and repeated-run comparisons, and its paired confidence interval includes zero; it should therefore be interpreted as a favorable mean trend rather than strong evidence of a substantial perimeter improvement.
The dedicated repeated-run Swin-Unet experiments support several overlap and BF1 improvements, while some Recall, HD95, and PE intervals remain inconclusive with only three seeds. The five-backbone comparison, most component ablations, loss-weight analysis, and input-resolution analysis were conducted once per configuration and should be interpreted descriptively. The day-grouped split reduces the risk of leakage across subsets, while validation-based model selection, GE-based expert initialization, and the frozen GE prior help mitigate overfitting and avoid training each expert from random initialization. These safeguards do not eliminate possible scene-specific overfitting.
The current evidence is limited to one fixed camera and monitoring site and does not establish cross-camera, cross-site, or cross-sensor generalization. Camera displacement, changes in orientation, zoom, or field of view can spatially misalign the GE prior, while persistent morphology changes, severe occlusion, or sensor replacement can make it outdated or introduce a domain shift. In the current operational workflow, unusually large deviations from recent or historical segmentation patterns trigger manual inspection; confirmed camera or scene changes require recalibration, annotation updating, or retraining. Controlled geometric augmentation may improve tolerance to moderate displacement, but substantial deployment changes remain outside the current capability of SPMES.
The deterministic routing strategy further assumes that timestamps are available and that recurring variations can be approximated using predefined acquisition periods. The validation analysis supports T = 4 within the examined range, but this setting is dataset-specific and does not represent exact climatic or hydrological boundaries. Future work should investigate data-driven selection of both the number and nonuniform boundaries of the periods, for example through temporal change-point detection or clustering of appearance representations using only the training and validation data.
SPMES also introduces a clear computational cost because one frozen GE and one active PSE are evaluated during inference. The parameter-matched DSPC comparison shows that the accuracy gain cannot be explained solely by the approximately doubled model capacity. Both SPMES and DSPC require approximately twice the computation of the corresponding backbone-only model. Compared with DSPC, SPMES has nearly identical FLOPs but slightly higher GPU-memory usage and inference latency. The measured cost is acceptable for the current central-server pipeline, where images are acquired and transmitted approximately once per hour, but it does not demonstrate suitability for edge devices, high-frequency warning, or multi-camera processing. Future work on deployment efficiency will investigate shared GE–PSE feature extraction, lightweight adapters or low-rank updates, a shallower or lower-resolution GE, distillation, quantization, pruning, mixed-precision inference, and operator fusion.
A controlled empirical comparison among channel, spatial, and hybrid attention mechanisms remains outside the scope of the present study. Although the channel-wise formulation of SGFM reduces the computational and memory cost relative to full pairwise spatial attention, this computational rationale does not establish that channel attention is generally more accurate or preferable. The current results therefore support the effectiveness of the adopted channel-attention-based SGFM within SPMES, but should not be interpreted as demonstrating its superiority over spatial or hybrid attention mechanisms. Future work will implement lightweight spatial and hybrid SGFM variants and compare their segmentation accuracy, parameter count, FLOPs, GPU-memory use, and inference latency under matched backbone, training, and evaluation settings.
Numerical comparison with domain-adaptation methods also remains outside the scope of the current experimental protocol. The present study considers fully supervised segmentation within one fixed-view monitoring scene, where all training images have pixel-level annotations and acquisition timestamps, without explicit source and target domains, unlabeled target-domain data, or cross-condition image correspondences. Consequently, the reported results should not be interpreted as evidence that SPMES outperforms domain-adaptation methods. Future work will establish explicit source–target evaluation settings across additional acquisition conditions, cameras, monitoring sites, or sensors, and compare representative domain-adaptation methods under harmonized data-access, supervision, backbone, and evaluation protocols.

6. Conclusions

This study presents SPMES, a semantic-prior-guided period-aware multi-expert framework for water-area segmentation under recurring environmental variations. The framework combines deterministic timestamp routing, period-specific experts, a frozen Global Expert, and SGFM-based prior interaction to coordinate stable scene structure with period-specific appearance representations.
Experiments with five representative backbones show that the complete SPMES obtains the best point estimates across all six metrics on the presented dataset. The ablations indicate that its gains cannot be explained solely by period-specific fine-tuning, input-derived channel attention, direct prior concatenation, or increased parameter capacity. A dedicated three-seed Swin-Unet analysis further supports the improvements in IoU, Dice, and BF1, although several Recall and geometric-boundary intervals remain inconclusive.
The present evidence is limited to one fixed camera and monitoring site, and evaluating both GE and one active PSE increases computational cost. Substantial viewpoint, sensor, or scene-layout changes may also invalidate the learned prior. The current study does not provide a controlled comparison with spatial or hybrid attention mechanisms, nor does it include numerical comparisons with domain-adaptation methods under an explicit source–target protocol. Future work will focus on cross-site validation, data-driven temporal partitioning, matched comparisons among channel, spatial, and hybrid attention mechanisms, domain-adaptation benchmarks under harmonized supervision and evaluation settings, lightweight GE–PSE sharing or adaptation, and deployment-oriented optimization for edge and higher-frequency monitoring scenarios.

Author Contributions

Conceptualization, L.H. and S.G.; methodology, L.H. and Y.G.; software, L.H.; validation, L.H. and Z.J.; formal analysis, L.H. and Z.J.; investigation, Y.G. and Z.J.; resources, Y.G. and S.G.; data curation, Y.G. and Z.J.; writing—original draft preparation, L.H.; writing—review and editing, Y.G., Z.J. and S.G.; visualization, L.H.; supervision, S.G.; project administration, S.G.; funding acquisition, S.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Key R&D and Transformation Plan of Qinghai Province, grant number 2025-QY-215.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author due to restrictions related to the data-management policy of the long-term monitoring project. The raw monitoring images were collected from a fixed-position visual monitoring system deployed at an ice-avalanche-induced river blockage site and may contain sensitive information about the monitoring site and fixed surveillance facilities. Data may be made available upon reasonable request and with permission from the relevant project administrator.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
SPMESSemantic Prior-Guided Period-Aware Multi-Expert Segmentation
DSPCDirect Semantic-Prior Concatenation
PFTPeriod-wise Fine-Tuning
GEGlobal Expert
SGFMSemantic-Guided Fusion Module
PSEPeriod-specific Expert
IoUIntersection over Union
BF1Boundary F1-score
HD9595% Hausdorff Distance
PEPerimeter Error
GTGround Truth
FLOPsFloating-Point Operations
FPSFrames per Second
GPUGraphics Processing Unit
FP3232-bit Floating-Point Precision

References

  1. Csurka, G.; Volpi, R.; Chidlovskii, B. Semantic Image Segmentation: Two Decades of Research. Found. Trends Comput. Graph. Vis. 2022, 14, 1–162. [Google Scholar] [CrossRef] [Scilit]
  2. Li, X.; Ding, H.; Yuan, H.; Zhang, W.; Pang, J.; Cheng, G.; Chen, K.; Liu, Z.; Loy, C.C. Transformer-Based Visual Segmentation: A Survey. IEEE Trans. Pattern Anal. Mach. Intell. 2024, 46, 10138–10163. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Zhou, T.; Wang, W. Prototype-Based Semantic Segmentation. IEEE Trans. Pattern Anal. Mach. Intell. 2024, 46, 6858–6872. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Shi, Y.; Dong, M.; Xu, C. Harnessing Vision Foundation Models for High-Performance, Training-Free Open Vocabulary Segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Honolulu, HI, USA, 19–23 October 2025; pp. 23487–23497. [Google Scholar]
  5. Zhang, B.; Yu, S.; Li, H.; Lin, J.; Wang, W.; Xiao, J. The Power of Prior: Training-Free Open-Vocabulary Semantic Segmentation with LLaVA. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Denver, CO, USA, 3–7 June 2026; pp. 6336–6345. Available online: https://openaccess.thecvf.com/content/CVPR2026/html/Zhang_The_Power_of_Prior_Training-Free_Open-Vocabulary_Semantic_Segmentation_with_LLaVA_CVPR_2026_paper.html (accessed on 23 August 2026).
  6. Sakaridis, C.; Dai, D.; Gool, L.V. ACDC: The Adverse Conditions Dataset With Correspondences for Semantic Driving Scene Understanding. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada, 11–17 October 2021; pp. 10765–10775. [Google Scholar] [CrossRef] [Scilit]
  7. Voulgaris, G.; Philippides, A.; Dolley, J.; Reffin, J.; Marshall, F.; Quadrianto, N. Seasonal Domain Shift in the Global South: Dataset and Deep Features Analysis. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Vancouver, BC, Canada, 18–22 June 2023; pp. 2116–2124. [Google Scholar] [CrossRef] [Scilit]
  8. Li, Q.; Zhang, Y.; Zhang, P.; Fu, H.; Zheng, J. SAGE: Style-Adaptive Generalization for Privacy-Constrained Semantic Segmentation Across Domains. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Denver, CO, USA, 3–7 June 2026; pp. 13134–13144. Available online: https://openaccess.thecvf.com/content/CVPR2026/html/Li_SAGE_Style-Adaptive_Generalization_for_Privacy-Constrained_Semantic_Segmentation_Across_Domains_CVPR_2026_paper.html (accessed on 23 August 2026).
  9. Jacobs, R.; Jordan, M.; Nowlan, S.; Hinton, G. Adaptive Mixtures of Local Experts. Neural Comput. 1991, 3, 79–87. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Shazeer, N.; Mirhoseini, A.; Maziarz, K.; Davis, A.; Le, Q.V.; Hinton, G.; Dean, J. Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer. In Proceedings of the International Conference on Learning Representations (ICLR), Toulon, France, 24–26 April 2017. [Google Scholar]
  11. Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Proceedings of the Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015, Munich, Germany, 5–9 October 2015; pp. 234–241. [Google Scholar] [CrossRef] [Scilit]
  12. Zhou, Z.; Siddiquee, M.M.R.; Tajbakhsh, N.; Liang, J. UNet++: A Nested U-Net Architecture for Medical Image Segmentation. In Proceedings of the Deep Learning in Medical Image Analysis and Multimodal Learning for Clinical Decision Support, Granada, Spain, 20 September 2018; pp. 3–11. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Qin, X.; Zhang, Z.; Huang, C.; Dehghan, M.; Zaiane, O.R.; Jagersand, M. U2-Net: Going Deeper with Nested U-Structure for Salient Object Detection. Pattern Recognit. 2020, 106, 107404. [Google Scholar] [CrossRef] [Scilit]
  14. Zheng, S.; Lu, J.; Zhao, H.; Zhu, X.; Luo, Z.; Wang, Y.; Fu, Y.; Feng, J.; Xiang, T.; Torr, P.H.S.; et al. Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 20–25 June 2021; pp. 6877–6886. [Google Scholar] [CrossRef] [Scilit]
  15. Strudel, R.; Garcia, R.; Laptev, I.; Schmid, C. Segmenter: Transformer for Semantic Segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada, 11–17 October 2021; pp. 7262–7272. [Google Scholar] [CrossRef] [Scilit]
  16. Xie, E.; Wang, W.; Yu, Z.; Anandkumar, A.; Alvarez, J.M.; Luo, P. SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Virtual, 6–14 December 2021; 6–14 December 2021; Volume 34, pp. 12077–12090. [Google Scholar]
  17. Cao, H.; Wang, Y.; Chen, J.; Jiang, D.; Zhang, X.; Tian, Q.; Wang, M. Swin-Unet: UNet-Like Pure Transformer for Medical Image Segmentation. In Proceedings of the Computer Vision—ECCV 2022 Workshops, Tel Aviv, Israel, 23–27 October 2022; pp. 205–218. [Google Scholar] [CrossRef] [Scilit]
  18. Wang, Z.; Zheng, J.Q.; Zhang, Y.; Cui, G.; Li, L. Mamba-UNet: UNet-Like Pure Visual Mamba for Medical Image Segmentation. arXiv 2024, arXiv:2402.05079. [Google Scholar] [CrossRef] [Scilit]
  19. Gu, A.; Dao, T. Mamba: Linear-Time Sequence Modeling with Selective State Spaces. arXiv 2024, arXiv:2312.00752. [Google Scholar] [CrossRef] [Scilit]
  20. Dao, T.; Gu, A. Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality. In Proceedings of the International Conference on Machine Learning (ICML), Vienna, Austria, 21–27 July 2024; Volume 235, pp. 10041–10071. [Google Scholar]
  21. Liu, Y.; Tian, Y.; Zhao, Y.; Yu, H.; Xie, L.; Wang, Y.; Ye, Q.; Jiao, J.; Liu, Y. VMamba: Visual State Space Model. In Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada, 10–15 December 2024; Volume 37. [Google Scholar] [CrossRef] [Scilit]
  22. Hatamizadeh, A.; Kautz, J. MambaVision: A Hybrid Mamba-Transformer Vision Backbone. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 11–15 June 2025; pp. 25261–25270. [Google Scholar] [CrossRef] [Scilit]
  23. Liu, H.; Jia, C.; Shi, F.; Cheng, X.; Chen, S. SCSegamba: Lightweight Structure-Aware Vision Mamba for Crack Segmentation in Structures. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, TN, USA, 11–15 June 2025; pp. 29406–29416. [Google Scholar] [CrossRef] [Scilit]
  24. Lin, D.; Ji, Y.; Lischinski, D.; Cohen-Or, D.; Huang, H. Multi-Scale Context Intertwining for Semantic Segmentation. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 622–638. [Google Scholar] [CrossRef] [Scilit]
  25. Woo, S.; Park, J.; Lee, J.Y.; Kweon, I.S. CBAM: Convolutional Block Attention Module. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 3–19. [Google Scholar] [CrossRef] [Scilit]
  26. Dai, Y.; Gieseke, F.; Oehmcke, S.; Wu, Y.; Barnard, K. Attentional Feature Fusion. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), Virtual, 5–9 January 2021; pp. 3559–3568. [Google Scholar] [CrossRef] [Scilit]
  27. Valverde, J.M.; Papadopoulos, D.P.; Larsen, R.; Dahl, A.B. Towards High-Quality Image Segmentation: Improving Topology Accuracy by Penalizing Neighbor Pixels. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Denver, CO, USA, 3–7 June 2026; pp. 13123–13133. Available online: https://openaccess.thecvf.com/content/CVPR2026/html/Valverde_Towards_High-Quality_Image_Segmentation_Improving_Topology_Accuracy_by_Penalizing_Neighbor_CVPR_2026_paper.html (accessed on 23 August 2026).
  28. Zhang, F.; Wang, Y.; Du, Y.; Zhu, Y. A Spatio-Temporal Encoding Neural Network for Semantic Segmentation of Satellite Image Time Series. Appl. Sci. 2023, 13, 12658. [Google Scholar] [CrossRef] [Scilit]
  29. Larsson, M.; Stenborg, E.; Hammarstrand, L.; Pollefeys, M.; Sattler, T.; Kahl, F. A Cross-Season Correspondence Dataset for Robust Semantic Segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 9532–9542. [Google Scholar]
  30. Larsson, M.; Stenborg, E.; Toft, C.; Hammarstrand, L.; Sattler, T.; Kahl, F. Fine-Grained Segmentation Networks: Self-Supervised Segmentation for Improved Long-Term Visual Localization. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea, 27 October–2 November 2019; pp. 31–41. [Google Scholar]
  31. Brüggemann, D.; Sakaridis, C.; Truong, P.; Gool, L.V. Refign: Align and Refine for Adaptation of Semantic Segmentation to Adverse Conditions. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA, 3–7 January 2023; pp. 3174–3184. [Google Scholar]
  32. Brüggemann, D.; Sakaridis, C.; Broedermann, T.; Gool, L.V. Contrastive Model Adaptation for Cross-Condition Robustness in Semantic Segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Paris, France, 2–6 October 2023; pp. 11378–11387. [Google Scholar]
  33. Riquelme, C.; Puigcerver, J.; Mustafa, B.; Neumann, M.; Jenatton, R.; Pinto, A.S.; Keysers, D.; Houlsby, N. Scaling Vision with Sparse Mixture of Experts. In Proceedings of the Advances in Neural Information Processing Systems, Virtual, 6–14 December 2021; 6–14 December 2021; Volume 34, pp. 8583–8595. [Google Scholar]
  34. Liang, H.; Fan, Z.; Sarkar, R.; Jiang, Z.; Chen, T.; Zou, K.; Cheng, Y.; Hao, C.; Wang, Z. M3ViT: Mixture-of-Experts Vision Transformer for Efficient Multi-Task Learning with Model-Accelerator Co-Design. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), New Orleans, LA, USA, 28 November–9 December 2022; Volume 35, pp. 28441–28457. [Google Scholar]
  35. Wada, K. Labelme: Image Polygonal Annotation with Python. 2021. Available online: https://zenodo.org/records/5711226 (accessed on 23 August 2026).
  36. Cordts, M.; Omran, M.; Ramos, S.; Rehfeld, T.; Enzweiler, M.; Benenson, R.; Franke, U.; Roth, S.; Schiele, B. The Cityscapes Dataset for Semantic Urban Scene Understanding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 3213–3223. [Google Scholar] [CrossRef] [Scilit]
  37. Zhou, B.; Zhao, H.; Puig, X.; Fidler, S.; Barriuso, A.; Torralba, A. Scene Parsing through ADE20K Dataset. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 5122–5130. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Overview of the proposed SPMES framework for long-term fixed-view monitoring segmentation. The Global Expert (GE) produces stable semantic-prior maps, the Semantic-Guided Fusion Module (SGFM) performs structure-aware representation fusion, and the period-specific experts (PSEs) specialize in recurring acquisition periods for deterministic period-aware prediction.
Figure 1. Overview of the proposed SPMES framework for long-term fixed-view monitoring segmentation. The Global Expert (GE) produces stable semantic-prior maps, the Semantic-Guided Fusion Module (SGFM) performs structure-aware representation fusion, and the period-specific experts (PSEs) specialize in recurring acquisition periods for deterministic period-aware prediction.
Sensors 26 05396 g001
Figure 2. Architecture of the Semantic-Guided Fusion Module (SGFM). The Value and Key are generated from the input representation, whereas the Query is generated from the global semantic-prior map.
Figure 2. Architecture of the Semantic-Guided Fusion Module (SGFM). The Value and Key are generated from the input representation, whereas the Query is generated from the global semantic-prior map.
Sensors 26 05396 g002
Figure 3. Validation sensitivity to the number of acquisition periods using Swin-Unet. Each point reports mean ± sample standard deviation over three repetitions of the period-specific stage using the same frozen GE checkpoint.
Figure 3. Validation sensitivity to the number of acquisition periods using Swin-Unet. Each point reports mean ± sample standard deviation over three repetitions of the period-specific stage using the same frozen GE checkpoint.
Sensors 26 05396 g003
Figure 4. Qualitative comparison on three representative test samples. Columns from left to right: input image, Ground Truth (GT), U-Net, Ours (U-Net), U-Net++, Ours (U-Net++), U2-Net, and Ours (U2-Net). Red boxes highlight regions with notable differences among the compared methods. Here, Ours (·) denotes SPMES with the indicated backbone.
Figure 4. Qualitative comparison on three representative test samples. Columns from left to right: input image, Ground Truth (GT), U-Net, Ours (U-Net), U-Net++, Ours (U-Net++), U2-Net, and Ours (U2-Net). Red boxes highlight regions with notable differences among the compared methods. Here, Ours (·) denotes SPMES with the indicated backbone.
Sensors 26 05396 g004
Figure 5. Qualitative comparison on three representative test samples. Columns from left to right: input image, Ground Truth (GT), Swin-Unet, Ours (Swin-Unet), Mamba-UNet, and Ours (Mamba-UNet). Red boxes and enlarged views indicate local differences. Here, Ours (·) denotes SPMES with the indicated backbone.
Figure 5. Qualitative comparison on three representative test samples. Columns from left to right: input image, Ground Truth (GT), Swin-Unet, Ours (Swin-Unet), Mamba-UNet, and Ours (Mamba-UNet). Red boxes and enlarged views indicate local differences. Here, Ours (·) denotes SPMES with the indicated backbone.
Sensors 26 05396 g005
Table 1. Principal notation used in the formulation of SPMES.
Table 1. Principal notation used in the formulation of SPMES.
SymbolDimensionDescription
CNumber of channels in the input representation and the SGFM output.
C G Number of channels in the semantic-prior map. For binary segmentation, C G = 1 .
H × W Spatial resolution of the input image and the semantic-prior map before SGFM resizing.
H × W Unified spatial resolution used inside SGFM.
X C × H × W Input image tensor.
X G C G × H × W Soft semantic-prior map produced by GE.
X C × H × W Input tensor resized to the SGFM working resolution.
X G C G × H × W Semantic-prior map resized to the SGFM working resolution.
V , K , Q C × ( H W ) Value, Key, and Query representations used in the prior-guided channel attention.
A C × C Channel-wise semantic-guided attention matrix.
F 1 C × H × W Attention-enhanced intermediate representation.
F F ( C + C G ) × H × W Concatenated representation before channel projection.
F O C × H × W Fused structure-enhanced representation produced by SGFM.
M t Period-specific expert assigned to the t-th acquisition period.
YFinal segmentation prediction.
Table 2. Annotated-image distribution under the four-period setting.
Table 2. Annotated-image distribution under the four-period setting.
SubsetJan.–Mar.Apr.–Jun.Jul.–Sep.Oct.–Dec.Total
Training2552572562571025
Validation25252525100
Test58595959235
Total3383413403411360
Note: Calendar-day groups are assigned exclusively to one subset, independently of the acquisition-period labels used for expert routing.
Table 3. Validation-set sensitivity analysis of the BCE-to-Dice loss-weight ratio using the Swin-Unet-based Global Expert.
Table 3. Validation-set sensitivity analysis of the BCE-to-Dice loss-weight ratio using the Swin-Unet-based Global Expert.
α : β IoU (%) ↑Recall (%) ↑BF1 (%) ↑
1 : 5 79.1683.0371.33
1 : 3 80.5582.6770.22
1 : 1 80.4483.0669.57
3 : 1 81.0882.2570.41
5 : 1 81.2483.2671.63
7 : 1 81.5282.5870.18
Note: ↑ indicates that a higher value is better. Bold values indicate the best result for each metric.
Table 4. Comparison of segmentation performance across different backbone networks.
Table 4. Comparison of segmentation performance across different backbone networks.
BackboneMethodIoU ↑Dice ↑Recall ↑BF1 ↑HD95 (px) ↓PE (%) ↓
U-Net [11]Baseline82.5690.0484.1368.2795.188.69
+SPMES85.9392.3089.1576.9167.305.89
U-Net++ [12]Baseline82.4990.1184.4368.36108.908.64
+SPMES84.9691.6887.5473.8075.686.44
U2-Net [13]Baseline83.5990.9385.1969.7784.058.64
+SPMES85.7292.2088.2075.3667.976.09
Swin-Unet [17]Baseline81.9089.7183.7968.3981.509.08
+SPMES83.5590.7186.2272.6672.638.28
Mamba-UNet [18]Baseline82.1689.9283.6567.2282.858.98
+SPMES84.2891.3286.2971.4278.487.86
Note: IoU, Dice, Recall, BF1, and PE are percentages; HD95 is measured in pixels at the original image resolution. Results are from one run per configuration unless otherwise stated; repeated three-seed results for selected Swin-Unet configurations are reported separately. The arrows ↑ and ↓ indicate that higher and lower values are better, respectively. Bold values indicate the better result within each backbone-specific comparison.
Table 5. Three-seed Swin-Unet comparison with temporal-conditioning and period-specific expert baselines (mean ± sample SD).
Table 5. Three-seed Swin-Unet comparison with temporal-conditioning and period-specific expert baselines (mean ± sample SD).
MethodIoU (%) ↑Dice (%) ↑Recall (%) ↑BF1 (%) ↑HD95 (px) ↓PE (%) ↓
Swin-Unet82.39 ± 0.2190.00 ± 0.1484.17 ± 0.2469.54 ± 0.5784.35 ± 3.558.48 ± 0.33
Timestamp Conditioning81.60 ± 0.6589.51 ± 0.4183.29 ± 0.8067.47 ± 1.6590.63 ± 4.588.64 ± 0.20
Period-wise Fine-Tuning (PFT)83.22 ± 0.4890.52 ± 0.3086.15 ± 0.2971.84 ± 0.5881.53 ± 0.5510.45 ± 1.74
Swin-Unet + SPMES83.95 ± 0.4290.95 ± 0.2686.73 ± 0.6273.48 ± 1.0774.68 ± 4.057.63 ± 0.18
Note: The arrows ↑ and ↓ indicate that higher and lower values are better, respectively. Bold values indicate the best mean result among the compared methods.
Table 6. Paired seed-level differences between SPMES and the comparison methods (mean and two-sided 95 % paired-t CI).
Table 6. Paired seed-level differences between SPMES and the comparison methods (mean and two-sided 95 % paired-t CI).
Reference Δ IoU Δ Dice Δ Recall Δ BF1 Δ HD95 Δ PE
Swin-Unet 1.55
[ 0.12 , 2.99 ]
0.95
[ 0.03 , 1.87 ]
2.56
[ 0.85 , 4.26 ]
3.94
[ 0.66 , 7.22 ]
9.67
[ 6.21 , 25.56 ]
0.84
[ 0.40 , 2.09 ]
PFT 0.73
[ 0.49 , 0.97 ]
0.43
[ 0.29 , 0.58 ]
0.58
[ 0.31 , 1.48 ]
1.64
[ 0.07 , 3.21 ]
6.85
[ 4.56 , 18.26 ]
2.82
[ 1.08 , 6.72 ]
Note: Each cell reports the mean difference on the first line and the 95 % CI on the second. Differences are SPMES minus the reference method for IoU, Dice, Recall, and BF1, and the reverse for HD95 and PE; positive values therefore favor SPMES. Intervals excluding zero indicate metric-level statistical support.
Table 7. Resolution analysis of Swin-Unet and SPMES using seed 3407; predictions were restored to 2560 × 1440 before evaluation.
Table 7. Resolution analysis of Swin-Unet and SPMES using seed 3407; predictions were restored to 2560 × 1440 before evaluation.
Input SizeMethodIoU (%) ↑BF1 (%) ↑HD95 (px) ↓Peak Memory (MiB) ↓FPS ↑
320 × 320 Swin-Unet82.2569.2585.04128.0776.44
SPMES84.4374.6870.16198.4236.46
480 × 480 Swin-Unet80.3965.4994.89199.5774.91
SPMES83.8573.8787.81288.3335.88
640 × 640 Swin-Unet79.0962.49103.43302.4959.77
SPMES83.4173.6798.06403.4728.35
Note: At each resolution, the trained Swin-Unet baseline also serves as the GE for SPMES. Results are controlled single-seed comparisons rather than repeated-run estimates. The arrows ↑ and ↓ indicate that higher and lower values are better, respectively. Bold values indicate the better segmentation result within each input-resolution pair.
Table 8. Ablation study of PSEs, the GE prior branch, and SGFM across different segmentation backbones.
Table 8. Ablation study of PSEs, the GE prior branch, and SGFM across different segmentation backbones.
BackbonePSEsGE PriorSGFMIoU ↑Dice ↑Recall ↑BF1 ↑HD95 (px) ↓PE (%) ↓
U-Net [11]×××82.5690.0484.1368.2795.188.69
××84.1891.0386.6073.4975.857.25
×84.1491.2086.6874.0271.506.35
×84.8391.6587.1574.0970.777.10
85.9392.3089.1576.9167.305.89
U-Net++ [12]×××82.4990.1184.4368.36108.908.64
××83.9991.0386.1972.1281.507.66
×83.0290.3785.1770.4982.646.65
×83.8091.0185.6970.6278.507.19
84.9691.6887.5473.8075.686.44
U2-Net [13]×××83.5990.9385.1969.7784.058.64
××85.0291.7487.5674.5287.337.14
×84.1391.2186.2471.7579.976.25
×85.1091.8487.4373.6068.756.93
85.7292.2088.2075.3667.976.09
Swin-Unet [17]×××81.9089.7183.7968.3981.509.08
××82.9790.2985.2871.5189.299.09
×82.2689.8084.7670.1581.7810.15
×83.4890.6686.2072.5481.918.38
83.5590.7186.2272.6672.638.28
Mamba-UNet [18]×××82.1689.9283.6567.2282.858.98
××84.0991.0186.1870.8779.418.56
×82.5790.1884.5269.0081.348.02
×84.1891.2786.0370.7379.148.53
84.2891.3286.2971.4278.487.86
Note: ✓/× denote enabled/disabled components, and “GE Prior” indicates retention of the frozen GE branch. All PSEs are initialized from the pretrained GE. IoU, Dice, Recall, BF1, and PE are percentages; HD95 is measured in pixels at the original image resolution. Results are single-run test-set averages. DSPC and SPMES have identical loaded backbone capacity and differ primarily in the prior-fusion mechanism. The arrows ↑ and ↓ indicate that higher and lower values are better, respectively. Bold values indicate the best result among the evaluated configurations for each backbone.
Table 9. Model complexity and parameter-matched comparison (input size = 320×320).
Table 9. Model complexity and parameter-matched comparison (input size = 320×320).
MethodLoaded Params (M)FLOPs (G)Peak Memory (MiB)Latency (ms)FPS
U-Net31.0475.57445.977.91126.34
U-Net + DSPC62.09151.16571.7515.9662.67
U-Net + SPMES62.09151.18585.0116.3361.22
Swin-Unet15.246.65128.0713.0876.44
Swin-Unet + DSPC30.4813.31192.8726.8137.29
Swin-Unet + SPMES30.4813.34198.4227.4336.46
Mamba-UNet28.0012.21276.3924.2841.19
Mamba-UNet + DSPC56.0124.42419.2747.2721.16
Mamba-UNet + SPMES56.0124.45424.1549.0320.40
Note: DSPC and SPMES load one frozen GE and one active PSE; other PSE checkpoints remain in storage. Parameters and FLOPs were estimated with THOP. Peak memory and batch-size-one FP32 speed were measured on one NVIDIA A30 under torch.inference_mode() after 50 warm-up and 200 timed passes. Latency excludes data loading, preprocessing, host-to-device transfer, and satellite communication.
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.

Share and Cite

MDPI and ACS Style

Hao, L.; Gan, Y.; Jia, Z.; Geng, S. Semantic Prior-Guided Period-Aware Multi-Expert Segmentation for Long-Term Fixed-View Visual Monitoring. Sensors 2026, 26, 5396. https://doi.org/10.3390/s26175396

AMA Style

Hao L, Gan Y, Jia Z, Geng S. Semantic Prior-Guided Period-Aware Multi-Expert Segmentation for Long-Term Fixed-View Visual Monitoring. Sensors. 2026; 26(17):5396. https://doi.org/10.3390/s26175396

Chicago/Turabian Style

Hao, Li, Yanan Gan, Zeyu Jia, and Shengling Geng. 2026. "Semantic Prior-Guided Period-Aware Multi-Expert Segmentation for Long-Term Fixed-View Visual Monitoring" Sensors 26, no. 17: 5396. https://doi.org/10.3390/s26175396

APA Style

Hao, L., Gan, Y., Jia, Z., & Geng, S. (2026). Semantic Prior-Guided Period-Aware Multi-Expert Segmentation for Long-Term Fixed-View Visual Monitoring. Sensors, 26(17), 5396. https://doi.org/10.3390/s26175396

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop