Coastal zone remote sensing monitoring method based on GEE and machine learning
Through the coastal zone remote sensing monitoring method of GEE and machine learning, the U-Net classification model is used to automatically learn and identify the characteristics of coastal zone features, which solves the problem of insufficient efficiency and accuracy of coastal zone resource monitoring in the existing technology, and achieves efficient Dynamic monitoring of coastal zone resources.
Patent Information
- Application Number
- CN202410680925.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-29
AI Technical Summary
Existing technologies have shortcomings in long-term monitoring of coastal zone resources, especially the accuracy and efficiency of dynamic monitoring of large-scale coastal zone resources.
Adopt a coastal zone remote sensing monitoring method based on GEE and machine learning, use the GEE platform to obtain pre-processed remote sensing image data, and use the trained U-Net classification model to automatically learn and identify features of coastal features, reducing labor consumption. , improve monitoring efficiency and accuracy.
It has significantly improved the efficiency of coastal resource monitoring and image data processing speed, and can more carefully and accurately identify and classify different features in remote sensing images, reducing misjudgments and missed judgments.
Smart Images

Figure CN118608952A
Abstract
Description
Technical Field
[0001] The invention relates to a coastal zone remote sensing monitoring method based on GEE and machine learning, and belongs to the technical field of coastal zone remote sensing monitoring. Background Art
[0002] As a transition zone between the ocean and the land, the coastal zone presents rich resources and environmental conditions under the influence of tidal fluctuations, and is closely related to human survival and development. The interaction between land and ocean leads to the formation of tidal flats, which are sensitive areas where land and sea meet. They are an important part of the coastal zone, an important material basis for the development of coastal cities, and an indispensable part of the ecological security system. As a fertile base for aquaculture and production, they provide an ideal habitat for many birds and are an indispensable link in the natural ecological chain. When extreme storm surge events occur, tidal flats serve as a natural barrier to protect coastal areas. However, large-scale coastal development activities have begun to affect the water and sand dynamic conditions and ecological environment in coastal areas. Therefore, it is necessary to accurately understand the situation of coastal resources in order to scientifically protect coastal environmental resources.
[0003] At present, the commonly used methods of coastal resource survey and monitoring are mainly divided into on-site field observation and remote sensing data monitoring. With the development of remote sensing technology and image processing technology, machine learning, as one of the mainstream methods of image processing, has brought new solutions to remote sensing land resource survey. Machine learning can automatically learn and extract the features of land objects by learning and training a large amount of remote sensing image data, no longer relying on the extraction method of visual interpretation, greatly improving the accuracy of land object recognition.
[0004] However, the application of machine learning in the identification of objects in satellite remote sensing images is mostly concentrated on inland roads, houses, rivers, etc., and there are still deficiencies in the long-term monitoring of large-scale coastal resources. Summary of the invention
[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a coastal remote sensing monitoring method based on GEE and machine learning, which can automatically learn and extract coastal land features in remote sensing images. Compared with traditional manual visual interpretation and collection and screening of remote sensing image data, it avoids complicated manpower consumption and significantly improves the efficiency of coastal resource monitoring and the processing speed of image data.
[0006] To achieve the above object, the present invention is implemented by adopting the following technical solutions:
[0007] The present invention discloses a coastal zone remote sensing monitoring method based on GEE and machine learning, comprising the following steps:
[0008] Based on the GEE platform, obtain the pre-processed remote sensing image data of the coastal zone to be monitored;
[0009] Inputting the preprocessed remote sensing image data into a trained U-Net classification model to obtain a classification result;
[0010] After the classification results are subjected to raster conversion and edge processing, the complete coastal zone features are classified and identified to achieve coastal zone remote sensing monitoring;
[0011] The training of the U-Net classification model includes the following steps:
[0012] Get the preprocessed training set;
[0013] According to the training set, based on multiple sets of preset training parameters and cross entropy loss functions, the pre-constructed U-Net classification model is trained to obtain multiple trained U-Net classification models;
[0014] Calculate the comprehensive evaluation index value of each trained U-Net classification model;
[0015] The trained U-Net classification model with the highest comprehensive evaluation index value is used as the final trained U-Net classification model.
[0016] Furthermore, the obtaining of the preprocessed training set comprises the following steps:
[0017] Obtain typical remote sensing image data of the coastal zone;
[0018] According to the typical remote sensing image data, clipping is performed based on a preset first vector file to obtain r preset bands of r raster data; labeling is performed by drawing a boundary line vector file of the tidal flat and the sea water to obtain a first label raster file; wherein the preset bands include band B1, band B2, band B3, band B4, band B5 and band B7;
[0019] The raster data of the r preset bands and the first label raster file are read respectively to obtain r m*n first two-dimensional data domains and 1 m*n first two-dimensional label domain;
[0020] According to 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 data set is obtained; wherein 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 a preset sample size dx, traverse the visual cognition data set and perform a cropping process to obtain a cropped visual cognition data set;
[0022] The cropped visual cognition data set is subjected to spatial rotation, scaling and shearing operations respectively, and then merged to obtain an initial training set;
[0023] Normalizing each pixel data of each band dimension in the initial training set to obtain a normalized training set;
[0024] The normalized training set is subjected to tensor quantization processing to obtain a final preprocessed training set.
[0025] Furthermore, the cropped visual cognition dataset includes N three-dimensional samples of dx*dx*A, where dx represents the sample size and N represents the number of samples, and the expression is as follows:
[0026]
[0027] In the formula, Indicates the number of sliding steps in the longitude direction, , m represents the number of pixels in the longitude direction of the image; Indicates the number of sliding steps in the latitude direction, , n represents the number of pixels in the latitude direction of the image.
[0028] Furthermore, the expression of the normalization process is as follows:
[0029]
[0030] In the formula, Represents the normalized pixel data; Represents unprocessed pixel data; Indicates the maximum value of pixel data; Indicates the minimum value of pixel data.
[0031] Furthermore, the expression of the cross entropy loss function is as follows:
[0032]
[0033] In the formula, represents the cross entropy loss function; represents the number of samples; represents the reference label of the i-th sample; Represents the probability value predicted by the U-Net classification model of the i-th sample.
[0034] Furthermore, the U-Net classification model includes:
[0035] The encoder includes multiple convolutional layers and pooling layers, which are used to extract features and downsample remote sensing image data to obtain low-resolution images;
[0036] The decoder includes a plurality of convolutional layers and upsampling layers, and is jump-connected with the encoder to perform upsampling and feature reconstruction on the low-resolution image to obtain a classification result.
[0037] Furthermore, the calculation of 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 to calculate the corresponding confusion matrix; wherein the confusion matrix includes the number of pixels TP that correctly identify specific objects, the number of pixels FN that incorrectly identify non-specified objects, the number of pixels FP that incorrectly identify specified objects, and the number of pixels TN that correctly identify non-specified objects;
[0039] According to 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, curve area AUC, Jude Index Jude Index;
[0040] By calculating the entropy value of each single precision indicator under multiple samples, the weight corresponding to each single precision indicator is calculated;
[0041] According to the weights corresponding to all single accuracy indicators, the expression of the comprehensive evaluation index is obtained.
[0042] Furthermore, the entropy value is expressed as follows:
[0043]
[0044] In the formula, represents the entropy value of the jth single precision index; Indicates the sequence of the sample; represents the number of samples; Indicates the jth single precision index value corresponding to the i-th sample;
[0045] The expression of the weight is as follows:
[0046]
[0047] In the formula, represents the weight of the jth single precision indicator; m represents the number of single precision indicators.
[0048] Furthermore, the comprehensive evaluation index The expression is as follows:
[0049]
[0050] In the formula, represents the overall accuracy; Precision represents precision; Recall represents recall; F1 represents F1 score; Kappa represents Kappa coefficient; FPR represents false positive rate; AUC represents the area under the ROC curve; Jude Index represents Jude index;
[0051] Indicates the weight corresponding to the overall accuracy OA; Indicates the weight corresponding to the precision; Indicates the weight corresponding to the recall rate Recall; Indicates the weight corresponding to the F1 score F1; Indicates the weight corresponding to the Kappa coefficient; Indicates the weight corresponding to the false positive rate FPR; Indicates the weight corresponding to the curve area AUC; Represents the weight corresponding to the Jude Index;
[0052] The expression of the overall accuracy OA is as follows:
[0053]
[0054] In the formula, TP represents the number of pixels that correctly identify a specific object; represents the number of pixels that incorrectly identify non-specified objects; FP represents the number of pixels that incorrectly identify specified objects; TN represents the number of pixels that correctly identify non-specified objects;
[0055] The expression of the precision Precision is as follows:
[0056]
[0057] The expression of the recall rate Recall is as follows:
[0058]
[0059] The expression of the F1 score is as follows:
[0060]
[0061] The expression of the Kappa coefficient Kappa is as follows:
[0062]
[0063]
[0064] The expression of the false positive rate FPR is as follows:
[0065]
[0066] The expression of the Jude Index is as follows:
[0067] .
[0068] Furthermore, the method of obtaining the pre-processed remote sensing image data of the coastal zone to be monitored based on the GEE platform includes the following steps:
[0069] Obtain the original image data and corresponding geographic information of the coastal zone to be monitored;
[0070] Through the GEE platform, the original remote sensing image data is screened based on a preset screening function tool, and then clipped based on a preset first vector file to obtain clipped remote sensing image data;
[0071] Based on a preset sample size, spatially gridding the cropped remote sensing image data to obtain gridded remote sensing image data;
[0072] The gridded remote sensing image data is normalized and tensorized to obtain preprocessed remote sensing image data.
[0073] Compared with the prior art, the present invention has the following beneficial effects:
[0074] The coastal zone remote sensing monitoring method based on GEE and machine learning of the present invention, firstly, the application of the GEE platform can quickly pre-process the remote sensing image data of the coastal zone to be monitored; secondly, based on the trained U-Net classification model, it can automatically learn and extract the coastal zone land feature in the remote sensing image, compared with the traditional manual visual interpretation and collection and screening of remote sensing image data, it avoids the complicated manpower consumption, and significantly improves the efficiency of coastal zone resource monitoring and the processing speed of image data. At the same time, the dynamic monitoring of coastal zone resources is realized through the machine learning automation of the U-Net classification model, which can more carefully and accurately identify and classify different land feature in remote sensing images, and reduce misjudgment and missed judgment compared with the traditional manual interpretation method and the method based on image band combination. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 It is a flowchart of a coastal zone remote sensing monitoring method based on GEE and machine learning provided in an embodiment.
[0076] Figure 2 It is a schematic diagram of a first vector file and a second vector file provided in an embodiment.
[0077] Figure 3 Schematic diagram of the structure of the U-Net classification model provided in the embodiment.
[0078] Figure 4 It is a comparison chart of the accuracy evaluation and spatial distribution identification of the present invention provided in the embodiment and the traditional method based on image band combination.
[0079] Figure 5 It is a schematic diagram of spatial gridding provided by an embodiment.
[0080] Figure 6 It is a schematic diagram showing the monitoring process and results provided by the embodiment. DETAILED DESCRIPTION
[0081] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0082] This embodiment provides a coastal zone remote sensing monitoring method based on GEE and machine learning, comprising the following steps:
[0083] Based on the GEE platform, obtain the pre-processed remote sensing image data of the coastal zone to be monitored;
[0084] Input the preprocessed remote sensing image data into the trained U-Net classification model to obtain the classification results;
[0085] After raster conversion and edge processing of the classification results, the complete coastal zone features are classified and identified to achieve coastal zone remote sensing monitoring;
[0086] Among them, the training of the U-Net classification model includes the following steps:
[0087] Get the preprocessed training set;
[0088] According to the training set, based on multiple preset training parameters and cross entropy loss functions, the pre-built U-Net classification model is trained to obtain multiple trained U-Net classification models;
[0089] Calculate the comprehensive evaluation index value of each trained U-Net classification model;
[0090] The trained U-Net classification model with the highest comprehensive evaluation index value is used as the final trained U-Net classification model.
[0091] The technical concept of the present invention is as follows: first, the application of the GEE platform can quickly pre-process the remote sensing image data of the coastal zone to be monitored; second, based on the trained U-Net classification model, it can automatically learn and extract the coastal zone features in the remote sensing image, which avoids the complicated manpower consumption compared to the traditional manual visual interpretation and collection and screening of remote sensing image data, and significantly improves the efficiency of coastal zone resource monitoring and the processing speed of image data. At the same time, the machine learning automation of the U-Net classification model realizes the dynamic monitoring of coastal zone resources. Compared with the traditional manual interpretation method and the method based on the combination of image bands, it can more carefully and accurately identify and classify different features of land objects in remote sensing images, reducing misjudgment and missed judgment.
[0092] like Figure 1 As shown, the specific steps are as follows:
[0093] Step 1: Data processing.
[0094] 1.1. In ArcGIS, according to the scope of the study area, create features to draw and clip the vector file. The yellow area is the first vector file, and the red line area is the second vector file, such as Figure 2 shown.
[0095] Upload the first vector file and the second vector file on the USGS official website, limit the cloud cover to less than 50, and filter out typical remote sensing image data of the coastal zone; in this embodiment, Landsat8OLI data from August 5, 2022 is selected, and the image band data is saved locally in raster form.
[0096] 1.2. Based on the preset first vector file and second vector file, the preset band raster data of the typical remote sensing image data is clipped using the "Extract by Mask" tool in ArcGIS to the same size as the two vector files. The boundary between the mudflat and the seawater in the image is drawn into a line vector file based on the visual interpretation, and a raster file is created based on the line vector elements. At the same time, labeling is performed, specifically setting the value of the area represented by the seawater to '1', and the rest of the area 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] There are six preset bands in this embodiment, including band B1, band B2, band B3, band B4, band B5 and band B7, as shown in the following table:
[0098] Table 1 Image band information
[0099]
[0100] 1.3. Use the Opencv library in Python to read the raster data of 6 preset bands with a resolution of 30m in typical remote sensing image data and the first label raster file, and obtain 6 m*n first two-dimensional data domains and 1 m*n first two-dimensional label domain; 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.
[0101] In Python, the Opencv library is used to read the raster data and the second label raster files of 6 preset bands with a resolution of 30m in typical remote sensing image data, and 6 m*n second two-dimensional data domains and 1 m*n second two-dimensional label domain are obtained.
[0102] 1.4. Use the Gdal library in Python to obtain the geographic information and domain size of the data domain and label domain in 1.3, and construct a blank three-dimensional dataset domain of m*n*7 based on the two, where 7 is the band dimension.
[0103] Write 6 m*n first two-dimensional data domains and 1 m*n first two-dimensional label domain into a blank three-dimensional data set domain to obtain a visual cognition data set;
[0104] Write 6 m*n first two-dimensional data fields and 1 m*n first two-dimensional label field into another blank three-dimensional data set field to obtain a reference data set.
[0105] 1.5. Read the visual cognition dataset, use Gdal to obtain the corresponding geographic information (radiation transformation parameters and projection information), traverse the visual cognition dataset and perform cropping based on the preset sample size dx to obtain the cropped visual cognition dataset.
[0106] The cropped visual cognition dataset includes N three-dimensional samples of dx*dx*A, where dx represents the sample size and N represents the number of samples. The expression is as follows:
[0107]
[0108] In the formula, Indicates the number of sliding steps in the longitude direction, , m represents the number of pixels in the longitude direction of the image; Indicates the number of sliding steps in the latitude direction, , n represents the number of pixels in the latitude direction of the image.
[0109] Similarly, read the reference dataset, use GDAL to obtain the corresponding geographic information (radiative transformation parameters and projection information), traverse the reference dataset and perform cropping based on the preset sample size dx to obtain the cropped reference dataset, i.e., the test set.
[0110] 1.6. The cropped visual cognition dataset is randomly divided into training set 1 and validation set 1 in a ratio of 6:4, and the two are spatially rotated, scaled, and sheared to increase the number and diversity of the dataset, thereby improving the generalization ability and robustness of the model.
[0111] Specifically, read the coordinates, projections, and sizes of the single sample domains of training set 1 and validation set 1 in Python, and create blank domains that are identical but do not contain data.
[0112] Transpose the data matrices in training set 1 and validation set 1 to achieve the effect of spatial rotation, and write them into the blank domain to form training set 11 and validation set 11;
[0113] The number of matrices in training set 1 and verification set 1 is expanded to several times of the original number, and in the embodiment, it is set to 3 times to achieve the effect of scaling, and the blank domain is written to form training set 12 and verification 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 randomly set step size dx0 to the corresponding single sample domain, and the data is scaled to the size of the original data set to achieve the cropping effect, and written into the blank domain to form training set 13 and validation set 13.
[0115] The three processed data sets are merged with training set 1 and validation set 1 to form the initial training set and validation set.
[0116] 1.7. Normalize each pixel data of each band dimension in the initial training set to obtain a normalized training set; the expression of normalization is as follows:
[0117]
[0118] In the formula, Represents the normalized pixel data; Represents unprocessed pixel data; Indicates the maximum value of pixel data; Indicates the minimum value of pixel data.
[0119] Similarly, each pixel data of each band dimension in the initial validation set is normalized to obtain a normalized validation set.
[0120] 1.8. In Python, use the '.Tensor()' function tool in the Pytorch library to tensorize the normalized training set and validation set to obtain the final preprocessed training set and validation set.
[0121] Taking the normalized training set as an example, the three-dimensional data domain of the normalized training set is specifically set as the input data format of '7*n*m' (i.e., band dimension * number of pixels in the dimension direction * number of pixels in the longitude direction), and the batch dimension is increased to change the data format to 'b*7*n*m', where b is the batch dimension, which is used to represent the number of multiple data domains processed simultaneously. This process utilizes the parallel computing capability of the GPU, thereby improving the training efficiency of the model.
[0122] Step 2: Model training.
[0123] 2.1, such as Figure 3 As shown in the figure, a U-Net classification model is built in the Pytorch platform. The U-Net classification model is a convolutional neural network with a special structure in deep learning. Its network structure mainly consists of a symmetrical encoder and decoder, and the decoder is jump-connected to the encoder. The encoder uses several convolutional layers and pooling layers to extract features and downsample the image dataset to reduce the image resolution. The decoder uses several convolutional layers and upsampling layers to upsample and reconstruct the features of the low-resolution image obtained by the encoder, and outputs the low-resolution data as classification result data of the same size as the original image dataset.
[0124] 2.2. Set the network-related parameters of the U-Net classification model: In this embodiment, the convolution kernel size of the convolution layer is set to '3×3', the convolution sliding step 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 sliding step is set to '2', and a layer of '0' values is filled; the activation function selects the Relu function.
[0125] 2.3. According to the training set, based on multiple sets of preset training parameters and cross entropy loss functions, the pre-built U-Net classification model is trained to obtain multiple trained U-Net classification models.
[0126] The training parameters in this embodiment include sample size, band dimension, network depth, network width, learning step size and iteration cycle.
[0127] Specifically, the dataset sizes are set to 32, 64, 128, 256, and 512; the band dimensions are set to 1, 2, 3, 7, and 8; the network width, that is, the number of convolutional layers, is set to 2, 3, 4, and 5; the network depth, that is, the number of pooling layers, is set to 2, 3, 4, and 5; the training learning step is 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 cycle is set to 50, 100, 200, 500, 1000, 2000, 3000, 4000, and 5000. Each time during training, a single variable is controlled, and other variables remain unchanged, and modifications and repeated training are performed.
[0128] Based on each set of set training parameters, the pre-built U-Net classification model is trained based on the training set and the cross entropy loss function. The expression of the cross entropy loss function is as follows:
[0129]
[0130] In the formula, represents the cross entropy loss function; represents the number of samples; represents the reference label of the i-th sample; Represents the probability value predicted by the U-Net classification model of the i-th sample.
[0131] The cross entropy loss function describes the deviation of the probability distribution of the model on the actual category from the label category. The model is repeatedly trained according to the result until the loss function curve does not diverge.
[0132] Each time the training result output by the U-Net classification model is converted into a raster format through the Gdal library in Python, the raster file is input into Arcpy using the '.MosaicToNewRaster_management()' function. The output pixel value of the overlapping area is set to the maximum value of the overlapping pixels, the prediction results are spliced, and the size is restored to be consistent with the first vector file.
[0133] Finally, the trained U-Net classification model corresponding to multiple sets of training parameters is obtained.
[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 objects, the number of pixels FN that incorrectly identify non-specified objects, the number of pixels FP that incorrectly identify specified objects, and the number of pixels TN that correctly identify non-specified objects;
[0135] According to the confusion matrix, multiple single precision index values are calculated; among them, the single precision indicators include overall accuracy OA, precision Precision, recall rate Recall, F1 score F1, Kappa coefficient Kappa, false positive rate FPR, curve area AUC, and Jude Index.
[0136] 2.4.1. Overall Accuracy OA (Overall Accuracy) represents the proportion of correctly classified samples to the total number of samples. It is used to measure the overall classification accuracy of the model in all categories. The expression is as follows:
[0137]
[0138] In the formula, TP represents the number of pixels that correctly identify a specific object; It indicates the number of pixels that incorrectly identify non-specified objects; FP indicates the number of pixels that incorrectly identify specified objects; and TN indicates the number of pixels that correctly identify non-specified objects.
[0139] The result of OA 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 the case of class imbalance or the presence of abnormal categories.
[0140] 2.4.2 Precision Precision represents the proportion of samples that are actually water bodies in the classification prediction results. The expression is as follows:
[0141]
[0142] The value range of Precision is between 0 and 1. The closer the value is to 1, the more samples the model judges as water bodies are actually water bodies, and the higher the accuracy. Precision is different from OA. It 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 rate Recall refers to the proportion of samples that are actually water bodies that are correctly predicted by the model as water bodies. The expression is as follows:
[0144]
[0145] The result range of Recall is between 0 and 1. The closer the value is to 1, the better the model is at classifying water bodies, that is, the model is more able to capture samples that are actually water bodies. Recall is an important indicator, especially for application scenarios that are very sensitive to false negatives (false extraction of non-water bodies). There is a trade-off between Recall and Precision. In some cases, improving Recall may lead to a decrease in Precision, and vice versa.
[0146] 2.4.4, F1 score is an evaluation index that comprehensively considers Precision and Recall. It is the harmonic mean of the two and aims to balance the accuracy of the classification model and the recall ability of water body classification. The expression is as follows:
[0147]
[0148] The result range of F1 is between 0 and 1. The closer the value is to 1, the better the balance between Precision and Recall is achieved and the more robust the model is.
[0149] 2.4.5 Kappa coefficient Kappa is a statistical indicator used to evaluate the performance of classification models. It is mainly used to measure the consistency between the prediction results of the model and random predictions. Kappa is usually used to solve the problem of OA when the category distribution is unbalanced. The expression is as follows:
[0150]
[0151]
[0152] The result range of Kappa is between -1 and 1, but generally falls within [0,1]. The larger the Kappa coefficient value, the higher the consistency between the model prediction result 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 mistakenly predicted as water bodies by the model. It is an evaluation indicator in the binary classification problem, also known as the false alarm rate. The expression is as follows:
[0154]
[0155] The FPR result range is between 0 and 1. The larger the FPR value, the lower the accuracy of the model prediction results.
[0156] 2.4.7. The Receiver Operating Characteristic (ROC) curve is a curve used to measure the performance of a classification model. It is mainly used for binary classification problems and displays the performance of the model by plotting the Recall and FPR curves at different classification thresholds.
[0157] Drawing the ROC curve requires constantly adjusting the threshold. Each threshold corresponds to a confusion matrix and a set of FPR and Recall. The discrete FPR and Recall are plotted as a curve, and the area under the ROC curve is called the curve area AUC, which is used to measure the classification effect of the classification model at different thresholds. The result range is [0,1].
[0158] 2.4.8. To further understand the classification effect of the model and the problem of sample imbalance, it is necessary to obtain the optimal threshold under the ROC curve. The difference with FPR is the largest. At this time, the model can capture the minority class without affecting the classification effect of other classes. The difference between the FPR and the Jude Index is the Jude Index, which is expressed as follows:
[0159] .
[0160] 2.5. In order to objectively and comprehensively consider the evaluation effect of each single accuracy index on the model results, a multi-index comprehensive evaluation (Entropy Weight Method, EWM) is used to comprehensively evaluate the calculation results of multiple indicators under different methods.
[0161] First, we need to standardize each single precision indicator to make it comparable. Secondly, the entropy value of each single precision indicator is calculated by EWM. The calculation of the entropy value takes into account the relative proportion of each observation under each indicator, so it is more universal. On this basis, the weight factor is introduced to reflect the relative importance of each single precision indicator in the overall evaluation. The weight can be determined by subjective assignment by experts or other reasonable methods.
[0162] By calculating the entropy value of each single precision indicator under multiple samples, the weight corresponding to each single precision indicator is calculated; according to the weights corresponding to all single precision indicators, the expression of the comprehensive evaluation index is obtained, as follows:
[0163] In this embodiment, 8 single precision indicators are involved in total, and the entropy value of the j-th single precision indicator is expressed as follows:
[0164]
[0165] In the formula, represents the entropy value of the jth single precision index; Indicates the sequence of the sample; represents the number of samples; Indicates the j-th single precision index value corresponding to the i-th sample.
[0166] The expression of the weight of the j-th single precision indicator is as follows:
[0167]
[0168] In the formula, represents the weight of the jth single precision indicator; m represents the number of single precision indicators.
[0169] Furthermore, comprehensive evaluation indicators The expression is as follows:
[0170]
[0171] In the formula, represents the overall accuracy; Precision represents precision; Recall represents recall; F1 represents F1 score; Kappa represents Kappa coefficient; FPR represents false positive rate; AUC represents the area under the ROC curve; Jude Index represents Jude index;
[0172] Indicates the weight corresponding to the overall accuracy OA; Indicates the weight corresponding to the precision; Indicates the weight corresponding to the recall rate Recall; Indicates the weight corresponding to the F1 score F1; Indicates the weight corresponding to the Kappa coefficient; Indicates the weight corresponding to the false positive rate FPR; Indicates the weight corresponding to the curve area AUC; Represents the weight corresponding to the Jude Index.
[0173] After calculating the weighted entropy value of each indicator, we can rank each method according to the size of its weighted entropy value, thereby obtaining a comprehensive classification effect ranking. for ; for ; for ; for ; for ; for ; for ; for .
[0174] 2.6. The trained U-Net classification model with the highest comprehensive evaluation index value is used as the final trained U-Net classification model.
[0175] 2.7. Input the validation set and test set 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 and the data represented by the training set and validation set are set to different regions. This process aims to improve the generalization ability of the model in different regions.
[0176] 3. Practical application.
[0177] 3.1. Obtain pre-processed remote sensing image data of the coastal zone to be monitored based on the GEE platform, including:
[0178] Obtain the original image data and corresponding geographic information of the coastal zone to be monitored;
[0179] Through the GEE platform, the original remote sensing image data is filtered based on the preset filtering function tool, and then the cropping process is performed 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 tensorized to obtain the preprocessed remote sensing image data.
[0182] GEE (Google Earth Engine) is a cloud computing platform developed by Google, Carnegie Mellon University, and the United States Geological Survey (USGS) to process satellite remote sensing image data and other earth observation data. The GEE platform integrates the powerful computing power provided by Google servers and a wide range of cloud computing resources. The platform data set provides a large amount of complete image data from earth observation satellites such as Sentinel, MODIS, Landsat, etc. It also provides vegetation, surface temperature, and socio-economic data sets, and can update the database every day. GEE provides Python and JavaScript versions of the editing interface (API), using a web-based code editor for fast and interactive algorithm development, with a large amount of data that can be called online and from a wide range of data sources.
[0183] Specifically, we first use Python language to call the GEE platform API, input the first vector file into the GEE platform, and use the 'ee.Filter.lt('CLOUD_COVER',45)' function tool to further filter the image data, limit the image cloud amount to less than 45, and use the '.clip()' function tool to filter and crop the cloud image data, and make the data set size cropping value consistent with the second vector file to obtain the cropped remote sensing image data.
[0184] Secondly, call the geographic information of the image data and use the function tool '.coveringGrid()' to spatially grid the dataset, such as Figure 5 As shown, the size of each grid is set to 64 pixels, which is consistent with the sample size of the model adjustment result. The cloud dataset is converted into a local array format using the 'geemap.ee_to_numpy()' function tool to obtain the gridded remote sensing image data.
[0185] Finally, the gridded remote sensing image data is normalized and tensorized, 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 raster conversion and edge processing of the classification results, complete classification and identification of coastal features are carried out to achieve coastal remote sensing monitoring. The monitoring process and results are shown as follows: Figure 6 shown.
[0188] Compared with the traditional image band combination method based on accuracy evaluation and spatial distribution recognition comparison Figure 4 As shown in the figure, the U-Net classification model of this embodiment has an accuracy of 0.1111 higher in coastal land feature recognition monitoring. Whether from the perspective of qualitative distribution evaluation in the spatial plane or from the perspective of quantitative comprehensive evaluation indicators, compared with other machine learning methods, the U-Net model can accurately obtain the coastal mudflat morphology.
[0189] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0190] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0191] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0192] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0193] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as 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: The steps include: Based on the GEE platform, obtain the pre-processed remote sensing image data of the coastal zone to be monitored; Inputting the preprocessed remote sensing image data into a trained U-Net classification model to obtain a classification result; After the classification results are subjected to raster conversion and edge processing, the complete coastal zone features are classified and identified to achieve coastal zone remote sensing monitoring; The training of the U-Net classification model includes the following steps: Get the preprocessed training set; According to the training set, based on multiple sets of preset training parameters and cross entropy loss functions, the pre-constructed U-Net classification model is trained to obtain multiple trained U-Net classification models; Calculate the comprehensive evaluation index value of each trained U-Net classification model; The trained U-Net classification model with the highest comprehensive evaluation index value is used as the final trained U-Net classification model.
2. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 1 is characterized in that: The step of obtaining the preprocessed training set comprises the following steps: Obtain typical remote sensing image data of the coastal zone; According to the typical remote sensing image data, clipping is performed based on a preset first vector file to obtain r preset bands of r raster data; labeling is performed by drawing a boundary line vector file of the tidal flat and the sea water to obtain a first label raster file; wherein the preset bands include band B1, band B2, band B3, band B4, band B5 and band B7; The raster data of the r preset bands and the first label raster file are read respectively to obtain r m*n first two-dimensional data domains and 1 m*n first two-dimensional label domain; According to 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 data set is obtained; wherein 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 a preset sample size dx, traverse the visual cognition data set and perform a cropping process to obtain a cropped visual cognition data set; The cropped visual cognition data set is subjected to spatial rotation, scaling and shearing operations respectively, and then merged to obtain an initial training set; Normalizing each pixel data of each band dimension in the initial training set to obtain a normalized training set; The normalized training set is subjected to tensor quantization processing to obtain a final preprocessed training set.
3. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 2 is characterized in that: The cropped visual cognition dataset includes N three-dimensional samples of dx*dx*A, where dx represents the sample size and N represents the number of samples, and the expression is as follows: ; In the formula, Indicates the number of sliding steps in the longitude direction, , m represents the number of pixels in the longitude direction of the image; Indicates the number of sliding steps in the latitude direction, , n represents the number of pixels in the latitude direction of the image.
4. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 2 is characterized in that: The expression of the normalization process is as follows: ; In the formula, Represents the normalized pixel data; Represents unprocessed pixel data; Indicates the maximum value of pixel data; Indicates the minimum value of pixel data.
5. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 1 is characterized in that: The expression of the cross entropy loss function is as follows: ; In the formula, represents the cross entropy loss function; represents the number of samples; represents the reference label of the i-th sample; Represents the probability value predicted by the U-Net classification model of the i-th sample.
6. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 1 is characterized in that: The U-Net classification model includes: The encoder includes multiple convolutional layers and pooling layers, which are used to extract features and downsample remote sensing image data to obtain low-resolution images; The decoder includes a plurality of convolutional layers and upsampling layers, and is jump-connected with the encoder to perform upsampling and feature reconstruction on the low-resolution image to obtain a classification result.
7. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 1 is characterized in that: The calculation of the comprehensive evaluation index value of 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 specific objects, the number of pixels FN that incorrectly identify non-specified objects, the number of pixels FP that incorrectly identify specified objects, and the number of pixels TN that correctly identify non-specified objects; According to 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, curve area AUC, Jude Index Jude Index; By calculating the entropy value of each single precision indicator under multiple samples, the weight corresponding to each single precision indicator is calculated; According to the weights corresponding to all single accuracy indicators, the expression of the comprehensive evaluation index is obtained.
8. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 7 is characterized in that: The expression of the entropy value is as follows: ; In the formula, Represents the entropy value of the jth single precision indicator; Indicates the sequence of the sample; represents the number of samples; Indicates the jth single precision index value corresponding to the i-th sample; The expression of the weight is as follows: ; In the formula, represents the weight of the jth single precision indicator; m represents the number of single precision indicators.
9. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 7 is characterized in that: The comprehensive evaluation index The expression is as follows: ; In the formula, Indicates the overall accuracy; Precision means precision; Recall means recall rate; F1 means F1 score; Kappa means Kappa coefficient; FPR means false positive rate; AUC means area under ROC curve; Jude Index means Jude index; Indicates the weight corresponding to the overall accuracy OA; Indicates the weight corresponding to the precision; Indicates the weight corresponding to the recall rate Recall; Indicates the weight corresponding to the F1 score F1; Indicates the weight corresponding to the Kappa coefficient; Indicates the weight corresponding to the false positive rate FPR; Indicates the weight corresponding to the curve area AUC; Represents the weight corresponding to JudeIndex; The expression of the overall accuracy OA is as follows: ; In the formula, TP represents the number of pixels that correctly identify a specific object; represents the number of pixels that incorrectly identify non-specified objects; FP represents the number of pixels that incorrectly identify specified objects; TN represents the number of pixels that correctly identify non-specified objects; The expression of the precision Precision is as follows: ; The expression of the recall rate Recall is as follows: ; The expression of the F1 score is as follows: ; The expression of the Kappa coefficient Kappa is as follows: ; ; The expression of the false positive rate FPR is as follows: ; The expression of the Jude Index is as follows: 。 10. The coastal zone remote sensing monitoring method based on GEE and machine learning according to claim 1 is characterized in that: The method of obtaining the pre-processed remote sensing image data of the coastal zone to be monitored based on the GEE platform includes the following steps: Obtain the original image data and corresponding geographic information of the coastal zone to be monitored; Through the GEE platform, the original remote sensing image data is screened based on a preset screening function tool, and then clipped based on a preset first vector file to obtain clipped remote sensing image data; Based on a preset sample size, spatially gridding the cropped remote sensing image data to obtain gridded remote sensing image data; The gridded remote sensing image data is normalized and tensorized to obtain preprocessed remote sensing image data.
Citation Information
Patent Citations
Video tracking and image recognition method and system based on deep learning
CN115393762A
Sea internal wave stripe segmentation method and device based on TransUnet, and storage medium
CN115601649A
Shoreline remote sensing automatic identification and analysis method based on cloud platform and deep learning
CN116503755A
Transform domain regression convolutional neural network for image segmentation
US10290107B1
Visual analytics system for convolutional neural network based classifiers
US20190034557A1
Cited By
River bank line extraction method, device and equipment
CN119251215A
Marine disaster risk photo identification method based on deep artificial neural network
CN121788902A
