Shoreline identification method and device based on data enhancement, equipment and medium
Through data enhancement technology and neural network model training, the problems of low efficiency and poor accuracy of existing coastline recognition technology are solved, and efficient recognition of large-scale and dynamically changing scenes is achieved, especially coastline recognition under cloud cover. .
Patent Information
- Application Number
- CN202410846511.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-27
AI Technical Summary
Existing coastline recognition technology relies on manual interpretation and simple image processing, which is inefficient and difficult to deal with large-scale or dynamically changing scenes. Especially when clouds obscure it, it is difficult to accurately identify water bodies and coastlines.
Using a method based on data enhancement, cloud data enhancement and hybrid enhancement processing are performed on the remote sensing image data set through an isolation trigger algorithm to generate a training data set and input it into a pre-built neural network model for training to build a coastline recognition model and improve Automation and accuracy.
Simultaneously learning spectral values and advanced features of water body morphology in complex and changing data improves the accuracy and efficiency of shoreline recognition in remote sensing images, and can better handle large-scale and dynamically changing scenes.
Smart Images

Figure CN118736437A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of shoreline identification, and in particular to a shoreline identification method, device, equipment and medium based on data enhancement. Background Art
[0002] Coastline recognition technology is one of the important applications of geographic information systems (GIS), remote sensing technology and computer vision in the marine field. In related technologies, coastline recognition methods mainly rely on manual interpretation and simple image processing technology, which are labor-intensive, inefficient, and difficult to cope with large-scale or dynamically changing scenes. In summary, the technical problems existing in related technologies need to be improved. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to propose a shoreline identification method, device, equipment and medium based on data enhancement, which can improve the automation and accuracy of shoreline identification.
[0004] To achieve the above purpose, an embodiment of the present application proposes a shoreline recognition method based on data enhancement, the method comprising:
[0005] Obtain remote sensing image datasets;
[0006] Performing cloud data enhancement and hybrid enhancement processing on the remote sensing image data set according to the isolation trigger algorithm to obtain a training data set;
[0007] Inputting the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model;
[0008] The remote sensing image data to be identified is obtained, and the remote sensing image data to be identified is input into the shoreline identification model to obtain a shoreline identification result.
[0009] In some embodiments, performing cloud data enhancement and hybrid enhancement processing on the remote sensing image dataset according to the isolation trigger algorithm to obtain a training dataset includes the following steps:
[0010] Filtering cloud data and batch data from the remote sensing image data set;
[0011] Performing random enhancement strategy triggering processing on the remote sensing image data set to obtain first data to be processed and second data to be processed;
[0012] Performing cloud data enhancement processing on the first data to be processed according to the cloud layer data to obtain first enhanced data;
[0013] Performing mixed enhancement processing on the second to-be-processed data according to the batch data to obtain second enhanced data;
[0014] The first enhanced data and the second enhanced data are determined as the training data set.
[0015] In some embodiments, performing cloud data enhancement processing on the first to-be-processed data according to the cloud layer data to obtain first enhanced data includes the following steps:
[0016] Performing data preprocessing on the cloud layer data to obtain normalized data and a transparent mask layer;
[0017] Performing random rotation processing on the normalized data to obtain morphologically enhanced data;
[0018] The first to-be-processed data is subjected to random cloud cover processing by using the morphological enhancement data in combination with the transparent mask layer to obtain the first enhanced data.
[0019] In some embodiments, performing mixed enhancement processing on the second to-be-processed data according to the batch data to obtain second enhanced data includes the following steps:
[0020] Performing random region segmentation processing on the batch data to obtain a segmented image;
[0021] The segmented images are sequentially overlaid on the second data to be processed to obtain second enhanced data.
[0022] In some embodiments, before inputting the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model, the method further includes pre-building the neural network model, specifically including the following steps:
[0023] The encoder-decoder backbone network is constructed based on the inverted residual structure and the linear bottleneck layer;
[0024] The encoder-decoder backbone network is connected through a skip link module to obtain the neural network model.
[0025] In some embodiments, the step of inputting the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model comprises the following steps:
[0026] Performing cross-validation partitioning processing on the training data set to obtain a training data combination;
[0027] The training data combination is input into the neural network model for training verification to obtain a shoreline recognition model.
[0028] In some embodiments, the step of inputting the training data combination into the neural network model for training verification to obtain a shoreline recognition model comprises the following steps:
[0029] Inputting the training data combination into the neural network model to obtain a prediction result;
[0030] Perform loss calculation processing on the prediction result according to the dice loss function to obtain a training loss value;
[0031] The parameters of the neural network model are updated according to the learning rate decay strategy in combination with the training loss value to obtain a shoreline recognition model.
[0032] To achieve the above object, another aspect of the embodiment of the present application provides a shoreline recognition device based on data enhancement, the device comprising:
[0033] The first module is used to obtain remote sensing image datasets;
[0034] The second module is used to perform cloud data enhancement and hybrid enhancement processing on the remote sensing image data set according to the isolation trigger algorithm to obtain a training data set;
[0035] The third module is used to input the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model;
[0036] The fourth module is used to obtain the remote sensing image data to be identified, input the remote sensing image data to be identified into the shoreline identification model, and obtain the shoreline identification result.
[0037] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.
[0038] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0039] The embodiments of the present application include at least the following beneficial effects: The present application provides a shoreline recognition method, device, equipment and medium based on data enhancement, which obtains a remote sensing image data set; performs cloud data enhancement and hybrid enhancement processing on the remote sensing image data set according to the isolation trigger algorithm to obtain a training data set; inputs the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model; obtains remote sensing image data to be identified, and inputs the remote sensing image data to be identified into the shoreline recognition model to obtain a shoreline recognition result. The embodiments of the present application perform data enhancement on the training data through cloud data enhancement and batch mixing, which enables the model to simultaneously learn the advanced features of spectral values and water body morphology in a complex and changeable data set, thereby improving the accuracy of shoreline recognition of remote sensing images. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a flow chart of a shoreline identification method based on data enhancement provided in an embodiment of the present application;
[0041] Figure 2 is a schematic diagram of cloud data provided by an embodiment of the present application;
[0042] Figure 3 is a schematic diagram of spectral data and visual display provided in an embodiment of the present application;
[0043] Figure 4 This is a schematic diagram of a color image of cloud occlusion provided in an embodiment of the present application;
[0044] Figure 5 is a schematic diagram of a cloud-occluded mask image provided in an embodiment of the present application;
[0045] Figure 6 is a schematic diagram of random region segmentation provided in an embodiment of the present application;
[0046] Figure 7 is a schematic diagram of hybrid enhancement provided by an embodiment of the present application;
[0047] Figure 8 It is a structural schematic diagram of a neural network model provided in an embodiment of the present application;
[0048] Fig. 9 This is a schematic diagram of a recognition result provided by an embodiment of the present application without using this solution;
[0049] Fig.10 This is a schematic diagram of the recognition result using this solution provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0051] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0052] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0054] Coastline identification technology is one of the important applications of geographic information systems (GIS), remote sensing technology and computer vision in the marine field. The identification and monitoring of the coastline, that is, the boundary between land and water, is of great significance to coastal resource management, environmental protection, coastal erosion monitoring, island boundary demarcation and other fields. With the rapid development of remote sensing technology and satellite imaging technology, large-scale, high-resolution surface images can be obtained, providing a large amount of raw data for coastline identification. However, the complexity of the natural attributes of the coastline and the interference of human activities makes its automatic and intelligent identification a challenging task. In remote sensing water body identification, cloud cover is an important issue that directly affects the integrity of water body extraction. If the cloud is just above the water body, the spectral information reflected by the water body is difficult to be received by the satellite. Therefore, the location of the water body on the remote sensing image lacks available water body information, resulting in the inability to extract the real coastline. In small-scale research, the coastline can be extracted by flexibly selecting areas without cloud coverage. However, in large-scale research, the cloud cover problem of remote sensing images is ubiquitous, which makes it difficult to quickly and efficiently extract large-scale water body coastlines through remote sensing images.
[0055] In the study of remote sensing water body identification and shoreline extraction, the presence of clouds is a major challenge. Cloud occlusion will cause the spectral information reflected by the water body to be unable to be fully received by the satellite sensor, resulting in the loss of important information about the water body position on the remote sensing image, thus affecting the accurate identification of the water body and the precise extraction of the shoreline. Especially in large-scale water body monitoring, the universality and randomness of cloud cover increase the complexity of identification and analysis. Traditional shoreline identification methods mainly rely on manual interpretation and simple image processing techniques, which are labor-intensive, inefficient, and difficult to cope with large-scale or dynamically changing scenes. Therefore, researchers began to explore the use of automated and intelligent methods to improve the accuracy and efficiency of shoreline identification.
[0056] The use of machine learning and deep learning technology for coastline identification is a new method for automated digital coastline generation that can replace traditional manual annotation. Convolutional neural network (CNN) is used for feature extraction and classification to identify the coastline area in the image. This method can automatically learn the features related to coastline identification in the image without complex feature engineering or manual intervention. By training the neural network model, the location of the coastline can be automatically identified from the satellite image. The advantage of this method is that it can handle complex image features, adapt to different terrain and lighting conditions, and as more and more data are used for training, its recognition accuracy and robustness are improved. The embodiment of the present application improves the automation level and accuracy of coastline identification by applying deep learning technology. By optimizing the neural network model and algorithm, it aims to develop a technology that can quickly and accurately identify and monitor coastline changes from a large number of satellite images to support key applications such as coastal resource management, environmental monitoring and policy making, which will bring new technological breakthroughs to the field of coastline identification and is expected to be widely used in related fields.
[0057] In view of this, a shoreline recognition method, device, equipment and medium based on data enhancement are provided in the embodiments of the present application. The scheme obtains a remote sensing image data set; performs cloud data enhancement and hybrid enhancement processing on the remote sensing image data set according to the isolation trigger algorithm to obtain a training data set; inputs the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model; obtains remote sensing image data to be identified, and inputs the remote sensing image data to be identified into the shoreline recognition model to obtain a shoreline recognition result. The embodiments of the present application perform data enhancement on the training data through cloud data enhancement and batch mixing, which enables the model to simultaneously learn the advanced features of spectral values and water body morphology in a complex and changeable data set, thereby improving the accuracy of shoreline recognition of remote sensing images.
[0058] A shoreline identification method based on data enhancement provided in an embodiment of the present application relates to the technical field of shoreline identification. The shoreline identification method based on data enhancement provided in an embodiment of the present application can be applied to a terminal, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or it can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements a shoreline identification method based on data enhancement, etc., but is not limited to the above forms.
[0059] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0060] Figure 1 is an optional flow chart of a shoreline recognition method based on data enhancement provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S104.
[0061] Step S101, obtaining a remote sensing image data set;
[0062] Step S102, performing cloud data enhancement and hybrid enhancement processing on the remote sensing image data set according to the isolation trigger algorithm to obtain a training data set;
[0063] Step S103: inputting the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model;
[0064] Step S104, obtaining remote sensing image data to be identified, inputting the remote sensing image data to be identified into the shoreline identification model, and obtaining a shoreline identification result.
[0065] Steps S101 to S104 shown in the embodiment of the present application can obtain the remote sensing image data set by downloading from the online data platform, or by obtaining the remote sensing image data set through the remote sensing image of the Sentinel-2 satellite as the data source, and the remote sensing impact data set is used as the original training data set. Then, the remote sensing image data set is subjected to cloud data enhancement and hybrid enhancement processing according to the isolation trigger algorithm. The isolation trigger algorithm means that at any time point, only one data enhancement strategy is triggered. Such processing can ensure that the effect of each enhancement strategy can be fully utilized, while avoiding over-complex training data, ensuring the effectiveness and efficiency of model training. In the embodiment of the present application, the data enhancement strategy includes a cloud data enhancement strategy and a hybrid enhancement strategy. The cloud data enhancement strategy can be used to fuse thick cloud data into the original training data, so that the model can learn advanced features when processing the obstructed water area, and enhance the model's ability to recognize the continuity of the water body, thereby improving the generalization ability of the remote sensing image shoreline recognition and the coherence of large-scale river waterways, and improving the accuracy of shoreline recognition. And by destroying the integrity of the original data image through a hybrid enhancement strategy, a large amount of training data can be generated online, which not only increases the difficulty of the data, but also prompts the model to learn more advanced water body knowledge in a complex data environment, thereby improving the accuracy of shoreline recognition. By inputting the training data set after data enhancement processing into a pre-built neural network model for training processing, a shoreline recognition model is obtained. By focusing on the problem of many noise points in surface water recognition, the continuity of the natural shoreline is focused on, and a training strategy for thick cloud cover is proposed. By integrating the principles of semantic segmentation technology and image restoration technology, a deep learning model that can generate a more natural shoreline is trained; thereby obtaining the remote sensing image data to be identified for shoreline recognition, and inputting the remote sensing image data to be identified into the shoreline recognition model for identification to obtain the shoreline recognition result. The model of the embodiment of the present application is sensitive to natural shorelines, and can judge whether the current water body element can be identified as a water body of a natural shoreline based on the cross-pixel information on the remote sensing image, thereby generating a more regular shoreline recognition result.
[0066] In some embodiments, performing cloud data enhancement and hybrid enhancement processing on the remote sensing image dataset according to the isolation trigger algorithm to obtain a training dataset includes the following steps:
[0067] Filtering cloud data and batch data from the remote sensing image data set;
[0068] Performing random enhancement strategy triggering processing on the remote sensing image data set to obtain first data to be processed and second data to be processed;
[0069] Performing cloud data enhancement processing on the first data to be processed according to the cloud layer data to obtain first enhanced data;
[0070] Performing mixed enhancement processing on the second to-be-processed data according to the batch data to obtain second enhanced data;
[0071] The first enhanced data and the second enhanced data are determined as the training data set.
[0072] In an embodiment of the present application, cloud data and batch data are screened from a remote sensing image data set, wherein the cloud data is remote sensing image data with a relatively large period of cloud coverage, and the batch data is data randomly extracted from a remote sensing image data set. The embodiment of the present application uses an isolation trigger algorithm to isolate the hybrid enhancement method from the cloud enhancement method, and then one enhancement strategy will be triggered each time the data is processed, but both enhancement strategies will not be triggered at the same time. That is, each time data enhancement is performed, only one of the data enhancement schemes, cloud enhancement or batch mixing, will be randomly executed, and the probability of each being triggered is 50%. The embodiment of the present application can randomly classify the remote sensing image data set before data enhancement processing to obtain the first data to be processed and the second data to be processed, wherein the first data to be processed is data that is subjected to cloud data enhancement processing through cloud data, and the first enhanced data can be obtained after cloud data enhancement; the second data to be processed is data that is subjected to hybrid enhancement processing through batch data, and the second enhanced data can be obtained after hybrid enhancement processing, and finally the first enhanced data and the second enhanced data are determined as training data sets. The embodiments of the present application enable the effect of each enhancement strategy to be fully utilized while avoiding over-complication of training data, thereby ensuring the effectiveness and efficiency of model training.
[0073] In some embodiments, performing cloud data enhancement processing on the first to-be-processed data according to the cloud layer data to obtain first enhanced data includes the following steps:
[0074] Performing data preprocessing on the cloud layer data to obtain normalized data and a transparent mask layer;
[0075] Performing random rotation processing on the normalized data to obtain morphologically enhanced data;
[0076] The first to-be-processed data is subjected to random cloud cover processing by using the morphological enhancement data in combination with the transparent mask layer to obtain the first enhanced data.
[0077] In the embodiment of the present application, cloud data is screened from the remote sensing image data set, and image data of a period with more cloud coverage is obtained to extract the spectral data of thick clouds that can completely block the surface information, and the spectral data is used as the occlusion data in the self-supervised learning of the deep learning model in the embodiment of the present application. Please refer to Figure 2 , Figure 2 A schematic diagram of cloud data provided in an embodiment of the present application. The cloud data is then preprocessed by normalizing the intercepted cloud data, using z-score and chopping strategies. Z-score is the difference between an observation value or a data point and the mean divided by the standard deviation. The chopping strategy removes outliers from the standardized data. By taking only the data within the range of the standardized data and then normalizing it, the processed data will not be affected by outliers. The embodiment of the present application obtains normalized data by scaling the spectral type data to between 0 and 1, which is convenient for subsequent deep learning. Please refer to Figure 3 , Figure 3 It includes the 6-channel spectral data icon and the visual display icon of the processed thick cloud layer. The English name is the name of the icon. The 6-channel spectral data is in npy format and the visual display icon is a vi s file. At the same time, the embodiment of the present application generates a transparent mask layer. The transparent mask layer is Figure 3 The black area in the icon is visualized in the image. It is used for transparency calculation during occlusion, so that only the non-transparent area (cloud) is covered on the cloudless training remote sensing image. Next, the cloud shape of the normalized data is randomly rotated through a random rotation angle, thereby increasing the shape of the original cloud data. Finally, a random coverage site is set to extract the rectangular cloud map data from the normalized data. A pixel point in the first data to be processed can be arbitrarily selected as the center site of coverage. The rectangular center point of the randomly rotated cloud map is overlapped with the coverage site. Through the transparent mask layer, that is, the black-edge mask data in the visualization area, the non-black-edge cloud remote sensing data is used to replace the original first data to be processed to obtain the first enhanced data. Please refer to Figure 4 and Figure 5 In the embodiment of the present application, by adding unknown thick cloud data to the original first data to be processed to block the waterway, the model is forced to fit and restore the waterway in the blocked area based on the unblocked area, so as to obtain the data enhancement part of the self-supervised training with the complete addition of thick clouds, and the spectral data of the water pixels under the natural coastline can be completely blocked by the cloud blocking method, while the final water body true value data is not changed. Figure 4 and Figure 5The red part of the model, due to the complete lack of spectral information of the obscured part, if the model only establishes the paradigm of the water body spectrum, it is impossible to obtain the final correct estuary coastline. The model must rely on the spectral information of the water body around the obscured cloud layer, and the water channel of the estuary coastline has the high-level characteristics of integrity and continuity, and modeling at a higher level of abstraction to obtain the final training score. Based on the cloud enhancement-based training strategy proposed in the embodiment of the present application, the model can effectively learn the overall characteristics of the target object, and infer the natural coastline based on the information of the target object itself combined with the surrounding information, thereby effectively suppressing the generation of fragmented fragmented terrestrial water bodies. The cloud enhancement method of the embodiment of the present application mainly refers to intercepting thick cloud pictures from different remote sensing images, covering them on the remote sensing images used for model training, so that the thick clouds partially block the water body and interrupt the surface water system. In this case, the deep learning model will have to use the spectral data of the upstream and downstream of the water system to make a perfect inference of the coastline and actively learn the continuity characteristics of the water body. Thereby, the final extraction effect will not be affected by land objects such as paddy fields, and a smoother coastline can be generated, which improves the coastline recognition results.
[0078] In some embodiments, performing mixed enhancement processing on the second to-be-processed data according to the batch data to obtain second enhanced data includes the following steps:
[0079] Performing random region segmentation processing on the batch data to obtain a segmented image;
[0080] The segmented images are sequentially overlaid on the second data to be processed to obtain second enhanced data.
[0081] In the embodiment of the present application, random regions are selected from the randomly selected batch data, and the segmented random region images are sequentially overlaid on the second data to be processed, thereby destroying the integrity of the original data image and achieving the purpose of increasing the amount of training data. Figure 1 The image to be trained is then segmented and covered, destroying the integrity of the original data. Figure 6 and Figure 7 , Figure 6 is an image obtained by randomly segmenting the batch data. Figure 7 The segmented image is overlaid onto the image of the second data to be processed. The embodiment of the present application selects random areas of multiple images (together with their corresponding true value images) from randomly generated batch data and overlays them on the next image in sequence, thereby destroying the integrity of the original data image. The embodiment of the present application can generate a large amount of training data, which not only increases the difficulty of the data, but also prompts the model to learn more advanced water body knowledge in a complex data environment, thereby improving the accuracy of shoreline recognition.
[0082] In some embodiments, before inputting the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model, the method further includes pre-building the neural network model, specifically including the following steps:
[0083] The encoder-decoder backbone network is constructed based on the inverted residual structure and the linear bottleneck layer;
[0084] The encoder-decoder backbone network is connected through a skip link module to obtain the neural network model.
[0085] In the embodiment of the present application, a UNet++ model with a mobil enet_v2 network structure as the main network can be used to construct a neural network model, or a network model such as a generative adversarial network (GANs) can be used as a neural network model. Figure 8 , the embodiment of the present application is constructed according to the inverted residual structure and the linear bottleneck layer to obtain the encoder-decoder backbone network, through which the original feature map can be initialized and upsampled and downsampled, wherein the MobileNetV2 network structure mainly adopts a lightweight design, focusing on realizing efficient deep learning models on mobile devices and embedded devices. The inverted residual structure first increases the dimension through 1x1 convolution, then extracts features through depthwise separable convolution, and finally reduces the dimension through 1x1 convolution, which can help capture more feature information, especially in low-dimensional space. The linear bottleneck layer uses a linear activation function (such as ReLU6) instead of the traditional ReLU activation function. This is because in low-dimensional space, the ReLU activation function may destroy the feature information, while the linear activation function can avoid this situation. The UNet++ model is a deeply supervised encoder-decoder network, in which the encoder and decoder subnetworks are connected by a series of nested and dense skip links. Therefore, the embodiment of the present application connects the encoder-decoder backbone network through a skip link module, so that the network can simultaneously utilize shallow and deep feature information to improve the accuracy of segmentation. The embodiment of the present application uses deep learning technology to construct a neural network model to simulate and generate missing or incomplete water and shoreline information, thereby improving the overall analysis and prediction accuracy.
[0086] In some embodiments, the step of inputting the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model comprises the following steps:
[0087] Performing cross-validation partitioning processing on the training data set to obtain a training data combination;
[0088] The training data combination is input into the neural network model for training verification to obtain a shoreline recognition model.
[0089] In an embodiment of the present application, a plurality of training data combinations are obtained by cross-validation partitioning of the training data set, and then the plurality of training data combinations are respectively input into the neural network model for training and verification, and the model with the best performance on the verification set is used as the shoreline recognition model. Specifically, the training data set is re-partitioned by a five-fold cross-validation method to form five different training set and verification set combinations. At the same time, the original verification set (val) is redefined as the test set (test) of the final model. This partitioning method allows five independent models to be trained, and each model selects the epoch with the best performance on its corresponding verification set as the final model, and performs a comprehensive performance evaluation on a unified test set. It should be noted that, before cross-validating the training data set, the embodiment of the present application also pre-processes the training data set, and specifically uses the z-score standardization method to pre-process the remote sensing image data. The formula of this method is as follows:
[0090]
[0091] Wherein, X is the observed value, μ is the mean of the data set, and σ is the standard deviation of the data set. This method converts the original data into a distribution with a mean of 0 and a standard deviation of 1 by subtracting the mean and dividing by the standard deviation, thereby achieving data standardization. When processing Sentinel-2 remote sensing image data, the embodiment of the present application also counts the mean and variance of each channel, and the data processed by z-score standardization shows more stable and consistent performance in subsequent model training and reasoning processes. This standardization method not only helps to improve the convergence speed of the algorithm, but also can reduce the deviation between different channels, thereby improving the overall generalization ability of the model.
[0092] In some embodiments, the step of inputting the training data combination into the neural network model for training verification to obtain a shoreline recognition model comprises the following steps:
[0093] Inputting the training data combination into the neural network model to obtain a prediction result;
[0094] Perform loss calculation processing on the prediction result according to the dice loss function to obtain a training loss value;
[0095] The parameters of the neural network model are updated according to the learning rate decay strategy in combination with the training loss value to obtain a shoreline recognition model.
[0096] In an embodiment of the present application, since the embodiment of the present application adopts data enhancement to increase the learning difficulty of the original data set, the shoreline recognition model is forced to learn more advanced features, which results in the training set score and the test set score being very close during the entire training process, indicating that the model can effectively generalize the data features it has learned. However, there is a significant difference between the training set score and the test set score for the model training without using the data enhancement method of the embodiment of the present application, which indicates that the model has a more serious overfitting problem, which means that the model mainly learns the data distribution characteristics applicable to the training set, and these characteristics are not fully applicable to the relevant learning tasks. The embodiment of the present application specifically obtains the prediction result by inputting the training data combination into the neural network model, and then performs loss calculation processing on the prediction result according to the dice loss function to obtain the training loss value. The expression of the dice loss function is as follows:
[0097]
[0098] Wherein, |X∩Y| represents the intersection of two sets X and Y, and |X| and |Y| are the sizes of the two sets respectively. The value range of this coefficient is between 0 and 1, where 1 represents complete similarity and 0 represents no similarity. Dice loss (DiceLoss) is a function derived from the dice coefficient and is used as a loss function in a machine learning model, especially in segmentation tasks. The embodiment of the present application increases the similarity between the predicted segmentation and the actual situation by minimizing the dice loss. Finally, the parameters of the neural network model are updated according to the learning rate decay strategy combined with the training loss value to obtain a shoreline recognition model. Specifically, the model training method of the embodiment of the present application adopts a poly learning rate decay strategy, the overall number of training cycles is set to 1000, the loss function adopts a dice loss (Dice Loss), and the evaluation index is set to the EMA Dice exponential average dice coefficient. The expression of the learning rate decay strategy is as follows:
[0099]
[0100] Wherein, Learning Rate represents the learning rate at the current number of iterations, Initial Learning Rate is the initial learning rate, Current Epoch is the current iteration generation number, Max Epochs is the total number of iterations, and Power is a power parameter that controls the speed of the learning rate decline. The embodiment of the present application can maximize the advantages of the online enhancement strategy by setting 1000 epochs of training, so that the model can fully learn very complex high-level features from difficult and easy interlaced tasks. In addition, the poly learning rate decays very slowly, and the model can gradually transition from a high learning rate to a low learning rate very smoothly, thereby obtaining the global optimal solution of the model in the change of the learning rate.
[0101] Below, in conjunction with specific application examples, the scheme of the embodiment of the present application is described in detail and explained:
[0102] The embodiment of the present application can be applied to the field of shoreline recognition technology, and can perform shoreline recognition on remote sensing images of large-scale shorelines. Specifically, the remote sensing image data set used as the original training data is subjected to cloud data enhancement and hybrid enhancement processing, thereby emphasizing the strategy of deliberately blocking and destroying the original terrain according to the design idea of morphological occlusion mask, and inputting the data-enhanced training data set into a pre-built neural network model for training and processing to obtain a shoreline recognition model, thereby forcing the model to generate surface features in invisible places based on the learned high-level features of the continuity and integrity of waterways and land when the true spectral value of the surface cannot be known, which has the advantages of suppressing small water bodies and generating overall land plates and smooth waterways. The embodiment of the present application can have the advantage of fewer water noise points in batch processing of large-scale remote sensing images and studying macroscopic waterway and land changes, thereby improving the efficiency and accuracy of shoreline recognition. The embodiment of the present application integrates thick cloud data into the original training data, realizes the high-level feature learning of the model when processing the obscured water area, enhances the model's ability to recognize the continuity of water bodies, thereby improving the generalization ability of remote sensing image water body recognition and the coherence of large-scale river waterways, and destroys the image consistency of the original training image through the self-supervised learning method used by thick cloud occlusion and batch mixed isolation, forcing the model to learn the high-level features of spectral values and water body morphology at the same time. Fig. 9 and Fig.10 , Fig. 9 is the recognition result without using this scheme. Fig.10By comparing the recognition results of this solution, it can be seen that the model of the embodiment of the present application can effectively learn the overall characteristics of the target object, and infer the natural coastline based on the information of the target object itself combined with the surrounding information, thereby effectively suppressing the generation of fragmented fragmented terrestrial water bodies. Specifically, the cloud enhancement adopted in this solution is mainly used to improve the generalization ability of the model, so that when the model is identifying the coastline, it not only judges whether it is a water body based on the remote sensing spectral data of the current pixel point, but also learns more about the spectral data of the surrounding pixels, thereby achieving the ultimate effect of suppressing the noise of the terrestrial water body and highlighting the natural coastline water body channel. The embodiment of the present application can optimize the data of the land area and cloud obscuration in a targeted manner, which promotes the performance of the model in generating more integrated water bodies and land areas, and effectively suppresses the phenomenon of a large number of point-like paddy field area noise points appearing in large-scale remote sensing coastal images.
[0103] The embodiment of the present application further provides a shoreline recognition device based on data enhancement, which can implement the above-mentioned shoreline recognition method based on data enhancement, and the device includes:
[0104] The first module is used to obtain remote sensing image datasets;
[0105] The second module is used to perform cloud data enhancement and hybrid enhancement processing on the remote sensing image data set according to the isolation trigger algorithm to obtain a training data set;
[0106] The third module is used to input the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model;
[0107] The fourth module is used to obtain the remote sensing image data to be identified, input the remote sensing image data to be identified into the shoreline identification model, and obtain the shoreline identification result.
[0108] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0109] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned shoreline recognition method based on data enhancement when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0110] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0111] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned shoreline identification method based on data enhancement.
[0112] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0113] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0114] The embodiment of the present application provides a shoreline recognition method, device, equipment and medium based on data enhancement. The scheme obtains a remote sensing image data set; performs cloud data enhancement and hybrid enhancement processing on the remote sensing image data set according to the isolation trigger algorithm to obtain a training data set; inputs the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model; obtains remote sensing image data to be identified, and inputs the remote sensing image data to be identified into the shoreline recognition model to obtain a shoreline recognition result. The embodiment of the present application performs data enhancement on the training data through cloud data enhancement and batch mixing, which enables the model to simultaneously learn the advanced features of spectral values and water body morphology in a complex and changeable data set, thereby improving the accuracy of shoreline recognition of remote sensing images.
[0115] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0116] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0117] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0118] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0119] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0120] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0121] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0122] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0124] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0125] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A shoreline recognition method based on data enhancement, characterized in that: The method comprises the following steps: Obtain remote sensing image datasets; Performing cloud data enhancement and hybrid enhancement processing on the remote sensing image data set according to the isolation trigger algorithm to obtain a training data set; Inputting the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model; The remote sensing image data to be identified is obtained, and the remote sensing image data to be identified is input into the shoreline identification model to obtain a shoreline identification result.
2. The method according to claim 1, characterized in that The step of performing cloud data enhancement and hybrid enhancement processing on the remote sensing image data set according to the isolation trigger algorithm to obtain a training data set includes the following steps: Filtering cloud data and batch data from the remote sensing image data set; Performing random enhancement strategy triggering processing on the remote sensing image data set to obtain first data to be processed and second data to be processed; Performing cloud data enhancement processing on the first data to be processed according to the cloud layer data to obtain first enhanced data; Performing mixed enhancement processing on the second to-be-processed data according to the batch data to obtain second enhanced data; The first enhanced data and the second enhanced data are determined as the training data set.
3. The method according to claim 2, characterized in that The step of performing cloud data enhancement processing on the first to-be-processed data according to the cloud layer data to obtain first enhanced data comprises the following steps: Performing data preprocessing on the cloud layer data to obtain normalized data and a transparent mask layer; Performing random rotation processing on the normalized data to obtain morphologically enhanced data; The first to-be-processed data is subjected to random cloud cover processing by using the morphological enhancement data in combination with the transparent mask layer to obtain the first enhanced data.
4. The method according to claim 2, characterized in that: The step of performing mixed enhancement processing on the second to-be-processed data according to the batch data to obtain second enhanced data comprises the following steps: Performing random region segmentation processing on the batch data to obtain a segmented image; The segmented images are sequentially overlaid on the second data to be processed to obtain second enhanced data.
5. The method according to any one of claims 1 to 4, characterized in that: Before inputting the training data set into the pre-built neural network model for training processing to obtain the shoreline recognition model, the method further includes pre-building the neural network model, which specifically includes the following steps: The encoder-decoder backbone network is constructed based on the inverted residual structure and the linear bottleneck layer; The encoder-decoder backbone network is connected through a skip link module to obtain the neural network model.
6. The method according to claim 1, characterized in that The step of inputting the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model comprises the following steps: Performing cross-validation partitioning processing on the training data set to obtain a training data combination; The training data combination is input into the neural network model for training verification to obtain a shoreline recognition model.
7. The method according to claim 6, characterized in that The step of inputting the training data combination into the neural network model for training verification to obtain a shoreline recognition model comprises the following steps: Inputting the training data combination into the neural network model to obtain a prediction result; Perform loss calculation processing on the prediction result according to the dice loss function to obtain a training loss value; The parameters of the neural network model are updated according to the learning rate decay strategy in combination with the training loss value to obtain a shoreline recognition model.
8. A shoreline recognition device based on data enhancement, characterized in that: The device comprises: The first module is used to obtain remote sensing image datasets; The second module is used to perform cloud data enhancement and hybrid enhancement processing on the remote sensing image data set according to the isolation trigger algorithm to obtain a training data set; The third module is used to input the training data set into a pre-built neural network model for training processing to obtain a shoreline recognition model; The fourth module is used to obtain the remote sensing image data to be identified, input the remote sensing image data to be identified into the shoreline identification model, and obtain the shoreline identification result.
9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Coastline type discrimination method and device based on remote sensing image, medium and equipment
CN115424142A
Semi-supervised short video classification method based on semantic consistency
CN116340569A
Shoreline remote sensing automatic identification and analysis method based on cloud platform and deep learning
CN116503755A
Island sea-land boundary segmentation and coastline extraction method and related equipment
CN117079155A
