2.3.1. Remote Sensing Classification Feature Extraction
Phenological parameters were derived from the full time series of all available Sentinel-2 images (cloud cover < 20%) within each target year to preserve temporal continuity. Meanwhile, spectral indices, red-edge indices, and texture features were extracted from seasonal median composites (spring, summer, autumn) to ensure cloud-free and stable spatial features. The two sets of features were then integrated for classification.
Based on Sentinel-2 images, phenological characteristics of coastal wetland vegetation were extracted following a four-step workflow. First, NDVI and SSVI were calculated for each acquisition date, generating a dense time series. Second, the raw time series were smoothed using the Savitzky-Golay (S-G) filter with a window size of 7 and polynomial order of 2, which preserves phenological trends while suppressing cloud and atmospheric noise. Third, the smoothed curves were fitted using a flexible Fourier function with one harmonic component combined with a linear trend term. This configuration is optimal for coastal salt marsh vegetation, accurately capturing their typical single-peak seasonal growth trajectories and producing continuous and reduced-noise phenological curves. Fourth, phenological parameters were extracted from the fitted curves: SOS (start of season) and EOS (end of season) were defined using a dynamic threshold set at 50% of the seasonal amplitude; BV (base value) and MV (maximum value) were extracted as the minimum and maximum of the fitted curve, respectively [
26,
27,
28].
This study used median composite images of each season to generate the spectral reflectance of three vegetation types (
Figure 4) to reduce the influence of cloud pollution and single-scene noise. These seasonal patterns were consistent with the conclusions of existing studies [
29,
30]: in spring, all three vegetation types were in the growth stage and the spectral differences were small; in summer, the near-infrared spectral reflectance of PA and SA reached its peak, SS began to redden, and the spectral characteristics shifted to the visible light band; in autumn, the reddening degree of SS reached its maximum, the reflectance of the visible light and short-wave infrared bands was enhanced, the near-infrared reflectance was reduced, and the spectral difference with the associated vegetation was further expanded. Based on this, the RSSI and RSSI1 were constructed. Their time series were processed following the identical workflow, including S-G smoothing (window size = 7, polynomial order = 2) and one-component Fourier harmonic fitting to ensure methodological consistency across all spectral indices. Since RSSI1 and SSVI phenological indicators were similar, conventional phenological parameters were also extracted (
Figure 5). At the same time, based on the RSSI fitting curve, the window ratio method was used to extract the four SS indicators: Difference of RSSI (DOR), Sum of RSSI (SOR), Ratio of Green-up RSSI (ROSR), and Ratio of Senescence RSSI (ROGR) that the research team verified in Lianyungang City. The calculation formulas are shown in the Equations (1)–(6):
In the Equations (1)–(6), the time windows and corresponding RSSI reference values are defined as follows: the base value time window refers to the initial stage of vegetation growth, generally corresponding to the valley of the phenology curve, used to define RSSIBV; the green-up time window refers to the vegetation greening stage, used to define RSSIgreen − up; the maximum value time window refers to the vegetation maturity stage, generally corresponding to the peak of the phenology curve, used to define RSSIMV; and the senescence time window refers to the vegetation senescence stage, used to define RSSIsenescence.
To better enhance the morphological differentiation ability of the SS reddening process, this study, based on the RSSI index, divided three types of time windows according to phenological key nodes (
Figure 6):
Full growing season window (SOS–EOS), corresponding to the complete growth cycle of vegetation;
Reddening process window (Start of Reddening Period (SORP)–End of Reddening Period (EORP)), corresponding to the key stage from when the saltwort starts to turn red until the reddening is complete; SORP is defined as the date when RSSI reaches 70% of its peak amplitude. This threshold was empirically determined by testing values of 50%, 60%, 70%, 80%, and 90% of the peak RSSI amplitude on field-observed SS patches, where 70% best captured the onset of visible reddening. This threshold marks the initiation of rapid betalain synthesis and the associated increase in shortwave infrared reflectance, where the spectral contrast between SS, PA, and SA is maximized. EORP is defined as the date when RSSI drops to 50% of its peak after the maximum value (the end of reddening). The 50% threshold was selected because it consistently marked the end of the reddening phase in the fitted RSSI curves across all studied years and sites;
Peak segmentation windows: SOS–Peak Reddening Period (PRP): The rising phase of the growing season, corresponding to the period from SOS to PRP; PRP–EOS: the falling phase of the growing season, corresponding to the period from PRP to EOS. The RSSI maximum value (MV) occurs at the left part of the peak plateau, while PRP is defined as the midpoint of this plateau, representing the period with the most stable and intense reddening of SS during the whole growth cycle.
This study proposes the Redness Contribution Coefficient (RCC) and Reddening Rate Index (RCI) based on the RSSI index, which are adopted as phenological features for SS classification. RCC characterizes the inflection sharpness during the reddening stage and quantifies phenological curve asymmetry by comparing the average rising rate before the reddening peak with the declining rate after the peak. RCI measures the dynamic reflectance variation throughout the reddening process and evaluates the contribution of reddening signals to annual spectral characteristics via the ratio of RSSI integral over the reddening window (SORP–EORP) to that over the full growing season (SOS–EOS). Closely linked to betalain metabolism in SS, the two indices integrate temporal and spectral reddening signatures to enable accurate species discrimination.
Figure 7 illustrates the expected discriminative capacity of RCC and RCI, where SS is anticipated to exhibit higher median values than SA and PA. The relevant formulas are calculated as follows:
Simultaneously, this study constructed multi-dimensional classification features based on the Google Earth Engine platform. First, the original band features were used as the basic input to the classification model. Multispectral bands including B2, B3, B4, B5, B6, B7, B8, B11, and B12 were selected to preliminarily characterize the basic spectral properties of surface features. Simultaneously, this study comprehensively constructed a series of spectral indices: NDVI, Enhanced Vegetation Index (EVI), and Green Cover Index (GCI). By quantifying the reflectance differences of different band combinations, the study captured differences in vegetation growth status, water content, and spectral characteristics. In non-vegetation identification, a two-step strategy was adopted to account for the availability of surface water data. For 2019, the Joint Research Centre (JRC) Global Surface Water dataset [
31] was used as the static water mask. For 2022–2025, because the JRC dataset is only updated up to 2021, this study used the Normalized Difference Water Index (NDWI) to dynamically identify water bodies. NDWI demonstrates excellent accuracy and stability in water extraction from Sentinel-2 imagery, ensuring the reliability of time-series analysis. The NDWI, along with the Normalized Difference Built-up Index (NDBI) and Bare Soil Index (BSI), was combined through a dynamic threshold method to construct a non-vegetation mask, effectively eliminating interference from buildings, bare soil, and water bodies.
In addition, a tidal inundation frequency feature was calculated for each target year using Sentinel-2 images acquired between May and October of that year. The May–October window was selected because it represents the period of highest tidal activity in the study area, best capturing spatial differences in inundation patterns across the intertidal zone. For each image, NDWI was computed and thresholded at 0.2 to generate a water/non-water mask. This threshold was determined empirically by examining the NDWI value distribution over typical water bodies (e.g., tidal creeks, open water) and non-water surfaces (e.g., vegetated areas, bare flats) in the study area, where water pixels consistently showed NDWI > 0.2. The inundation frequency per pixel was then derived as the proportion of water observations across all images in the May–October window and was incorporated into the multi-dimensional feature set to account for elevation-dependent submersion patterns of different vegetation types.
At the same time, the Red Edge Index Point (REIP) and Red Edge Slope Indices (RE1, RE2, RE3) [
32] were introduced to fully utilize the high sensitivity of Sentinel-2 red-edge bands to the vegetation chlorophyll content and growth status, further improving the discrimination accuracy of halophytic plant communities. Since summer is the peak growing season for coastal wetland vegetation, with high vegetation coverage and stable spectral signals, the near-infrared band (B8) is most sensitive to the canopy structure, biomass, and spatial heterogeneity, effectively capturing spatial distribution differences among various vegetation communities. Therefore, seven texture features [
33] were extracted from the summer B8 band using a 3 × 3 moving window and are selected to supplement the spatial heterogeneity information of vegetation communities (
Table 3).
2.3.2. Classification Methods and Accuracy Assessment
Random Forest (RF) [
34] is an ensemble supervised learning method that generates multiple training subsets through bootstrap sampling to construct classification trees and randomly selects features when splitting nodes to enhance model diversity. This mechanism can effectively handle high-dimensional remote sensing features and adapt to the complex land cover types of coastal wetlands. The final classification decision was made by combining the results of all decision trees through voting, improving classification robustness. The model used in this study consists of 150 decision trees, reduced feature correlation by introducing random subspaces, and setting the minimum number of samples per leaf to five to suppress overfitting. These parameters were determined based on empirical standards in remote sensing classification and the default optimal settings of the Google Earth Engine (GEE) platform, without grid search or cross-validation, as they have been widely validated in comparable wetland vegetation classification studies.
After the classification was completed, this study optimized the results using the SNIC-based GEE built-in object-oriented segmentation method, which features high computational efficiency, a low salt-and-pepper effect, and suitability for processing large-area remote sensing images [
35]. The optimal segmentation parameter combination was determined through the iterative testing of segmentation scales (8, 12, 16, 20, 24), compactness (0.05, 0.1, 0.2), and connectivity (4, 8). The final parameters were set as follows: segmentation scale = 16, compactness = 0.1, and connectivity = 8. Scale 16 provided the best trade-off between segmentation quality and computational feasibility: smaller scales (8, 12) resulted in excessive over-segmentation and increased processing time, while larger scales (20, 24) caused under-segmentation (merging of distinct vegetation patches) and triggered memory overflow errors in the GEE environment. The compactness parameter of 0.1 was selected to preserve natural patch boundaries without excessive regularization, and connectivity of 8 was chosen to maintain spatial continuity of vegetation patches. These parameters enabled automated and high-precision extraction of salt marsh vegetation such as SS, SA, and PA in the study area.
A classification accuracy evaluation is a key step in verifying the reliability of extraction result. This study used confusion matrix and its derived indices for quantitative evaluation [
36]. Among them, producer accuracy reflects the classifier’s ability to identify actual land objects from the perspective of class authenticity, while user accuracy measures the probability of the class being correctly classified from the perspective of result usability. Overall accuracy and Kappa coefficient comprehensively evaluate the classification effect from the perspectives of overall consistency and non-random consistency, respectively. To ensure the statistical robustness of the evaluation, the samples were usually divided into training set and test set according to a certain ratio (e.g., 7:3) to ensure that the generalization ability of the model is effectively verified.
To systematically explore the impact of different image-synthesis methods and combinations of classification features on the classification accuracy of coastal wetland vegetation, this study designed six comparative schemes to conduct classification experiments (
Table 4). First, the median composite of images from all year round combined with the DN of each band, spectral indices, and texture features was used as the baseline scheme (Scheme 1). Based on this, to fully utilize the seasonal differences in vegetation, a three-season composite image scheme for spring, summer, and autumn was constructed (Scheme 2), and the classification performance differences between the single-temporal composite and multi-season composite were compared under the same features as Scheme 1. Second, to explore the impact of vegetation growth patterns on classification results, conventional phenological parameters were introduced on the basis of the three-season composite images (Scheme 3) to enhance the phenological separability of different vegetation types. Subsequently, considering the unique seasonal spectral characteristics of SS, the phenological parameters of SS constructed by our research team, as well as the RCC and RCI-specific phenological parameters proposed in this study, were incorporated (Scheme 4). Considering that the typical red spectral features of SS are mainly concentrated in autumn, to verify the feasibility of using autumn single-season images to simplify data volume, improve classification efficiency, and ensure classification accuracy, this study further designed two comparative schemes using only autumn composite images: Scheme 5 used autumn images as input, fusing the DN of each band, spectral indices and conventional phenological parameters; Scheme 6 supplements Scheme 5 with specific phenological parameters of red SS. Based on the above schemes, the classification potential of autumn single-season images combined with specific features was evaluated, and the classification accuracy of each scheme is shown in
Table 5.