1. Introduction
Chlorophyll-a concentration (Chl-a) is a key indicator of marine water quality, phytoplankton biomass, primary productivity, and aquatic ecosystem status. Its spatio-temporal variability provides important information for harmful algal bloom monitoring, eutrophication assessment, fishery resource evaluation, coastal ecosystem protection, and marine environmental management [
1]. With the development of satellite remote sensing, ocean color observations, and marine monitoring technologies, long-term and large-scale Chl-a datasets have become increasingly available, providing a valuable basis for data-driven water quality forecasting and ecological early-warning applications [
2]. Reliable short- to medium-term Chl-a forecasting can support timely identification of abnormal phytoplankton variations and marine water quality management.
Reliable Chl-a forecasting remains challenging because Chl-a dynamics are jointly affected by seasonal variability, solar radiation, nutrient availability, terrestrial inputs, ocean current transport, water mixing, and local hydrodynamic processes [
3]. These factors can lead to strong nonlinearity, nonstationary temporal variations, complex spatial dependence, and pronounced regional heterogeneity. Coastal waters are often affected by river discharge, anthropogenic inputs, and nearshore mixing processes; semi-enclosed seas may exhibit stronger retention effects and seasonal accumulation; and offshore regions are more strongly influenced by large-scale circulation, fronts, and climate-related processes [
4]. Therefore, simultaneously modeling multi-scale temporal dependencies, spatial correlations, and region-specific variation patterns remains an important problem in marine Chl-a forecasting [
5].
Existing Chl-a forecasting studies have evolved from traditional statistical and machine learning methods to deep learning models. Traditional approaches, such as autoregressive models, support vector regression, and random forests, can describe certain temporal variations in Chl-a concentration, but they often rely on linear assumptions, handcrafted features, or fixed model structures [
6,
7]. Deep learning methods, including convolutional neural networks (CNNs), long short-term memory networks (LSTMs), ConvLSTM, Transformer-based models, and graph neural networks (GNNs), have been increasingly used for Chl-a forecasting and marine environmental prediction [
8,
9,
10,
11,
12]. Although these models can improve nonlinear spatio-temporal representation ability, many of them mainly optimize global average errors and pay limited attention to spatially uneven prediction behavior among marine regions, which may lead to unstable performance in coastal waters, high-variability areas, or locations with abrupt Chl-a changes [
13].
For marine water quality monitoring, spatially heterogeneous prediction behavior is particularly important. A forecasting model that performs well on average may still produce large errors at ecologically sensitive or high-Chl-a locations. Different marine nodes may correspond to different ecological and hydrodynamic regimes [
14]. For example, Chl-a variations in coastal or semi-enclosed waters may be related to local nutrient enrichment, terrestrial inputs, and water retention, whereas offshore Chl-a variations may be more affected by large-scale circulation and seasonal oceanographic processes [
15]. Since Chl-a variations also occur at multiple temporal scales, a single shared forecasting structure may be insufficient to represent diverse spatio-temporal patterns across heterogeneous marine environments.
Mixture-of-Experts (MoE) models provide a flexible mechanism for modeling heterogeneous data patterns by dynamically routing input representations to different expert subnetworks through a gating network [
16]. In spatio-temporal forecasting, sparse expert routing allows different spatial units and temporal states to use different forecasting pathways. Previous studies have shown that expert-based routing can improve heterogeneous spatio-temporal forecasting [
17]. This idea is relevant to marine Chl-a forecasting because different spatial nodes may exhibit distinct and time-varying dynamics. Therefore, sparse expert routing may be suitable for adapting forecasting models to region-specific Chl-a variation patterns under heterogeneous marine water quality conditions.
Based on this motivation, this study develops MS-STMoE, a multi-scale spatio-temporal mixture-of-experts framework for heterogeneity-aware multi-step Chl-a forecasting in marine water quality monitoring. The proposed framework constructs a geographical distance graph from observation nodes to describe spatial adjacency among marine locations, uses graph convolution to extract spatial dependencies, and applies multi-scale temporal convolution to capture both short-term fluctuations and longer temporal evolution. A sparse MoE module further routes node-level spatio-temporal representations to expert subnetworks, supporting differentiated modeling of diverse marine variation patterns. In addition to overall forecasting accuracy, this study evaluates step-wise prediction errors and node-level spatial error distributions to characterize model behavior across heterogeneous marine regions.
The main contributions of this study are summarized as follows:
To address the limitation that globally shared predictors may overlook distinct node-level Chl-a dynamics, we develop MS-STMoE, a heterogeneity-aware forecasting framework with node-level sparse expert routing. The routing mechanism assigns differentiated expert pathways to nodes with distinct dynamic patterns rather than enforcing a uniform prediction pathway across the study region.
To provide the routing mechanism with informative representations across spatial locations and temporal scales, the framework integrates a Haversine-distance-based geographical graph, gated multi-scale temporal convolutions, and seasonal encoding. Recent-state, temporal-mean, temporal-change, and node-prior features are jointly used to distinguish node-specific forecasting requirements.
Experiments across the semi-enclosed Bohai Sea and the open South China Sea demonstrate consistent improvements over six recent spatio-temporal baselines. Step-wise and node-wise analyses show that the complete framework achieves its strongest gains at medium-to-late forecast horizons and reduces high-error node tails relative to STAEformer, while the incremental contribution of sparse routing remains modest and region-dependent.
3. Proposed Method
3.1. Problem Definition and Notations
In this study, marine chlorophyll-a concentration (Chl-a) multi-step forecasting is formulated as a graph-based multi-node spatio-temporal sequence forecasting problem for marine water quality monitoring. Let denote a set of N marine observation nodes, where each node corresponds to a spatial location with latitude and longitude information. The spatial relationships among nodes are represented by a graph , where is the edge set and is the adjacency matrix.
Let
denote the original Chl-a concentration at node
and time step
t, and let
denote the corresponding transformed and standardized value. Given historical input features over the past
T time steps, the input tensor is denoted by
where
denotes the node-level input features at time step
t, and
C is the input feature dimension. In this study, the input features consist of standardized historical Chl-a values and seasonal encodings. The forecasting target is the future standardized Chl-a sequence over all marine nodes:
where
H denotes the forecasting horizon and
denotes the learnable parameters. The corresponding ground-truth sequence is denoted as
. Model training and prediction are performed on the transformed and standardized Chl-a scale, while evaluation metrics are calculated on the original Chl-a concentration scale after inverse standardization and inverse logarithmic transformation.
3.2. Overview of the Proposed Framework
As shown in
Figure 1, the proposed MS-STMoE framework consists of four main components: input representation and geographical graph construction, spatio-temporal representation learning, sparse spatio-temporal mixture-of-experts, and multi-step forecasting. Standardized historical Chl-a values are concatenated with seasonal encodings and projected into a latent representation. A geographical K-nearest-neighbor (KNN) graph is constructed from node coordinates to describe spatial adjacency among marine locations. The spatio-temporal representation module captures spatial dependencies through graph convolution and nonstationary multi-scale temporal variations through gated multi-scale temporal convolution. Based on the learned node-level spatio-temporal representations, a sparse gating network routes different marine nodes to suitable expert subnetworks. The experts are not assumed to represent fixed physical mechanisms; rather, they are designed to learn different data-driven spatio-temporal regimes under heterogeneous marine conditions. The aggregated expert outputs are then used to generate multi-step Chl-a forecasts.
3.3. Input Representation and Geographical Graph Construction
Before model training, original Chl-a values are transformed using
to reduce the influence of extreme values and right-skewed concentration distributions. The transformed values are then standardized using the mean and standard deviation computed only from the training set:
where
is the original Chl-a concentration at node
and time step
t and
and
are the mean and standard deviation calculated from the training set. The same training-set statistics are applied to the validation and test sets to avoid information leakage. Latitude and longitude metadata are also standardized before being used as static node features.
To explicitly represent annual periodicity, day-of-year encoding is introduced:
where
is the day index and
P denotes the annual period. For node
, the input feature is obtained by concatenating the standardized Chl-a value and seasonal encoding:
Node metadata are projected into the latent space through a static feature multilayer perceptron:
where
denotes the standardized latitude and longitude metadata of node
. The initial hidden representation is then computed as
where
is the input projection matrix,
is the learnable node embedding, and
denotes the initial hidden representation.
The geographical graph is constructed according to the Haversine distance between marine nodes. Geographically nearby marine locations are more likely to share similar coastal forcing, hydrodynamic conditions, and phytoplankton variability, making distance-based graph construction a reasonable baseline for representing spatial adjacency in Chl-a forecasting. For each node, its
nearest neighbors are selected, and the initial adjacency weight is defined as
where
is the Haversine distance between nodes
and
,
denotes the
nearest neighbors of
, and
is set as the median of all positive distances among the selected KNN edges. To avoid directional artifacts caused by the KNN procedure, the adjacency matrix is symmetrized as
Self-loops are added and the adjacency matrix is symmetrically normalized:
where
is the degree matrix of
.
3.4. Spatio-Temporal Representation Learning
The spatio-temporal representation learning module consists of a multi-hop graph convolution module and a gated multi-scale temporal convolution module. The spatial module captures dependencies among marine nodes, while the temporal module extracts Chl-a variation patterns over different time scales.
3.4.1. Spatial Dependency Modeling
Marine Chl-a dynamics may be affected by both local interactions and broader regional processes. Therefore, multi-hop graph convolution is adopted to capture spatial dependencies at different neighborhood ranges:
where
denotes the maximum spatial hop,
represents the
k-hop graph propagation matrix, and
is the learnable transformation matrix. The term
corresponds to self-representation. A residual connection and layer normalization are then applied:
3.4.2. Temporal Dependency Modeling
To capture temporal dependencies at different scales,
M temporal convolution branches are applied along the time dimension. Each branch uses a specific kernel size and dilation rate:
where
and
denote the kernel size and dilation rate of the
m-th branch, respectively. The temporal convolutions are applied only to the historical input window, so future observations are not used when generating forecasts. The specific kernel sizes and dilation rates are treated as dataset-specific hyperparameters and are reported in the experimental settings.
Each branch adopts a gated mechanism:
The outputs of all temporal branches are concatenated and projected back to the latent dimension:
The output of the
l-th spatio-temporal layer is obtained as
After stacking
L spatio-temporal layers, the recent state, temporal mean state, and temporal change state are extracted as
The node-level spatio-temporal representation used for forecasting is computed as
where
. The temporal change state is further used in the routing context to support expert selection under temporally varying Chl-a conditions.
3.5. Sparse Spatio-Temporal Mixture-of-Experts
Due to the regional heterogeneity of marine Chl-a dynamics, different nodes may require different transformations of their spatio-temporal representations. To provide differentiated forecasting pathways, a sparse spatio-temporal mixture-of-experts module is introduced. Here, an “expert” denotes a trainable neural subnetwork rather than a human participant or a predefined geographical group. All experts use the same GEGLU feed-forward architecture but have independently learned parameters, allowing them to represent different data-driven transformations. They are not assigned fixed physical meanings, such as coastal, semi-enclosed, or offshore regimes. The module adopts node-level and input-dependent routing, through which each marine node selects an expert combination according to its current spatio-temporal representation.
To make the routing decision aware of local temporal variation and node-specific priors, a compact routing context is constructed as
where
denotes the node prior formed by the learnable node embedding and static coordinate representation. The routing context therefore jointly encodes the recent state, temporal-mean condition, temporal-change tendency, and node-specific prior of each marine location.
Given the representation
of node
, the router logits are computed as
where
and
E is the number of experts. Each component of
represents a learned compatibility score between node
and one expert. Only the top
experts are selected:
The sparse routing weight is computed by applying softmax over the selected experts:
For each node in each input sample, the router activates the top- experts with the highest routing scores, whereas all remaining experts receive zero routing weight. The normalized weights determine the relative contribution of the selected experts to the aggregated expert representation. Therefore, expert selection is based on learned node-level routing scores rather than manually specified thresholds, regional labels, or predefined node groups. Because the routing context is partly derived from the current historical input window, the same node may activate different expert combinations under different temporal conditions.
Each expert is implemented as a GEGLU feed-forward network:
The sparse expert aggregation is defined as
A residual connection with a learnable scaling coefficient is used to stabilize the MoE block:
where
controls the contribution of the sparse expert output. The router and expert subnetworks are jointly optimized end-to-end through the training objective described in
Section 3.6. The prediction loss encourages useful routing pathways, while the expert balance and router regularization terms discourage routing collapse and stabilize the routing logits. No expert labels or manual node-to-expert assignments are required.
3.6. Forecasting Output and Training Objective
The aggregated expert output is fed into a forecasting head to generate multi-step predictions on the transformed and standardized Chl-a scale:
The predictions of all nodes are stacked to form the final forecasting output:
The main prediction loss is defined over all training samples, future time steps, and spatial nodes using the Huber loss:
where
B denotes the batch size;
and
denote the predicted and ground-truth standardized Chl-a values of node
at forecasting step
h in sample
b, respectively; and
denotes the Huber loss with threshold
. The Huber loss is used to reduce the sensitivity of model training to occasional high Chl-a values while retaining sensitivity to ordinary forecasting errors.
To avoid routing collapse, two auxiliary regularization terms are introduced. The average routing probability and the top-1 routing fraction of expert
e are defined as
The expert balance loss is
The router z-loss is defined as
The final training objective is
where
and
control the contributions of the auxiliary losses.
During evaluation, the predicted values are transformed back to the original Chl-a concentration scale by inverse standardization and inverse logarithmic transformation:
In the implementation, the latent dimension is set to
, and the number of spatio-temporal representation layers is set to
. The multi-scale temporal convolution module contains three temporal branches. The kernel sizes and dilation rates are selected on the validation set for each dataset, as reported in
Section 4.3. Other dataset-specific settings, including the number of experts, the top-
k routing number, the MoE residual coefficient, and the graph connectivity, are selected according to the parameter sensitivity analysis reported in
Section 4.7.
4. Results and Discussion
4.1. Study Areas and Datasets
The Chl-a datasets used in this study were derived from the NOAA CoastWatch Multi-Sensor Level-1 to Level-2 (MSL12) ocean-color product (
https://coastwatch.noaa.gov/cwn/processing-algorithms/msl12.html (accessed on 13 August 2026)). The original satellite observations were gap-filled using the Data Interpolating Empirical Orthogonal Functions (DINEOF) method to obtain spatially complete daily Chl-a fields. The processed data have a spatial resolution of 9 km and a daily temporal resolution, and Chl-a concentration is expressed in mg m
−3. Before model training, Chl-a values were transformed using
and standardized using statistics calculated only from the training set, where
c denotes the original Chl-a concentration. The same training-set statistics were applied to the validation and test sets to avoid information leakage.
To evaluate forecasting performance under different marine water quality conditions, two representative regions were selected: the Bohai Sea and the South China Sea. The Bohai Sea is a semi-enclosed marginal sea strongly affected by coastal inputs, shallow-water processes, and human activities, whereas the South China Sea covers a broader marine region influenced by seasonal circulation and offshore processes. These two regions provide suitable test beds for evaluating multi-step Chl-a forecasting under different ecological and hydrodynamic conditions. The study areas and spatial distributions of Chl-a sampling nodes are shown in
Figure 2.
For each region, spatial sampling nodes were extracted according to their latitude and longitude, and the daily Chl-a time series at these nodes were used for model training and evaluation. The dataset information is summarized in
Table 1.
All datasets were chronologically split into training, validation, and test sets with a ratio of 70%, 10%, and 20%, respectively. A sliding-window strategy was adopted, using 30 days of historical Chl-a observations to predict the following 15 days. The chronological split ensured that future observations were not included in model training. Node coordinates were used for geographical graph construction and static feature representation.
4.2. Baseline Models
To evaluate the effectiveness of MS-STMoE, six recent spatio-temporal forecasting models were selected as baselines. These models cover graph diffusion networks, dynamic graph neural networks, heterogeneous spatio-temporal graph models, and Transformer-based architectures. Since marine Chl-a prediction can be formulated as a graph-based multi-node sequence forecasting task, these models provide suitable comparisons for evaluating temporal evolution and spatial dependency modeling. All baseline models were implemented under the same protocol as MS-STMoE, including identical data splits, input windows, forecasting horizons, preprocessing procedures, and evaluation metrics.
RGDAN: RGDAN combines random graph modeling, diffusion mechanisms, and attention modules to capture complex spatio-temporal dependencies [
36].
DST-SGNN: DST-SGNN models dynamic graph structures under Stiefel manifold constraints for efficient spatio-temporal time series forecasting [
37].
DVGNN: DVGNN integrates dynamic causal explanation, diffusion modeling, and variational graph learning to capture evolving spatial dependencies [
38].
DSTAGNN: DSTAGNN dynamically constructs spatial-temporal aware graphs to model changing dependencies among spatial nodes [
39].
HSTGNN: HSTGNN is designed to capture heterogeneous spatio-temporal dependencies among variables and spatial nodes [
40].
STAEformer: STAEformer introduces spatio-temporal adaptive embeddings into a Transformer architecture for multi-node time series forecasting [
41].
For fair comparison, all baseline models and the proposed model were evaluated on the original Chl-a concentration scale.
4.3. Evaluation Metrics and Experimental Settings
Mean absolute error (MAE) and root mean square error (RMSE) were adopted as evaluation metrics. Both metrics were calculated on the original Chl-a concentration scale after inverse standardization and inverse logarithmic transformation, and are reported in mg m−3. For multi-step forecasting, metrics were computed for each prediction step and then averaged over all forecasting steps.
Let
and
denote the predicted and observed Chl-a concentrations of node
at the
h-th forecasting step of test sample
s, respectively. Let
S denote the number of test samples,
N denote the number of spatial nodes, and
H denote the forecasting horizon. The step-wise MAE is defined as
The step-wise RMSE is defined as
The average MAE and RMSE over all prediction steps are calculated as
A lower MAE indicates a smaller average absolute error, while a lower RMSE indicates fewer large deviations because RMSE is more sensitive to high-error predictions. Step-wise MAE and RMSE curves were also used to analyze error accumulation over the 15-day forecasting horizon.
For MS-STMoE, the latent dimension was set to 64, and the number of spatio-temporal representation layers was set to 2. Hyperparameters related to expert capacity, sparse routing, temporal convolution, graph connectivity, and auxiliary loss weights were selected according to validation performance and the sensitivity analysis in
Section 4.7. The final dataset-specific settings are summarized in
Table 2.
The multi-scale temporal convolution module used three temporal branches. The kernel sizes and dilation rates were set to and for the Bohai Sea dataset, and and for the South China Sea dataset, respectively. Unless otherwise specified, the model was trained using the AdamW optimizer with a learning rate of , weight decay of , batch size of 16, and Huber loss with . The router z-loss weight was set to for both datasets, while the expert balance loss weight was set to for the Bohai Sea dataset and for the South China Sea dataset. The MoE residual scaling coefficient was initialized to , and a 10-epoch residual warm-up was used. Router noise was used during training and disabled during evaluation. Early stopping with a patience of 10 epochs was adopted based on the validation loss, and the random seed was fixed to 42.
4.4. Multi-Step Forecasting Performance
To evaluate forecasting performance under increasing prediction horizons, the step-wise MAE and RMSE values over the 15-day forecasting horizon were compared on the Bohai Sea and South China Sea datasets.
Table 3 reports the quantitative results at representative odd prediction steps, together with the average errors over all 15 steps.
Figure 3 further shows the complete error evolution curves.
As shown in
Table 3, MS-STMoE achieves the lowest average MAE and RMSE on both datasets. On the Bohai Sea dataset, MS-STMoE obtains an average MAE of 0.536 and an average RMSE of 0.992, outperforming the second-best model DST-SGNN by approximately 5.6% and 2.7%, respectively. On the South China Sea dataset, MS-STMoE reduces the average MAE from 0.212 to 0.189 compared with STAEformer and the average RMSE from 0.846 to 0.804 compared with DVGNN, corresponding to improvements of approximately 11.0% and 5.0%, respectively.
The step-wise results further show that MS-STMoE maintains stable performance as the forecasting horizon increases. In the Bohai Sea, several baseline models remain competitive at very short horizons, especially in terms of RMSE, whereas MS-STMoE becomes more advantageous from the medium-term prediction steps onward. This is relevant for marine water quality monitoring because short- to medium-term Chl-a prediction is often needed for early warning and management responses. In the South China Sea, MS-STMoE achieves the best MAE and RMSE at all reported odd prediction steps, indicating robust performance across the forecasting horizon.
Figure 3 visualizes the complete 15-step error evolution. Prediction errors generally increase with the forecasting horizon, reflecting the accumulation of uncertainty in multi-step prediction. Compared with the baseline models, MS-STMoE exhibits lower and smoother error curves, especially in the South China Sea. For the Bohai Sea, MS-STMoE maintains the lowest MAE across the forecasting horizon and shows clearer RMSE advantages after the short-term prediction steps.
To further examine temporal forecasting behavior,
Figure 4 presents representative fitting curves at prediction steps 1, 7, and 15. MS-STMoE follows the temporal variations in the ground truth more closely in most cases and better preserves Chl-a fluctuation patterns. Several displayed extreme peaks are nevertheless underestimated, which may reflect both the absence of contemporaneous environmental drivers and the use of logarithmic transformation and Huber loss, which improve robustness but reduce the influence of abrupt high-concentration values during training.
The increasing advantage at medium-to-late forecast horizons is consistent with the combined contribution of multi-scale temporal convolution and seasonal encoding: multi-scale receptive fields represent temporal variations over different ranges, while seasonal encoding provides periodic information as the forecast horizon increases. Sparse routing further supplies node-conditioned refinement, although the subsequent ablation and node-level analyses show that its incremental contribution is modest and region-dependent. Overall, the horizon-wise advantage should therefore be attributed to the complete framework rather than to the MoE module alone.
The spatial distribution of prediction errors is further analyzed in the following subsection to examine model performance across different marine nodes.
4.5. Spatial Error Distribution and Expert Routing Analysis
Step-wise MAE and RMSE quantify overall forecasting accuracy, but they do not reveal how prediction errors are distributed across marine nodes. For marine water quality monitoring, spatial error behavior is important because large local errors may occur in coastal or high-Chl-a regions even when the overall average error is low. To examine the spatial behavior of MS-STMoE,
Figure 5 and
Figure 6 present the test-set mean observed fields, predicted fields, and prediction bias at prediction steps 1, 7, and 15 for the Bohai Sea and South China Sea datasets, respectively.
Figure 5 shows that MS-STMoE captures the principal spatial gradient of Bohai Sea Chl-a, although localized biases become more visible near coastal or high-concentration nodes at longer horizons because sharp local variations and unobserved environmental forcing are more difficult to extrapolate from historical Chl-a and geographical adjacency alone.
Figure 6 shows that MS-STMoE reproduces the dominant low-concentration background of the South China Sea without producing large continuous error regions, while several localized concentration peaks remain comparatively difficult to predict.
To further quantify node-level spatial error distribution, node-wise MAE was calculated over all test samples and forecasting steps:
where
S is the number of test samples,
H is the forecasting horizon, and
i denotes the spatial node index. The node-wise MAE measures the average local forecasting error at each marine node.
For a paired comparison at the same spatial locations, the MAE difference between a comparison model
b and MS-STMoE was defined for node
i as
A positive value indicates a lower node-wise MAE for MS-STMoE; the P95 node error was additionally calculated at each prediction step, and the mean P95 gain represents its average relative reduction over the 15-step horizon.
Table 4 shows that the complete MS-STMoE framework outperforms STAEformer at 96.67% of the Bohai Sea nodes and all South China Sea nodes and reduces the P95 error at all 15 prediction steps, demonstrating that its overall advantage extends to most individual nodes and high-error locations.
Compared with the w/o MoE variant, sparse routing improves 55.67% and 83.40% of the nodes in the two regions, respectively, but its small mean MAE differences and negative mean P95 gains indicate that the incremental improvement is modest and does not consistently extend to the high-error tail.
To examine the mechanism underlying this incremental effect, the test-set-averaged routing weight and dominant expert of each node were defined as
where
is the deterministic sparse routing weight assigned to expert
e for node
i in test sample
s.
Global expert loads were obtained by averaging the deterministic routing weights over all test samples and nodes, and their Shannon entropy was normalized by so that a value of one represents uniform expert utilization.
Figure 7 shows differentiated and locally structured expert utilization, with four-nearest-neighbor agreement reaching 1.31 and 1.69 times the random expectation and normalized global load entropies of 0.9538 and 0.9542 in the Bohai Sea and South China Sea, respectively, indicating that spatially varying routing is achieved without evident expert collapse.
The routing results support the use of node-differentiated prediction pathways but do not establish a direct causal relationship between individual expert assignments and error reduction; therefore, sparse routing is interpreted as a node-adaptive refinement mechanism with modest, region-dependent gains, while the broader node-level and high-error-tail improvements arise from the combined contribution of the complete MS-STMoE framework.
4.6. Ablation Study
To evaluate the contribution of each component, ablation experiments were conducted by removing the MoE module, seasonal encoding, and multi-scale TCN module, respectively. The results are reported in
Table 5.
On the Bohai Sea dataset, the complete MS-STMoE model achieves the lowest average MAE and obtains the best MAE at steps 7 and 15. Removing seasonal encoding causes the most evident degradation, increasing the average MAE from 0.536 to 0.552 and the average RMSE from 0.992 to 1.027. This indicates that seasonal information is important for Chl-a forecasting in a semi-enclosed marginal sea where periodic environmental forcing can affect phytoplankton variability. Removing the multi-scale TCN also increases the average RMSE to 1.013, showing that multi-scale temporal modeling contributes to medium- and long-term forecasting. Although the w/o MoE variant obtains a slightly lower average RMSE, its average MAE and medium- to long-term errors are worse, indicating that the MoE module provides a small MAE-oriented refinement in this region without consistently improving every metric.
On the South China Sea dataset, the complete MS-STMoE model achieves the lowest average MAE and RMSE among all variants. Removing the MoE module increases the average MAE from 0.189 to 0.192 and the average RMSE from 0.804 to 0.816, indicating a modest but more consistent average-error improvement in the South China Sea. Removing seasonal encoding leads to the largest RMSE degradation, especially at medium- and long-term prediction steps. The w/o Multi-scale TCN variant obtains a slightly lower RMSE at step 15, but its average MAE and RMSE are both worse than those of the complete model.
Overall, seasonal encoding produces the largest average degradation when removed from either dataset, confirming the importance of periodic information in both regions. The contribution of multi-scale temporal convolution varies across metrics and forecast steps, while sparse routing provides a smaller, region-dependent refinement that is more consistent in the South China Sea. The components should therefore be interpreted as complementary, with seasonal and multi-scale representations forming the main forecasting foundation and MoE providing node-adaptive adjustment.
4.7. Parameter Sensitivity Analysis
To examine the influence of key hyperparameters on the proposed model, sensitivity experiments were conducted on three important settings: the number of experts E, the top-k routing number , and the number of graph neighbors . These parameters correspond to expert capacity, routing sparsity, and spatial graph construction, respectively.
For clearer comparison, the relative increase in each metric under different parameter settings was calculated with respect to the best result within the same parameter group:
where
, and a smaller value indicates better performance. In
Figure 8, blue bars denote the relative increase in MAE, orange bars denote the relative increase in RMSE, and stars indicate the selected best parameter settings.
As shown in
Figure 8, the optimal hyperparameter settings differ between the two study regions. For the number of experts, the best settings are
for the Bohai Sea and
for the South China Sea, indicating that expert capacity should be adjusted according to dataset-specific representation requirements. When the number of experts is too small, the model may not have sufficient capacity to represent diverse Chl-a variation patterns, whereas too many experts may introduce unnecessary complexity.
The top-k routing number controls how many experts are activated for each node representation. The best settings are for the Bohai Sea and for the South China Sea, suggesting that moderate routing sparsity helps balance expert specialization and representation flexibility. For graph connectivity, the Bohai Sea obtains the best result when , whereas the South China Sea performs best when . The larger neighborhood in the Bohai Sea may reflect the benefit of aggregating information from more nearby nodes under its spatial sampling configuration, whereas the smaller neighborhood in the South China Sea may help limit excessive smoothing across more widely distributed locations.
Based on the sensitivity results, the final settings are , , and for the Bohai Sea dataset, and , , and for the South China Sea dataset. These results indicate that the balance between expert capacity, routing sparsity, and graph connectivity is dataset-dependent. Because the parameters were selected empirically on the validation sets, they should not be interpreted as direct evidence that particular experts or graph neighborhoods correspond to specific ecological or hydrodynamic processes.
4.8. Comparative Discussion and Limitations
Previous Transformer- and graph-based Chl-a forecasting studies have demonstrated the value of nonlinear spatio-temporal representation learning for marine environmental prediction [
9,
10,
11,
12]. The present results are consistent with this general finding, as geographical graph modeling and multi-scale temporal representation enable MS-STMoE to outperform six recent spatio-temporal baselines under a common evaluation protocol. Direct numerical comparison with previously published accuracy values is difficult because the datasets, spatial resolutions, input variables, and forecasting horizons differ across studies. The additional contribution of this study is therefore not limited to domain-averaged accuracy but also includes paired node-wise and P95 analyses that clarify how broadly the improvements are distributed across marine locations.
Sparse expert routing has previously been used to address heterogeneous spatial prediction behavior in traffic forecasting [
17]. The present study extends this idea to marine Chl-a forecasting by showing that different marine nodes form spatially structured expert-utilization patterns without evident expert collapse. However, the ablation results indicate that the incremental accuracy gain of MoE is modest and region-dependent, suggesting that sparse routing should complement rather than replace geographical graph modeling, multi-scale temporal representation, and seasonal encoding. The learned experts are data-driven subnetworks and cannot be directly interpreted as predefined water masses or ecological regimes.
This study has several limitations. First, the model does not incorporate contemporaneous environmental covariates such as sea surface temperature, wind, currents, or nutrient conditions, which may limit its ability to predict abrupt Chl-a changes. Second, the experiments cover only two marine regions, and broader multi-region evaluation is needed to assess transferability under different spatial sampling configurations and environmental conditions. Third, the routing analysis establishes differentiated expert utilization but not a causal relationship between expert selection and node-level error reduction. Future work may integrate multi-source environmental observations and physics-informed constraints into the routing mechanism and evaluate its generalizability across additional marine regions.
5. Conclusions
This study proposed MS-STMoE, a multi-scale spatio-temporal mixture-of-experts framework for heterogeneity-aware multi-step Chl-a forecasting in marine water quality monitoring. By integrating geographical graph modeling, multi-scale temporal convolution, and sparse expert routing, the proposed model captures spatial dependencies, temporal variations, and region-specific Chl-a dynamics within a unified forecasting framework and supports node-adaptive forecasting under heterogeneous marine conditions.
Experiments on the Bohai Sea and South China Sea datasets show that MS-STMoE improves multi-step forecasting accuracy and preserves the main spatial distribution patterns of Chl-a. Compared with the best-performing baseline models, the proposed framework reduces the average MAE/RMSE by approximately 5.6%/2.7% in the Bohai Sea and 11.0%/5.0% in the South China Sea, respectively. Node-wise analyses further show broad improvements relative to STAEformer, whereas the additional gains of the MoE module are modest and region-dependent. The ablation and sensitivity analyses indicate complementary component roles: seasonal encoding and multi-scale temporal modeling provide the main forecasting support, while sparse expert routing contributes a node-adaptive refinement. Overall, these results demonstrate the usefulness of heterogeneity-aware modeling for short- to medium-term Chl-a forecasting under different marine water quality conditions.
Several limitations remain. The current model mainly uses historical Chl-a observations and seasonal encodings, while physical and biogeochemical variables such as sea surface temperature, salinity, wind, nutrients, and ocean currents are not explicitly incorporated. In addition, the geographical graph is constructed from static node distances and may not fully represent dynamic ocean transport processes. The current evaluation covers two representative marine regions, and the routing analysis does not establish a direct causal relationship between individual expert assignments and node-level error reduction. Future work will incorporate multi-source environmental variables, dynamic ocean-aware graph structures, and event-level validation strategies to improve the prediction of abrupt Chl-a changes and support region-aware short- to medium-term marine water quality monitoring.