A method for rapid identification of wetlands by fusing SWOT satellite and Sentinel-2 images
By selecting multi-source feature sets and using a random forest model, the problems of feature redundancy and low accuracy in wetland classification were solved, resulting in an efficient wetland identification method and improved classification accuracy.
Patent Information
- Application Number
- CN202611446188.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-17
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies have varying abilities to distinguish different feature categories in wetland classification, leading to redundant classification features. Furthermore, large-scale classification increases the amount of data processing and affects classification accuracy.
Wetland extent mask is formed by acquiring multiple sets of land use data products, samples are collected and divided into training and validation sets, multi-source feature sets are screened, wetland classification is performed using a random forest model, and post-processing and accuracy verification are carried out to form an optimal feature set.
The method improved the accuracy and efficiency of wetland classification, with an overall accuracy increase of approximately 2.6 percentage points and a Kappa coefficient of 0.893, thus verifying the effectiveness of feature selection.
Smart Images

Figure CN123182052A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image recognition technology, and in particular to a method for rapid wetland identification by fusing SWOT satellite and Sentinel-2 imagery. Background Technology
[0002] When remote sensing data, spectral indices, temporal statistical features, and topographic features from different sources are used as classification inputs, the contributions of different features to wetland category differentiation are not the same. Some features have high class separability and can provide effective class differentiation information, while others have relatively weak class differentiation ability. Directly inputting all candidate features into the classification model can easily lead to redundancy in the classification feature composition, requiring the classification model to process multidimensional features with different class differentiation abilities simultaneously.
[0003] Furthermore, directly classifying wetlands over a large area would require classifying a significant number of non-target regions, increasing the scope of data processing. Therefore, before performing multi-source feature classification, it is necessary to reasonably determine the candidate wetland range and use independent validation samples to objectively evaluate the classification results.
[0004] Therefore, the technical problem that this application needs to solve is not simply to add a remote sensing data source, but rather: how to form a candidate multi-source feature set by combining SWOT backscattering features, Sentinel-2 spectral and time-series statistical features of different seasons with topographic features based on the determination of wetland candidate range, and to screen wetland categories based on the separability of each candidate feature, so as to reduce the impact of features with relatively weak category discrimination ability on the classification process, thereby improving the classification accuracy and processing effectiveness of rapid wetland identification. Summary of the Invention
[0005] The purpose of this application is to provide a rapid wetland identification method that integrates SWOT satellite and Sentinel-2 imagery, which can effectively solve the problems mentioned in the background art.
[0006] To achieve the above objectives, this application provides the following technical solution: a method for rapid wetland identification by fusing SWOT satellite and Sentinel-2 imagery, comprising the following steps: S1. Obtain multiple sets of land use data products for the area to be identified, extract the wetland type layer and perform spatial intersection to obtain a wetland range mask. S2. Collect samples within the masked area of the wetland and divide them into a training sample set and a validation sample set; S3. Obtain SWOT backscattering features, Sentinel-2 spectral and temporal features, and terrain features, and spatially match them to form a candidate multi-source feature set; S4. Based on the training sample set, perform class separability analysis and screening on the candidate features to obtain the preferred multi-source feature set; S5. Train a random forest model using the training sample set and the optimized multi-source feature set to classify pixels within the wetland range mask and obtain wetland classification results.
[0007] The spatial intersection in step S1 includes: For any cell in the area to be identified, if the cell is simultaneously identified as a wetland by all land use data products participating in the intersection, the cell is retained as a wetland cell. If any land use data product fails to classify a pixel as a wetland, that pixel will not be retained as a wetland area.
[0008] The sample collection in step S2 includes: By combining visual interpretation of high-resolution images and results of field surveys, the wetland type and non-wetland category of the samples were determined; All samples are combined to form a total sample set, which is then divided into a training sample set and a validation sample set according to a preset ratio. The validation sample set does not participate in the classification model training.
[0009] In step S3, the SWOT backscattering characteristics include spring SWOTsig0 backscattering characteristics, summer SWOTsig0 backscattering characteristics, and autumn SWOTsig0 backscattering characteristics.
[0010] In step S3, the Sentinel-2 time series features include water body frequency features and vegetation frequency features. The water body frequency characteristics are the frequency of water body states at each spatial location within the observation period, based on Sentinel-2 time-series image statistics. The vegetation frequency characteristics are the frequency of vegetation characteristics exhibited at each spatial location within the observation period, based on Sentinel-2 time-series image statistics.
[0011] In step S3, the terrain features include DEM elevation features and slope features.
[0012] In step S4, the category separability analysis includes: The training samples are grouped according to categories, and the feature values of each candidate feature in different categories are counted. The category separability evaluation value of each candidate feature is calculated, and the category separability evaluation value is the ratio of the degree of difference between categories to the degree of difference within categories. The preferred multi-source feature set is selected based on the ranking of the category separability evaluation values.
[0013] The candidate multi-source feature set contains 11-dimensional candidate features, and the preferred multi-source feature set contains 8-dimensional preferred features. The eight preferred features include spring SWOTsig0 backscattering features, summer SWOTsig0 backscattering features, autumn SWOTsig0 backscattering features, normalized difference vegetation index (NDVI) features, normalized difference water index (NDWI) features, water frequency features, vegetation frequency features, and DEM elevation features.
[0014] Step S5 is followed by step S6: The wetland classification results are post-processed, including clustering and visual correction. The clustering and merging process involves aggregating spatially continuous pixels of the same type based on their spatial location relationship and classification category, and merging isolated classified patches. The visual correction involves spatially mapping the classification results to remote sensing images and sample information, and correcting the classification categories of misclassified areas.
[0015] Step S6 is followed by step S7: The accuracy of the post-processed wetland classification results is evaluated using the validation sample set. A confusion matrix is established, and the overall accuracy, Kappa coefficient, user accuracy, and producer accuracy are calculated. The overall accuracy is compared with a preset accuracy threshold. When the overall accuracy meets the preset accuracy threshold, the final wetland classification result is output. When the overall accuracy does not meet the preset accuracy threshold, return to step S4, adjust the feature combination involved in classification, retrain the random forest classification model, and perform classification and accuracy evaluation to form a closed-loop feedback.
[0016] In summary, the technical effects and advantages of this invention are as follows: This invention obtains wetland type layers corresponding to multiple sets of land use data products and performs spatial intersection to form a wetland range mask. This limits subsequent sample collection, multi-source feature processing, and classification result output to a defined wetland candidate range, thereby reducing the number of non-target areas entering subsequent classification processing.
[0017] This invention spatially matches SWOTsig0 backscattering features, Sentinel-2 spectral indices, and time-series statistical features with topographic features in different seasons to form a multi-source candidate feature set. This allows the same spatial location to simultaneously possess seasonal backscattering information, spectral information, time-series statistical information, and topographic information, providing multi-dimensional feature representations for different wetland categories.
[0018] Before inputting multi-source candidate features into the classification model, this invention evaluates the class separability of each candidate feature based on the training samples and forms an optimal multi-source feature set based on the evaluation results. This ensures that the final classification input is not simply composed of all candidate features, but retains features with relatively strong class distinguishing ability, thereby reducing the impact of features with relatively weak class separability on the classification process.
[0019] This invention compares and verifies the classification results obtained by using candidate multi-source feature sets and optimized multi-source feature sets using independent verification samples. In this embodiment, the overall accuracy is 89.81% when using 11-dimensional candidate features and 92.41% when using 8-dimensional optimized features, with an overall accuracy improvement of approximately 2.60 percentage points. Meanwhile, the Kappa coefficient of the final classification result is approximately 0.893, thus verifying the effect of multi-source feature screening based on class separability on wetland classification and identification. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 A flowchart for a rapid wetland identification method that integrates SWOT satellite and Sentinel-2 imagery; Figure 2 A flowchart for a rapid wetland identification method; Figure 3 This is the sig0 feature map of the SWOT image; Figure 4 This is a diagram showing the wetland classification results after monitoring.
[0022] Figure 5 This is a time-series variation diagram of SWOTsig0 features. Detailed Implementation
[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] Example 1, Reference Figures 1 to 5The present invention provides a method for rapid wetland identification by fusing SWOT satellite and Sentinel-2 imagery, which is used to quickly identify and classify wetlands in the area to be identified. This embodiment is implemented according to the process of "wetland range extraction - sample collection - multi-source feature construction - feature separability analysis - random forest classification - post-processing - accuracy verification and result output".
[0025] In this embodiment, the data objects and processing results are defined according to the following hierarchical relationship: The wetland area to be identified is denoted as D01, multiple land use data products are denoted as D02, the wetland type layer extracted from each land use data product is denoted as D03, the wetland range mask formed by the intersection of D03 is denoted as D04, and all samples obtained within the range of D04 constitute the total sample set D05, which is divided into training sample set D06 and validation sample set D07.
[0026] The symbols used in this embodiment are uniformly explained as follows: D01 is the wetland area to be identified; D02 is multiple land use data products; D03 is the wetland type layer; D04 is the wetland extent mask; D05 is the total sample set; D06 is the training sample set; D07 is the validation sample set. F01 represents the SWOTsig0 backscattering characteristics in spring, F02 represents the SWOTsig0 backscattering characteristics in summer, and F03 represents the SWOTsig0 backscattering characteristics in autumn. F04 is the Normalized Difference Vegetation Index (NDVI) feature, F05 is the Enhanced Vegetation Index (EVI) feature, F06 is the Improved Normalized Difference Water Index (MNDWI) feature, and F07 is the Normalized Difference Water Index (NDWI) feature. F08 represents water body frequency characteristics; F09 represents vegetation frequency characteristics; F10 represents DEM elevation characteristics; F11 represents slope characteristics; F0 represents candidate multi-source feature sets; F1 represents preferred multi-source feature sets. F_SWOT is the SWOT feature set, F_S2 is the Sentinel-2 feature set, F_Terrain is the terrain feature set; sig0 is the backscattering coefficient; Sj is the class separability evaluation value of the j-th candidate feature, where j is the feature index; Xi is the feature vector corresponding to the ith training sample, Yi is the class label corresponding to the ith training sample, where i is the training sample index; D_RF is the random forest training dataset; N_tree is the number of decision trees in the random forest. R01 is the preliminary classification result, R02 is the classification result after clustering and merging, and R03 is the final classification result after visual correction; M is the confusion matrix, Mij is the number of samples in the confusion matrix with actual class i and predicted class j, and Mji is the number of samples in the confusion matrix with actual class j and predicted class i. N is the total number of validation samples; N_correct is the number of correctly classified samples; OA is the overall accuracy, OA11 is the overall accuracy of classification using an 11-dimensional candidate feature set, OA8 is the overall accuracy of classification using an 8-dimensional preferred feature set, and ΔOA is the change in accuracy. Ri is the sum of the elements in the i-th row of the confusion matrix, Ci is the sum of the elements in the i-th column of the confusion matrix; UAi is the accuracy of the i-th type of user, PAi is the accuracy of the i-th type of producer; T is the preset accuracy threshold; F01i is the spring SWOTsig0 backscatter feature value corresponding to the i-th training sample, F02i is the corresponding value in summer, F03i is the corresponding value in autumn, F04i is the normalized difference vegetation index (NDVI) feature value, F07i is the normalized difference water index (NDWI) feature value, F08i is the water frequency feature value, F09i is the vegetation frequency feature value, and F10i is the DEM elevation feature value. Po represents the observational consistency rate, Pe represents the random consistency rate; UA_wetland represents the user precision for wetland categories, UA_nonwetland represents the user precision for non-wetland categories; PA_wetland represents the producer precision for wetland categories, PA_nonwetland represents the producer precision for non-wetland categories.
[0027] It should be noted that the 3,600 samples, 11-dimensional candidate features, and subsequent feature screening and classification accuracy data in this embodiment are used to illustrate the engineering implementation of the technical solution of this invention.
[0028] The specific values can be adjusted according to the data conditions of different research areas and different years, and are not the only limitation on the scope of protection of this invention based on the specific values in this embodiment.
[0029] First, determine the target area D01 for wetland identification. For the target area D01, obtain multiple sets of land use data products D02 covering the area. Different land use data products contain corresponding land use or land cover classification information.
[0030] After acquiring multiple sets of land use data products D02, the wetland type layer D03 corresponding to the wetland is extracted from each land use data product. For each set of land use data products, the wetland type is determined according to the category identifier of the data product itself, and the corresponding wetland category is converted into a unified wetland spatial identifier.
[0031] After obtaining multiple wetland type layers D03, spatial intersection is performed on each wetland type layer. Specifically, for any cell in the target area D01, it is determined whether the cell appears in the wetland type layer D03 corresponding to each set of land use data products.
[0032] When the same pixel is identified as a wetland by all participating land use data products, the pixel is retained as a wetland pixel. If any land use data product does not identify a cell as a wetland, then the cell is not retained as a wetland area, thus obtaining the wetland area mask D04.
[0033] The wetland extent extraction process resulted in the following data relationships: D02→D03→D04 D04 represents the target spatial range for subsequent sample collection and classification processing.
[0034] Compared to directly using a single land use product to determine the wetland extent, spatial intersection of wetland type layers from multiple land use data products allows areas that are commonly identified as wetlands by all products to be used as the scope for subsequent processing. This concentrates subsequent sample collection and classification operations on wetland candidate areas, reducing the number of non-target areas entering the subsequent processing.
[0035] D04 serves not only as a spatial mask for the wetland area but also as a spatial constraint for subsequent remote sensing feature extraction and classification results. Although subsequent multi-source feature data can cover the study area, in actual classification, only the area defined by D04 is processed.
[0036] Example 2: Wetland sample collection.
[0037] After obtaining the wetland area mask D04, D04 was imported into the Google Earth platform, and samples were collected within the spatial range defined by D04.
[0038] The sample collection is not based solely on automatic determination using single remote sensing data, but rather combines visual interpretation of high-resolution images with field survey results to identify wetland types and non-wetland targets.
[0039] High-resolution imagery is used to identify the land cover and spatial morphology of the sample location. For locations where field surveys can be conducted, the actual land cover types are further determined through field surveys. The category attributes of the sample points are determined by combining the visual interpretation results of the high-resolution imagery with the results of the field surveys.
[0040] The sample categories include eight wetland types: coastal mudflats, coastal salt marshes, coastal mangroves, herbaceous marshes, shrub marshes, woody marshes, inland mudflats, and water bodies, as well as non-wetland categories. For each sample point, its spatial location and corresponding category label are recorded, and all sample points form the total sample set D05.
[0041] The eight wetland types are classified according to their formation and surface cover characteristics as follows: coastal mudflats are intertidal mudflats or silt beaches without obvious vascular vegetation cover; coastal salt marshes are saltwater marshes with herbaceous halophyte vegetation in the intertidal zone; coastal mangroves are wetlands with woody mangrove communities in the intertidal zone; herbaceous marshes are freshwater marshes dominated by herbaceous wetland plants; shrub marshes are freshwater marshes with shrubs as the dominant vegetation; woody marshes are freshwater marsh forests dominated by trees; inland mudflats are seasonally exposed mudflats around rivers and lakes; and water bodies are permanent open water bodies such as lakes and rivers. Non-wetland categories include surface types such as farmland, construction land, bare land, and ordinary forest land.
[0042] In this embodiment, to facilitate subsequent training and independent verification, the total number of samples is set to 3600, i.e., N_D05=3600.
[0043] D05 is divided into training sample set D06 and validation sample set D07 according to a ratio of 70% and 30%, respectively. Where: N_D06=2520; N_D07=1080.
[0044] The training sample set D06 is used to build the random forest classification model, while the validation sample set D07 is not used for training the classification model, but is used for subsequent independent accuracy evaluation of the classification results.
[0045] During the sample partitioning process, samples of each category are partitioned into the training sample set D06 and the validation sample set D07 according to the preset sample partitioning method, so that both training samples and validation samples have corresponding category labels.
[0046] Example 3: SWOT satellite data acquisition and preprocessing.
[0047] After completing the sample construction, SWOT satellite data covering the study area were further obtained.
[0048] This embodiment focuses on extracting the sig0 backscattering coefficient variable from SWOT satellite data and establishing corresponding SWOT features according to different seasons.
[0049] Specifically, it includes: SWOTsig0 backscattering feature F01 in spring, SWOTsig0 backscattering feature F02 in summer, and SWOTsig0 backscattering feature F03 in autumn.
[0050] Therefore, the SWOT feature set is represented as: F_SWOT={F01, F02, F03}.
[0051] Among them, F01, F02 and F03 correspond to the sig0 backscattering information in spring, summer and autumn, respectively.
[0052] The obtained SWOT data and corresponding sig0 variables were uploaded to the Google Earth Engine platform for spatial matching and feature fusion with subsequent Sentinel-2 data.
[0053] Since the surface moisture, vegetation cover, and surface structure of different wetland types may change with the seasons, this embodiment does not use SWOT data at a single time point, but acquires sig0 backscattering information for spring, summer, and autumn respectively, so that the same spatial location has different seasonal scattering characteristics.
[0054] Therefore, the SWOT information corresponding to a single spatial location is expanded from a single feature to: (F01, F02, F03).
[0055] The three seasonal features were used together as candidate inputs for subsequent class separability analysis.
[0056] It is worth noting that the acquisition and preprocessing of Sentinel-2 images involved calling up Sentinel-2 images covering the study area on the Google Earth Engine platform.
[0057] Since Sentinel-2 is an optical remote sensing image, in order to reduce the impact of cloud cover on subsequent spectral feature calculations, this embodiment first performs cloud removal processing on the acquired Sentinel-2 image. After cloud removal processing, Sentinel-2 features are constructed based on retaining the effective image data.
[0058] In this embodiment, Sentinel-2 related features are divided into spectral index features, water frequency features, and vegetation frequency features.
[0059] The spectral index features are calculated based on the processed Sentinel-2 imagery, using multiple spectral indices. In the candidate feature system of this embodiment, the four spectral indices are defined as follows.
[0060] (1) Normalized Difference Vegetation Index (NDVI) F04, where F04 is the Normalized Difference Vegetation Index (NDVI), and its calculation formula is: ; Wherein, NIR represents the reflectance in the near-infrared band, and Red represents the reflectance in the red band.
[0061] F04 is used to characterize the degree of vegetation cover.
[0062] (2) Enhanced vegetation index F05. F05 is an enhanced vegetation index EVI, which is constructed using blue light, red light and near-infrared bands to supplement vegetation canopy information.
[0063] (3) Improved Normalized Water Index F06. F06 is an improved normalized water index MNDWI, constructed using green light and shortwave infrared bands, to enhance the identification ability of water bodies and wet surfaces.
[0064] (4) Normalized water index F07. F07 is the normalized water index NDWI, which is constructed using green light and near-infrared bands and is used to characterize water bodies and surface moisture.
[0065] It is worth noting that the water body frequency feature F08 is based on processed Sentinel-2 time-series image data. It statistically analyzes the frequency of water body states at each spatial location within the study area during the corresponding observation period to form the water body frequency feature F08. F08 is used to describe the occurrence of water bodies at the target spatial location in the time series. Unlike the single-phase water body index, F08 reflects the frequency of water body characteristics at the same spatial location in multiple observation phases. Therefore, F08 is used as a time-series statistical feature in subsequent classification separability analysis.
[0066] Among them, vegetation frequency feature F09 is formed by further statistically analyzing the frequency of vegetation features at each spatial location within the corresponding observation period based on the processed Sentinel-2 time-series image data.
[0067] Therefore, the Sentinel-2 feature set is represented as: FS2={F04, F05, F06, F07, F08, F09}; Among them, F04 to F07 are spectral index characteristics, F08 is water body frequency characteristics, and F09 is vegetation frequency characteristics.
[0068] It should be noted that F08 "Water Body Frequency" is not equivalent to a specific water body spectral index; similarly, F09 "Vegetation Frequency" is not equivalent to a specific vegetation spectral index. Both are statistical features based on multi-temporal Sentinel-2 data.
[0069] Example 4: Construction of terrain factors.
[0070] After obtaining SWOT and Sentinel-2 features, we further acquired terrain data of the study area and constructed terrain features from the terrain data.
[0071] This embodiment uses DEM elevation feature F10 and slope feature F11. Therefore, the terrain feature set is represented as FTerain={F10, F11}; Wherein, F10 represents the DEM elevation information of the corresponding location in the study area, and F11 represents the slope information of the corresponding location.
[0072] The terrain features are spatially correlated with SWOT backscattering features, as well as Sentinel-2 spectral and temporal features, so that each sample location involved in the classification has a corresponding multi-source attribute. It is worth noting that, based on the above-mentioned formation of an 11-dimensional candidate multi-source feature set, after completing the above data processing, spatial matching is performed on SWOT, Sentinel-2, and terrain data.
[0073] For the same spatial location, the following candidate feature set is formed: ; therefore: ; Among them, F01 to F03 are the sig0 backscattering characteristics of SWOT in different seasons; F04 to F07 are the Sentinel-2 spectral index characteristics; F08 is the Sentinel-2 water frequency characteristics; F09 is the Sentinel-2 vegetation frequency characteristics; F10 is the DEM elevation characteristics; and F11 is the slope characteristics.
[0074] This leads to: ; The above multi-source feature set F0 establishes a spatial correspondence with the sample set D05, so that both the training sample D06 and the validation sample D07 can be associated with the corresponding multi-source feature values.
[0075] Example 5: Class separability analysis of candidate features.
[0076] If all features in F0 are directly input into the classification model, the contributions of different features to distinguishing wetland categories are not entirely the same.
[0077] Therefore, in this embodiment, before performing random forest classification, the class separability analysis is first performed on the candidate multi-source feature set F0.
[0078] Specifically, using the training sample set D06 as the basis for feature evaluation, the training samples are grouped according to their corresponding wetland or non-wetland categories, and the feature values of each candidate feature in different categories are statistically analyzed, and the feature differences between different categories are compared.
[0079] For the j-th candidate feature, its class separability evaluation value is defined as S_j: ; Among them, the degree of inter-class difference is used to characterize the degree of difference between samples of different classes on this feature, while the degree of intra-class difference is used to characterize the degree of dispersion of samples of the same class on this feature.
[0080] When the value of S_j corresponding to a candidate feature is large, it indicates that the feature has significant differences between different categories, while the degree of dispersion within the same category is relatively small, thus it has good class discrimination ability.
[0081] Conversely, when S_j is small, it indicates that the feature has a relatively weak ability to distinguish between different categories.
[0082] The above-mentioned S_j is used for feature sorting and filtering in this embodiment. Its specific calculation form can be adjusted according to the actual data processing method. In this embodiment, the ratio of inter-class difference to intra-class difference is used as the evaluation basis.
[0083] In this embodiment, the 11 candidate features in F0 are evaluated based on the training sample set D06 to obtain the class separability evaluation value corresponding to each feature.
[0084] The specific results are shown in Table 1.
[0085] Table 1 shows the evaluation results of the separability of the 11-dimensional candidate feature categories.
[0086]
[0087] As can be seen from the above evaluation results, in this embodiment, there are differences in the separability of different features.
[0088] Among them, the S values corresponding to F01, F02 and F03 are 3.82, 3.47 and 3.21 respectively, indicating that the SWOT sig0 features of the three seasons have obvious differences in wetland category distinction in this embodiment.
[0089] The S values of F04, F07, F08, F09 and F10 are 2.96, 2.73, 2.61, 2.45 and 2.31 respectively, which also show a certain ability to distinguish categories.
[0090] In contrast, the S values corresponding to F05, F06 and F11 are 1.74, 1.42 and 1.18 respectively, indicating relatively low class separability in this embodiment.
[0091] Therefore, in this embodiment, candidate features are screened based on the results of the category separability evaluation.
[0092] Based on the above evaluation results, the features that rank highly and can provide effective category differentiation information are retained to form the preferred multi-source feature set F1.
[0093] In this embodiment, F01, F02, F03, F04, F07, F08, F09, and F10 are retained. Therefore, F1 = {F01, F02, F03, F04, F07, F08, F09, F10}, and the corresponding number of features is |F1| = 8.
[0094] Accordingly, F05, F06, and F11 are not adopted from the candidate multi-source feature set F0 for the time being. Therefore, |F0|-|F1|=11-8=3, that is, 8-dimensional preferred features are formed from 11-dimensional candidate features.
[0095] In this embodiment, F1 is not obtained by simply deleting all features from a certain data source, but by selecting based on the separability of different candidate features.
[0096] Therefore, the optimized F1 still includes SWOT multi-seasonal features, Sentinel-2 spectral and statistical features, and topographic features. That is, F1 includes three types of data sources: SWOT, Sentinel-2, and topography. However, the actual number of features from each data source involved in the classification is determined based on the results of the class separability evaluation.
[0097] This approach avoids indiscriminately inputting all candidate features into the classification model. Instead, it first uses training samples to determine the actual contribution of different features to class distinction, and then forms a classification feature set.
[0098] Example 6: Establish a correspondence between preferred features and training samples.
[0099] After F1 is formed, each feature in F1 is spatially matched with the training sample set D06. For each sample point in the training sample set D06, the corresponding feature values of F01, F02, F03, F04, F07, F08, F09 and F10 are extracted according to its spatial coordinates.
[0100] Therefore, each training sample forms a feature vector of the following form: Xi = (F01i, F02i, F03i, F04i, F07i, F08i, F09i, F10i), where i = 1, 2, ..., 2520. The corresponding category label is denoted as Yi.
[0101] This results in a dataset D_RF={(Xi, Yi)}i=1^2520 for training the classification model; Where Xi represents the 8-dimensional preferred multi-source feature vector corresponding to the i-th training sample, and Yi represents the wetland category or non-wetland category label corresponding to the training sample.
[0102] In this process, the validation sample set D07 is not used for training the random forest model, but is reserved for subsequent classification accuracy validation.
[0103] After obtaining the training dataset D_RF, a wetland identification and classification model was established using the random forest classification method. The random forest consists of multiple decision trees. By randomly sampling the training samples and randomly selecting features in the feature space, multiple decision tree classifiers were established, and then the classification results of the multiple decision trees were comprehensively judged.
[0104] In this embodiment, the training samples corresponding to D06 and the 8-dimensional optimized features corresponding to F1 are input into the random forest classification model. In engineering implementation, the number of decision trees in the random forest is set to 300, i.e., N_tree=300.
[0105] For each input pixel to be classified, the class is determined using each decision tree, and the final class of the pixel is determined based on the classification results of multiple decision trees.
[0106] The 300 decision trees are the model parameters used in this embodiment to illustrate the random forest classification process, and are not intended to limit the technical aspects of this invention.
[0107] In this embodiment, the training sample set D06 and the preferred feature set F1 obtained through class separability analysis are actually used to form the classification input.
[0108] Specifically, the spatially matched F1 features are applied to the target area corresponding to the wetland range mask D04. For each pixel to be classified within the range of D04, its corresponding F01, F02, F03, F04, F07, F08, F09, and F10 are extracted to form a corresponding 8-dimensional feature vector. Then, the 8-dimensional feature vector is input into the trained random forest model, and the random forest model outputs the category corresponding to the pixel.
[0109] After performing the above processing on all pixels to be classified within the range D04, a preliminary classification result R01 is formed. Therefore, the classification process is D04+F1→RF→R01, where D04 defines the classification space, F1 provides classification features, RF is the random forest classification model, and R01 is the preliminary classification result.
[0110] It is worth noting that, in order to verify the role of feature separability screening in this embodiment, two sets of classification experiments were set up.
[0111] Group 1: 11-dimensional candidate feature classification. The complete candidate feature set F0 is used as the classification input. The training sample D06, random forest model parameters, classification region D04, and validation sample D07 remain unchanged. Only the classification input feature is replaced by F0 instead of F1. After classification using the random forest, the accuracy is evaluated using the validation sample set D07.
[0112] In this embodiment, OA11 = 89.81%.
[0113] The second group: 8-dimensional optimized feature classification, using the F1 score after separability evaluation as the classification input, keeping the training sample D06, random forest model parameters, classification region D04, and validation sample D07 consistent with the first group experiment. Random forest classification is then performed again.
[0114] In this embodiment, OA8 = 92.41%.
[0115] The only change between the two sets of experiments was the primary classification input F0 → F1, i.e., 11 dimensions → 8 dimensions.
[0116] Based on the above two sets of experimental results: OA11=89.81%, OA8=92.41%.
[0117] Therefore, ΔOA = OA8 - OA11 = 92.41% - 89.81% = 2.60 percentage points.
[0118] When using unrounded data for calculation, 998 / 1080-970 / 1080=28 / 1080≈2.5926; Therefore, in this embodiment, it is expressed as an 8-dimensional preferred feature set obtained by class separability analysis, which improves the overall classification accuracy by about 2.6 percentage points compared to using an 11-dimensional candidate feature set.
[0119] The technical logic here is not simply that "the fewer features the better," but rather: 11 candidate features → category separability evaluation → filtering out features with relatively weak category discrimination ability in this embodiment → 8 preferred features → reclassification.
[0120] Therefore, the results of this embodiment are used to illustrate that filtering multi-source candidate features based on class separability can change the composition of input features of the classification model and achieve higher overall classification accuracy in this embodiment.
[0121] Example 7: The relationship between feature selection and multi-source fusion.
[0122] This embodiment needs further explanation: feature filtering does not mean completely discarding a certain data source.
[0123] The 11-dimensional candidate feature F0 includes 3 SWOT features, 6 Sentinel-2 features, and 2 terrain features.
[0124] After the separability evaluation to form F1, 3 SWOT features, 4 Sentinel-2 features and 1 terrain feature are retained, namely F1={F01, F02, F03, F04, F07, F08, F09, F10}.
[0125] Therefore, SWOT, Sentinel-2, and terrain data are all still involved in the final classification.
[0126] Therefore, the multi-source fusion in this embodiment is not simply inputting all multiple data sources into the classification model. Instead, after establishing a multi-source candidate feature set, features from different sources are further filtered based on class separability. This makes multi-source data acquisition, feature separability analysis, and classification model form a continuous technical relationship.
[0127] Because adjacent pixels in remote sensing images may be affected by factors such as spatial resolution, feature boundary mixing, and local anomalous pixels, R01 may contain isolated pixels, scattered patches, or discontinuous category boundaries. Therefore, this embodiment does not directly use R01 as the final wetland classification result, but further processes R01.
[0128] Post-processing includes clustering and merging, and visual correction. The data relationship is R01→R02→R03, where R01 is the preliminary classification result obtained from the random forest, R02 is the classification result after clustering and merging, and R03 is the final classification result after visual correction.
[0129] Example 8: Clustering and merging of preliminary classification results.
[0130] First, clustering and merging are performed on the preliminary classification result R01. Specifically, based on the spatial positional relationship of adjacent pixels in R01 and their corresponding classification categories, pixels of the same type that have a continuous spatial distribution are aggregated, and isolated classification patches that are small in size and significantly inconsistent with the surrounding categories are merged.
[0131] Clustering and merging are used to form relatively continuous classification regions from spatially adjacent pixels of the same category, while reducing the impact of isolated pixels on the final classification map. The classification result R02 is obtained after clustering and merging. R02 still retains the category attributes of each category, but has a more continuous spatial distribution compared to R01.
[0132] This step does not change the aforementioned F1-selected feature set, nor does it retrain the random forest model. Instead, it performs spatial post-processing on the classification results that have already been obtained.
[0133] After obtaining R02, it is visually inspected. Specifically, R02 is spatially correlated with the corresponding remote sensing images, high-resolution images, and existing sample information. Areas with obvious anomalous classification patches, unreasonable category boundaries, and significant discrepancies with the actual distribution of ground features in the images are examined. For areas where significant misclassification can be identified through image interpretation, their classification categories are manually corrected.
[0134] After visual correction, R03 is obtained. R03 is used as the final classification result for subsequent verification samples to evaluate accuracy. This process can further reduce the impact of local salt-and-pepper-like classification results and local misclassified patches generated by random forest classification on the final wetland identification result.
[0135] In order to avoid directly evaluating the classification results using training samples, this embodiment uses the aforementioned established validation sample set D07 to evaluate the accuracy of R03.
[0136] The validation sample set D07 includes 1080 validation samples, i.e., N_D07=1080.
[0137] For each validation sample in D07, the classification result at the corresponding position in R03 is extracted based on its spatial location, and the predicted class in R03 is compared with the actual class already determined in D07. This forms D07+R03→M, where M represents the classification confusion matrix.
[0138] Example 9: Establishing a confusion matrix.
[0139] In this embodiment, a confusion matrix M is established based on the actual category of the validation sample and the category predicted by the classification model.
[0140] For any class i and class j, Mij represents the number of validation samples whose actual class is i and whose classification result is predicted as j.
[0141] Therefore, the diagonal elements of the confusion matrix represent correctly classified samples, while the off-diagonal elements represent samples where confusion occurs between categories.
[0142] This embodiment requires the confusion matrix to satisfy: ; That is, the total number of samples in the confusion matrix must be consistent with the number of samples in the validation sample D07.
[0143] Meanwhile, the sum of the elements on the main diagonal of the confusion matrix represents the number of validation samples that were correctly classified: ; Therefore, the overall accuracy OA is based on: calculate.
[0144] In this embodiment, a confusion matrix is established according to nine categories: eight types of wetlands (coastal mudflats, salt marshes, mangroves, herbaceous marshes, shrub marshes, forest marshes, inland mudflats, and water bodies) and nine categories of non-wetlands. The confusion matrix corresponding to the final classification result R03 obtained by F1 classification using an 8-dimensional optimized feature set is shown in Table 2 below. , , As shown in the confusion matrix above, the total number of samples is 1080, which is consistent with the number of samples in the validation sample D07. The number of correctly classified samples is 998, and the number of misclassified samples is 82, which is consistent with the total number of samples in the validation sample D07.
[0145] As shown in Table 2 above, in this embodiment, there are significant differences in seasonal backscattering characteristics, spectral and temporal characteristics among the eight wetland types. No category confusion occurred within the wetland types. All misclassified samples occurred between wetland and non-wetland categories. After aggregating the statistical results of the eight wetland subcategories into the wetland major category, the actual number of wetland samples is 520, and the predicted number of wetland samples is 542, which is consistent with the aforementioned binary classification evaluation criteria.
[0146] It should be noted that the number of category-level samples in the above confusion matrix (66, 61, 38, 80, 56, 51, 71, 67, 4, 508, etc.) are engineered data proposed in this embodiment to form a complete data loop, used to illustrate the calculation process of overall accuracy, Kappa coefficient, user accuracy and producer accuracy. In practical applications, this confusion matrix should be determined based on the classification results of the actual study area, the actual image year, and the actual validation samples.
[0147] Among them, the accuracy of the first group of control classification results.
[0148] To verify the impact of feature separability screening on classification results, this embodiment first verifies the classification results using the 11-dimensional candidate feature set F0. Under the condition that the study region D04, training sample D06, validation sample D07 and classification model type are the same, the complete candidate feature set F0 is used as the input for random forest classification. After the classification results undergo the same post-processing process as described above, D07 is used for accuracy evaluation.
[0149] In the engineering data of this embodiment, 970 out of 1080 validation samples were correctly classified. Therefore, OA11 = 970 / 1080 ≈ 89.81%. This result serves as the comparison classification result when using the 11-dimensional candidate feature set F0.
[0150] Among them, the accuracy of the classification results of the second group of preferred features.
[0151] The previously obtained 8-dimensional optimized multi-source feature set F1 was then used for reclassification.
[0152] Where F1 = {F01, F02, F03, F04, F07, F08, F09, F10}. Keeping the study region D04, training samples D06, validation samples D07, random forest classification method, and post-processing method unchanged, only the classification input is adjusted from F0 to F1. After reclassification, clustering merging, and visual correction, the corresponding final classification result R03 is obtained, which is then validated using D07.
[0153] In this embodiment, 998 out of 1080 verification samples were correctly classified, therefore OA8 = 998 / 1080 ≈ 92.41%.
[0154] Therefore, OA8-OA11=92.41%-89.81%≈2.60 percentage points.
[0155] Therefore, the final statement is as follows: In this embodiment, after screening the 11-dimensional candidate multi-source features according to the class separability and forming the 8-dimensional preferred multi-source features, the overall classification accuracy is improved by about 2.6 percentage points.
[0156] This result serves to demonstrate that the feature selection technique in this embodiment has a practical classification effect, rather than to prove that any study region can achieve a fixed improvement of 2.6 percentage points.
[0157] Example 10: Overall accuracy OA calculation.
[0158] For the final classification result R03 obtained by using the 8-dimensional preferred feature set F1, a confusion matrix M is established based on the verification sample D07. In this embodiment, ΣiΣjMij=1080 and ΣiMii=998, so OA=998 / 1080≈92.41%.
[0159] Among them, the Kappa coefficient is calculated.
[0160] In addition to the overall accuracy (OA), this embodiment further calculates the Kappa coefficient to evaluate the consistency between the classification results and those under random classification. The Kappa coefficient is calculated according to Kappa=(NΣiMii-ΣiRiCi) / (N²-ΣiRiCi).
[0161] Where N is the total number of validation samples, Mii is the main diagonal element of the confusion matrix, Ri is the sum of the elements in the i-th row of the confusion matrix, and Ci is the sum of the elements in the i-th column of the confusion matrix.
[0162] In this embodiment, N=1080, and the observation consistency rate Po=998 / 1080≈0.924074.
[0163] The random consistency rate Pe is calculated separately for all categories of the confusion matrix, i.e. Pe=Σi(Ri×Ci) / N²=(70×73+65×67+40×42+85×89+60×62+55×56+75×79+70×74+560×538) / 1080²≈0.289691.
[0164] Therefore, Kappa = (Po - Pe) / (1 - Pe) ≈ (0.924074 - 0.289691) / (1 - 0.289691) ≈ 0.893.
[0165] To further analyze the classification effect of each wetland category, this embodiment calculates the user accuracy (UA) and producer accuracy (PA) for each category in the confusion matrix.
[0166] For the i-th class: User precision UAi = Mii / ΣjMji, where the denominator represents the total number of samples predicted by the classification model to be in the i-th class, and UA reflects how many of the samples classified as a certain class actually belong to that class.
[0167] Producer precision PAi = Mii / ΣjMij, where the denominator represents the total number of verification samples that actually belong to class i, and PA reflects how many of the samples that actually belong to a certain class are correctly identified.
[0168] To maintain consistency with the aforementioned overall accuracy and Kappa coefficient evaluation criteria, the following user accuracy and producer accuracy are calculated by summarizing the wetland / non-wetland categories; based on the above confusion matrix, the user accuracy and producer accuracy for each category are calculated as follows: The accuracy of wetland users UA_wetland = 490 / (490+52) = 490 / 542 ≈ 90.41%; For non-wetland users, the accuracy UA_nonwetland = 508 / (30+508) = 508 / 538 ≈ 94.42%; Wetland producer precision PA_wetland = 490 / (490+30) = 490 / 520 ≈ 94.23%; Nonwetland producer accuracy PA_nonwetland=508 / (52+508)=508 / 560≈90.71%.
[0169] Therefore, this embodiment forms M→OA and M→Kappa, as well as M→UAi and M→PAi, thus forming a complete classification accuracy evaluation chain.
[0170] After obtaining the classification accuracy evaluation results, the overall accuracy OA is compared with the preset accuracy requirement T.
[0171] In this embodiment, the preset overall accuracy requirement is set as T=90%.
[0172] For the classification result obtained using the 8-dimensional preferred feature set F1, OA=92.41%, which satisfies the preset accuracy requirement as 92.41%>90%.
[0173] At this point, R03 after clustering merging and visual correction is output as the final wetland classification result, forming the process of R03→accuracy evaluation→OA→OA≥T→output R03.
[0174] Embodiment 11: Feedback processing when the accuracy requirement is not met.
[0175] This embodiment further sets up an accuracy feedback mechanism. When the classification result is verified to have OA<T, the current classification result will not be directly output, and the process returns to the aforementioned feature analysis and classification model processing procedure.
[0176] Specifically, it can return to the class separability analysis step, re-evaluate the candidate feature set, adjust the feature combination participating in classification, and retrain the random forest classification model.
[0177] Its processing path is: classification→accuracy evaluation→OA<T→return to feature separability analysis→adjust classification features→retrain random forest→re-classification→re-accuracy evaluation, thereby forming a closed-loop feedback.
[0178] The actual verified data in this embodiment is the engineering result of reducing from 11 dimensions to 8 dimensions and achieving 92.41% accuracy; the processing path of "readjusting features and training when OA<T" is a feedback mechanism in the method flow, and no additional specific iteration result is fabricated.
[0179] When the classification result meets the preset accuracy requirement, the final classification result R03 is output as a wetland classification result map. The final result at least includes the spatial distribution of wetland types, the spatial distribution of non-wetlands, and the spatial boundaries between different wetland categories. The output result maintains spatial correspondence with D04, so that the final classification result is limited to the pre-determined wetland candidate range.
[0180] The final data chain is: D04+F1→RF→R01→R02→R03→M→OA / Kappa / UA / PA→T→final wetland classification result.
[0181] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for rapid wetland identification by fusing SWOT satellite and Sentinel-2 imagery, characterized in that, Includes the following steps: S1. Obtain multiple sets of land use data products for the area to be identified, extract the wetland type layer and perform spatial intersection to obtain a wetland range mask. S2. Collect samples within the masked area of the wetland and divide them into a training sample set and a validation sample set; S3. Obtain SWOT backscattering features, Sentinel-2 spectral and temporal features, and terrain features, and spatially match them to form a candidate multi-source feature set; S4. Based on the training sample set, perform class separability analysis and screening on the candidate features to obtain the preferred multi-source feature set; S5. Use the training sample set and the optimized multi-source feature set to train a random forest model to classify pixels within the wetland range mask and obtain wetland classification results.
2. The method for rapid wetland identification by fusing SWOT satellite and Sentinel-2 imagery according to claim 1, characterized in that: The spatial intersection in step S1 includes: For any cell in the area to be identified, if the cell is simultaneously identified as a wetland by all participating land use data products, the cell is retained as a wetland cell. If any land use data product fails to classify a pixel as a wetland, that pixel will not be retained as a wetland area.
3. The method for rapid wetland identification by fusing SWOT satellite and Sentinel-2 imagery according to claim 1, characterized in that: The sample collection in step S2 includes: By combining visual interpretation of high-resolution images and results of field surveys, the wetland type and non-wetland category of the samples were determined; All samples are combined to form a total sample set, which is then divided into a training sample set and a validation sample set according to a preset ratio. The validation sample set does not participate in the classification model training.
4. The method for rapid wetland identification by fusing SWOT satellite and Sentinel-2 imagery according to claim 1, characterized in that: In step S3, the SWOT backscattering characteristics include spring SWOTsig0 backscattering characteristics, summer SWOTsig0 backscattering characteristics, and autumn SWOTsig0 backscattering characteristics.
5. The method for rapid wetland identification by fusing SWOT satellite and Sentinel-2 imagery according to claim 1, characterized in that: In step S3, the Sentinel-2 time series features include water body frequency features and vegetation frequency features; The water body frequency characteristics are the frequency of water body states at each spatial location within the observation period, based on Sentinel-2 time-series image statistics. The vegetation frequency characteristics are the frequency of vegetation characteristics exhibited at each spatial location within the observation period, based on Sentinel-2 time-series image statistics.
6. The method for rapid wetland identification by fusing SWOT satellite and Sentinel-2 imagery according to claim 1, characterized in that: In step S3, the terrain features include DEM elevation features and slope features.
7. The method for rapid wetland identification by fusing SWOT satellite and Sentinel-2 imagery according to claim 1, characterized in that: In step S4, the category separability analysis includes: The training samples are grouped according to categories, and the feature values of each candidate feature in different categories are counted. The category separability evaluation value of each candidate feature is calculated, and the category separability evaluation value is the ratio of the degree of difference between categories to the degree of difference within categories. The preferred multi-source feature set is selected based on the ranking of the category separability evaluation values.
8. The method for rapid wetland identification by fusing SWOT satellite and Sentinel-2 imagery according to claim 7, characterized in that: The candidate multi-source feature set contains 11-dimensional candidate features, and the preferred multi-source feature set contains 8-dimensional preferred features. The eight preferred features include spring SWOTsig0 backscattering features, summer SWOTsig0 backscattering features, autumn SWOTsig0 backscattering features, normalized difference vegetation index (NDVI) features, normalized difference water index (NDWI) features, water frequency features, vegetation frequency features, and DEM elevation features.
9. The method for rapid wetland identification by fusing SWOT satellite and Sentinel-2 imagery according to claim 1, characterized in that: Step S5 is followed by step S6: The wetland classification results are post-processed, including clustering and visual correction. The clustering and merging process involves aggregating spatially continuous pixels of the same type based on their spatial location relationship and classification category, and merging isolated classified patches. The visual correction involves spatially mapping the classification results to remote sensing images and sample information, and correcting the classification categories of misclassified areas.
10. A method for rapid wetland identification by fusing SWOT satellite and Sentinel-2 imagery according to claim 9, characterized in that: Step S6 is followed by step S7: The accuracy of the post-processed wetland classification results is evaluated using the validation sample set. A confusion matrix is established, and the overall accuracy, Kappa coefficient, user accuracy, and producer accuracy are calculated. The overall accuracy is compared with a preset accuracy threshold. When the overall accuracy meets the preset accuracy threshold, the final wetland classification result is output. When the overall accuracy does not meet the preset accuracy threshold, return to step S4, adjust the feature combination involved in classification, retrain the random forest classification model, and perform classification and accuracy evaluation to form a closed-loop feedback.
