Construction method and device of remote sensing image water body sample set and storage medium

By pre-processing and noise cleaning of remote sensing images, combining RGB mode and HSV color space classification methods, a high-quality remote sensing image water sample set is constructed, solving the problem of low sample data quality in the existing technology and improving the performance of deep learning models.

CN119649165AActive Publication Date: 2025-03-18MINISTRY OF NATURAL RESOURCES LAND SATELLITE REMOTE SENSING APPL CENT
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411690936.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-03-18
Estimated Expiration
2044-11-25

AI Technical Summary

Technical Problem

In the prior art, the remote sensing image water sample data has problems such as noise, outliers and duplicate data, resulting in low sample quality and difficult to directly apply to deep learning training.

Method used

By acquiring multiple original satellite remote sensing images for preprocessing, the initial sample set of water bodies was constructed, and noise cleaning was performed based on cross-validation and confidence iterative learning methods. Finally, based on RGB mode and HSV color space, a high-quality water body sample set of remote sensing images was constructed.

Benefits of technology

It realizes high-quality and refined water body sample set construction, improves the accuracy and versatility of deep learning models, and supports intelligent water body interpretation tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119649165A_ABST
    Figure CN119649165A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of water body samples, and discloses a remote sensing image water body sample set construction method and device and a storage medium, and the method comprises the steps: obtaining a plurality of original satellite remote sensing images, and carrying out the preprocessing of each original satellite remote sensing image, and obtaining a water body initial sample set; performing noise cleaning on the initial water body sample set based on a cross validation and confidence iterative learning method to obtain a water body de-noised sample set; and based on the RGB mode and the water body sample of the HSV color space, classifying the water body denoising sample set to obtain a remote sensing image water body sample set. According to the method, the high-quality and refined water body sample set can be obtained, and the problems of noise, abnormal values, insufficient sample classification precision and the like existing in a large-scale water body sample set obtained based on a traditional scheme are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of water body samples, and in particular to a method, device and storage medium for constructing a remote sensing image water body sample set. Background Art

[0002] Information extraction through remote sensing images is an important technical means to monitor water resources; that is, deep learning is used to intelligently interpret the water body information of remote sensing images, namely image interpretation (such as water body classification, post-classification processing, accuracy verification, etc.), so as to deeply mine the water resource element information in remote sensing images, thereby obtaining water body distribution information in a timely and accurate manner, which is of great significance to the monitoring and management of water resources.

[0003] Deep learning is essentially a supervised learning approach that requires a large amount of sample data to learn the essential characteristics of the target. The accuracy of the prediction results of the deep learning network model is most directly related to the quality of the sample data set. Therefore, good sample quality is an important guarantee and support for the accuracy of the deep learning model. High-quality samples can improve the accuracy and versatility of the deep learning model. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a method, device and storage medium for constructing a remote sensing image water sample set to improve the quality of water samples.

[0005] In a first aspect, an embodiment of the present application provides a method for constructing a remote sensing image water body sample set, comprising:

[0006] Acquire multiple original satellite remote sensing images, and preprocess each of the original satellite remote sensing images to obtain an initial water body sample set;

[0007] Based on the cross-validation and confidence iteration learning method, the water body initial sample set is cleaned of noise to obtain a water body denoised sample set;

[0008] Based on the water body samples in RGB mode and HSV color space, the water body denoising sample set is classified to obtain a remote sensing image water body sample set.

[0009] In some embodiments, the preprocessing of each of the original satellite remote sensing images to obtain an initial water body sample set includes:

[0010] Gridding the original satellite remote sensing image based on geographic coordinates to obtain hierarchical grids corresponding to different slice sizes;

[0011] Based on the image resolution and the water body spot vector, the original satellite remote sensing image with the hierarchical grid is grid-positioned and cropped to extract a plurality of water body spot sample slice images;

[0012] Performing position marking processing on each of the water body spot sample slice images to obtain a corresponding water body label image;

[0013] A water body initial sample set is constructed based on all the water body spot sample slice images and the water body label image; the water body initial sample set includes multiple water body samples, and each water body sample includes a water body spot sample slice image and a corresponding water body label image.

[0014] In some embodiments, the gridding of the original satellite remote sensing image based on geographic coordinates includes:

[0015] Gridding the original satellite remote sensing image, and grading all the grid slices after the gridding based on the image resolution and the slice size;

[0016] The row and column numbers of each level of the tile grid are determined according to the longitude and latitude coordinates and the tile grid level.

[0017] In some embodiments, the method based on cross-validation and confidence iteration learning performs noise cleaning on the water body initial sample set to obtain a water body denoised sample set, including:

[0018] Dividing the water body samples in the initial water body sample set into multiple parts, selecting one of them as a validation subset and the remaining ones as training subsets, so as to determine the first round of training subsets and validation subsets;

[0019] The semantic segmentation model is trained using the first-round training subset, and the first-round verification subset is screened according to the semantic segmentation model to obtain an updated subset;

[0020] The updated subset is used as a training subset for the next round, and a subset is selected from the training subset of the first round as a validation subset for the next round, so as to determine the training subset and validation subset for the next round and perform iterative training until each water sample in the initial water sample set has been screened once;

[0021] All the updated subsets after screening are used as water body denoising sample sets.

[0022] In some embodiments, the first-round validation subset is screened according to the semantic segmentation model to obtain an updated subset, including:

[0023] Inputting the verification subset into the semantic segmentation model to obtain the pixel probability of each pixel point in each water body sample in the verification subset;

[0024] Calculate the confidence of each water body spot sample in the water body label image according to the pixel probability of each pixel point in the water body sample;

[0025] The confidence of the water body label image is calculated according to the confidence of all the water body spot samples in the water body label image;

[0026] The confidence of each of the water body label images is compared with a set threshold, and the water body samples corresponding to the confidence greater than the set threshold are taken as the updated subset.

[0027] In some embodiments, the water body samples based on the RGB mode and HSV color space are classified into the water body denoising sample set to obtain the remote sensing image water body sample set, including:

[0028] Randomly sampling all water body sample pixels in the water body denoising sample set;

[0029] The mode of the RGB values ​​of all the sampled water sample pixels is calculated to obtain the RGB value of the water sample;

[0030] The RGB values ​​are converted into HSV values, and the water body denoising sample set is classified based on the color classification rule of the HSV values ​​to obtain a remote sensing image water body sample set.

[0031] In some embodiments, the randomly sampling all pixel points in the water body denoising sample set includes:

[0032] Calculate the proportion of each water body spot in the water body spot sample slice image according to each of the water body label images in the water body denoising sample set;

[0033] Determine the sampling quantity of water body sample pixel points in the corresponding water body spot sample slice image according to the proportion value;

[0034] When randomly sampling the water body sample pixel points in the water body spot sample slice image, the sampling numbers of small water body samples and large water body samples in the water body denoising sample set meet the set relationship; wherein the water body samples with a proportion value less than 1% are defined as small water body samples, and the water body samples with a proportion value greater than 1% are defined as large water body samples.

[0035] In a second aspect, an embodiment of the present application provides a device for constructing a remote sensing image water body sample set, comprising:

[0036] A preprocessing module, used to obtain a plurality of original satellite remote sensing images, and preprocess each of the original satellite remote sensing images to obtain an initial water body sample set;

[0037] A denoising module, used for performing noise cleaning on the water body initial sample set based on a cross-validation and confidence iteration learning method to obtain a water body denoised sample set;

[0038] The classification module is used to classify the water body denoising sample set based on the water body samples in the RGB mode and HSV color space to obtain the remote sensing image water body sample set.

[0039] In a third aspect, an embodiment of the present application provides a computer terminal, which includes a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the above-mentioned method for constructing a remote sensing image water body sample set.

[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed on a processor, implements the above-mentioned method for constructing a remote sensing image water body sample set.

[0041] The embodiments of the present application have the following beneficial effects:

[0042] The method for constructing a remote sensing image water body sample set in the present application first performs noise cleaning on the preprocessed initial water body sample set based on the cross-validation and confidence iterative learning methods, and then automatically classifies it based on the RGB mode and HSV color space, thereby obtaining a high-quality and refined water body sample set to support the task of intelligent interpretation of water bodies. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A flow chart showing a method for constructing a remote sensing image water body sample set according to an embodiment of the present application is shown;

[0045] Figure 2 A schematic diagram showing an original satellite remote sensing image according to an embodiment of the present application is shown;

[0046] Figure 3 A flow chart showing an embodiment of the present application in which each original satellite remote sensing image is preprocessed to obtain an initial sample set of water bodies;

[0047] Figure 4 A schematic diagram of a process for obtaining a water body slice image in an embodiment of the present application is shown;

[0048] Figure 5 A schematic diagram of grid slicing of satellite remote sensing images according to an embodiment of the present application is shown;

[0049] Figure 6 A schematic diagram of a water sample label according to an embodiment of the present application is shown;

[0050] Figure 7 A schematic diagram of a process for obtaining a water body denoising sample set in an embodiment of the present application is shown;

[0051] Figure 8 A schematic diagram of a process of screening a first-round verification subset according to a semantic segmentation model to obtain an updated subset in an embodiment of the present application is shown;

[0052] Fig. 9 A schematic diagram of a process for classifying a water body denoising sample set to obtain a remote sensing image water body sample set is shown in an embodiment of the present application;

[0053] Fig.10 A schematic diagram of a process of randomly sampling all water sample pixels in a water denoising sample set according to an embodiment of the present application is shown;

[0054] Fig.11 A structural schematic diagram of a device for constructing a remote sensing image water body sample set according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0055] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0056] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0057] Hereinafter, the terms "including", "having" and their cognates that can be used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or a combination of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or a combination of the foregoing items or increasing the possibility of one or more features, numbers, steps, operations, elements, components or a combination of the foregoing items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and cannot be understood as indicating or implying relative importance.

[0058] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.

[0059] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0060] Most of the water body datasets of remote sensing images are satellite data such as Landsat and Sentinel, and their image spatial resolution is not high. Moreover, the water body data does not make detailed divisions of water body morphology and color, which is not conducive to high-precision intelligent extraction of water resources. In addition, the current large-scale acquisition of water body samples is often carried out automatically or semi-automatically using multi-period remote sensing images and historical spots. Among them, the accuracy of historical spots, the temporal matching between images and spots, and the quality of images have a direct impact on the quality of samples, resulting in noise, outliers, and duplicate data in the sample data, which will lead to the inability to be directly applied to deep learning training. However, the automatic cleaning and denoising of sample sets such as water body semantic segmentation in traditional solutions are mainly divided into rule-based or statistical methods and machine learning or deep learning methods. Rule-based and statistical methods often require preset rules or statistical thresholds, strongly rely on manual experience and professional knowledge, have a great impact on the cleaning effect, and it is often difficult to select appropriate parameters. They are not suitable for complex and changeable sample data and are prone to omission or misjudgment of noise data. With the continuous advancement of technologies such as machine learning and deep learning, it is gradually possible to automatically identify and process noise, outliers and duplicate data in data sets by automatically learning data features, but it often requires a large amount of training data and is sensitive to the selection of hyperparameters and model structures. Therefore, after obtaining the initial sample set of water bodies by preprocessing satellite remote sensing images, this application further proposes a random noise cleaning method for water samples based on cross-validation and confidence iteration learning. On the basis of semantic segmentation deep learning iterative training, the empirical statistical threshold intervention of confidence is also added to combine deep learning with traditional methods to achieve the construction of a high-quality water sample set. Therefore, this application proposes a remote sensing image sample set construction scheme for intelligent interpretation of water bodies, including satellite remote sensing gridding, spot vectors, water body position marking sample label production, and noise cleaning based on cross-validation and confidence iteration learning methods; in addition, it also forms a high-quality and refined water sample set based on steps such as automatic classification of samples based on RGB mode and HSV transformation to support intelligent interpretation tasks such as water body classification, post-classification processing, and accuracy verification.

[0061] The following describes the method for constructing the remote sensing image water body sample set in conjunction with some specific embodiments.

[0062] Figure 1 A flow chart of a method for constructing a remote sensing image water body sample set according to an embodiment of the present application is shown. Exemplarily, the method for constructing a remote sensing image water body sample set includes the following steps:

[0063] S100, obtaining a plurality of original satellite remote sensing images, and preprocessing each original satellite remote sensing image to obtain an initial water body sample set.

[0064] This application constructs water samples mainly using Figure 2 The original satellite remote sensing image with a spatial resolution of about 2 meters is shown. Exemplarily, the preprocessing of the original satellite remote sensing image includes grid slicing, cutting and extracting spots, and position marking based on water body spots, etc. The final water body initial sample set includes each water body sample, and each water body sample includes a water body slice image and a water body sample label.

[0065] In one embodiment, Figure 3 As shown, each original satellite remote sensing image is preprocessed to obtain an initial water body sample set, including:

[0066] S110, gridding the original satellite remote sensing image based on the geographic coordinates to obtain hierarchical grids corresponding to different slice sizes.

[0067] like Figure 4 As shown, the above-mentioned gridding processing of the original satellite remote sensing image based on geographic coordinates obtains hierarchical grids corresponding to different slice sizes, including:

[0068] S111, gridding the original satellite remote sensing image, and grading all the grid slices after the gridding based on the image resolution and the slice size.

[0069] In this embodiment, the satellite remote sensing image is gridded to obtain Figure 5 As shown, the grids of satellite remote sensing images are graded based on geographic coordinates. The first-level grid is a vector range of 180°×180° in longitude and latitude. The second-level grid is one-fourth the size of level 1, with a longitude and latitude range of 90°×90°. And so on. The longitude and latitude range of each level can be determined.

[0070] The calculation formula for the longitude and latitude range of grid level N is:

[0071] Lon N =360° / 2 N

[0072] Lat N =360° / 2 N ;

[0073] Where, Lon is longitude, Lon N is the longitude of the Nth level grid, Lat is the latitude, Lat N is the latitude of the Nth level grid.

[0074] S112, determining the row and column numbers of each level of the slicing grid according to the longitude and latitude coordinates and the slicing grid level.

[0075] In one implementation, if 180° west longitude and 90° north latitude are used as the origin of the coordinate system, the row and column numbers of the slices of the Nth level slice grid are calculated based on the longitude and latitude coordinates Lon, Lat, and the following formula can be used:

[0076] R N =(90°-Lat)×2 N / 360°

[0077] C N =(180°+Lon)×2 N / 360°.

[0078] It can be understood that the above formula is used to calculate the row number R of the N-level slice grid where the point is located according to the latitude and longitude coordinates of a point on the satellite image. N , Column No. C N .

[0079] S120, performing grid positioning and cropping processing on the original satellite remote sensing image with hierarchical grids according to image resolution and water body spot vectors, and extracting a plurality of water body spot sample slice images.

[0080] Firstly, the slice size of the corresponding level is selected according to the image resolution and water body spot vector, and the slice grid position is located, and the slice processing is performed to obtain multiple water body slice images.

[0081] In this embodiment, the corresponding grid level and slice size are selected for sample construction according to the corresponding latitude and longitude resolution and the principle of being as close to the original image resolution as possible. The sample slice size is generally 2K×2K pixels. According to the current GPU hardware conditions and the requirements of water body intelligent interpretation, k is generally ≥ 8, and 512×512 pixels (corresponding to 15-level grid), 1024×1024 pixels (corresponding to 14-level grid), etc. can be selected for implementation.

[0082] In one implementation, the relationship between the latitude and longitude resolution Res and the slice size Tsize and the grid level N can be described as:

[0083] Res=360° / (Tsize×2 N )

[0084] In this embodiment, the corresponding sample slice image is cut based on historical data such as geographical monitoring, land change survey, or manually drawn water body spot vectors. First, the longitude and latitude range of each water body spot element in the vector layer is read, and the grid within the longitude and latitude range corresponding to the water body spot vector is calculated according to the row and column numbers of the grid slice, and the overlapping grids of the adjacent water body spots are removed to retain the only target grid; then the water body slice image is cut according to the target grid, and multiple water body spot sample slice images are obtained by cutting and extracting.

[0085] It should be noted here that for the same water body patch, the original satellite remote sensing images of multiple seasons and phases can be cropped to obtain different water body samples corresponding to the original satellite remote sensing images of the same water body in different seasons; and there will be multiple grid slices after gridding. For generally larger water body patches, a water body patch sample slice image may include the original satellite remote sensing image corresponding to one slice grid, or may include the original satellite remote sensing images corresponding to multiple grid slices.

[0086] S130, performing position marking processing on each water body spot sample slice image to obtain a water body label image.

[0087] Exemplarily, based on the water body spot vector and the corresponding geographic grid, a corresponding binary image sample label with a geographic location mark is produced, that is, a water body sample label is obtained, such as Figure 6 Among them, the geographical location has an absolute location and a relative location, and the above marking according to longitude and latitude is to mark the absolute location of the geographical location.

[0088] S140, constructing an initial water body sample set according to the water body spot sample slice image and the water body label image.

[0089] In this implementation, the water body initial sample set includes multiple water body samples, and each water body sample includes a water body spot sample slice image and a corresponding water body label image.

[0090] It can be understood that the initial water body sample set is constructed by gridding and slicing the satellite images based on geographic coordinates (i.e., longitude and latitude information) and slicing and labeling the multi-phase satellite remote sensing images corresponding to the historical patches and grids.

[0091] S200, based on the cross-validation and confidence iteration learning method, the water body initial sample set is cleaned of noise to obtain a water body denoised sample set.

[0092] For example, the process of cleaning the water body initial sample set based on the cross-validation and confidence iteration learning method to obtain the water body denoising sample set is as follows: Figure 7 As shown, including:

[0093] S210, dividing the water body samples in the initial water body sample set into multiple parts; and selecting one of them as a validation subset and the remaining parts as training subsets to determine the first round of training subsets and validation subsets.

[0094] In one embodiment, the initial water sample set is divided into K parts, and in each training, one of them is selected as a validation subset, and the remaining K-1 parts are selected as training subsets. For example, assuming that the initial water sample set is evenly divided into 4 parts, recorded as A, B, C and D; in the first round of training, D is used as the validation subset of the first round, and the remaining A, B, and C are used as the training subsets of the first round.

[0095] S220, using the first round of training subset to train the semantic segmentation model, and screening the first round of verification subset according to the semantic segmentation model to obtain an updated subset.

[0096] In a specific implementation, the DeeplabV3+ semantic segmentation model may be used to carry out model training. The DeeplabV3+ semantic segmentation model includes an Encoder module and a Decoder module; the Encoder module is used to gradually reduce feature maps and extract higher semantic information, and the Decoder module is used to gradually restore spatial information.

[0097] In some other implementations, a semantic segmentation model such as UNet++ can also be used to carry out model training. The UNet++ semantic segmentation model includes a compression channel and an expansion channel. The compression channel is used to extract the features of the image layer by layer, and the expansion channel is used to restore the position information of the image; it can also be understood that the compression channel is an encoder and the expansion channel is a decoder.

[0098] Still taking the above A, B, C and D as an example, after the first round of training, the first round of verification subset D is screened according to the semantic segmentation model to obtain the updated subset D`.

[0099] like Figure 8 As shown, this application screens the first round of verification subsets according to the semantic segmentation model to obtain an updated subset, including:

[0100] S221, input the verification subset into the semantic segmentation model to obtain the pixel probability of each pixel point in each water body sample in the verification subset.

[0101] After the verification subset D is input into the semantic segmentation model, the semantic segmentation model will directly output the pixel probability of each pixel point in the water sample of the verification subset D.

[0102] S222, according to the pixel probability of each pixel point in the water body sample, the confidence of each water body spot in the water body label image is calculated.

[0103] This application removes the 5% of pixel values ​​with the lowest probability values ​​for all pixel points in the water body image, and takes the average value of the remaining values ​​as the confidence level of the water body image.

[0104] S223, calculating the confidence of the water body label image according to the confidence of all water body patches in the water body label image.

[0105] A water body label image of the present application may contain multiple water body spots. Exemplarily, the average value of the confidence of all water body spots in the water body label image can be calculated as the confidence of the entire water body label image.

[0106] S224, comparing the confidence of each water body label image with a set threshold, and taking the water body samples corresponding to the confidence greater than the set threshold as the screened update subset.

[0107] For example, assuming that the threshold is set to P thresh , then the confidence of each water body label image can be compared with the set threshold P thresh When the confidence of the water body label image is less than the set threshold P thresh When , it indicates that the confidence of the water body label image is low, then the water body sample corresponding to the water body label image may be an erroneous water body sample, and the water body sample corresponding to the water body label image is deleted from the verification subset. When the confidence of the water body label image is greater than the set threshold P thresh When , it indicates that the confidence of the water body label image is relatively high, the water body sample corresponding to the water body label image is retained, and the verification subset is screened based on the retained water body sample corresponding to the water body label image.

[0108] S230, using the updated subset as a training subset for the next round, and selecting one from the training subset of the first round as a verification subset for the next round, so as to determine the training subset and verification subset for the next round and perform iterative training until each water sample in the initial water sample set has been screened once.

[0109] Still taking the above-mentioned A, B, C and D as an example, after the first round of training, the verification subset D is screened to D`, and the screened D` is used as the update subset; then, in the second iteration, the first round update subset D` is used as a training subset for the second round, and a copy of B is selected from the first round training subset (A, B, C) as the second round verification subset, and other training subsets in the second round also include the remaining copies of A and C in the first round training subset that are not used as verification subsets. The final training subset for the second round is A, C, D`, and the verification subset B is screened to be the update subset B`; similarly, in the third iteration, the verification subset is C, and the corresponding training subsets are A, B`, D`. The verification subset C is updated to be the update subset C`; in the fourth iteration, the verification subset is A, and the corresponding training subsets are B`, C`, D`, and the verification subset A is the update subset A`. When ABCD are all used as validation subsets and screened once, the cross-validation-based confidence iterative learning is completed.

[0110] S240, taking all updated subsets after screening as water body denoising sample sets.

[0111] This application uses all the updated subsets A`, B`, C`, and D` after screening as water body denoising sample sets.

[0112] It can be understood that the present application adopts a noise cleaning method based on confidence screening of verification samples and multiple rounds of cross-validation, that is, iterative calculations are carried out through training, verification, and denoising screening links to achieve automatic denoising and cleaning of the initial water sample set.

[0113] S300, based on the water samples in RGB mode and HSV color space, classifies the water denoising sample set to obtain the remote sensing image water sample set.

[0114] Due to the influence of sand content, light, microorganisms and human activities, water bodies such as rivers and lakes often appear in different colors in satellite remote sensing images, such as yellow, green, black, etc. The diversity of water colors will also increase the difficulty of deep learning methods. In order to further subdivide the water denoising sample set, this application creatively proposes an automatic classification method for water samples based on RGB mode and HSV color space, which can realize automatic and efficient classification of samples.

[0115] like Fig. 9 As shown, the above process of classifying the water body denoising sample set to obtain the remote sensing image water body sample set includes:

[0116] S310, randomly sampling all water body sample pixels in the water body denoising sample set.

[0117] In one embodiment, the process of randomly sampling all water sample pixels in the water body denoising sample set is as follows: Fig.10As shown, including:

[0118] S311, calculating the proportion of each water body spot in the water body spot sample slice image according to each water body label image in the water body noise sample set, and determining the sampling number of water body sample pixel points in the corresponding water body spot sample slice image according to the proportion value.

[0119] The percentage value and the number of pixel sampling N in this application are:

[0120]

[0121] In the formula, P is the proportion; N T is the total number of water sample pixels in a water body label image, N is the number of pixels to be sampled, m1 and m2 are sampling ratio coefficients, and the value range is 0.1 to 10.

[0122] S312, when randomly sampling water body sample pixel points in the water body spot sample slice image, ensure that the sampling numbers of small water body samples and large water body samples in the water body denoising sample set meet the set relationship.

[0123] When P<1%, the water sample is small and is considered a small water sample; when P>1%, the water sample is large and is considered a large water sample; in order to prevent excessive sampling of large water samples and too few sampling points of small water samples, it is required to ensure that the number of pixel points sampled for small water samples and large water samples is relatively balanced, and large water samples have relatively more pixel points sampled. Generally, m1 is 2 to 5 times of m2, for example, m1=10, m2=4. Therefore, after determining the number of samples to be sampled for each water body patch, this application adopts random sampling and satisfies the sampling balance. N water sample pixel points are randomly selected from the water sample pixel points in each water body patch for subsequent classification calculations.

[0124] S320, finding the mode of the RGB values ​​of all sampled water body pixel points to obtain the RGB value of the water body.

[0125] This application is based on randomly sampled water sample pixels, statistics the R, G, B values ​​corresponding to all water sample pixels, and determines the pixel R, G, B values ​​that best represent the color of the water body by finding the majority method. RGB can reflect the color of the water body.

[0126] S330, converting the RGB value into the HSV value, and classifying the water body denoising sample set based on the color classification rule of the HSV value to obtain the remote sensing image water body sample set.

[0127] Considering that although RGB values ​​can reflect the color of water bodies, they cannot automatically classify the color gamut, this application introduces the HSV color space, converts the representative RGB value of each water body object into HSV, and then uses the HSV color classification rules for automatic classification.

[0128] Among them, the RGB to HSV value is:

[0129]

[0130] In the formula, R represents the red value, G represents the green value, and B represents the blue value; R′ represents the conversion of the red value to 0~1, G′ represents the conversion of the green value to 0~1, and B′ represents the conversion of the blue value to 0~1.

[0131]

[0132] In the formula, C max It means taking the maximum value from R′, G′, B′, C min represents the minimum value among R′, G′, and B′, and Δ represents C max With C min The difference.

[0133]

[0134] In the formula, H represents hue, S represents saturation, and B represents brightness.

[0135] Furthermore, the water color is automatically determined according to the interval range of the HSV color value comparison table in Table 1, and the water samples are divided into several colors such as black, yellow, green, blue, and others.

[0136] Table 1

[0137]

[0138] In response to the demand for constructing high-quality water sample sets for business applications of large-scale water body remote sensing intelligent interpretation, this application further proposes a method for cleaning random noise of water samples based on cross-validation and confidence iteration learning and a sample set construction method based on water body RGB majority and HSV color space classification on the basis of gridding and geographic location annotation. The method realizes automatic cleaning and automatic fine classification of water body samples, and can construct a high-quality remote sensing water body sample set, thereby effectively solving the problems of noise, outliers and insufficient sample classification in large-scale water body sample sets obtained by automatic / semi-automatic methods such as remote sensing images and historical maps, and improving the accuracy of intelligent interpretation of water bodies to meet the needs of water resources management, environmental protection, disaster monitoring and other fields.

[0139] like Fig.11As shown, the embodiment of the present application also proposes a device for constructing a remote sensing image water body sample set, including:

[0140] The preprocessing module 10 is used to obtain a plurality of original satellite remote sensing images and preprocess each original satellite remote sensing image to obtain an initial water body sample set;

[0141] A denoising module 20 is used to perform noise cleaning on the initial water body sample set based on a cross-validation and confidence iteration learning method to obtain a water body denoised sample set;

[0142] The classification module 30 is used to classify the water body denoising sample set based on the water body samples in the RGB mode and HSV color space to obtain a remote sensing image water body sample set.

[0143] It can be understood that the device of this embodiment corresponds to the method for constructing the remote sensing image water body sample set of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described repeatedly here.

[0144] The present application also provides a computer terminal. Exemplarily, the computer terminal includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to enable the computer terminal to execute the functions of each module in the above-mentioned method for constructing a remote sensing image water body sample set or the above-mentioned device for constructing a remote sensing image water body sample set.

[0145] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or at least one of other programmable logic devices, discrete gates or transistor logic devices, and discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.

[0146] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.

[0147] The present application also provides a computer-readable storage medium for storing the computer program used in the above-mentioned computer terminal. For example, the computer-readable storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0148] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0149] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0150] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.

[0151] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A method for constructing a remote sensing image water body sample set, characterized in that: include: Acquire multiple original satellite remote sensing images, and preprocess each of the original satellite remote sensing images to obtain an initial water body sample set; Based on the cross-validation and confidence iteration learning method, the water body initial sample set is cleaned of noise to obtain a water body denoised sample set; Based on the water body samples in RGB mode and HSV color space, the water body denoising sample set is classified to obtain a remote sensing image water body sample set.

2. The method for constructing a remote sensing image water body sample set according to claim 1, characterized in that: The preprocessing of each of the original satellite remote sensing images to obtain an initial water body sample set includes: Gridding the original satellite remote sensing image based on geographic coordinates to obtain hierarchical grids corresponding to different slice sizes; Based on the image resolution and the water body spot vector, the original satellite remote sensing image with the hierarchical grid is grid-positioned and cropped to extract a plurality of water body spot sample slice images; Performing position marking processing on each of the water body spot sample slice images to obtain a corresponding water body label image; A water body initial sample set is constructed based on all the water body spot sample slice images and the water body label image; the water body initial sample set includes multiple water body samples, and each water body sample includes a water body spot sample slice image and a corresponding water body label image.

3. The method for constructing a remote sensing image water body sample set according to claim 2, characterized in that: The gridding process of the original satellite remote sensing image based on geographic coordinates includes: Gridding the original satellite remote sensing image, and grading all the grid slices after the gridding based on the image resolution and the slice size; The row and column numbers of each level of the tile grid are determined according to the longitude and latitude coordinates and the tile grid level.

4. The method for constructing a remote sensing image water body sample set according to claim 2, characterized in that: The method based on cross-validation and confidence iteration learning performs noise cleaning on the water body initial sample set to obtain a water body denoising sample set, including: Dividing the water body samples in the initial water body sample set into multiple parts, selecting one of them as a validation subset and the remaining ones as training subsets, so as to determine the first round of training subsets and validation subsets; The semantic segmentation model is trained using the first-round training subset, and the first-round verification subset is screened according to the semantic segmentation model to obtain an updated subset; The updated subset is used as a training subset for the next round, and a subset is selected from the training subset of the first round as a validation subset for the next round, so as to determine the training subset and validation subset for the next round and perform iterative training until each water sample in the initial water sample set has been screened once; All the updated subsets after screening are used as water body denoising sample sets.

5. The method for constructing a remote sensing image water body sample set according to claim 4, characterized in that: The first round of verification subset is screened according to the semantic segmentation model to obtain an updated subset, including: Inputting the verification subset into the semantic segmentation model to obtain the pixel probability of each pixel point in each water body sample in the verification subset; Calculate the confidence of each water body spot sample in the water body label image according to the pixel probability of each pixel point in the water body sample; The confidence of the water body label image is calculated according to the confidence of all the water body spot samples in the water body label image; The confidence of each of the water body label images is compared with a set threshold, and the water body samples corresponding to the confidence greater than the set threshold are taken as the updated subset.

6. The method for constructing a remote sensing image water body sample set according to claim 2, characterized in that: The water body samples based on the RGB mode and HSV color space are classified into the water body denoising sample set to obtain the remote sensing image water body sample set, including: Randomly sampling all water body sample pixels in the water body denoising sample set; The mode of the RGB values ​​of all the sampled water sample pixels is calculated to obtain the RGB value of the water sample; The RGB values ​​are converted into HSV values, and the water body denoising sample set is classified based on the color classification rule of the HSV values ​​to obtain a remote sensing image water body sample set.

7. The method for constructing a remote sensing image water body sample set according to claim 6, characterized in that: The randomly sampling all pixel points in the water body denoising sample set includes: Calculate the proportion of each water body spot in the water body spot sample slice image according to each of the water body label images in the water body denoising sample set; Determine the sampling quantity of water body sample pixel points in the corresponding water body spot sample slice image according to the proportion value; When randomly sampling the water body sample pixel points in the water body spot sample slice image, the sampling numbers of small water body samples and large water body samples in the water body denoising sample set meet the set relationship; wherein the water body samples with a proportion value less than 1% are defined as small water body samples, and the water body samples with a proportion value greater than 1% are defined as large water body samples.

8. A device for constructing a remote sensing image water body sample set, characterized in that: include: A preprocessing module, used to obtain a plurality of original satellite remote sensing images, and preprocess each of the original satellite remote sensing images to obtain an initial water body sample set; A denoising module, used for performing noise cleaning on the water body initial sample set based on a cross-validation and confidence iteration learning method to obtain a water body denoised sample set; The classification module is used to classify the water body denoising sample set based on the water body samples in the RGB mode and HSV color space to obtain the remote sensing image water body sample set.

9. A computer terminal, characterized in that: The computer terminal includes a processor and a memory, the memory stores a computer program, and the processor is used to execute the computer program to implement the method for constructing a remote sensing image water body sample set according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: It stores a computer program, and when the computer program is executed on a processor, it implements the method for constructing a remote sensing image water body sample set according to any one of claims 1-7.

Citation Information

Patent Citations

  • Method for constructing large-scale remote sensing image semantic segmentation model training sample set

    CN112884791A

  • Machine learning multispectral remote sensing image crop straw out-of-field extraction method and system

    CN114359746A

  • Deep learning change detection sample set construction method and device

    CN116229213A

  • Data screening method and device, equipment and storage medium

    CN116956015A

  • Remote sensing image detection method, device and system for illegal cultivation area of reclamation-forbidden steep slope and medium

    CN118298296A