Surface water body extraction method and device, electronic equipment and storage medium

By adopting the encoder-decoder U-shaped symmetric network architecture and bottleneck structure in surface water extraction, combined with the efficient bar convolution attention mechanism, the problems of increased training time and unused feature information in deep learning methods are solved, and the problem of improved The extraction effect of small water bodies and fine rivers achieves more accurate surface water separation.

CN119007000APending Publication Date: 2024-11-22WUHAN UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410923549.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the extraction of surface water bodies, deep learning methods have problems such as increased model training time, insufficient semantic information at different levels of characteristic features, and insufficient extraction of small water bodies and fine rivers in surface water bodies, and lack of publicly published water body data sets for semantic segmentation.

Method used

Using the U-shaped symmetric network architecture of the encoder-decoder and introducing bottleneck structure and efficient bar convolution attention mechanism, the surface water body extraction model is trained using the surface water body data set. and label to achieve good results in water system extraction.

Benefits of technology

It effectively solves the problem of increasing model training time and unused feature semantic information, improves the extraction accuracy of small water bodies and small rivers, and achieves more accurate and clear surface water body segmentation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119007000A_ABST
    Figure CN119007000A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, in particular to a surface water body extraction method and device, electronic equipment and a storage medium, and the method comprises the steps: carrying out the preprocessing of a to-be-measured remote sensing image of a target region, and obtaining a remote sensing image-ground water body live tag pair; and inputting the remote sensing image-ground water body real-time label pair into an efficient local bar convolution attention (ELSCA) surface water body extraction model to obtain a surface water body segmentation result. Therefore, the problems that the model training time in the background technology is increased along with the increase of the network depth, different levels of feature semantic information cannot be fully utilized, small water bodies and small rivers are not sufficiently extracted in the water body extraction process and the like are solved; a good water system extraction effect is realized in a target area through a U-shaped symmetric network architecture of an encoder-decoder and introduction of a bottleneck structure, an efficient bar convolution attention mechanism and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a surface water extraction method, device, electronic device and storage medium. Background Art

[0002] Surface water bodies are the main storage units of fresh water and the main source of water resources available to humans. Their location and persistence are affected by climate and human activities, and they also reversely affect climate, biodiversity and human well-being. Surface water bodies mainly exist in the form of rivers, lakes, ice, swamps, etc. Among them, rivers and lakes are important components of surface water and play an indispensable role in the hydrological cycle. However, the distribution of surface water bodies is dynamic and complex, especially braided rivers have special geomorphological characteristics. Traditional water survey and investigation research methods are time-consuming and labor-intensive, and it is difficult to provide comprehensive and accurate information on water resource characteristics and evolution laws.

[0003] With the continuous deepening of research on water body quantification and inversion technology, remote sensing, as a convenient, fast, efficient and real-time earth observation technology, has become an important means to obtain earth resource data such as surface water body change data. At present, the traditional methods of surface water body extraction have gone through a process from single-band threshold method, spectral relationship method, water body index method to traditional machine learning method.

[0004] 1) Single-band threshold method

[0005] The single-band threshold method is based on the characteristic that the spectral reflectance of water bodies and background objects in a certain band is quite different. Based on the grayscale histogram, the method effectively separates water bodies from non-water bodies by selecting an appropriate threshold. Lu et al. used the near-infrared band as the basic band based on Landsat-5 image data and determined the water body segmentation threshold by analyzing the frequency distribution histogram to extract water bodies. Zhang et al. extracted the Dalainor Lake by selecting the near-infrared single-band grayscale threshold and studied the changes in its water area from 1975 to 2008.

[0006] 2) Spectral relationship method

[0007] Chen et al. selected Landsat ETM+ image data and compared the spectral relationship method with the single-band threshold method. The results showed that the former can better eliminate the interference caused by mountain shadows in the water extraction process. Wang et al. proposed a threshold-based spectral relationship method by studying the spectral characteristics of water bodies and shadows in the Ziyuan-3 satellite image. Compared with the single-band threshold method, the Normalized Difference Water Index (NDWI) and the Support Vector Machine (SVM), the extraction effect is significantly improved.

[0008] 3) Water index method

[0009] The water index method expands the spectral difference between water bodies and background objects based on the band ratio operation, so that the brightness of water bodies on the image is enhanced and the brightness of background objects is suppressed, making it easier to distinguish water bodies from non-water bodies. In 2006, Xu made improvements on the basis of NDWI and constructed a modified normalized difference water index (Modified Normalized Difference Water Index, MNDWI) based on the ratio operation of the green band and the short-wave infrared band. This method can effectively suppress urban shadow noise. The automated water extraction index (AWEI) proposed by Feyisa in 2014 has a stable threshold and can effectively eliminate the adverse effects of various environmental noises and terrain undulations and shadows. In 2016, Oupa Malahlela proposed a simple water index (SWI) method, which can effectively solve the problem of mixed pixels caused by vegetation and shadow accumulation areas, and the extraction accuracy is improved by about 10% compared with traditional methods.

[0010] 4) Traditional Machine Learning

[0011] In 2012, Shen et al. used an object-oriented (OO) image analysis method to extract water information from mountain lake TM images. In 2018, Gong et al. compared the effects of normalized difference water index (NDWI), modified shadow water index (MSWI), support vector machine (SVM) and object-oriented method (OO) on water extraction in the Sino-Russian border river area based on GF-2 remote sensing data, and explored the advantages and disadvantages of each method. The results showed that the SVM method had the best extraction effect and met the application requirements.

[0012] However, due to the problems of "same spectrum, different objects, same object, different spectrum", low differentiation of spectral feature information between surface water and background objects, the exponential water extraction method based on band ratio calculation often results in over-extraction or under-extraction of target water. At the same time, the results of an independent module in traditional machine learning will affect the next module, thus affecting the overall training results.

[0013] In this context, deep learning methods have attracted widespread attention due to their strong applicability in the process of multi-band remote sensing image information extraction, as they avoid complex feature selection processes. In recent years, deep learning models have been gradually applied to water extraction from remote sensing images. In 2015, Chen et al. used convolutional neural networks to extract water bodies and demonstrated the effectiveness of deep learning methods in water extraction by comparing them with traditional methods such as the normalized difference water index (NDWI). In 2018, Feng et al. proposed an enhanced deep convolutional encoder-decoder (DCED, Decoder-Encoder) network (or Deep U-Net), which specifically extracts water bodies from remote sensing images by applying superpixel segmentation and conditional random fields (CRF, Conditional Random Field), effectively reducing pepper and salt noise and retaining the edge structure of water bodies. In 2023, Chen et al. proposed a multi-level feature attention fusion network (MFAFNet) water body extraction method. The results showed that this method is significantly better than other networks (such as DeepLabV3+, MF2AM, SegFormer) in water body extraction of multi-source SAR (Synthetic Aperture Radar) images, with an average user accuracy of 87%.

[0014] However, although deep learning methods have been widely used in the field of surface water extraction and have achieved good results, there are still many problems that have not been solved due to the learning characteristics of deep learning networks and the distribution characteristics of braided water systems:

[0015] (1) In terms of datasets, there is a lack of publicly available surface water datasets for semantic segmentation tasks. Datasets such as the WorldFloods dataset, which consist of Sentinel-1 and Sentinel-2 images, contain water classes but are not specifically created for water segmentation tasks. Therefore, the sampling scheme adopted does not take into account the intra-class and inter-class variations of water categories. The Sen12-Flood dataset provides image-level labels instead of pixel-level labels and is not suitable for fine-grained water segmentation.

[0016] (2) In the development of deep learning, there are problems such as the model training time increases with the increase of network depth and the semantic information of features at different levels cannot be fully utilized.

[0017] (3) In the process of water extraction, due to the special geomorphological features and distribution characteristics of braided rivers, there are problems such as insufficient extraction of small-area water bodies and small rivers, which need to be solved urgently. Summary of the invention

[0018] The present application provides a surface water extraction method, device, electronic device and storage medium to solve the problems existing in the development of deep learning, such as the increase of model training time with the increase of network depth, the failure to fully utilize the semantic information of features at different levels, the lack of publicly released water data sets for semantic segmentation, and the insufficient extraction of small water bodies and small rivers in the water extraction process. By using the U-shaped symmetric network architecture of the encoder-decoder and introducing the bottleneck structure and the efficient strip convolution attention mechanism, good results of water system extraction are achieved in the target area.

[0019] The first embodiment of the present application provides a surface water extraction method, comprising the following steps:

[0020] Acquire the remote sensing image of the target area to be measured;

[0021] Preprocessing the remote sensing image to be measured to obtain a remote sensing image-ground water body actual label pair;

[0022] The remote sensing image-ground water body actual label pair is input into an efficient local strip convolutional attention (ELSCA) surface water body extraction model to obtain a surface water body segmentation result, wherein the ELSCA surface water body extraction model is obtained by training an ELSCA network with a surface water body dataset.

[0023] According to one embodiment of the present application, before the remote sensing image-ground water body real label pair is input into the efficient local strip convolution attention (ELSCA) surface water body extraction model, it also includes:

[0024] Acquire a surface water body dataset, wherein the surface water body dataset includes image-surface water body actual label pairs;

[0025] The surface water dataset is divided into a training set and a test set, and an ELSCA network is trained using the image-surface water body actual label pairs in the training set to obtain an initial ELSCA surface water body extraction model;

[0026] Based on the image-surface water body actual label pairs in the test set, the model parameters of the initial ELSCA surface water body extraction model are updated through a loss function until a stop updating condition is met, thereby obtaining the ELSCA surface water body extraction model.

[0027] According to one embodiment of the present application, the step of obtaining a surface water body dataset includes:

[0028] Obtain remote sensing images of multiple regions and ground truth labels of surface water bodies in each region;

[0029] Screening out remote sensing images that do not meet a preset cloud cover from the remote sensing images of the multiple regions to obtain a target remote sensing image, and performing radiation calibration, atmospheric correction, image fusion and image cropping on the target remote sensing image to obtain an image data set;

[0030] Based on a preset water body annotation principle, the image dataset is annotated at the pixel level to obtain the surface water body dataset.

[0031] According to one embodiment of the present application, a bottleneck structure and an efficient strip convolution attention mechanism are introduced into the encoder of the ELSCA network.

[0032] According to one embodiment of the present application, the efficient strip convolution attention mechanism uses group normalization, LeakyReLU (Leaky Rectified Linear Unit) function and 1D (one-dimensional) convolution.

[0033] According to the surface water extraction method of the embodiment of the present application, the remote sensing image to be measured in the target area is preprocessed to obtain a remote sensing image-ground water body actual label pair, and the pair is input into the efficient local strip convolution attention (ELSCA) surface water extraction model to obtain the surface water body segmentation result. Thus, the problems of the model training time of the background technology increasing with the increase of network depth, the semantic information of features at different levels not being fully utilized, and the insufficient extraction of small water bodies and small rivers in the water body extraction process are solved. Through the U-shaped symmetric network architecture of the encoder-decoder and the introduction of the bottleneck structure and the efficient strip convolution attention mechanism, a good effect of water system extraction is achieved in the target area.

[0034] The second aspect of the present application provides a surface water extraction device, comprising:

[0035] An acquisition module is used to acquire the remote sensing image to be measured in the target area;

[0036] A preprocessing module, used for preprocessing the remote sensing image to be measured to obtain a remote sensing image-ground water body actual label pair;

[0037] The extraction module is used to input the remote sensing image-ground water body actual label pair into the efficient local strip convolutional attention (ELSCA) surface water body extraction model to obtain the surface water body segmentation result, wherein the ELSCA surface water body extraction model is obtained by training the ELSCA network with the surface water body dataset.

[0038] According to one embodiment of the present application, before the remote sensing image-ground water body actual label pair is input into the efficient local strip convolution attention (ELSCA) surface water body extraction model, the extraction module is further used to:

[0039] Acquire a surface water body dataset, wherein the surface water body dataset includes image-surface water body actual label pairs;

[0040] The surface water dataset is divided into a training set and a test set, and an ELSCA network is trained using the image-surface water body actual label pairs in the training set to obtain an initial ELSCA surface water body extraction model;

[0041] Based on the image-surface water body actual label pairs in the test set, the model parameters of the initial ELSCA surface water body extraction model are updated through a loss function until a stop updating condition is met, thereby obtaining the ELSCA surface water body extraction model.

[0042] According to one embodiment of the present application, the extraction module is used to:

[0043] Obtain remote sensing images of multiple regions and ground truth labels of surface water bodies in each region;

[0044] Screening out remote sensing images that do not meet a preset cloud cover from the remote sensing images of the multiple regions to obtain a target remote sensing image, and performing radiation calibration, atmospheric correction, image fusion and image cropping on the target remote sensing image to obtain an image data set;

[0045] Based on a preset water body annotation principle, the image dataset is annotated at the pixel level to obtain the surface water body dataset.

[0046] According to one embodiment of the present application, a bottleneck structure and an efficient strip convolution attention mechanism are introduced into the encoder of the ELSCA network.

[0047] According to one embodiment of the present application, group normalization, LeakyReLU function and 1D convolution are used in the efficient strip convolution attention mechanism.

[0048] According to the surface water extraction device of the embodiment of the present application, the remote sensing image to be measured in the target area is preprocessed to obtain a remote sensing image-ground water body real-time label pair, and the pair is input into the efficient local strip convolution attention (ELSCA) surface water extraction model to obtain the surface water body segmentation result. Thus, the problems of the background technology that the model training time increases with the increase of network depth, the semantic information of features at different levels is not fully utilized, and the small water bodies and small rivers are insufficiently extracted during the water extraction process are solved. Through the U-shaped symmetric network architecture of the encoder-decoder and the introduction of the bottleneck structure and the efficient strip convolution attention mechanism, a good effect of water system extraction is achieved in the target area.

[0049] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the surface water extraction method as described in the above embodiment.

[0050] The fourth aspect of the present application provides a computer-readable storage medium on which a computer program is stored. The program is executed by a processor to implement the surface water extraction method as described in the above embodiment.

[0051] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0053] Figure 1 A flow chart of a surface water extraction method provided according to an embodiment of the present application;

[0054] Figure 2 A schematic diagram of the structure of an ELSCA model according to an embodiment of the present application;

[0055] Figure 3 A schematic diagram of a specific structure of a bottleneck structure according to an embodiment of the present application;

[0056] Figure 4 is a schematic structural diagram of an ESCA module according to an embodiment of the present application;

[0057] Figure 5 Schematic diagram of the structure of the SimCSPSPPF module according to one embodiment of the present application;

[0058] Figure 6 A schematic diagram of the extraction results of various types of surface water bodies according to an embodiment of the present application;

[0059] Figure 7 is a block diagram of a surface water extraction device according to an embodiment of the present application;

[0060] Figure 8 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0061] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0062] The following describes the surface water extraction method, device, electronic device and storage medium according to the embodiment of the present application with reference to the accompanying drawings. In view of the problems mentioned in the above background technology that the model training time increases with the increase of network depth, the feature semantic information of different levels is not fully utilized, and the small water bodies and small rivers are not extracted enough in the water body extraction process, the present application provides a surface water extraction method, in which the remote sensing image to be measured in the target area is preprocessed to obtain the remote sensing image-ground water body actual label pair, and the pair is input into the efficient local strip convolution attention (ELSCA) surface water extraction model to obtain the surface water body segmentation result. Thus, the problems of the model training time of the background technology increasing with the increase of network depth, the feature semantic information of different levels is not fully utilized, and the small water bodies and small rivers are not extracted enough in the water body extraction process are solved. Through the U-shaped symmetric network architecture of the encoder-decoder and the introduction of the bottleneck structure and the efficient strip convolution attention mechanism, a good effect of water system extraction is achieved in the target area.

[0063] Specifically, Figure 1 A schematic flow chart of a surface water extraction method provided in an embodiment of the present application.

[0064] like Figure 1 As shown, the surface water extraction method comprises the following steps:

[0065] In step S101, a remote sensing image of a target area to be measured is obtained.

[0066] The target area may be an area pre-selected by technicians in this field. Preferably, the target area of ​​the present application may be the Yellow River Delta area.

[0067] Specifically, the embodiments of the present application can acquire the remote sensing image of the target area to be measured by using the remote sensing satellite in the prior art, which is not specifically limited here.

[0068] In step S102, the remote sensing image to be measured is preprocessed to obtain a remote sensing image-ground water body actual label pair.

[0069] Specifically, in order to obtain high-quality available data, the embodiments of the present application can set screening criteria during the screening process and pre-process the collected remote sensing images to be measured. The pre-processing method can be to set a screening cloud cover threshold, radiation calibration, atmospheric correction, image fusion, image cropping, etc., so as to obtain a pre-processed image data set, and based on the preset water body annotation principle, the image data set is annotated at the pixel level to obtain a surface water body data set, and then based on the surface water body data set, a remote sensing image-ground water body actual label pair is obtained.

[0070] For example, the surface water dataset involved in the present invention can be produced by labeling the actual surface water conditions outside the target area to be predicted through the deep learning image annotation software - Labelme, and finally obtaining a remote sensing image-surface water condition label pair.

[0071] In step S103, the remote sensing image-ground water body actual label pair is input into the efficient local strip convolutional attention (ELSCA) surface water body extraction model to obtain the surface water body segmentation result, wherein the ELSCA surface water body extraction model is obtained by training the ELSCA network with the surface water body dataset.

[0072] Among them, the structure of the surface water extraction model of efficient local strip convolutional attention (ELSCA) is as follows: Figure 2 shown.

[0073] Optionally, the embodiment of the present application can use a computer to train the ELSCA network, which can be implemented using Matlab 2021b under the Windows operating system.

[0074] The specific experimental environment configuration may be shown in Table 1, wherein Table 1 is an experimental environment configuration table:

[0075] Table 1

[0076] processor 12th Gen Intel(R)Core(TM)i7-12700F 2.10GHz GPU NVIDIA GeForce RTX 3070 operating system Windows 10 programming language Matlab 2021b

[0077] Furthermore, the ELSCA surface water extraction model includes a feature encoder and a feature decoder part of a U-shaped symmetrical structure, and also includes a feature fusion layer and an intermediate layer. Among them, the encoder includes a bottleneck structure, the feature fusion layer includes an efficient strip convolution attention module, the intermediate layer includes a SimCSPSPPF (a module introduced in YOLOv6 v3.0) module, and the decoder includes multiple convolution blocks consisting of a normalization layer, an activation layer, and a convolution layer.

[0078] For example, the embodiment of the present application can build a feature encoding layer and a feature fusion layer by using Matlab 2021b software, which involves a bottleneck structure and an ESCA module.

[0079] Specifically, the specific network structure of the feature encoding layer is as follows: Figure 3 The specific parameters of the feature coding layer are shown in Table 2:

[0080] Table 2

[0081]

[0082]

[0083] The specific network structure of the feature fusion layer (ESCA module) is as follows: Figure 4 The specific parameters of the feature fusion layer are shown in Table 3:

[0084] Table 3

[0085] Feature fusion layer Convolution kernel size Number of channels Step Length filling Average pooling layer avg1 2×2 64 1×1 same Maximum pooling layer max1 2×2 64 1×1 same Convolutional layer c1 7×1 64 1×1 3 Maximum pooling layer max2 1×7 64 1×1 0 Convolutional layer c2 1×7 64 1×1 3 Average pooling layer avg2 7×1 64 1×1 0

[0086] Furthermore, an intermediate layer is constructed, including the SimCSPSPPF module. The specific network structure of the SimCSPSPPF module is as follows: Figure 5 The specific implementation process of the middle layer is shown in Table 4:

[0087] Table 4

[0088]

[0089]

[0090] Furthermore, a feature decoder is constructed, including 4 convolution blocks and a discriminator. Taking one of the convolution blocks as an example, the specific network structure and parameters are shown in Table 5:

[0091] Table 5

[0092] Feature decoding layer Activation Function Convolution kernel size Number of channels Step Length filling Convolutional layer c0 ReLU 3×3 128 1×1 1 Convolutional layer c1 ReLU 3×3 128 1×1 1 Deconvolution layer c2 ReLU 2×2 64 2×2 same

[0093] The network structure and parameters of the discriminator are shown in Table 6:

[0094] Table 6

[0095]

[0096] Therefore, the ELSCA surface water extraction model of the embodiment of the present application uses the U-shaped symmetric structure of the encoder-decoder to enable the network to output a generated image with the same size as the input image, realizes end-to-end operation, and introduces a bottleneck structure (Bottleneck Architectures) to reduce the complexity of the model, greatly reducing the amount of calculation to quickly extract spatial information in the feature map and model the relationship between different channels. The introduction of the efficient strip convolution attention mechanism (ESCA) realizes the interaction of features in the horizontal and vertical directions, and connects the image detail information obtained by the shallow network and the richer semantic information obtained by the deep network. The representation ability of the feature map is enhanced by the SimCSPSPPF module. Specifically, the SPPCSPC module used in YOLOv7 is modified by reducing the channels of the hidden layer and modifying the spatial pyramid pooling.

[0097] Specifically, the remote sensing image-ground water body actual label pair is input into the efficient local strip convolutional attention (ELSCA) surface water body extraction model, and the decoder in the ELSCA surface water body extraction model outputs the image segmentation result. For example, the input is a remote sensing image-ground water body actual label pair of 128*128 pixels, and the model parameters saved in the surface water body extraction model are used to segment the remote sensing image to be tested, and the surface water body segmentation result is obtained.

[0098] Furthermore, in some embodiments, before the remote sensing image-ground water body actual label pair is input into the efficient local strip convolutional attention (ELSCA) surface water body extraction model, it also includes: obtaining a surface water body dataset, wherein the surface water body dataset includes image-surface water body actual label pairs; dividing the surface water body dataset to obtain a training set and a test set, and using the image-surface water body actual label pairs in the training set to train the ELSCA network to obtain an initial ELSCA surface water body extraction model; based on the image-surface water body actual label pairs in the test set, updating the model parameters of the initial ELSCA surface water body extraction model through a loss function until the stop updating condition is met to obtain the ELSCA surface water body extraction model.

[0099] Among them, in some embodiments, obtaining a surface water body dataset includes: obtaining remote sensing images of multiple regions and real-time labels of surface water bodies in each region; screening out remote sensing images that do not meet preset cloud cover from the remote sensing images of multiple regions to obtain target remote sensing images, and performing radiation calibration, atmospheric correction, image fusion and image cropping on the target remote sensing images to obtain an image dataset; based on preset water body annotation principles, performing pixel-level annotation on the image dataset to obtain a surface water body dataset.

[0100] Preferably, the preset cloud cover may be less than or equal to 15%, which is not specifically limited herein.

[0101] Among them, the preset water body marking principle can be a water body marking principle pre-set by technical personnel in this field, can be a water body marking principle obtained through a limited number of experiments, or can be a water body marking principle obtained through computer simulation, and is not specifically limited here.

[0102] Specifically, the embodiment of the present application can obtain remote sensing images of multiple regions by using remote sensing satellites in the prior art, and then obtain the real-time labels of surface water bodies in each region. In order to obtain high-quality available data, screening criteria are set in the screening process and the collected remote sensing images are preprocessed as follows:

[0103] In order to obtain high-quality image data, remote sensing images that do not meet the preset cloud cover are screened out from remote sensing images of multiple regions to obtain the target remote sensing images.

[0104] In order to eliminate the sensor's own errors and determine the accurate radiation value at the sensor entrance, the embodiment of the present application needs to perform radiation calibration on the target remote sensing image. In order to eliminate the errors caused by atmospheric scattering, absorption, and reflection, the remote sensing image data after radiation calibration needs to be atmospherically corrected. Considering that the resolution of the full-color image space is generally high and the multispectral image has richer spectral information, in order to improve the spatial resolution of the multispectral image, the remote sensing image needs to be fused. Since the images generated by the ELSCA network are all of the same size, the input of its encoder is also an image pair of the same size. Therefore, the embodiment of the present application can use a sliding window non-overlapping cutting method to cut the remote sensing image data into K*K image blocks, thereby obtaining an image data set.

[0105] Furthermore, due to the lack of publicly released pixel-level surface water datasets for semantic segmentation tasks, the embodiments of the present application can use deep learning image annotation software in the prior art, such as Labelme data annotation software, and based on preset water body annotation principles, perform pixel-level fine annotation on the cropped image dataset through manual visual interpretation, and select images with a large proportion of water bodies - corresponding surface water body actual label pair data for network learning of their characteristics.

[0106] For example, the present embodiment collects 6 high-quality images with cloud cover less than 5% for the preparation of the surface water dataset of the Yellow River Delta region, uses a sliding window to cut images outside the study area in a non-overlapping cutting manner, and uses the Random Patch Extraction Datastore module to finally obtain an expanded dataset containing 9600 training data of 128*128 pixel images - corresponding ground truth label pairs and 205 test data. Due to the small size of the dataset, no validation set was set.

[0107] Specifically, the surface water data set is divided to obtain a training set and a test set. It should be noted that in the surface water data set of the Yellow River Delta region produced by the present invention, the remote sensing images outside the target area to be predicted are annotated, and the training set is constructed based on this, while the test set is not annotated. Further, the ELSCA network is trained using the high-quality image-surface water body actual label pairs in the training set and the trained network parameters are saved to obtain the initial ELSCA surface water body extraction model. The overall architecture of the ELSCA network is similar to the U-Net neural network, which is a U-shaped symmetrical structure including an encoder and a decoder.

[0108] Among them, in some embodiments, a bottleneck structure is introduced in the encoder of the ELSCA network, and the 1×1 convolution kernel is responsible for reducing and restoring the feature dimension, so that the 3×3 convolution layer becomes the "bottleneck" of inputting / outputting feature maps with fewer dimensions, which facilitates reducing the complexity of the network and greatly reduces the amount of calculation to quickly extract spatial information in the feature map and model the relationship between different channels.

[0109] Furthermore, in the ELSCA network, the image detail information obtained by the shallow network and the richer semantic information obtained by the deep network are integrated through the efficient strip convolution attention module, and meaningful channel feature information is captured and more position information is aggregated, so that the entire network can well obtain all the information of the image. Specifically, this module pays attention to the feature information of both spatial and channel dimensions. Among them, strip pooling (StripPooling) and strip convolution (Strip Convolution) are used in the spatial dimension to obtain feature vectors in the horizontal and vertical directions, generate position attention predictions in two directions, and realize local interaction of feature vectors through element-wise multiplication, and finally realize accurate division of the region of interest. 1D strip convolution is lightweight and can be used as a supplement to grid convolution, which helps to extract strip features without dimensionality reduction, and accurately distinguish the region of interest.

[0110] Furthermore, group normalization (GN) is used in the network to make the learning process more stable, avoiding the lack of generalization ability in batch normalization (Batch Normalization, BN), the adverse effects of dimensionality reduction on channel attention, and the complexity of the attention generation process.

[0111] Furthermore, in terms of activation functions, the output layer of the ELSCA network uses the Softmax function, the ESCA module uses the Leaky ReLU function, and other layers use the ReLU function.

[0112] Furthermore, the image-surface water body actual label pairs in the test set are used to calculate the loss function (such as the cross entropy loss function) to update the model parameters of the initial ELSCA surface water body extraction model. Through multiple iterations, the update stop condition is met, that is, until the loss no longer decreases and the water surface with clear, smooth and coherent water body boundaries is extracted, and the model parameters are saved to obtain the ELSCA surface water body extraction model.

[0113] It can be understood by those skilled in the art that the extraction results of various types of surface water bodies (including four types of surface water bodies, namely reservoirs, lakes, rivers and salt pan aquaculture ponds) are as follows: Figure 6 As shown in the figure. In terms of subjective vision, it can be seen that compared with the other four methods (MNDWI, AWEI sh Compared with the existing SVM and U-Net, the water body extraction results of the present invention are most consistent with the actual distribution of water bodies in the original image, and the extracted water body boundaries are more accurate, clear and smooth. In addition, the classification results of the present invention for mixed pixels and complex morphological water bodies are more accurate, especially for Figure 6 The extraction results in the middle frame (the original image is framed by a green frame, the extraction results of the comparison method are framed by an orange frame, and the extraction results of the present invention are framed by a red frame). Specifically, in the A1 image, compared with other methods, the present invention can ensure that the small-area salt pan breeding pond below the reservoir is completely extracted while avoiding over-extraction of the reservoir. In the A2 image, the extraction results of the present invention are most consistent with the actual distribution of the reservoir water body. In the A3 and A4 images, compared with other methods, the present invention can most accurately extract branch rivers and try to avoid mistakenly extracting small dams inside the water body as water bodies.

[0114] Therefore, the present invention produces a high-quality pixel-level target area surface water body dataset. The ELSCA surface water body extraction model can better balance the extraction accuracy and learning efficiency, and make full use of the feature information at each level; the extracted water body boundaries are clearer and smoother, and closer to the actual distribution of the water body, and the extraction effect of small water bodies and small rivers is better.

[0115] In terms of objective evaluation, the embodiment of the present application uses 205 images in the test set for surface water extraction, and randomly selects 4 images to evaluate and analyze the model by calculating three water extraction accuracy evaluation indicators such as Overall Accuracy (OA), Kappa coefficient (the Kappa coefficient, Kappa), and F1 score (F1-Score, F1), as well as two error evaluation indicators such as Omission Error (OE) and Commit Error (CE).

[0116] The quantitative evaluation results of the four images are as follows, wherein Table 7 is the quantitative evaluation results of the first image, Table 8 is the quantitative evaluation results of the second image, Table 9 is the quantitative evaluation results of the third image, and Table 10 is the quantitative evaluation results of the fourth image.

[0117] Table 7

[0118] Model OA (%) Kappa F1(%) OE(%) CE(%) MNDWI 95.90 0.9175 96.20 2.56 5.00 <![CDATA[AWEI sh ]]> 95.70 0.9135 96.04 2.20 5.65 SVM 95.90 0.9173 96.24 1.47 5.94 U-Net 94.92 0.8983 95.13 6.96 2.68 The present invention 96.29 0.9258 96.31 0.40 6.77

[0119] Table 8

[0120]

[0121]

[0122] Table 9

[0123] Model OA (%) Kappa F1(%) OE(%) CE(%) MNDWI 91.80 0.8359 91.73 8.98 7.54 <![CDATA[AWEI sh ]]> 97.46 0.9492 97.42 4.30 0.81 SVM 96.09 0.9219 95.95 7.42 0.42 U-Net 95.51 0.9102 95.57 3.13 5.70 The present invention 98.63 0.9727 98.62 1.95 0.79

[0124] Table 10

[0125] Model OA (%) Kappa F1(%) OE(%) CE(%) MNDWI 94.34 0.8866 94.00 10.28 1.30 <![CDATA[AWEI sh ]]> 95.31 0.9062 95.10 7.91 1.69 SVM 96.88 0.9375 96.85 2.77 3.53 U-Net 95.12 0.9023 94.95 7.11 2.89 The present invention 97.46 0.9492 97.44 2.37 2.76

[0126] It can be obtained from the experimental data that compared with the other four extraction methods, the present invention has achieved the highest detection accuracy in three water body extraction accuracy evaluation indicators, namely, overall accuracy (OA), Kappa coefficient (Kappa), and F1 score (F1-Score). On the four images, each evaluation indicator increased by an average of 1.81%, 0.036, and 1.78%; and obtained lower scores in two error evaluation indicators, namely, omission error (OE) and misclassification error (CE). Among them, the omission error indicator was reduced by an average of 2.24%. The results show that compared with the other four methods, the present invention is more robust and has reliability and effectiveness in the task of extracting surface water bodies in semantic segmentation of remote sensing images.

[0127] According to the surface water extraction method of the embodiment of the present application, the remote sensing image to be measured in the target area is preprocessed to obtain a remote sensing image-ground water body actual label pair, and the pair is input into the efficient local strip convolution attention (ELSCA) surface water extraction model to obtain the surface water body segmentation result. Thus, the problems of the model training time of the background technology increasing with the increase of network depth, the semantic information of features at different levels not being fully utilized, and the insufficient extraction of small water bodies and small rivers in the water body extraction process are solved. Through the U-shaped symmetric network architecture of the encoder-decoder and the introduction of the bottleneck structure and the efficient strip convolution attention mechanism, a good effect of water system extraction is achieved in the target area.

[0128] Next, the surface water extraction device proposed according to the embodiment of the present application is described with reference to the accompanying drawings.

[0129] Figure 7It is a block diagram of a surface water extraction device according to an embodiment of the present application.

[0130] like Figure 7 As shown, the surface water extraction device 10 includes: an acquisition module 100, a preprocessing module 200 and an extraction module 300.

[0131] Among them, the acquisition module 100 is used to acquire the remote sensing image to be measured in the target area; the preprocessing module 200 is used to preprocess the remote sensing image to be measured to obtain the remote sensing image-ground water body actual label pair; the extraction module 300 is used to input the remote sensing image-ground water body actual label pair into the efficient local strip convolutional attention (ELSCA) surface water body extraction model to obtain the surface water body segmentation result, wherein the ELSCA surface water body extraction model is obtained by training the ELSCA network with the surface water body data set.

[0132] Furthermore, in some embodiments, before the remote sensing image-ground water body actual label pair is input into the efficient local strip convolutional attention (ELSCA) surface water body extraction model, the extraction module 300 is also used to: obtain a surface water body dataset, wherein the surface water body dataset includes image-surface water body actual label pairs; divide the surface water body dataset into a training set and a test set, and use the image-surface water body actual label pairs in the training set to train the ELSCA network to obtain an initial ELSCA surface water body extraction model; based on the image-surface water body actual label pairs in the test set, update the model parameters of the initial ELSCA surface water body extraction model through a loss function until the stop updating condition is met to obtain the ELSCA surface water body extraction model.

[0133] Furthermore, in some embodiments, the extraction module 300 is used to: obtain remote sensing images of multiple regions and actual labels of surface water bodies in each region; filter out remote sensing images that do not meet preset cloud cover from the remote sensing images of multiple regions to obtain target remote sensing images, and perform radiation calibration, atmospheric correction, image fusion and image cropping on the target remote sensing images to obtain an image data set; perform pixel-level annotation on the image data set based on preset water body annotation principles to obtain a surface water body data set.

[0134] Furthermore, in some embodiments, a bottleneck structure and an efficient strip convolution attention mechanism are introduced into the encoder of the ELSCA network.

[0135] Further, in some embodiments, group normalization, LeakyReLU function and 1D convolution are used in the efficient strip convolution attention mechanism.

[0136] It should be noted that the above explanation of the embodiment of the surface water extraction method is also applicable to the surface water extraction device of this embodiment, and will not be repeated here.

[0137] According to the surface water extraction device of the embodiment of the present application, the remote sensing image to be measured in the target area is preprocessed to obtain a remote sensing image-ground water body real-time label pair, and the pair is input into the efficient local strip convolution attention (ELSCA) surface water extraction model to obtain the surface water body segmentation result. Thus, the problems of the background technology that the model training time increases with the increase of network depth, the semantic information of features at different levels is not fully utilized, and the small water bodies and small rivers are insufficiently extracted during the water extraction process are solved. Through the U-shaped symmetric network architecture of the encoder-decoder and the introduction of the bottleneck structure and the efficient strip convolution attention mechanism, a good effect of water system extraction is achieved in the target area.

[0138] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:

[0139] A memory 801 , a processor 802 , and a computer program stored in the memory 801 and executable on the processor 802 .

[0140] When the processor 802 executes the program, the surface water body extraction method provided in the above embodiment is implemented.

[0141] Furthermore, the electronic device further comprises:

[0142] The communication interface 803 is used for communication between the memory 801 and the processor 802 .

[0143] The memory 801 is used to store computer programs that can be executed on the processor 802 .

[0144] The memory 801 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0145] If the memory 801, the processor 802 and the communication interface 803 are implemented independently, the communication interface 803, the memory 801 and the processor 802 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0146] Optionally, in a specific implementation, if the memory 801, the processor 802 and the communication interface 803 are integrated on a chip, the memory 801, the processor 802 and the communication interface 803 can communicate with each other through an internal interface.

[0147] The processor 802 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0148] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the above-mentioned surface water extraction method is implemented.

[0149] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0150] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0151] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for extracting surface water, characterized in that: The following steps are involved: Acquire the remote sensing image of the target area to be measured; Preprocessing the remote sensing image to be measured to obtain a remote sensing image-ground water body actual label pair; The remote sensing image-ground water body actual label pair is input into the efficient local strip convolutional attention (ELSCA) surface water body extraction model to obtain a surface water body segmentation result, wherein the ELSCA surface water body extraction model is obtained by training the ELSCA network with a surface water body dataset.

2. The method according to claim 1, characterized in that Before inputting the remote sensing image-ground water body ground truth label pair into the efficient local strip convolution attention (ELSCA) surface water body extraction model, it also includes: Acquire a surface water body dataset, wherein the surface water body dataset includes image-surface water body actual label pairs; The surface water dataset is divided into a training set and a test set, and an ELSCA network is trained using the image-surface water body actual label pairs in the training set to obtain an initial ELSCA surface water body extraction model; Based on the image-surface water body actual label pairs in the test set, the model parameters of the initial ELSCA surface water body extraction model are updated through a loss function until a stop updating condition is met, thereby obtaining the ELSCA surface water body extraction model.

3. The method according to claim 2, characterized in that The obtaining of the surface water dataset comprises: Obtain remote sensing images of multiple regions and ground truth labels of surface water bodies in each region; Screening out remote sensing images that do not meet a preset cloud cover from the remote sensing images of the multiple regions to obtain a target remote sensing image, and performing radiation calibration, atmospheric correction, image fusion and image cropping on the target remote sensing image to obtain an image data set; Based on a preset water body annotation principle, the image dataset is annotated at the pixel level to obtain the surface water body dataset.

4. The method according to claim 2, characterized in that: A bottleneck structure and an efficient strip convolution attention mechanism are introduced into the encoder of the ELSCA network.

5. The method according to claim 4, characterized in that The efficient strip convolution attention mechanism uses group normalization, leaky ReLU function and 1D convolution.

6. A surface water extraction device, characterized in that: The following steps are involved: An acquisition module is used to acquire the remote sensing image to be measured in the target area; A preprocessing module, used for preprocessing the remote sensing image to be measured to obtain a remote sensing image-ground water body actual label pair; The extraction module is used to input the remote sensing image-ground water body actual label pair into the efficient local strip convolutional attention (ELSCA) surface water body extraction model to obtain the surface water body segmentation result, wherein the ELSCA surface water body extraction model is obtained by training the ELSCA network with the surface water body dataset.

7. The device according to claim 6, characterized in that Before inputting the remote sensing image-ground water body ground truth label pair into the efficient local strip convolutional attention (ELSCA) surface water body extraction model, the extraction module is further used to: Acquire a surface water body dataset, wherein the surface water body dataset includes image-surface water body actual label pairs; The surface water dataset is divided into a training set and a test set, and an ELSCA network is trained using the image-surface water body actual label pairs in the training set to obtain an initial ELSCA surface water body extraction model; Based on the image-surface water body actual label pairs in the test set, the model parameters of the initial ELSCA surface water body extraction model are updated through a loss function until a stop updating condition is met, thereby obtaining the ELSCA surface water body extraction model.

8. The device according to claim 7, characterized in that The extraction module is used to: Obtain remote sensing images of multiple regions and ground truth labels of surface water bodies in each region; Screening out remote sensing images that do not meet a preset cloud cover from the remote sensing images of the multiple regions to obtain a target remote sensing image, and performing radiation calibration, atmospheric correction, image fusion and image cropping on the target remote sensing image to obtain an image data set; Based on a preset water body annotation principle, the image dataset is annotated at the pixel level to obtain the surface water body dataset.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the surface water extraction method according to any one of claims 1 to 5.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the surface water extraction method as described in any one of claims 1 to 5.

Citation Information

Cited By

  • Water body extraction method, system and device based on conditional random field and sub-pixel positioning

    CN119992355A

  • Remote sensing image water body information extraction method combining weak supervision and sample migration

    CN121837935A