Coastal zone remote sensing monitoring method based on gee and machine learning
The coastal zone remote sensing monitoring method based on GEE and U-Net classification models solves the problem of low efficiency in existing coastal zone remote sensing monitoring technologies, and realizes efficient and accurate automatic identification and classification of coastal zone features.
Patent Information
- Application Number
- CN202410680925.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-05-29
AI Technical Summary
Existing coastal zone remote sensing monitoring methods are inefficient in large-scale, long-term monitoring, and machine learning is insufficient for identifying coastal zone resources, failing to effectively automate and meticulously identify ground features.
Using a GEE- and machine learning-based approach, the U-Net classification model is used to preprocess and classify remote sensing image data. The model is trained using the cross-entropy loss function, and a comprehensive evaluation index is calculated by combining multiple accuracy indicators to achieve automatic identification and classification of coastal land features.
It significantly improves the efficiency of coastal zone resource monitoring and image data processing speed, reduces misjudgments and omissions, and enables more detailed and accurate identification of coastal zone features.
Smart Images

Figure CN118608952B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a coastal zone remote sensing monitoring method based on GEE and machine learning, belonging to the field of coastal zone remote sensing monitoring technology. Background Technology
[0002] As a transitional zone between ocean and land, the coastal zone, influenced by tidal fluctuations, possesses abundant resources and environmental conditions, inextricably linked to human survival and development. The interaction between land and sea leads to the formation of tidal flats, sensitive areas where land and sea meet. These flats are a crucial component of the coastal zone, a vital material foundation for coastal urban development, and an indispensable part of the ecological security system. As fertile ground for aquaculture, they provide ideal habitats for numerous bird species, forming an essential link in the natural food chain. During extreme storm surge events, tidal flats act as a natural barrier protecting coastal areas. However, large-scale coastal development activities have begun to impact the hydrodynamic conditions and ecological environment of coastal regions. Therefore, an accurate understanding of coastal zone resources is necessary for the scientific protection of coastal environmental resources.
[0003] Currently, commonly used methods for coastal zone resource surveys and monitoring mainly fall into two categories: on-site observation and remote sensing data monitoring. With the development of remote sensing and image processing technologies, machine learning, as one of the mainstream image processing methods, has brought new solutions to remote sensing land resource surveys. Machine learning, through learning and training on large amounts of remote sensing image data, can automatically learn and extract the features of land features, no longer relying on visual interpretation methods, thus greatly improving the accuracy of land feature identification.
[0004] However, the application of machine learning in the identification of land features in satellite remote sensing imagery is mostly concentrated on inland roads, houses, rivers, etc., and there is still a lack of long-term monitoring of large-scale coastal resources. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of the existing technology and provide a coastal zone remote sensing monitoring method based on GEE and machine learning. This method can automatically learn and extract coastal zone features from remote sensing images. Compared with traditional manual visual interpretation and collection and screening of remote sensing image data, it avoids cumbersome human labor consumption and significantly improves the efficiency of coastal zone resource monitoring and the processing speed of image data.
[0006] To achieve the above objectives, the present invention is implemented using the following technical solution:
[0007] This invention discloses a coastal zone remote sensing monitoring method based on GEE and machine learning, comprising the following steps:
[0008] Preprocessed remote sensing image data of the coastal zone to be monitored were acquired using the GEE platform.
[0009] The preprocessed remote sensing image data is input into the trained U-Net classification model to obtain the classification result;
[0010] After rasterization and edge-joining processing of the classification results, a complete classification and identification of coastal features is performed to achieve remote sensing monitoring of the coastal zone.
[0011] The training of the U-Net classification model includes the following steps:
[0012] Obtain the preprocessed training set;
[0013] Based on the training set, the pre-constructed U-Net classification model is trained using multiple sets of preset training parameters and cross-entropy loss function to obtain multiple trained U-Net classification models.
[0014] Calculate the comprehensive evaluation index value for each trained U-Net classification model;
[0015] The U-Net classification model with the highest comprehensive evaluation index value is taken as the final trained U-Net classification model.
[0016] Furthermore, obtaining the preprocessed training set includes the following steps:
[0017] Acquire typical remote sensing image data of the coastal zone;
[0018] Based on the typical remote sensing image data, the r grid data of r preset bands are obtained by cropping based on the preset first vector file; the first labeled r grid file is obtained by drawing the boundary line vector file of the mudflats and seawater; wherein, the preset bands include band B1, band B2, band B3, band B4, band B5 and band B7.
[0019] The raster data of r preset bands and the first tag raster file are read respectively to obtain r m*n first two-dimensional data fields and 1 m*n first two-dimensional tag field;
[0020] Based on r m*n first two-dimensional data domains and 1 m*n first two-dimensional label domain, a three-dimensional m*n*A visual cognition dataset is obtained; where m represents the number of pixels in the longitude direction of the image; n represents the number of pixels in the latitude direction of the image; A represents the band dimension, A=r+1, and r represents the number of preset bands.
[0021] Based on the preset sample size dx, the visual cognition dataset is traversed and cropped to obtain the cropped visual cognition dataset.
[0022] After performing spatial rotation, scaling, and cropping operations on the cropped visual cognition dataset, the dataset is then merged to obtain the initial training set.
[0023] Normalize the data of each pixel in each band dimension of the initial training set to obtain the normalized training set;
[0024] Tensor quantization is performed on the normalized training set to obtain the final preprocessed training set.
[0025] Furthermore, the cropped visual cognition dataset includes N three-dimensional samples of size dx*dx*A, where dx represents the sample size and N represents the number of samples, expressed as follows:
[0026]
[0027] In the formula, Indicates the number of sliding steps in the longitude direction. m represents the number of pixels along the longitude direction of the image; Indicates the number of sliding steps in the latitudinal direction. , where n represents the number of pixels in the latitude direction of the image.
[0028] Furthermore, the expression for the normalization process is as follows:
[0029]
[0030] In the formula, This represents the normalized image metadata; This indicates unprocessed metadata; This represents the maximum value of metadata; This represents the minimum value of metadata.
[0031] Furthermore, the expression for the cross-entropy loss function is as follows:
[0032]
[0033] In the formula, Represents the cross-entropy loss function; Indicates the number of samples; Represents the reference label of the i-th sample; This represents the probability value predicted by the U-Net classification model for the i-th sample.
[0034] Furthermore, the U-Net classification model includes:
[0035] The encoder, which includes multiple convolutional and pooling layers, is used to extract features and downsample remote sensing image data to obtain low-resolution images.
[0036] The decoder, comprising multiple convolutional layers and upsampling layers, is skip-connected to the encoder to upsample and reconstruct features from the low-resolution image to obtain a classification result.
[0037] Furthermore, calculating the comprehensive evaluation index value of each trained U-Net classification model includes the following steps:
[0038] For any trained U-Net classification model, input samples are used to calculate the corresponding confusion matrix; wherein, the confusion matrix includes the number of pixels TP that correctly identify specific features, the number of pixels FN that incorrectly identify non-specific features, the number of pixels FP that incorrectly identify specific features, and the number of pixels TN that correctly identify non-specific features.
[0039] Based on the confusion matrix, multiple single precision index values are calculated; wherein, the single precision index includes overall accuracy (OA), precision (Precision), recall (Recall), F1 score (F1), Kappa coefficient (Kappa), false positive rate (FPR), area under the curve (AUC), and Youden index (Jude Index).
[0040] The weight of each single precision index is calculated by calculating the entropy value of each single precision index across multiple samples.
[0041] Based on the weights corresponding to all individual precision indicators, the expression for the comprehensive evaluation index is obtained.
[0042] Furthermore, the expression for the entropy value is as follows:
[0043]
[0044] In the formula, Represents the entropy value of the j-th single precision index; Indicates the order index of the sample; Indicates the number of samples; This represents the j-th single-precision index value corresponding to the i-th sample;
[0045] The expression for the weight is as follows:
[0046]
[0047] In the formula, represents the weight of the j-th single precision index; m represents the number of single precision indexes.
[0048] Furthermore, the comprehensive evaluation indicators The expression is as follows:
[0049]
[0050] In the formula, The numbers represent: overall accuracy; precision; recall; F1 score; Kappa coefficient; FPR (false positive rate); AUC (area under the ROC curve); and Youden index.
[0051] This indicates the weight corresponding to the overall accuracy (OA). This represents the weight corresponding to the precision. This indicates the weight corresponding to the recall rate; This indicates the weight corresponding to the F1 score; This represents the weight corresponding to the Kappa coefficient; The weights corresponding to the false positive rate (FPR) are indicated. This represents the weight corresponding to the area under the curve (AUC). This indicates the weights corresponding to the Jude Index;
[0052] The expression for the overall accuracy OA is as follows:
[0053]
[0054] In the formula, TP represents the number of pixels that correctly identify a specific feature; FP represents the number of pixels that incorrectly identified non-specified features; TN represents the number of pixels that incorrectly identified specified features; FP represents the number of pixels that correctly identified non-specified features.
[0055] The expression for the precision is as follows:
[0056]
[0057] The expression for recall is as follows:
[0058]
[0059] The expression for the F1 score is as follows:
[0060]
[0061] The expression for the Kappa coefficient is as follows:
[0062]
[0063]
[0064] The expression for the false positive rate (FPR) is as follows:
[0065]
[0066] The expression for the Jude Index is as follows:
[0067] .
[0068] Furthermore, the acquisition of preprocessed remote sensing image data of the coastal zone to be monitored based on the GEE platform includes the following steps:
[0069] Acquire raw image data and corresponding geographic information of the coastal zone to be monitored;
[0070] The original remote sensing image data is filtered using the GEE platform based on a preset filtering function tool, and then cropped based on a preset first vector file to obtain cropped remote sensing image data.
[0071] Based on the preset sample size, the cropped remote sensing image data is spatially gridded to obtain gridded remote sensing image data.
[0072] The gridded remote sensing image data is normalized and tensed to obtain preprocessed remote sensing image data.
[0073] Compared with the prior art, the beneficial effects achieved by the present invention are as follows:
[0074] The coastal zone remote sensing monitoring method based on GEE and machine learning of this invention firstly utilizes the GEE platform to rapidly preprocess remote sensing image data of the coastal zone to be monitored. Secondly, based on a trained U-Net classification model, it can automatically learn and extract coastal zone features from remote sensing images. Compared to traditional manual visual interpretation and data collection and screening, this avoids cumbersome manual labor and significantly improves the efficiency of coastal zone resource monitoring and image data processing speed. Simultaneously, the automated machine learning of the U-Net classification model enables dynamic monitoring of coastal zone resources. Compared to traditional manual interpretation methods and methods based on image band combinations, this method can more meticulously and accurately identify and classify different features in remote sensing images, reducing misjudgments and omissions. Attached Figure Description
[0075] Figure 1 This is a flowchart illustrating the coastal zone remote sensing monitoring method based on GEE and machine learning provided in the embodiment.
[0076] Figure 2 This is a schematic diagram of the first and second vector files provided in the embodiment.
[0077] Figure 3 This is a schematic diagram of the structure of the U-Net classification model provided in the embodiment.
[0078] Figure 4 This is a comparison diagram of the accuracy evaluation and spatial distribution identification of the present invention and the traditional image band combination method provided in the embodiment.
[0079] Figure 5 This is a schematic diagram of spatial gridding provided in the embodiment.
[0080] Figure 6 This is a schematic diagram illustrating the monitoring process and results provided in the embodiment. Detailed Implementation
[0081] The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and should not be used to limit the scope of protection of the present invention.
[0082] This embodiment provides a coastal zone remote sensing monitoring method based on GEE and machine learning, including the following steps:
[0083] Preprocessed remote sensing image data of the coastal zone to be monitored were acquired using the GEE platform.
[0084] The preprocessed remote sensing image data is input into the trained U-Net classification model to obtain the classification results;
[0085] After rasterization and edge-joining of the classification results, a complete classification and identification of coastal features is performed to achieve remote sensing monitoring of the coastal zone.
[0086] The training of the U-Net classification model includes the following steps:
[0087] Obtain the preprocessed training set;
[0088] Based on the training set, the pre-built U-Net classification model is trained using multiple preset training parameters and cross-entropy loss function to obtain multiple trained U-Net classification models.
[0089] Calculate the comprehensive evaluation index value for each trained U-Net classification model;
[0090] The U-Net classification model with the highest comprehensive evaluation index value is taken as the final trained U-Net classification model.
[0091] The technical concept of this invention is as follows: First, the application of the GEE platform enables rapid preprocessing of remote sensing image data of the coastal zone to be monitored. Second, based on a trained U-Net classification model, it can automatically learn and extract coastal zone features from remote sensing images. Compared with traditional manual visual interpretation and data collection and screening, this avoids cumbersome manual labor and significantly improves the efficiency of coastal zone resource monitoring and the processing speed of image data. Simultaneously, the automated machine learning of the U-Net classification model enables dynamic monitoring of coastal zone resources. Compared with traditional manual interpretation methods and methods based on image band combinations, it can more meticulously and accurately identify and classify different features in remote sensing images, reducing misjudgments and omissions.
[0092] like Figure 1 As shown, the specific steps are as follows:
[0093] Step 1: Data processing.
[0094] 1.1 In ArcGIS, based on the study area, create clipped vector files by generating features. The yellow area represents the first vector file, and the red-lined area represents the second vector file. For example... Figure 2 As shown.
[0095] Upload the first and second vector files to the USGS website and limit the cloud cover to below 50 to obtain typical remote sensing image data of the coastal zone. In this example, Landsat8OLI data from August 5, 2022 is selected, and the image data of each band is saved locally in raster form.
[0096] 1.2. Based on the preset first and second vector files, the preset band raster data of typical remote sensing image data is cropped in ArcGIS using the "Extract by Mask" tool to a size consistent with the two vector files. The boundaries of mudflats and seawater in the image are then drawn as line vector files based on visual interpretation. Raster files are created based on these line vector features, and labeling is performed. Specifically, the value of the area represented by seawater is set to '1', and the values of the remaining areas are set to '0'. The raster file corresponding to the first vector file is the first label raster file, and the raster file corresponding to the second vector file is the second label raster file.
[0097] In this embodiment, there are six preset bands, including bands B1, B2, B3, B4, B5, and B7, as shown in the table below:
[0098] Table 1 Image Band Information
[0099]
[0100] 1.3. Using the OpenCV library in Python, the raster data of 6 preset bands at 30m resolution and the first label raster file in typical remote sensing image data are read to obtain 6 m*n first two-dimensional data fields and 1 m*n first two-dimensional label field; where m represents the number of pixels in the longitude direction of the image and n represents the number of pixels in the latitude direction of the image.
[0101] In Python, the OpenCV library is used to read the raster data and second label raster file of 6 preset bands at 30m resolution from typical remote sensing image data, resulting in 6 m*n second two-dimensional data fields and 1 m*n second two-dimensional label field.
[0102] 1.4. In Python, use the Gdal library to obtain the geographic information and domain size of the data domain and label domain in 1.3. Based on these two information, construct a blank three-dimensional dataset domain of m*n*7, where 7 is the band dimension.
[0103] Write 6 m*n first two-dimensional data fields and 1 m*n first two-dimensional label field into a blank three-dimensional dataset field to obtain a visual cognition dataset.
[0104] Write 6 m*n first two-dimensional data fields and 1 m*n first two-dimensional label field into another blank three-dimensional dataset field to obtain the reference dataset.
[0105] 1.5 Read the visual cognition dataset, use Gdal to obtain the corresponding geographic information (radiative transformation parameters and projection information), and based on the preset sample size dx, traverse the visual cognition dataset and perform cropping to obtain the cropped visual cognition dataset.
[0106] The cropped visual cognition dataset includes N three-dimensional samples of size dx*dx*A, where dx represents the sample size and N represents the number of samples, expressed as follows:
[0107]
[0108] In the formula, Indicates the number of sliding steps in the longitude direction. m represents the number of pixels along the longitude direction of the image; Indicates the number of sliding steps in the latitudinal direction. , where n represents the number of pixels in the latitude direction of the image.
[0109] Similarly, the reference dataset is read, and the corresponding geographic information (radiative transformation parameters and projection information) is obtained using Gdal. Based on the preset sample size dx, the reference dataset is traversed and cropped to obtain the cropped reference dataset, which is the test set.
[0110] 1.6 The cropped visual cognition dataset is randomly divided into training set 1 and validation set 1 in a 6:4 ratio. Spatial rotation, scaling and cropping operations are performed on both sets to increase the quantity and diversity of the dataset, thereby improving the generalization ability and robustness of the model.
[0111] Specifically, in Python, the coordinates, projections, and dimensions of a single sample domain from training set 1 and validation set 1 are read, and a blank domain identical to these domains but without any data is created.
[0112] Transpose the data matrices in training set 1 and validation set 1 to achieve spatial rotation, and write them into the blank field to form training set 11 and validation set 11;
[0113] The number of matrices in training set 1 and validation set 1 is increased to several times the original number. In this example, it is set to 3 times to achieve the scaling effect, and blank fields are written to form training set 12 and validation set 12.
[0114] The data matrices in training set 1 and validation set 1 are cropped according to the method in 1.5, with a random step size dx0, and the data is scaled proportionally to the original dataset size to achieve the cropping effect. The data is then written into the blank fields to form training set 13 and validation set 13.
[0115] The three processed datasets are merged with training set 1 and validation set 1 to form the initial training set and validation set.
[0116] 1.7. Normalize the data for each pixel in each band dimension of the initial training set to obtain the normalized training set; the expression for normalization is as follows:
[0117]
[0118] In the formula, This represents the normalized image metadata; This indicates unprocessed metadata; This represents the maximum value of metadata; This represents the minimum value of metadata.
[0119] Similarly, the data of each pixel in each band dimension of the initial validation set is normalized to obtain the normalized validation set.
[0120] 1.8. In Python, use the '.Tensor()' function in the PyTorch library to tensorize the normalized training and validation sets to obtain the final preprocessed training and validation sets.
[0121] Taking the normalized training set as an example, the 3D data domain of the normalized training set is specifically formatted as '7*n*m' (i.e., band dimension * number of pixels in the dimensional direction * number of pixels in the longitude direction) as input data. The batch dimension is then increased, changing the data format to 'b*7*n*m', where b is the batch dimension, representing the number of data domains processed simultaneously. This process utilizes the parallel computing capabilities of the GPU, thereby improving the model's training efficiency.
[0122] Step 2: Model training.
[0123] 2.1, such as Figure 3 As shown, a U-Net classification model is built in the PyTorch platform. The U-Net classification model is a special type of convolutional neural network in deep learning. Its network structure mainly consists of a symmetrical encoder and decoder, with skip connections between the decoder and encoder. The encoder uses several convolutional and pooling layers to extract features and downsample the image dataset, reducing the image resolution. The decoder uses several convolutional and upsampling layers to upsample and reconstruct features from the low-resolution image obtained by the encoder, outputting classification result data with the same size as the original image dataset.
[0124] 2.2 Setting the network parameters of the U-Net classification model: In this embodiment, the kernel size of the convolutional layer is set to '3×3', the stride is set to 1, and a layer of '0' values is filled; the filter size of the pooling layer is set to '3×3', the stride is set to '2', and a layer of '0' values is filled; the ReLU function is selected as the activation function.
[0125] 2.3. Based on the training set, the pre-constructed U-Net classification model is trained using multiple sets of preset training parameters and cross-entropy loss function to obtain multiple trained U-Net classification models.
[0126] The training parameters in this embodiment include sample size, band dimension, network depth, network breadth, learning step size, and iteration period.
[0127] Specifically, the dataset sizes were set to 32, 64, 128, 256, and 512; the band dimensions were set to 1, 2, 3, 7, and 8; the network breadth (number of convolutional layers) was set to 2, 3, 4, and 5; the network depth (number of pooling layers) was set to 2, 3, 4, and 5; the training stride was set to 0.002, 0.005, 0.008, 0.01, 0.02, 0.03, 0.04, 0.05, 0.07, 0.09, and 0.1; and the iteration period was set to 50, 100, 200, 500, 1000, 2000, 3000, 4000, and 5000. During each training iteration, a single variable was controlled while other variables remained constant, and the process was repeated.
[0128] Based on each set of predefined training parameters, the pre-built U-Net classification model is trained using the cross-entropy loss function, according to the training set. The expression for the cross-entropy loss function is as follows:
[0129]
[0130] In the formula, Represents the cross-entropy loss function; Indicates the number of samples; Represents the reference label of the i-th sample; This represents the probability value predicted by the U-Net classification model for the i-th sample.
[0131] The cross-entropy loss function describes how the model's probability distribution deviates from the label class in relation to the actual class. The model is then repeatedly trained based on this result until the loss function curve no longer diverges.
[0132] Each training result output by the U-Net classification model is converted into a raster format using the Gdal library in Python. The raster file is then input into Arcpy using the '.MosaicToNewRaster_management()' function. The pixel values of the overlapping regions are set to the maximum value of the overlapping pixels. The prediction results are then stitched together to restore the size to be consistent with the first vector file.
[0133] Finally, we obtain the trained U-Net classification models corresponding to multiple sets of training parameters.
[0134] 2.4 For any of the trained U-Net classification models in 2.3, input samples to calculate the corresponding confusion matrix; wherein, the confusion matrix includes the number of pixels TP that correctly identify specific land features, the number of pixels FN that incorrectly identify non-specified land features, the number of pixels FP that incorrectly identify specified land features, and the number of pixels TN that correctly identify non-specified land features;
[0135] Based on the confusion matrix, several single precision metrics are calculated; among them, single precision metrics include overall accuracy (OA), precision (Precision), recall (Recall), F1 score (F1), Kappa coefficient (Kappa), false positive rate (FPR), area under the curve (AUC), and Youden index (Jude Index).
[0136] 2.4.1 Overall Accuracy (OA) represents the proportion of correctly classified samples out of the total number of samples. It measures the overall classification accuracy of the model across all categories, and its expression is as follows:
[0137]
[0138] In the formula, TP represents the number of pixels that correctly identify a specific feature; FP represents the number of pixels that incorrectly identified non-specified features; TN represents the number of pixels that incorrectly identified specified features; FP represents the number of pixels that correctly identified non-specified features.
[0139] The OA result ranges from 0 to 1. The closer the value is to 1, the higher the overall accuracy of the model. It is one of the simplest and most intuitive classification performance indicators. However, in some cases, it may not fully reflect the classification effect, especially in cases of class imbalance or the presence of outlier classes.
[0140] 2.4.2 Precision represents the proportion of samples predicted as water bodies that are actually water bodies. The expression is as follows:
[0141]
[0142] The value of Precision ranges from 0 to 1. The closer the value is to 1, the more likely the model is to actually classify samples as water bodies, indicating higher accuracy. Unlike OA, Precision focuses more on the accuracy of the model's classification of water bodies and is not affected by the classification of non-water bodies.
[0143] 2.4.3 Recall refers to the proportion of samples that are actually water bodies that are correctly predicted as water bodies by the model. The expression is as follows:
[0144]
[0145] The value of Recall ranges from 0 to 1. A value closer to 1 indicates a better classification performance for water bodies, meaning the model is more likely to capture samples that are actually water. Recall is an important metric, particularly useful in applications highly sensitive to false negatives (incorrectly identifying non-water bodies). There is a trade-off between Recall and Precision; in some cases, increasing Recall may lead to a decrease in Precision, and vice versa.
[0146] 2.4.4 The F1 score is an evaluation metric that comprehensively considers precision and recall. It is the harmonic mean of the two, aiming to balance the accuracy of the classification model with its recall ability for water body classification. The expression is as follows:
[0147]
[0148] The F1 score ranges from 0 to 1. The closer the value is to 1, the better the model balances precision and recall, and the higher its robustness.
[0149] 2.4.5 Kappa coefficient is a statistical metric used to evaluate the performance of classification models, primarily measuring the consistency between the model's predictions and random predictions. Kappa is commonly used to address the problem of imbalanced class distributions in classification models. Its expression is as follows:
[0150]
[0151]
[0152] The Kappa coefficient ranges from -1 to 1, but generally falls within [0,1]. A larger Kappa coefficient indicates a higher consistency between the model's prediction and the actual classification.
[0153] 2.4.6 False Positive Rate (FPR) refers to the proportion of samples that are actually non-water bodies but are incorrectly predicted as water bodies by the model. It is an evaluation metric in binary classification problems, also known as the false alarm rate, and its expression is as follows:
[0154]
[0155] The FPR value ranges from 0 to 1. A higher FPR value indicates a lower accuracy in the model's predictions.
[0156] 2.4.7. The ROC (Receiver Operating Characteristic) curve is a curve used to measure the performance of a classification model. It is mainly used for binary classification problems, and the performance of the model is shown by plotting the Recall and FPR curves at different classification thresholds.
[0157] Plotting the ROC curve requires continuously adjusting the threshold. Each threshold corresponds to a confusion matrix and a set of FPR and Recall. Discrete FPR and Recall are plotted as a curve, and the area under the ROC curve is called the area under the curve (AUC), which is used to measure the classification performance of the classification model at different thresholds. Its result ranges from [0,1].
[0158] 2.4.8 To further understand the model's classification performance and the issue of sample imbalance, it is necessary to obtain the optimal threshold under the ROC curve. The difference between the model and the FPR is the largest. At this point, the model can capture the minority class without affecting the classification performance of other classes. The difference between the Jude Index and the FPR is the Youden Index, expressed as follows:
[0159] .
[0160] 2.5 To objectively and comprehensively consider the evaluation effect of each single precision index on the model results, a multi-index comprehensive evaluation (the Entropy Weight Method, EWM) is adopted to comprehensively evaluate the multi-index calculation results under different methods.
[0161] First, we need to standardize (normalize) each individual precision index to make them comparable. Second, we calculate the entropy value of each individual precision index using EWM. The entropy calculation takes into account the relative proportion of each observation under each index, thus having greater universality. Based on this, we introduce weighting factors to reflect the relative importance of each individual precision index in the overall evaluation. The weights can be determined through expert subjective assignment or other reasonable methods.
[0162] By calculating the entropy value of each single-precision index across multiple samples, the weight corresponding to each single-precision index is determined. Based on the weights corresponding to all single-precision indices, the expression for the comprehensive evaluation index is obtained, as follows:
[0163] This embodiment involves a total of 8 single-precision indices. The expression for the entropy value of the j-th single-precision index is as follows:
[0164]
[0165] In the formula, Represents the entropy value of the j-th single precision index; Indicates the order index of the sample; Indicates the number of samples; This represents the j-th single precision index value corresponding to the i-th sample.
[0166] The expression for the weight of the j-th single-precision index is as follows:
[0167]
[0168] In the formula, represents the weight of the j-th single precision index; m represents the number of single precision indexes.
[0169] Furthermore, comprehensive evaluation indicators The expression is as follows:
[0170]
[0171] In the formula, The numbers represent: overall accuracy; precision; recall; F1 score; Kappa coefficient; FPR (false positive rate); AUC (area under the ROC curve); and Youden index.
[0172] This indicates the weight corresponding to the overall accuracy (OA). This represents the weight corresponding to the precision. This indicates the weight corresponding to the recall rate; This indicates the weight corresponding to the F1 score; This represents the weight corresponding to the Kappa coefficient; The weights corresponding to the false positive rate (FPR) are indicated. This represents the weight corresponding to the area under the curve (AUC). This indicates the weight corresponding to the Jude Index.
[0173] After calculating the weighted entropy values of each indicator, we can rank the methods according to their weighted entropy values to obtain a comprehensive ranking of classification performance. In this embodiment, the final calculated... for ; for ; for ; for ; for ; for ; for ; for .
[0174] 2.6. The U-Net classification model with the highest comprehensive evaluation index value after training is taken as the final trained U-Net classification model.
[0175] 2.7 Input the validation and test sets obtained in step 1 into the U-Net classification model trained in step 2.6, and calculate the comprehensive evaluation index value. If the comprehensive evaluation index value is less than the preset index threshold, repeat step 2 for further adjustment. The image data represented by the test set is set to a different region from the data represented by the training and validation sets. This process aims to improve the model's generalization ability in different regions.
[0176] 3. Practical application.
[0177] 3.1 Acquire preprocessed remote sensing image data of the coastal zone to be monitored using the GEE platform, including:
[0178] Acquire raw image data and corresponding geographic information of the coastal zone to be monitored;
[0179] Using the GEE platform, the original remote sensing image data is filtered based on the preset filtering function tool, and then cropped based on the preset first vector file to obtain the cropped remote sensing image data.
[0180] Based on the preset sample size, the cropped remote sensing image data is spatially gridded to obtain gridded remote sensing image data.
[0181] The gridded remote sensing image data is normalized and tensed to obtain preprocessed remote sensing image data.
[0182] Google Earth Engine (GEE) is a cloud computing platform jointly developed by Google, Carnegie Mellon University, and the U.S. Geological Survey (USGS) for processing satellite remote sensing imagery and other Earth observation data. GEE leverages the powerful computing capabilities of Google servers and extensive cloud computing resources. Its datasets provide a wealth of complete imagery data from Earth observation satellites such as Sentinel, MODIS, and Landsat, as well as datasets on vegetation, surface temperature, and socioeconomic data, and are updated daily. GEE offers Python and JavaScript APIs, enabling rapid, interactive algorithm development using a web-based code editor. It handles massive amounts of data, provides online access, and utilizes a wide range of data sources.
[0183] Specifically, firstly, the GEE platform API is called using Python to input the first vector file into the GEE platform. Then, the image data is further filtered using the 'ee.Filter.lt('CLOUD_COVER',45)' function to limit the cloud cover to below 45. Finally, the '.clip()' function is used to filter and crop the cloud image data, ensuring that the cropping value matches the second vector file size, thus obtaining the cropped remote sensing image data.
[0184] Secondly, the geographic information of the image data is accessed, and the dataset is spatially gridded using the function tool '.coveringGrid()', such as... Figure 5 As shown, each grid cell is set to 64 pixels, consistent with the sample size of the model adjustment results. The cloud dataset is then converted to a local array format using the 'geemap.ee_to_numpy()' function to obtain the gridded remote sensing image data.
[0185] Finally, the gridded remote sensing image data is normalized and tensed, consistent with steps 1.7 and 1.8, to obtain the preprocessed remote sensing image data.
[0186] 3.2 Input the preprocessed remote sensing image data into the trained U-Net classification model to obtain the classification results.
[0187] 3.3 After rasterization and edge-joining of the classification results, a complete classification and identification of coastal zone features is performed to achieve coastal zone remote sensing monitoring. The monitoring process and results are shown below. Figure 6 As shown.
[0188] Compared to traditional image band combination methods for accuracy evaluation and spatial distribution identification, for example... Figure 4 As shown, the U-Net classification model in this embodiment achieves 0.1111 higher accuracy in coastal land cover identification and monitoring. Whether from the perspective of spatial planar qualitative distribution evaluation or quantitative comprehensive evaluation index, the U-Net model can accurately acquire the morphology of coastal mudflats compared to other machine learning methods.
[0189] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0190] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0191] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0192] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0193] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A coastal zone remote sensing monitoring method based on GEE and machine learning, characterized by: Includes the following steps: Preprocessed remote sensing image data of the coastal zone to be monitored were acquired using the GEE platform. The preprocessed remote sensing image data is input into the trained U-Net classification model to obtain the classification result; After rasterization and edge-joining processing of the classification results, complete classification and identification of coastal features are performed to achieve remote sensing monitoring of the coastal zone. The training of the U-Net classification model includes the following steps: Obtain the preprocessed training set; Based on the training set, the pre-constructed U-Net classification model is trained using multiple sets of preset training parameters and cross-entropy loss function to obtain multiple trained U-Net classification models. Calculate the comprehensive evaluation index value for each trained U-Net classification model; The U-Net classification model with the highest comprehensive evaluation index value is taken as the final trained U-Net classification model. The process of obtaining the preprocessed training set includes the following steps: Acquire typical remote sensing image data of the coastal zone; Based on the typical remote sensing image data, the r grid data of r preset bands are obtained by cropping based on the preset first vector file; the first labeled r grid file is obtained by drawing the boundary line vector file of the mudflats and seawater; wherein, the preset bands include band B1, band B2, band B3, band B4, band B5 and band B7. The raster data of r preset bands and the first tag raster file are read respectively to obtain r m*n first two-dimensional data fields and 1 m*n first two-dimensional tag field; Based on r m*n first two-dimensional data domains and 1 m*n first two-dimensional label domain, a three-dimensional m*n*A visual cognition dataset is obtained; where m represents the number of pixels in the longitude direction of the image; n represents the number of pixels in the latitude direction of the image; A represents the band dimension, A=r+1, and r represents the number of preset bands. Based on the preset sample size dx, the visual cognition dataset is traversed and cropped to obtain the cropped visual cognition dataset. After performing spatial rotation, scaling, and cropping operations on the cropped visual cognition dataset, the dataset is then merged to obtain the initial training set. Normalize the data of each pixel in each band dimension of the initial training set to obtain the normalized training set; Tensor quantization is performed on the normalized training set to obtain the final preprocessed training set.
2. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 1, characterized in that, The cropped visual cognition dataset includes N three-dimensional samples of size dx*dx*A, where dx represents the sample size and N represents the number of samples, as expressed below: ; In the formula, Indicates the number of sliding steps in the longitude direction. m represents the number of pixels along the longitude direction of the image; Indicates the number of sliding steps in the latitudinal direction. , where n represents the number of pixels in the latitude direction of the image.
3. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 1, characterized in that, The expression for the normalization process is as follows: ; In the formula, This represents the normalized image metadata; This indicates unprocessed metadata; This represents the maximum value of metadata; This represents the minimum value of metadata.
4. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 1, characterized in that, The expression for the cross-entropy loss function is as follows: ; In the formula, Represents the cross-entropy loss function; Indicates the number of samples; Represents the reference label of the i-th sample; This represents the probability value predicted by the U-Net classification model for the i-th sample.
5. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 1, characterized in that, The U-Net classification model includes: The encoder, which includes multiple convolutional and pooling layers, is used to extract features and downsample remote sensing image data to obtain low-resolution images. The decoder, comprising multiple convolutional layers and upsampling layers, is skip-connected to the encoder to upsample and reconstruct features from the low-resolution image to obtain a classification result.
6. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 1, characterized in that, The calculation of the comprehensive evaluation index value for each trained U-Net classification model includes the following steps: For any trained U-Net classification model, input samples to calculate the corresponding confusion matrix; wherein, the confusion matrix includes the number of pixels TP that correctly identify the specified land cover, the number of pixels FN that incorrectly identify the non-specified land cover, the number of pixels FP that incorrectly identify the specified land cover, and the number of pixels TN that correctly identify the non-specified land cover; Based on the confusion matrix, multiple single precision index values are calculated; wherein, the single precision index includes overall accuracy (OA), precision (Precision), recall (Recall), F1 score (F1), Kappa coefficient (Kappa), false positive rate (FPR), area under the curve (AUC), and Youden index (Jude Index). The weight of each single precision index is calculated by calculating the entropy value of each single precision index across multiple samples. Based on the weights corresponding to all individual precision indicators, the expression for the comprehensive evaluation index is obtained.
7. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 6, characterized in that, The expression for the entropy value is as follows: ; In the formula, Represents the entropy value of the j-th single precision index; Indicates the order index of the sample; Indicates the number of samples; This represents the j-th single-precision index value corresponding to the i-th sample; The expression for the weight is as follows: ; In the formula, represents the weight of the j-th single precision index; m represents the number of single precision indexes.
8. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 6, characterized in that, The comprehensive evaluation indicators The expression is as follows: ; In the formula, Indicates overall accuracy; Precision represents precision; Recall represents recall; F1 represents F1 score; Kappa represents the Kappa coefficient; FPR represents the false positive rate; AUC represents the area under the ROC curve; Jude Index represents the Youden index. This indicates the weight corresponding to the overall accuracy (OA). This represents the weight corresponding to the precision. This indicates the weight corresponding to the recall rate; This indicates the weight corresponding to the F1 score; This represents the weight corresponding to the Kappa coefficient; The weights corresponding to the false positive rate (FPR) are indicated. This represents the weight corresponding to the area under the curve (AUC). This indicates the weights corresponding to the JudeIndex; The expression for the overall accuracy OA is as follows: ; In the formula, TP represents the number of pixels that correctly identify the specified ground features; FP represents the number of pixels that were incorrectly identified as non-designated features; TN represents the number of pixels that were incorrectly identified as designated features; The expression for the precision is as follows: ; The expression for recall is as follows: ; The expression for the F1 score is as follows: ; The expression for the Kappa coefficient is as follows: ; ; The expression for the false positive rate (FPR) is as follows: ; The expression for the Jude Index is as follows: 。 9. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 1, characterized in that, The process of acquiring preprocessed remote sensing image data of the coastal zone to be monitored based on the GEE platform includes the following steps: Acquire raw image data and corresponding geographic information of the coastal zone to be monitored; The original remote sensing image data is filtered using the GEE platform based on a preset filtering function tool, and then cropped based on a preset first vector file to obtain cropped remote sensing image data. Based on the preset sample size, the cropped remote sensing image data is spatially gridded to obtain gridded remote sensing image data. The gridded remote sensing image data is normalized and tensed to obtain preprocessed remote sensing image data.
Citation Information
Patent Citations
Shoreline remote sensing automatic identification and analysis method based on cloud platform and deep learning
CN116503755A
