Tracking the Effects of Mangrove Changes and Spartina alterniflora Invasion on Soil Carbon Storage: A Case Study of the Beibu Gulf of Guangxi, China

: In order to clarify the long-term changes in mangroves in the Beibu Gulf of Guangxi and the carbon storage changes after the invasion of Spartina alterniflora ( S. alterniflora ) in the Dandou Sea area, the Continuous Change Detection and Classification (CCDC) algorithm combined with feature indices was first used to track the changes. Subsequently, the random forest algorithm was applied to classify each change segment, and then sampling was conducted based on the distribution of S. alterniflora in different invasion years. The results showed that the Kappa coefficient of the classification result of the latest change segment was 0.78. The rapid expansion of S. alterniflora , aquaculture pond construction, and land reclamation activities have led to changes in mangroves, causing a decrease in the area of the mangrove region. A total of 814.57 hectares of mangroves has been converted into other land-cover types, with most pixels undergoing one to two changes, and many of these changes were expected to continue until 2022. An analysis of the distribution characteristics and influencing factors of soil organic carbon (SOC) and soil organic carbon storage (SOCS) at different invasion stages revealed that SOC and SOCS were mainly influenced by soil bulk density, soil moisture content, and electrical conductivity. It was found that S. alterniflora had higher SOC content compared to the mudflats. With the increase in invasion years, S. alterniflora continuously increased the SOC and SOCS content in coastal wetlands.


Introduction
As an important component of marine "blue carbon" ecosystems, mangroves are not only one of the vegetation ecosystems with the highest carbon density globally [1]; they also make significant contributions to maintaining biodiversity and purifying seawater [2], playing a crucial role in mitigating global climate change by carbon sequestration [3].Mangrove changes are typically caused by rapid urbanization [4], the expansion of aquaculture [5], and the invasion of alien species, making it crucial to detect mangrove changes rapidly and accurately for their conservation.In addition, coastal wetland soil is an important carbon pool of the earth, and its soil carbon sequestration capacity is dynamic.The soil carbon pool is not only affected by native vegetation but is also threatened by the invasion of alien species and the impact of global climate change [6].Therefore, understanding the dynamic response mechanism of soil organic carbon (SOC) under the invasion of S. alterniflora is of great significance.
Many studies have aimed to monitor the long-term changes in mangrove ecosystems, primarily focusing on the identification of individual or synthesized images.In recent years, mangrove monitoring has moved in the direction of utilizing all available observational data.The Landsat satellite series, launched in 1972, has provided continuous observations of remote sensing images over many years [7].The long time series of Landsat images means the vegetation growth trends can be tracked and monitored long-term ecosystem changes.The Continuous Change Detection and Classification (CCDC) algorithm was developed based on this, relying on pixel fitting to capture changes in land cover, reducing the demand for cloud-free images and proving advantageous for monitoring mangrove ecosystems [8].Compared with other algorithms, the CCDC algorithm can more quickly and efficiently detect multiple change processes and study "sudden changes" in land features, and it has the potential to detect gradual disturbances such as biological invasions or sudden disturbances such as storms and logging [9,10].The CCDC algorithm could be used to obtain information on mangrove damage and recovery in the Sundarbans region after storms, which is important for monitoring annual mangrove loss and recovery [11].Some researchers used the CCDC algorithm to track the loss and recovery of mangroves in six natural reserves in the Guangdong-Hong Kong-Macao Greater Bay Area, proposing a mangrove-protection evaluation system [12].Due to the extensive data storage and complexity of the algorithm, the emergence of remote sensing cloud platforms has provided new research perspectives for addressing these challenges [13].Google Earth Engine (GEE) is a free and open cloud platform capable of processing geospatial big data [14].The implementation of the CCDC algorithm on GEE reduces the time consumed in processing temporal stacks, providing new research ideas for monitoring mangrove changes.
S. alterniflora is a perennial herbaceous plant that was introduced to China's coastal areas around 1979 to promote sediment deposition, reduce wave erosion, and protect coastal mudflats.Subsequently, S. alterniflora rapidly spread and proliferated along coastal regions, quickly displacing indigenous vegetation due to its strong adaptability and competitiveness.The strong adaptability, salt tolerance, and submergence tolerance of S. alterniflora have led to its rapid growth and spread on coastal mudflats [15].Its extensive expansion poses a threat to the biodiversity of native vegetation ecosystems [16,17].Extensive research has been conducted to understand the impact of S. alterniflora invasion on soil carbon content in coastal wetlands, indicating that S. alterniflora invasion increases soil carbon content and consequently enhances soil organic carbon storage (SOCS) [18].One of the main reasons for this is the influence of S. alterniflora biomass input and salt-marsh deposition rates associated with organic carbon accumulation in the soil [19,20].Previous studies have shown that soil physicochemical properties such as soil bulk density (BD), moisture content (MC), and pH can affect surface SOC [21].However, the response mechanism of SOC distribution to S. alterniflora invasion is different and complex; thus, exploring the driving mechanisms of SOC changes at different soil depths is essential to understanding the impact of S. alterniflora invasion on SOC.
This study aims to investigate changes in mangrove ecosystems along the coast of Guangxi and to examine alterations in wetland soil following the invasion of S. alterniflora.The main objectives are as follows: (1) to track changes in mangrove ecosystems along the coast of Guangxi from 1990 to 2022; (2) to understand variations in surface and subsurface soil SOC and SOCS in response to different invasion periods of S. alterniflora; and (3) to explore the impact of soil physicochemical properties associated with different invasion periods of S. alterniflora on SOC and SOCS.

Study Area
The Beibu Gulf of Guangxi (107 is characterized by a subtropical marine monsoon climate, with a marine area of approximately 128,000 square kilometers and a coastline length of about 1628.59 km.Along the coast, there are mangrove forests such as Avicennia marina, Aegiceras corniculatum, Kandelia obovate, and so on, primarily distributed in locations such as those near the Dandou Sea, the Nanliu River, and the Dafeng River, making it one of the most important mangrove distribution areas in China.The study area covers the region along the Guangxi coast, where mangroves have grown from 1990 to 2022. The Landsat 5/7/8 (Landsat TM/ETM+/OLI) surface reflectance dataset was accessed for the years 1990 to 2022 on the Google Earth Engine (GEE) cloud platform (LAND-SAT/LT05/C02/T1_L2, LANDSAT/LE07/C02/T1_L2, LANDSAT/LC08/C02/T1_L2).This dataset has undergone atmospheric correction using the surface reflectance code algorithm, followed by cloud masking using the QA band (qa_pixel).The spectral differences were demonstrated between the various sensors of the Landsat satellite series [22].To enhance coherence among image collections from different sensors for long-term analysis, the ordinary least-squares method was employed to harmonize the spectral reflectance of the TM and ETM+ sensors with that of the OLI sensor, thereby creating a consolidated image collection for long-term analysis.
The mangrove growth range data for the Beibu Gulf of Guangxi were obtained from the STDFT_Mangrove dataset [23].This dataset integrates all available Landsat image collections, calculates various classification feature values, and improves detection frequency by adding phenological change indicators.Ultimately, a method based on spatiotemporal detection frequency thresholds was proposed for mangrove identification using remote sensing, with an overall classification accuracy exceeding 90% and Kappa coefficients exceeding 0.9.From this dataset, the area where mangroves grew in the Beibu Gulf of Guangxi was proposed.After an accuracy evaluation, we found that the overall accuracy was more than 90%.The distribution of mangroves in the Beibu Gulf of Guangxi from 1990 to 2022 is shown in Figure 1.The dataset can be reproduced with the following GEE script: https://code.earthengine.google.com/9e0404a09772300b212dd35302ec937b (accessed on 2 August 2023) [23].

Continuous Change Detection and Classification Algorithm
The CCDC algorithm can capture surface changes caused by vegetation phenolog and urbanization-induced abrupt changes [8,24], making it advantageous for monitorin long-term mangrove changes.The CCDC algorithm is mainly used to fit the characterist observations by using the harmonic-like fitting method (Equation ( 1)) on the spectral tim

Continuous Change Detection and Classification Algorithm
The CCDC algorithm can capture surface changes caused by vegetation phenology and urbanization-induced abrupt changes [8,24], making it advantageous for monitoring long-term mangrove changes.The CCDC algorithm is mainly used to fit the characteristic observations by using the harmonic-like fitting method (Equation (1)) on the spectral time series, eliminating clouds and other occlusions.
where x represents the time; i represents the i-th band in the image; T represents the total number of days in one year; α represents the fitting parameter; τ * k represents the k-th change; and ρ(i, x) OLS represents the fitting value.
If a pixel is observed to change in multiple consecutive images, it may be due to changes in land-use types.If only one to two consecutive changes are observed, it is considered a "possible change"; if a third consecutive change occurs, the pixel is labeled as "change detected."The time-series model used in the CCDC algorithm consists of three components: seasonal, trend, and abrupt change (Equation ( 2)), recording intra-annual and inter-annual changes and breakpoint information.If a land-cover pixel undergoes no change, its CCDC fitting curve will consist of only one segment; if a change occurs once, the CCDC algorithm will detect a breakpoint in the curve, dividing it into two segments, and two change sections will be obtained.Each change segment has a start and end time, which can be classified independently.The CCDC algorithm does not classify Landsat original images but uses time-series model coefficients as input for land classification.After change detection, each pixel has time-series models before and after the change.By classifying the time-series model coefficients, different land-use types of different change segments within the study period can be obtained.
where i represents the fitted value of the spectral index; x represents the day of the year (1-365); T has a value of 365; a 1,i and b 1,i represent the seasonal change coefficients; c 1,j represents the annual change coefficient; and a 0,j represents the error value of the fitting.

Characteristic Index
The normalized difference vegetation index (NDVI) [25] is a remote sensing index used to reflect the growth status of vegetation (Equation), and it can be used to distinguish different land-cover types.S. alterniflora is an exotic invasive plant in the coastal zone of Guangxi, which has encroached upon the habitat of mangroves.Due to the distinct growth cycle of S. alterniflora, including growth and senescence periods [26], while mangroves are evergreen vegetation, the NDVI time-series curves can clearly differentiate between the two types of vegetation [27].
A new Mangrove Vegetation Index (MVI) was developed [28], which can effectively identify mangroves (Equation ( 3)).Incorporating this index into the CCDC algorithm as a band for detecting mangrove changes can improve the identification results of the algorithm.
where ρ Green , ρ Red , ρ NIR , and ρ SWIR1 represent the reflectance values of Landsat images in the green, red, near-infrared, and shortwave infrared bands, respectively.

Random Forest
Random forest is a machine learning algorithm based on ensemble learning [29] that can be used for land-cover classification [30] and inversion [31].Each decision tree in a random forest is a classifier, so the random forest adopts the idea of combining multiple weak classifiers into a strong classifier, thereby improving the overall performance and robustness of the model by integrating the results of multiple decision trees.In this study, the input features used to train the classifier consist of the eight parameters obtained from the temporal fitting results of the CCDC algorithm in the latest change segment (Equation ( 1)).These features are applied to the images of other change segments to achieve land-cover classification.In this study, when pixels identified as mangroves were detected that underwent a change and were no longer identified as mangroves, but were instead classified as S. alterniflora, ponds, or other land-cover types, mangroves underwent a change.
For change segment images, the change time of each pixel was different.Therefore, the land-cover samples in this area were selected with reference to the 2022 image, which represents the "latest" land-cover classification.Since mangroves are affected by invasive species and human activities, the changed pixels were divided into four categories in this study: mangroves, S. alterniflora, ponds, and other land-cover types including mudflats, impervious surfaces, etc.Moreover, 658 mangrove sample points, 300 S. alterniflora sample points, 400 pond sample points, and 300 sample points of other land-cover types (including mudflats, impervious surfaces, bare land, etc.) were visually interpreted.All the sample points were quoted from the high-resolution Google Earth imagery in 2022 with a spatial resolution of 2 m.A total of 1658 training samples were obtained as a training sample dataset, which was used in random forest classification.In order to increase the heterogeneity of the sample points, typical land-cover sample points with S. alterniflora, stable ponds, bare land and impervious surfaces growing in the northern part of the Beibu Gulf were also selected and added to the analysis.

Sediment Sampling and Sample Treatment
Since S. alterniflora was first introduced to the Dandou Sea area and continued to expand, this study selected S. alterniflora wetlands at different invasion ages in the Dandou Sea and Tieshan Port areas, and sampling points were selected based on the results obtained from Google Earth imagery, Landsat imagery data, and the CCDC algorithm results, as shown in Figure 2.
Land 2024, 13, x FOR PEER REVIEW 6 of 20 (including mudflats, impervious surfaces, bare land, etc.) were visually interpreted.All the sample points were quoted from the high-resolution Google Earth imagery in 2022 with a spatial resolution of 2 m.A total of 1658 training samples were obtained as a training sample dataset, which was used in random forest classification.In order to increase the heterogeneity of the sample points, typical land-cover sample points with S. alterniflora, stable ponds, bare land and impervious surfaces growing in the northern part of the Beibu Gulf were also selected and added to the analysis.

Sediment Sampling and Sample Treatment
Since S. alterniflora was first introduced to the Dandou Sea area and continued to expand, this study selected S. alterniflora wetlands at different invasion ages in the Dandou Sea and Tieshan Port areas, and sampling points were selected based on the results obtained from Google Earth imagery, Landsat imagery data, and the CCDC algorithm results, as shown in Figure 2. Field sampling was conducted in July 2023.The plots of SA3, SA6, SA8, SA12, and SA18-21 represent the area invaded by S. alterniflora for 3a, 6a, 8a, 12a, and 18-21a, respectively.Five sampling plots of 0.25 m 2 were established at each sampling point.In each plot, a five-point sampling method was employed in collecting soil columns from 0-60 cm with a soil sampler, including samples from 0-20 cm, 20-40 cm, and 40-60 cm.After removing soil impurities, the samples were placed in sealed polyethylene bags and immediately transported to the laboratory.Subsequently, the samples were dried in a cool and Field sampling was conducted in July 2023.The plots of SA3, SA6, SA8, SA12, and SA18-21 represent the area invaded by S. alterniflora for 3a, 6a, 8a, 12a, and 18-21a, respectively.Five sampling plots of 0.25 m 2 were established at each sampling point.In each plot, a five-point sampling method was employed in collecting soil columns from 0-60 cm with a soil sampler, including samples from 0-20 cm, 20-40 cm, and 40-60 cm.After removing soil impurities, the samples were placed in sealed polyethylene bags and immediately transported to the laboratory.Subsequently, the samples were dried in a cool and ventilated indoor area.When the soil moisture was reduced enough to put into the oven, the soil sample was dried to a constant weight and then analyzed for SOC, soil physical and chemical factors, and other indicators.
The content of SOC was determined using the potassium dichromate external heating oxidation method [32].Easily oxidized organic carbon (EOC) was measured using the potassium permanganate method.Dissolved organic carbon (DOC) was determined by using the same method as SOC after the centrifugal filtration of the soil samples.In each experiment, three groups of parallel experiments were carried out to calculate the average value, the standard deviation, and so on.

Data Analysis
Moisture content (MC) is expressed as: where FW denotes the soil fresh weight and DW denotes the soil dry weight.Soil bulk density (g/cm 3 ) is expressed as: where g denotes the fresh weight of ring knife soil (g) and v denotes the ring knife volume (100 cm 3 ).SOCS (t/ha) is expressed as: where C i denotes carbon mass fraction in i soil depth (g/kg); D i denotes the soil BD in i soil depth (g/cm 3 ); E i denotes thickness of soil in i soil depth (cm); n denotes the number of soil depth layers; and 0.1 denotes the coefficient of g/kg converted to t/ha.

Change Segment Classification Results and Accuracy Evaluation
The results of the CCDC algorithm were presented in "change segments".Due to the varying times of change in different pixels within the "change segments", it was difficult to evaluate the accuracy of classification results year by year, as is typical in common classification methods.From 1990 to 2022, the accuracy evaluation was conducted every 5 years.The accuracy evaluation of the corresponding year is shown in Table A1.The result of 2022 was the closest to the actual situation, so the latest land-cover classification in 2022 was taken as an example for discussion.Validation sample points (300 for mangroves, 100 for S. alterniflora, 200 for ponds, and 100 for other land classes) were selected on the Google Earth 2022 image to verify the final change segment, i.e., the latest land-cover classification accuracy.The confusion matrix obtained is shown in Table 1, with an overall accuracy (OA) of 85% and a Kappa coefficient of 0.78.Table A1 shows that the Kappa coefficients of these years were 0.74-0.78,and the OA was 82.29-85%.This accuracy is the best result that can be achieved at present.The classification results obtained by the CCDC algorithm represent the land-cover classification results for each change segment.From 1990 to 2022, most land-cover types in the study area had only one change segment, indicating no change, which was consistent with the results of other scholars' research.Table 2 summarizes the areas of different change segments, showing that most of the land-cover types that experienced changes went through one to two change segments.The change pixels identified as mangroves consistently ranked first, with proportions exceeding 50% in change segments 2, 3, and 4.This indicated that the relevant policies enacted in Guangxi after 2000 had effectively protected the mangroves, and active measures such as artificial restoration and natural recovery [33] had actively promoted the expansion of mangrove forests.Additionally, in the second change segment, the proportion of pixels converted to ponds ranked second (21%), suggesting that pond aquaculture activities were prevalent in the coastal areas of Guangxi in the 1990s, until they reached saturation.In subsequent change segments, the number of changing pixels decreased, indicating a reduction in the encroachment of ponds on mangroves.Although S. alterniflora rapidly expanded in the Dandou Sea and Nanliu River regions of Guangxi, squeezing into the margins of the mangrove growth area, there were still significant areas unaffected by S. alterniflora invasion.Therefore, the proportion of pixels identified as S. alterniflora was the smallest.
The classification results of change segments in the Dandou Sea region are shown in Figure 3.Most change pixels only underwent one to two changes, with the fifth and sixth change segments having fewer change pixels, accounting for only 0.35%.In the Dandou Sea region, the area of mangrove changes was relatively small, with pixels identified as mangroves undergoing one to two changes, accounting for 53.82% and 26.45%, respectively.This was mainly due to the establishment of the Shankou Mangrove National Nature Reserve in 1990 in China, which provided a favorable protection environment for mangroves.According to literature records, S. alterniflora was introduced to the Dandou Sea area in 1979, initially to provide favorable conditions for the seaward expansion of mangroves by utilizing its sediment-retention ability.However, after 2005 [34], S. alterniflora expanded to the edge of the mangroves and began to compete with mangroves for living space.Pixels identified as S. alterniflora in the second change segment mainly concentrated on the edge of the protected area mangroves, covering an area of 22.57 hectares.The encroachment of aquaculture ponds on mangroves mostly occurred on the landward side of the mangrove reserve, with scattered change pixels, and did not appear in subsequent change segments, indicating irreversible changes to mangroves caused by the expansion of aquaculture ponds.Additionally, the most significant human activity impact in the Dandou Sea area was the construction of the Shatian Port, which caused some mangroves to disappear and become impervious surfaces.The black box indicated that the part of the Shatian Port was enlarged in Figure 3.The Nanliu River region was relatively vast and susceptible to natural factors (Figure 4).Before 2005, only small patches of mangroves grew, with mudflats being the main landcover type in the study area.Therefore, most land-use classifications in the first change segment were categorized as other land types.Over time, in the second change segment, the area identified as mangroves reached 1077.8 hectares, indicating that under the impetus of national policies, the area of mangroves continued to increase due to natural growth and artificial planting trends [35], showing a trend of growth from land to sea.Due to the favorable temperature and abundant growth space in the Nanliu River region, S. alterniflora began to rapidly spread and grow on the mudflats until it began to compete with mangroves for living space.Areas identified as S. alterniflora in the second change segment were approximately 39.06 hectares, with fewer subsequent change pixels, indicating that S. alterniflora growth had approached saturation.Although human activities had a relatively minor impact on mangroves in the Nanliu River region, before the enactment of laws protecting mangroves in China, there were cases of mangrove deforestation and the construction of ponds.The area selected in the image remained mangroves in 1991; however, in 1993, due to the promotion of the aquaculture industry, mangroves were artificially deforested, and ponds covering an area of approximately 46.47 hectares were constructed, consistent with the situation identified as ponds in the second change segment.
Most pixels did not undergo subsequent changes thereafter, consistent with the results obtained from the imagery, indicating that the damage caused by artificial pond excavation and aquaculture activities to mangroves was permanent and irreversible.The black box indicated that part of the area in Figure 4 were enlarged.Figures A1-A3 of Appendix A contained further data regarding other areas.

Mangrove Change Duration
In the results, some pixels exhibited change durations exceeding 30 years, reaching 31 and even 32 years.Because the CCDC algorithm extracts change features directly from the NDVI and MVI time-series curves.It initialized fitting of change trends with values from a certain period, resulting in a certain time interval.The change outcomes of different change segments were considered to be genuine.However, due to the direct extraction of change segments from the time series, it led to instances where the duration of mangrove change exceeded 31 or even 32 years.For example, a mangrove change might have occurred in a certain month of 1990, and the final calculation would label this period as 32 years.
From 1990 to 2022, the area of mangrove change in the northern part of the Beibu Gulf of Guangxi amounted to 814.57hectares.There was a significant variation in the area covered by mangrove change over different durations, as depicted in Figure 5, showing a "high at both ends" trend.The largest area of mangrove change occurred in 1992, reaching 125.53 hectares, followed by a trend of decreasing and increasing change areas over subsequent years.The largest area, with a duration of 3 years, accounted for 65.

SOC and SOCS Content of S. alterniflora with Different Invasion Years
As shown in Figure 6, the SOC content of S. alterniflora was higher than that of the mudflat for all years, and the SOC content of each soil layer increases with the duration of S. alterniflora invasion.Even after 18-21 years, the soil SOC content had not reached saturation.The SOC content in the 20-40 cm soil layer was always lower than that in the other two soil layers, and it was slightly higher than that in the deep soil after 12 years of invasion.The SOC content of the 40-60 cm soil layer accumulated noticeably with increasing years.Since the invasion of S. alterniflora 8 years ago, the SOC content had been comparable to that of the mangrove wetland, and the SOC content of the deep soil exceeded that of the mangrove wetland.

SOC and SOCS Content of S. alterniflora with Different Invasion Years
As shown in Figure 6, the SOC content of S. alterniflora was higher than that of the mudflat for all years, and the SOC content of each soil layer increases with the duration of S. alterniflora invasion.Even after 18-21 years, the soil SOC content had not reached saturation.The SOC content in the 20-40 cm soil layer was always lower than that in the other two soil layers, and it was slightly higher than that in the deep soil after 12 years of invasion.The SOC content of the 40-60 cm soil layer accumulated noticeably with increasing years.Since the invasion of S. alterniflora 8 years ago, the SOC content had been comparable to that of the mangrove wetland, and the SOC content of the deep soil exceeded that of the mangrove wetland.
Since the invasion of S. alterniflora, the total SOCS of S. alterniflora at five different invasion periods were significantly higher than those of the mudflat, with the increase in carbon storage increasing with the invasion period.The highest increase was observed at 18-21 years, reaching approximately 6.05 times higher than the mudflat (Figure 7).After 6 years of S. alterniflora invasion, the content of SOCS in the 40-60 cm soil layer was higher than mangrove wetland, while the surface soil content remained lower than in the mangrove wetland.However, after 8 years of S. alterniflora invasion, the SOCS content of the 0-20 cm and 20-40 cm soil layers had reached parity with the mangrove wetland.After 12 years of invasion, there was a noticeable accumulation trend of SOCS in the soil layer of 20-40 cm.The highest SOCS at 40-60 cm was observed after 18-21 years of invasion, followed by the surface soil of the same invasion period.

The Correlation between Soil Physical and Chemical Factors and SOC, SOCS in S. alterniflora Wetland
The statistical results of soil physicochemical properties for S. alterniflora, mangrove, and mudflat are presented in Table 3, while Table 4 shows the correlation between soil physicochemical properties after S. alterniflora invasion and SOC, as well as SOCS.The SOC of S. alterniflora was significantly positively correlated with electrical conductivity (EC), MC, SOCS, EOC, POC, and DOC, with the highest correlation with POC and SOCS, of 0.975 and 0.963, respectively.SOC was significantly negatively correlated with BD.SOCS was significantly positively correlated with EC, SOC, EOC, POC, and DOC, with the highest correlation with SOC and POC, of 0.963 and 0.962, respectively.SOCS was significantly negatively correlated with BD.  [36], with an area reduction of over 20,000 hectares.Common disturbances to mangroves included conversion to aquaculture ponds, bare land, and urban surfaces, or invasion by alien species.Over the past thirty years, urbanization and industrialization trends in the coastal areas of the Beibu Gulf of Guangxi have accelerated, intensifying the exploitation and utilization of the ocean.The number of land reclamation projects for port terminals, industrial bases, and other purposes significantly increased.Before national mangrove-protection policies were enacted, these projects caused irreversible losses to mangroves.As the world's largest aquaculture country, China's coastal aquaculture development has led to significant loss and fragmentation of mangrove habitats on the landward side [5,37].Additionally, the rapid expansion of the alien species S. alterniflora on the mudflats of the northern Gulf of Guangxi encroached on the edges of mangroves, competing for living space and causing partial mangrove losses.
The CCDC algorithm has good results in change detection, which shows that it can provide some simple solutions for quantifying high-dynamic-change areas [11].Using land-cover transition matrices to study the process and patterns of land-type changes is a common strategy.However, this approach only provides information about changes in landcover types without specific details about when mangroves have changed.For example, in the Dandou Sea area, the Shankou Mangrove National Nature Reserve was established in 1990, providing a favorable protection environment for mangroves.The construction of the Shatian Port has resulted in a decrease in the area of mangroves.Through the CCDC algorithm, it was possible to quickly determine the year in which the mangrove pixels underwent changes, to obtain the required information.
The limitation of this study lies in the lack of an independent dataset for validation.The occlusion of clouds and fog, the stripe problem of Landsat 7 satellite sensors, and tidal inundation have a certain impact on long-term observation.Other scholars have similar accuracy with this study, and the Kappa coefficient is 0.70-0.78[38,39].However, it cannot be denied that the CCDC algorithm is fully automated and can quickly provide temporal information on mangrove changes.This study observed the changes in mangroves in the Beibu Gulf of Guangxi using the CCDC algorithm, providing a fundamental method for other researchers interested in studying mangrove changes.To improve the spatial resolution of mangroves or other land-cover observations, image fusion techniques can be used to increase the spatial resolution of Landsat series images to 10 m.For example, Sentinel-2 series images can be fused to improve resolution.Furthermore, if the striping issue of the Landsat 7 sensor can be rectified, it will further enhance the accuracy of mangroves or other land-cover change observations.

Effects of S. alterniflora Invasion on SOC and SOCS
Compared to studies by other researchers, the SOC content in S. alterniflora wetlands in this study was significantly higher than that in Yancheng City and the Yellow River Delta [40,41] but lower than that in the Minjiang River Estuary [42].In similar invasion periods, the SOC content in the 0-20 cm soil layer was close to that in Yingpan Port, Beihai City, while the content in the two soil layers of 20-40 cm and 40-60 cm was higher than those in Yingpan Port [43].
The invasion of S. alterniflora alters the carbon cycling processes in coastal wetland soils [6].In this study, the SOCS in S. alterniflora-invaded areas reached 6.05 times that of the mudflat after 18-21 years, while the SOCS content in mangrove areas was 4.11 times that of the mudflat, indicating the strong carbon sequestration capacity of S. alterniflora.The total SOCS storage showed an accumulation effect with increasing invasion years, similar to results from Yingpan Port in Beihai [43] and the Yellow River Delta [41].The results of this study indicate that the SOCS content increased with increasing invasion years, maintaining an upward trend-similar to findings from other researchers [44].The time required for SOCS to accumulate to saturation varies in different regions.Since SOCS showed a continuous increasing trend in this study, although it reached its highest value in 18-21 years, saturation was still not achieved.
Surface soil SOC accumulation is primarily associated with the invasion duration of S. alterniflora and is susceptible to human activities, whereas deep-soil SOC is less influenced by external disturbances and can better reflect the accumulation characteristics of SOC with S. alterniflora invasion duration [45].In this study, during the early stages of invasion, SOCS initially decreased and then increased with increasing soil depth.After 12 years of invasion, SOCS in 20-40 cm soil layer was higher than that in 0-20 cm soil layer.After 18-21 years of invasion, the SOCS in the 40-60 cm soil layer exceeded that of the surface soil.The root distribution of S.alterniflora can reach the depth of 100 cm of soil, which provides a source of SOC for deep soil.In addition, with the increase of soil depth, the oxygen content in deep soil decreased, which reduced the decomposition of SOC by aerobic microorganisms and promoted the fixation and storage of carbon.
Soil physicochemical factors can impact SOCS.Influenced by tides, the MC of coastal wetland soil is typically higher than general soil.In this study, the MC of wetland soil increased with the duration of S. alterniflora invasion.The deep-soil moisture content of invasion 18-21a increased significantly.High MC inhibits the activity of aerobic microorganisms, reducing the consumption of SOC and promoting its accumulation [46,47].BD represents soil compaction and is also one of the parameters used in SOCS calculation.When BD is low, it indicates that the soil structure is loose with good permeability, which is conducive to the decomposition and deposition of organic matter, thereby affecting SOC content [48].In this study, the BD of the 20-40 cm and 40-60 cm soil layers at 18-21a of invasion was low, while the moisture content was high, and the SOC content was higher compared to other invasion durations, indicating that soil physicochemical factors have an influence on SOC content.
The invasion of S. alterniflora has increased both SOC and SOCS in wetland soils.Compared with other studies, it is found that the carbon sequestration capacity of S. alterniflora is still lower than that of mature mangroves [49].This could be attributed to the higher productivity of mature mangroves.In this study, the SOCS values of mangroves were lower than that of S. alterniflora with long invasion years, possibly because the sampling points for mangroves were chosen at the boundary between S. alterniflora and mangroves, rather than in mature mangrove areas.Therefore, efforts should be made to strengthen the protection of mangroves and enhance the control measures against S. alterniflora in the Beibu Gulf of Guangxi.

Conclusions
The present study employed the CCDC algorithm combined with random forest segmentation classification to track the changes in mangroves in the Beibu Gulf of Guangxi from 1990 to 2022.The results indicated that a total of 814.57hectares of mangroves were converted to other land-cover types, primarily undergoing one to two changes, with the majority persisting until 2022.During this period, S. alterniflora in the Dandou Sea and Nanliu River regions rapidly spread to the edges of mangroves on the mudflats, encroaching on the living space of mangroves.Additionally, the unbridled expansion of aquaculture ponds, coastal urbanization and land reclamation projects, and port construction activities have had irreversible and permanent impacts on mangroves on the landward side.By using a spatial approach instead of a temporal one on the classified results, the changes of wetland SOC and SOCS in different invasion periods of S. alterniflora were studied.SOC and SOCS increased with the duration of S. alterniflora invasion and have not yet reached saturation, indicating that the invasion of S. alterniflora can enhance the carbon content of wetland soils.In our results, some soil physicochemical factors, such as BD and MC, were identified as driving factors affecting SOC and SOCS in S. alterniflora wetlands.

Figure 2 .
Figure 2. Locations of sampling areas (a) in the Mangrove wetlands and Mudflat; (b) in the S. alterniflora wetlands (SA means S. alterniflora, the number behind SA means the invasion ages).

Figure 2 .
Figure 2. Locations of sampling areas (a) in the Mangrove wetlands and Mudflat; (b) in the S. alterniflora wetlands (SA means S. alterniflora, the number behind SA means the invasion ages).

Figure 3 .
Figure 3. Land-use classification results for each change segment in the Dandou Sea area (1990-2022) and images of the changes in Shatian Port construction, (a) Landsat image of Shatian Port in 1990; (b) Landsat image of Shatian Port in 2010; (c) Landsat image of Shatian Port in 2013; (d) Google Earth image of Shatian Port in 2022.

Figure 4 .
Figure 4. Land-use classification results for each change segment in the Nanliu River area (1990-2022).
37 hectares, followed by 2-year change areas covering 63.36 hectares.Additionally, the area with a change duration of 31 years reached 55.15 hectares.In summary, mangrove changes primarily occurred as short-term changes (1-4 years) or as permanent transitions.

Figure 5 .
Figure 5. (a) The area of mangrove forest at different start time of change; (b) the area of different change duration of mangroves.

Figure 5 .
Figure 5. (a) The area of mangrove forest at different start time of change; (b) the area of different change duration of mangroves.

Figure 6 .
Figure 6.The distribution characteristics of soil organic carbon content from S. alterniflora with different invasion years, mangrove and mudflat.

Figure 7 .
Figure 7.The distribution characteristics of soil organic carbon storage from S. alterniflora with different invasion years, mangrove and mudflat.

Table 1 .
Confusion matrix for CCDC algorithm classification results.

Table 2 .
The statistics of different segments' classification.

Table 3 .
Statistical results (mean ± standard deviation) of soil physical and chemical properties of S. alterniflora with different invasion ages and soil depths.

Table 4 .
The correlation matrix between SOC, SOCS and soil physical and chemical properties of S. alterniflora.

Table A1 .
The accuracy of CCDC segments.