A method, medium and system for automatically extracting coastline using satellite remote sensing

By combining fractal theory and four-color filling technology, multi-source remote sensing data is used to generate similar coastline images, and a convolutional neural network model is used to identify the coastline, which solves the problem of insufficient resolution in automatic extraction of satellite remote sensing coastlines and achieves high-precision coastline Contour extraction.

CN118411626BActive Publication Date: 2024-09-13QINGDAO GUOCEN HAIYAO INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410873678.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-13
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

The existing automatic extraction method of satellite remote sensing coastline is difficult to accurately describe the complex and changeable coastline contours, and is limited by the resolution of satellite remote sensing images.

Method used

Using multi-source remote sensing data, combined with fractal theory and four-color filling algorithm, UAV images are used to generate fractal images similar to the measured coastline, and the convolutional neural network model is used to identify the coastline, and a four-color matrix is ​​output to extract the coastline outline.

Benefits of technology

It achieves high-precision automatic extraction of coastline contours, makes full use of the advantages of multi-source data, highlights coastline characteristics, and improves recognition accuracy and adaptability to complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118411626B
    Figure CN118411626B
Patent Text Reader

Abstract

The invention provides a method, medium and system for automatically extracting a satellite remote sensing coastline, belonging to the technical field of satellite remote sensing coastline extraction, and comprising: obtaining preprocessed dual-mode images of a plurality of measured coastline areas, fracting to obtain a fractal image, filling according to a preset four-color filling rule to obtain a four-color filling map, and setting a number for each color; aligning the satellite remote sensing image and the image taken by an unmanned aerial vehicle, and obtaining a four-color filling map corresponding to the satellite remote sensing image, and converting the four-color filling map corresponding to the satellite remote sensing image into a four-color matrix; obtaining a satellite remote sensing image of a coastline area to be measured, recorded as the remote sensing image to be measured, and after preprocessing, performing feature extraction to obtain remote sensing features to be measured; inputting the remote sensing features to be measured into the coastline recognition model, outputting a four-color matrix, recorded as the four-color matrix to be measured; extracting and outputting the contour information of the coastline according to the four-color matrix to be measured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of satellite remote sensing coastline extraction, and in particular, relates to a satellite remote sensing coastline automatic extraction method, medium and system. Background Art

[0002] The coastline is the linear boundary between land and water (including oceans, lakes, rivers, etc.), and is a dynamically changing geographical element. Accurate mapping and monitoring of the coastline is of great significance to many fields, including marine environmental protection, maritime transportation, island management, and marine resource development.

[0003] Traditional coastline mapping methods mainly include the following: field survey, manual interpretation of aerial images, manual interpretation of satellite remote sensing images, etc. These methods have certain limitations: field survey requires a lot of manpower and time, and cannot fully cover the coastline; although manual interpretation of aerial / satellite images can achieve remote monitoring, it is limited by image resolution and the accuracy of manual interpretation, and the results often have large errors.

[0004] With the continuous development of remote sensing technology, automatic coastline extraction using satellite remote sensing images has become a new research hotspot. Compared with previous manual mapping methods, automatic coastline extraction using satellite remote sensing has the following advantages: 1) It can quickly obtain wide-area coastline information; 2) It is less affected by geographical environment and human interference factors; 3) The results can be objectively quantified and have strong repeatability. However, the existing satellite remote sensing coastline automatic extraction methods still have the technical problem that the resolution of satellite remote sensing images is limited and it is difficult to accurately describe the complex and changeable coastline contours. Summary of the invention

[0005] In view of this, the present invention provides a method, medium and system for automatically extracting coastlines from satellite remote sensing, which can solve the technical problem that the existing automatic coastline extraction methods from satellite remote sensing still have limited resolution and are difficult to accurately describe the complex and changeable coastline contours.

[0006] The present invention is achieved in that:

[0007] A first aspect of the present invention provides a method for automatically extracting a coastline using satellite remote sensing, comprising the following steps:

[0008] S10, obtaining a plurality of pre-processed dual-mode images of the measured coastline area, wherein the dual-mode images include a satellite remote sensing image and an image group taken by an unmanned aerial vehicle, wherein the satellite remote sensing image includes a visible light image and a plurality of reflected light images of different wavelengths;

[0009] S20, fracting each drone-photographed image in the drone-photographed image group using an equilateral triangle with a side length of L1 according to the measured coastline data to obtain a fractal image, wherein the similarity between the coastline of the fractal image and the measured coastline of the drone-photographed image is greater than a preset first threshold;

[0010] S30, filling the fractal image with the four-color hypothesis according to a preset four-color filling rule to obtain a four-color filling image, and setting a number for each color;

[0011] S40, aligning the satellite remote sensing image and the image taken by the drone, if the area represented by the satellite remote sensing image covers the areas covered by multiple images taken by the drone, stitching the multiple images taken by the drone and aligning them with the satellite remote sensing image; and obtaining a four-color fill map corresponding to the satellite remote sensing image, and converting the four-color fill map corresponding to the satellite remote sensing image into a four-color matrix;

[0012] S50, establishing a training data set, including the features of the satellite remote sensing image and the four-color matrix, training a convolutional neural network model, and obtaining a coastline recognition model;

[0013] S60, obtaining a satellite remote sensing image of the coastline area to be measured, recorded as the remote sensing image to be measured, and after preprocessing, performing feature extraction to obtain the remote sensing features to be measured;

[0014] S70, inputting the remote sensing features to be measured into the coastline recognition model, and outputting a four-color matrix, which is recorded as the four-color matrix to be measured;

[0015] S80: Extract the contour information of the coastline according to the four-color matrix to be tested and output it.

[0016] On the basis of the above technical solution, the satellite remote sensing coastline automatic extraction method of the present invention can also be improved as follows:

[0017] The preset four-color filling rule is:

[0018] Step 1: Divide the fractal image into several polygonal regions according to its characteristics, each polygonal region contains at most N fractal triangles, and the fractal triangle is an equilateral triangle with a side length of L1;

[0019] Step 2: For each polygonal area, paint the area with different colors according to the gradient information of its boundary pixels. The specific coloring rules used are as follows:

[0020] If the boundary pixel gradient of the polygonal area is large, it is painted red and numbered 1;

[0021] If the gradient of the boundary pixels of the polygonal area is small, it is painted blue and numbered 2;

[0022] If the polygonal area is located in the transition zone between the above two areas, it is painted green and numbered 3;

[0023] The remaining areas are painted yellow and numbered 4;

[0024] Step 3: When adjacent areas have the same color, the color of the polygon with a larger number or the color of the polygon with a smaller area is adjusted first;

[0025] Step 4: After the above steps, you can get a four-color filling map and set the number of each color.

[0026] In addition, the order of the four colors of red, blue, yellow and green can be exchanged, or changed to other different colors. Generally, L1 is 1~100 meters, and N is generally 10~100.

[0027] Specifically, the filling rules can be expressed as follows:

[0028] First, the fractal image is divided into several polygonal regions.

[0029] Then, for each polygon area, fill the color according to the grayscale change of its boundary pixels:

[0030] If the grayscale of the border pixels of the polygon area changes dramatically (large gradient), that is, there is a clear change in brightness at the border, then the area will be painted red (number 1). This situation usually corresponds to the location of the coastline.

[0031] If the grayscale of the border pixels of the polygon area changes slowly (small gradient), the area is painted blue (number 2). This situation usually corresponds to the inland area.

[0032] If the polygonal area is in the transition zone between the above two areas, it will be painted green (No. 3).

[0033] The remaining unidentified areas are colored yellow (number 4).

[0034] In this way, the fractal image can be filled with four colors through the gradient information of the boundary pixels to obtain a four-color filled image.

[0035] The boundary pixel gradient refers to the degree of grayscale change of the boundary pixels of the image, which can usually be calculated using operators such as Sobel and Prewitt.

[0036] Among them, the first threshold is 0.8.

[0037] The step S10 specifically includes:

[0038] Obtain satellite remote sensing images of the measured coastline area, the satellite remote sensing images including visible light images and multiple reflected light images of different wavelengths; obtain drone-photographed images corresponding to the same coastline area; pre-process the satellite remote sensing images and drone-photographed images to eliminate the influence of factors such as noise. The dual-mode images include the pre-processed satellite remote sensing images and drone-photographed images.

[0039] The step S20 specifically includes:

[0040] Each drone image is divided into several equilateral triangle grids with a side length of L1. For each triangle grid area, fractal processing is performed using fractal theory to generate a fractal image similar to the measured coastline. Multi-level fractals can be set, such as Figure 3 As shown, a five-level fractal is preferred; the similarity between each fractal image and the coastline of the corresponding drone-photographed image is determined, and only when the similarity is greater than a preset first threshold value, the fractal image is retained for subsequent processing.

[0041] The similarity between the coastline of the fractal image and the measured coastline of the image taken by the drone is calculated using cosine similarity.

[0042] Among them, the methods for aligning satellite remote sensing images and images taken by drones are: geometric correction and registration.

[0043] The step S40 specifically includes:

[0044] Perform geometric correction and registration operations on satellite remote sensing images and images taken by drones to align them in space; if the area covered by the satellite remote sensing image contains multiple images taken by drones, first stitch these images taken by drones and then register them with the satellite remote sensing image; obtain the four-color filling map of the corresponding area of ​​the satellite remote sensing image and convert it into a four-color matrix.

[0045] Wherein, the network structure of the convolutional neural network adopts LeNet.

[0046] The step S50 specifically includes:

[0047] A training data set is constructed from the acquired satellite remote sensing images and the corresponding four-color matrices. The texture, color, edge and other features of each satellite remote sensing image are extracted as input features, and the corresponding four-color matrix is ​​used as the output label. The convolutional neural network method is used to train the coastline recognition model, including designing the network structure and debugging the hyperparameters. After the training is completed, a high-precision coastline recognition model can be obtained.

[0048] The step S60 specifically includes:

[0049] Obtain satellite remote sensing images of the coastline area to be measured, and perform preprocessing such as geometric correction, radiation correction, and atmospheric correction on them; extract texture features, shape features, and color features of the remote sensing images to be measured, and combine them into a feature vector as the remote sensing features to be measured.

[0050] The step S70 specifically includes:

[0051] The remote sensing features to be tested extracted in step S60 are input into the coastline recognition model trained in step S50; the coastline recognition model adopts a convolutional neural network structure, which can output a corresponding four-color matrix based on the input feature vector, which is recorded as the four-color matrix to be tested.

[0052] Wherein, the step S80 specifically includes:

[0053] According to the four-color matrix to be tested outputted in step S70, the position information of the corresponding coastline is identified, the area numbered 1 in the matrix is ​​regarded as the coastline, the area numbered 2 is regarded as the inland, the area numbered 3 is regarded as the transition area, and the area numbered 4 is regarded as the unidentified area; the contour of the identified coastline area is extracted to obtain the specific contour information of the coastline; and the extracted coastline contour information is outputted.

[0054] Furthermore, the registration operation adopts a feature point matching algorithm or a correlation matching algorithm based on pixel grayscale values.

[0055] Specific algorithms include SIFT, SURF, etc.

[0056] A second aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores program instructions, and when the program instructions are executed, they are used to execute the above-mentioned method for automatic extraction of satellite remote sensing coastlines.

[0057] A third aspect of the present invention provides a satellite remote sensing coastline automatic extraction system, which includes the above-mentioned computer-readable storage medium.

[0058] Compared with the prior art, the beneficial effects of the satellite remote sensing coastline automatic extraction method, medium and system provided by the present invention are as follows: the present invention proposes a coastline automatic extraction method based on satellite remote sensing and drone images, which fully utilizes the advantages of multi-source remote sensing data, combines fractal theory, four-color filling algorithm and deep learning technology, and realizes high-precision coastline contour automatic extraction. Compared with the prior art, the main innovations and technical advantages of the present invention are reflected in the following aspects:

[0059] First, the present invention uses high-resolution images taken by drones and combines fractal theory to generate fractal images that are more similar to the measured coastline, laying the foundation for subsequent coastline feature modeling and identification. Fractal theory can effectively describe complex geometric shapes in nature, including irregular curves such as coastlines. By dividing drone images into equilateral triangle grids and performing fractal processing on each triangle grid area, a new image that is more consistent with the measured coastline is generated. This fractal image can provide richer and more accurate coastline reference information for subsequent four-color filling and convolutional neural network model training.

[0060] Secondly, the present invention adopts four-color filling technology to divide the fractal image into different color areas according to the grayscale gradient information of the boundary pixels of the fractal image. This four-color filling method based on edge information can highlight the characteristics of the coastline and lay the foundation for coastline recognition in satellite remote sensing images. Compared with directly using the original fractal image, the image after four-color filling contains clearer coastline contour information, which is conducive to the subsequent deep learning model training.

[0061] Finally, the present invention trained a coastline recognition model based on a convolutional neural network, which can accurately output the corresponding coastline four-color matrix according to the input satellite remote sensing image features. This end-to-end deep learning method can not only effectively extract coastline features in complex remote sensing images, but also the output four-color matrix information provides a good data basis for subsequent coastline contour extraction.

[0062] In summary, the solution of the present invention solves the technical problem that the existing satellite remote sensing coastline automatic extraction method still has limited resolution and is difficult to accurately describe the complex and changeable coastline contours. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0064] Figure 1 A flow chart of the method provided by the present invention;

[0065] Figure 2 This is a schematic diagram of the Koch snowflake curve;

[0066] Figure 3 A fractal diagram of the coastline of an equilateral triangle grid area with a side length of L1. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0068] like Figure 1 FIG. 1 is a flow chart of a method for automatically extracting a coastline from satellite remote sensing provided by the present invention. The method comprises the following steps:

[0069] S10, obtaining a plurality of pre-processed dual-mode images of the measured coastline area, the dual-mode images comprising a satellite remote sensing image and an image group taken by a drone, wherein the satellite remote sensing image comprises a visible light image and a plurality of reflected light images of different wavelengths;

[0070] S20, fracting each drone-photographed image in the drone-photographed image group using an equilateral triangle with a side length of L1 according to the measured coastline data to obtain a fractal image, wherein the similarity between the coastline of the fractal image and the measured coastline of the drone-photographed image is greater than a preset first threshold;

[0071] S30, filling the fractal image with four-color conjecture according to a preset four-color filling rule to obtain a four-color filling image, and setting a number for each color;

[0072] S40, aligning the satellite remote sensing image and the image taken by the drone. If the area represented by the satellite remote sensing image covers the area covered by multiple images taken by the drone, the multiple images taken by the drone are stitched together and aligned with the satellite remote sensing image; and obtaining a four-color fill map corresponding to the satellite remote sensing image, and converting the four-color fill map corresponding to the satellite remote sensing image into a four-color matrix;

[0073] S50, establishing a training data set, including the features of satellite remote sensing images and a four-color matrix, training a convolutional neural network model, and obtaining a coastline recognition model;

[0074] S60, obtaining a satellite remote sensing image of the coastline area to be measured, recorded as the remote sensing image to be measured, and after preprocessing, performing feature extraction to obtain the remote sensing features to be measured;

[0075] S70, inputting the remote sensing features to be measured into the coastline recognition model, and outputting a four-color matrix, which is recorded as the four-color matrix to be measured;

[0076] S80, extracting the contour information of the coastline according to the four-color matrix to be tested and outputting it.

[0077] The four-color conjecture mentioned in the above steps, also known as the four-color theorem or the four-color problem, states that "any map can be made to color countries with common borders differently using only four colors." That is to say, a map only needs four colors to be marked without causing confusion.

[0078] In mathematical terms, it means "arbitrarily subdividing a plane into non-overlapping regions, each of which can always be labeled with one of the four numbers 1234 without causing two adjacent regions to have the same number." Adjacent regions here refer to regions that have a whole common boundary. If two regions only meet at one point or a finite number of points, they are not called adjacent. The four-color conjecture is used in this scheme to distinguish the fractal triangles by color for easy comparison.

[0079] The specific implementation methods of the above steps are described in detail below:

[0080] Step S10: Acquire a plurality of pre-processed dual-mode images of the measured coastline area, wherein the dual-mode images include a satellite remote sensing image and an image taken by a drone.

[0081] The specific implementation method of this step is as follows:

[0082] First, satellite remote sensing images of the measured coastline area are obtained. After preprocessing, these satellite remote sensing images include visible light images and reflected light images of multiple different wavelengths. These reflected light images of different wavelengths can provide rich spectral information of the coastline area, which is helpful for the subsequent accurate identification of the coastline.

[0083] Secondly, obtain drone images corresponding to the same coastline area. The resolution of drone images is usually higher than that of satellite remote sensing images, which can more clearly reflect the actual contours of the coastline. These drone images also need to be pre-processed for subsequent processing.

[0084] In general, the purpose of this step is to obtain dual-mode image data of the measured coastline area, laying the foundation for the subsequent automatic coastline extraction process.

[0085] Step S20: fractalizing each drone image in the drone image group using an equilateral triangle with a side length of L1 according to the measured coastline data to obtain a fractal image

[0086] The specific implementation method of this step is as follows:

[0087] First, each drone image is divided into several equilateral triangle grids with a side length of L1, based on the measured coastline data. Here, L1 is a preset constant that can be adjusted according to actual application conditions.

[0088] Then, for each triangular mesh area, fractal processing is performed using fractal theory. The purpose of fractal processing is to generate a new image that is more similar to the measured coastline, namely a fractal image. The fractal algorithm used here can be the classic Mandelbrot set fractal algorithm or the boundary-based fractal algorithm.

[0089] Finally, the similarity between each fractal image and the coastline of the corresponding drone image is determined. Only when the similarity between the coastline of the fractal image and the measured coastline of the drone image is greater than a preset first threshold, the fractal image is retained for subsequent processing. The first threshold can be set to about 0.8 according to the actual application situation.

[0090] In general, the purpose of this step is to use fractal technology to generate a new image that is more similar to the measured coastline, laying the foundation for the subsequent coastline extraction process.

[0091] Step S30: Fill the fractal image with four colors according to the four-color filling rule to obtain a four-color filling image.

[0092] The specific implementation method of this step is as follows:

[0093] First, each fractal image is divided into several polygonal regions, each of which contains at most N fractal triangles. Here, N is a preset constant that can be adjusted according to actual conditions, for example, N=4.

[0094] Then, for each polygon area, fill it according to the gray gradient information of its boundary pixels using the preset four-color filling rule:

[0095] If the grayscale gradient of the border pixels of the polygon area is large, it is painted red (numbered 1). This situation usually corresponds to the location of the coastline.

[0096] If the grayscale gradient of the border pixels of the polygon area is small, it is painted blue (numbered 2). This situation usually corresponds to the inland area.

[0097] If the polygonal area is in the transition zone between the above two areas, it will be painted green (numbered 3).

[0098] The remaining unidentified areas are colored yellow (numbered 4).

[0099] When adjacent areas have the same color, the color of the polygon with a larger number or the color of the polygon with a smaller area is adjusted first.

[0100] After the above steps, you can get a four-color filling map and set the number of each color.

[0101] In general, the purpose of this step is to use the four-color filling method to convert the fractal image into a four-color filling map containing coastline information, laying the foundation for subsequent satellite remote sensing image analysis.

[0102] Step S40: Align the satellite remote sensing image and the drone image

[0103] The specific implementation method of this step is as follows:

[0104] First, the satellite remote sensing image and the drone image are geometrically corrected and registered to align them in space. If the area covered by the satellite remote sensing image contains multiple drone images, these drone images need to be stitched first and then registered with the satellite remote sensing image.

[0105] The specific registration method can adopt feature point matching algorithms such as SIFT, SURF, or correlation matching algorithms based on pixel grayscale values. These algorithms can accurately align satellite remote sensing images and drone images in spatial position.

[0106] After the alignment is completed, the four-color filling map of the corresponding area of ​​the satellite remote sensing image is obtained and converted into a four-color matrix. The four-color matrix here is actually a two-dimensional array, and the value range of each element is 1~4, corresponding to the four colors of red, blue, green and yellow.

[0107] In general, the purpose of this step is to spatially align satellite remote sensing images with images taken by drones, and to obtain the four-color matrix information of the corresponding areas of the satellite remote sensing images, in preparation for subsequent coastline recognition model training.

[0108] Step S50: Establish a training data set, including the features of the satellite remote sensing image and the four-color matrix, train a convolutional neural network model, and obtain a coastline recognition model.

[0109] The specific implementation method of this step is as follows:

[0110] First, a training data set is constructed from the acquired satellite remote sensing images and the corresponding four-color matrix. Specifically, the texture, color, edge and other features of each satellite remote sensing image are extracted as input features, and the corresponding four-color matrix is ​​used as the output label.

[0111] Then, using the constructed training data set, the convolutional neural network (CNN) method is used to train the coastline recognition model. CNN is chosen here because it can effectively extract image features and is suitable for processing complex texture information in remote sensing images.

[0112] During the training process, a typical CNN network structure can be used, such as LeNet, AlexNet or VGGNet, etc. At the same time, it is also necessary to debug and optimize hyperparameters such as learning rate, batch size, number of iterations, etc. to obtain the best model performance.

[0113] After the training is completed, a high-precision coastline recognition model can be obtained. This model can accurately output the corresponding coastline four-color matrix based on the input satellite remote sensing image features.

[0114] In general, the purpose of this step is to use convolutional neural networks to establish an automatic coastline recognition model, laying the foundation for subsequent coastline contour extraction.

[0115] Step S60: Obtain a satellite remote sensing image of the coastline area to be measured, record it as the remote sensing image to be measured, perform feature extraction after preprocessing, and obtain the remote sensing feature to be measured.

[0116] The specific implementation method of this step is as follows:

[0117] First, obtain satellite remote sensing images of the coastline area to be measured. These satellite remote sensing images may come from different sensors and have different resolutions and band information, so they need to be preprocessed, including geometric correction, radiation correction, atmospheric correction, etc., to eliminate the influence of these factors.

[0118] After the preprocessing is completed, the satellite remote sensing image is subjected to feature extraction. Here, methods such as texture features (such as GLCM), shape features (such as Hu moment), and color features (such as color histogram) can be used to extract various image features that can effectively describe the coastline characteristics.

[0119] Finally, the extracted features are combined into a feature vector and input into the subsequent coastline recognition model as the remote sensing features to be measured.

[0120] In general, the purpose of this step is to preprocess and extract features from the satellite remote sensing images of the coastline area to be measured, in preparation for the subsequent automatic coastline extraction.

[0121] Step S70: Input the remote sensing feature to be measured into the coastline recognition model, and output a four-color matrix, which is recorded as the four-color matrix to be measured

[0122] The specific implementation method of this step is as follows:

[0123] First, the remote sensing features to be measured extracted in step S60 are input into the coastline recognition model trained in step S50.

[0124] The coastline recognition model uses a convolutional neural network structure, which can output a corresponding four-color matrix based on the input feature vector. This four-color matrix reflects the distribution of the coastline in the coastline area to be tested. The value of each element is 1 to 4, corresponding to the four colors of red, blue, green and yellow.

[0125] Finally, the output four-color matrix is ​​recorded as the four-color matrix to be tested, preparing for the subsequent coastline contour extraction.

[0126] In general, the purpose of this step is to use the trained coastline recognition model to output the corresponding four-color matrix based on the satellite remote sensing characteristics of the coastline area to be measured, so as to provide the required information for subsequent steps.

[0127] Step S80: Extract the contour information of the coastline according to the four-color matrix to be tested and output

[0128] The specific implementation method of this step is as follows:

[0129] First, according to the four-color matrix to be tested outputted in step S70, the location information of the corresponding coastline is identified. Specifically, the area numbered 1 (red) in the matrix is ​​regarded as the coastline, the area numbered 2 (blue) is regarded as the inland, the area numbered 3 (green) is regarded as the transition area between the coastline and the inland, and the area numbered 4 (yellow) is regarded as the unidentified area.

[0130] Then, the identified coastline area is contour extracted. Here, the Canny operator or morphological edge extraction algorithm can be used to obtain the specific contour information of the coastline.

[0131] Finally, the extracted coastline contour information is output as the final result of this method.

[0132] In general, the purpose of this step is to extract the specific outline of the coastline area to be measured based on the four-color matrix information output by the previous step, so as to provide the required coastline data for subsequent applications.

[0133] The specific implementation of this method is described in more detail below in conjunction with a specific formula:

[0134] Step S10: Obtaining pre-processed dual-mode images of multiple measured coastline areas

[0135] The specific implementation method of this step is as follows:

[0136] First, obtain satellite remote sensing images of the measured coastline area. These satellite remote sensing images include visible light images and multiple reflected light images at different wavelengths ,in is the number of reflected light images. These reflected light images of different wavelengths can provide rich spectral information of the coastline area, which is helpful for the subsequent accurate identification of the coastline.

[0137] After being acquired, satellite remote sensing images need to undergo a series of preprocessing, including geometric correction, radiation correction, atmospheric correction, etc., to eliminate the influence of factors such as noise and obtain preprocessed satellite remote sensing images.

[0138] Secondly, obtain the drone images corresponding to the same coastline area The resolution of drone images is usually higher than that of satellite remote sensing images, and they can more clearly reflect the actual contours of the coastline. These drone images also need to be pre-processed for subsequent processing.

[0139] In summary, the purpose of this step is to obtain dual-mode image data of the measured coastline area, including pre-processed satellite remote sensing images. and drone imagery , which lays the foundation for the subsequent automatic coastline extraction process.

[0140] Step S20: fractal processing is performed on each drone image in the drone image group.

[0141] The specific implementation method of this step is as follows:

[0142] First, each drone image is taken with the measured coastline data as a reference. Divide into several sides of Here, It is a preset constant and can be adjusted according to the actual application.

[0143] For each triangle mesh area , using fractal theory to perform fractal processing and generate a new image that is more similar to the measured coastline , that is, fractal image. The fractal algorithm used here can be the classic Mandelbrot set fractal algorithm or the boundary-based fractal algorithm. The purpose of fractal processing is to generate a new image that is closer to the natural coastline contour through iteration.

[0144] Assume that the drone takes the image Divide into Triangular mesh area , the corresponding fractal image is Then the fractal image set obtained after the UAV image is fractally processed can be expressed as:

[0145]

[0146] Next, we need to determine the Image taken with corresponding drone Here we use the Hausdorff distance of the coastline contour To measure similarity:

[0147]

[0148] in, and Represents images taken by drones and fractal images The outline of the coastline, Indicate point and Point The Euclidean distance between .

[0149] Only when the fractal image Coastline with drone imagery The measured coastline similarity is greater than the preset first threshold When the fractal image is retained for subsequent processing. It can be set to about 0.8 according to the actual application.

[0150] In general, the purpose of this step is to use fractal technology to generate a new image that is more similar to the measured coastline, laying the foundation for the subsequent coastline extraction process.

[0151] Step S30: Fill the fractal image with four-color filling technology

[0152] The specific implementation method of this step is as follows:

[0153] First, each fractal image Divide into several polygonal areas , each polygonal area contains at most fractal triangle. is a preset constant, which can be adjusted according to actual conditions. .

[0154] Then, for each polygonal area , according to the gray gradient information of its boundary pixels, the preset four-color filling rule is used for filling:

[0155] If the polygon area The gray gradient of the boundary pixels If the area is larger, the area is colored red (numbered 1). This usually corresponds to the location of the coastline.

[0156] If the polygon area The gray gradient of the boundary pixels If the area is smaller, the area is colored blue (numbered 2). This usually corresponds to an inland area.

[0157] If the polygon area The transition zone between the above two regions is Located in a preset gradient threshold range If it is between the two, paint it green (number 3).

[0158] The remaining unidentified areas are colored yellow (numbered 4).

[0159] When adjacent areas have the same color, the color of the polygon with a larger number or the color of the polygon with a smaller area is adjusted first.

[0160] After the above steps, you can get a four-color filling map , and set the number of each color to .

[0161] In general, the purpose of this step is to use the four-color filling method to convert the fractal image into a four-color filling map containing coastline information, laying the foundation for subsequent satellite remote sensing image analysis.

[0162] Step S40: Align the satellite remote sensing image and the drone image

[0163] The specific implementation method of this step is as follows:

[0164] First, satellite remote sensing images and drone imagery Perform geometric correction and registration operations to align them in space. If the area covered by the satellite remote sensing image contains multiple drone images, it is necessary to stitch these drone images first and then register them with the satellite remote sensing image.

[0165] The specific registration method can adopt algorithms based on feature point matching, such as SIFT, SURF, etc., or correlation matching algorithms based on pixel grayscale values. Through these algorithms, satellite remote sensing images and drone images can be accurately aligned in space.

[0166] After the alignment is completed, the four-color filling map of the corresponding area of ​​the satellite remote sensing image is obtained. , and convert it into a four-color matrix The four-color matrix here is It is actually a two-dimensional array, and the value range of each element is , corresponding to the four colors red, blue, green and yellow respectively.

[0167] In general, the purpose of this step is to spatially align satellite remote sensing images with images taken by drones, and to obtain the four-color matrix information of the corresponding areas of the satellite remote sensing images, in preparation for subsequent coastline recognition model training.

[0168] Step S50: Create a training data set and train a convolutional neural network model

[0169] The specific implementation method of this step is as follows:

[0170] First, from the satellite remote sensing images that have been acquired And the corresponding four-color matrix Specifically, the texture features of each satellite remote sensing image are extracted. , Color Features , edge features etc., as input feature vector ; At the same time, the corresponding four-color matrix As output label .

[0171] Then, using the constructed training data set ,The Convolutional Neural Network (CNN) method is used to train the ,coastline recognition model. CNN is chosen here because it can ,effectively extract image features and is suitable for processing ,complex texture information in remote sensing images.

[0172] The input of the CNN model is the satellite remote sensing image feature vector , the output is the corresponding four-color matrix The training goal of the model is to minimize the output With label The loss function between , such as the cross entropy loss function:

[0173]

[0174] During the training process, a typical CNN network structure can be used, such as LeNet, AlexNet or VGGNet. At the same time, the learning rate , batch size , Iterations Debug and optimize hyperparameters to obtain the best model performance.

[0175] After the training is completed, a high-precision coastline recognition model can be obtained. This model can be based on the input satellite remote sensing image features , accurately output the corresponding coastline four-color matrix .

[0176] In general, the purpose of this step is to use convolutional neural networks to establish an automatic coastline recognition model, laying the foundation for subsequent coastline contour extraction.

[0177] Step S60: Obtain satellite remote sensing images of the coastline area to be measured and perform feature extraction

[0178] The specific implementation method of this step is as follows:

[0179] First, obtain satellite remote sensing images of the coastline area to be measured. These satellite remote sensing images may come from different sensors and have different resolutions and band information, so they need to be preprocessed, including geometric correction, radiation correction, atmospheric correction, etc., to eliminate the influence of these factors.

[0180] After preprocessing, the satellite remote sensing image Perform feature extraction. Here, methods such as texture features (such as GLCM), shape features (such as Hu moment), color features (such as color histogram) can be used to extract various image features that can effectively describe the characteristics of the coastline.

[0181] Assume that the extracted features include texture features , shape characteristics and color features , then the remote sensing feature vector to be measured is It can be expressed as:

[0182]

[0183] Finally, the extracted feature vector As input, input to the coastline recognition model trained in step S50 middle.

[0184] In general, the purpose of this step is to preprocess and extract features from the satellite remote sensing images of the coastline area to be measured, in preparation for the subsequent automatic coastline extraction.

[0185] Step S70: Input the remote sensing features to be measured into the coastline recognition model and output a four-color matrix

[0186] The specific implementation method of this step is as follows:

[0187] First, the remote sensing feature vector to be measured extracted in step S60 is , input into the trained coastline recognition model in step S50 middle.

[0188] Coastline Identification Model The internal structure is a convolutional neural network, which can be based on the input feature vector , output a corresponding four-color matrix This four-color matrix It reflects the distribution of coastline in the coastline area to be measured. The value of each element is , corresponding to the four colors red, blue, green and yellow respectively.

[0189] Specifically, the coastline recognition model It can be expressed as:

[0190]

[0191] in, is the input satellite remote sensing image feature vector, is the output four-color matrix.

[0192] In the model training process, the cross entropy loss function is used To optimize the model parameters :

[0193]

[0194] Through the back propagation algorithm, the model parameters can be updated , so that the output With label The loss function between This will improve the prediction accuracy of the model.

[0195] Finally, the output four-color matrix Denoted as the four-color matrix to be tested , preparing for the subsequent coastline contour extraction.

[0196] In general, the purpose of this step is to use the trained coastline recognition model , based on the satellite remote sensing characteristics of the coastline area to be measured , output the corresponding four-color matrix , providing the required information for subsequent steps.

[0197] Step S80: Extracting coastline contour information based on the four-color matrix to be tested

[0198] The specific implementation method of this step is as follows:

[0199] First, according to the four-color matrix to be tested outputted in step S70 , the location information of the corresponding coastline is identified. Specifically, the area numbered 1 (red) in the matrix is ​​regarded as the coastline, the area numbered 2 (blue) is regarded as the inland, the area numbered 3 (green) is regarded as the transition area between the coastline and the inland, and the area numbered 4 (yellow) is regarded as an unidentified area.

[0200] Then, the identified coastline area is contour extracted. Here, the Canny operator or morphological edge extraction algorithm can be used to obtain the specific contour information of the coastline.

[0201] Assume that the coastline contour obtained by the edge extraction algorithm is a set of coordinate points ,in is the number of contour points.

[0202] Finally, the extracted coastline contour information Output is the final result of this method.

[0203] In general, the purpose of this step is to output the four-color matrix information according to the previous step. , extract the specific outline of the coastline area to be measured , providing the required coastline data for subsequent applications.

[0204] Among them, the explanation of the variables involved is shown in Table 1:

[0205] Table 1 Variable explanation table

[0206]

[0207] A second aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores program instructions, and when the program instructions are executed, they are used to execute the above-mentioned method for automatic extraction of satellite remote sensing coastlines.

[0208] A third aspect of the present invention provides a satellite remote sensing coastline automatic extraction system, which includes the above-mentioned computer-readable storage medium.

[0209] Specifically, the principle of the present invention is:

[0210] 1. Application of fractal theory in coastline feature modeling

[0211] Coastlines usually present complex and ever-changing geometric shapes, which are difficult to accurately describe with simple mathematical models. Fractal theory provides a new way to solve this problem. Fractal is a mathematical model that can describe irregular geometric shapes in nature. Its core idea is to generate self-similar graphics through iteration. The commonly used fractal method is the Koch snowflake curve. The Koch snowflake curve is a triangle at the beginning, which is formed into a snowflake-like figure by continuously bending the opposite sides. Figure 2As shown in the figure, from the perspective of a single edge, the edge is divided into three equal parts, and the middle part is arched to become twice the original length, with a sharp angle of 60°, so that the edge is deformed into 4 small edges. Then the same treatment is performed on each small edge, and after multiple times, the final shape is formed. The accuracy of the graphics can be controlled by controlling the number of iterations. The same operation is performed on the three edges of the triangle to form a snowflake.

[0212] The present invention uses fractal theory to divide the high-resolution coastline image taken by a drone into equilateral triangle grids, and performs fractal processing on each triangle grid area. The coastline contour of the fractal image generated in this way can better reflect the complex characteristics of the actual coastline. Compared with directly using the original drone image, the fractal image can provide a more accurate coastline reference standard for subsequent four-color filling and deep learning model training.

[0213] 2. Four-color filling technology based on edge information

[0214] As a distinct feature boundary, the edge information of the coastline contains rich identification features. The present invention uses the four-color filling technology to divide the fractal image into different color areas according to the grayscale gradient information of the boundary pixels. Specifically, when the boundary pixel gradient of a certain area is large, it indicates that the area may be near the coastline, so it is painted red; the area with a smaller gradient is painted blue, which may be located in the inland area; the transition area between the two is painted green. The remaining unidentified areas are painted yellow.

[0215] This four-color filling method based on edge features can highlight the contour information of the coastline and provide richer and more accurate annotation data for subsequent deep learning model training. Compared with directly using the original fractal image, the image after four-color filling contains clearer coastline location and boundary features.

[0216] 3. End-to-end coastline recognition based on deep learning

[0217] The present invention uses a convolutional neural network to establish an end-to-end coastline recognition model. The input of the model is the feature vector of the satellite remote sensing image, including texture, color, edge and other features; the output is the corresponding four-color matrix, which reflects the distribution of the coastline.

[0218] Compared with traditional coastline extraction algorithms based on rules or shallow features, deep learning methods can better extract complex coastline features in remote sensing images. As a typical deep learning model, convolutional neural network can automatically learn effective feature representations from input images through multi-layer convolution, pooling and other operations. This end-to-end feature extraction and pattern recognition method does not need to rely on manually designed features, but learns directly from raw data, so it is closer to the complex features of the actual coastline.

[0219] At the same time, the present invention also uses the coastline annotation data after four-color filling to train a high-precision convolutional neural network model. This data augmentation method based on fractals and four-color filling effectively makes up for the deficiency of actual coastline data, making the trained model have stronger generalization ability.

[0220] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for automatically extracting a coastline from satellite remote sensing, characterized in that: The following steps are involved: S10, obtaining a plurality of pre-processed dual-mode images of the measured coastline area, wherein the dual-mode images include a satellite remote sensing image and an image group taken by an unmanned aerial vehicle, wherein the satellite remote sensing image includes a visible light image and a plurality of reflected light images of different wavelengths; S20, fracting each drone-photographed image in the drone-photographed image group using an equilateral triangle with a side length of L1 according to the measured coastline data to obtain a fractal image, wherein the similarity between the coastline of the fractal image and the measured coastline of the drone-photographed image is greater than a preset first threshold; S30, filling the fractal image with the four-color hypothesis according to a preset four-color filling rule to obtain a four-color filling image, and setting a number for each color; S40, aligning the satellite remote sensing image and the image taken by the drone, if the area represented by the satellite remote sensing image covers the areas covered by multiple images taken by the drone, stitching the multiple images taken by the drone and aligning them with the satellite remote sensing image; and obtaining a four-color fill map corresponding to the satellite remote sensing image, and converting the four-color fill map corresponding to the satellite remote sensing image into a four-color matrix; S50, establishing a training data set, including the features of the satellite remote sensing image and the four-color matrix, training a convolutional neural network model, and obtaining a coastline recognition model; S60, obtaining a satellite remote sensing image of the coastline area to be measured, recorded as the remote sensing image to be measured, and after preprocessing, performing feature extraction to obtain the remote sensing features to be measured; S70, inputting the remote sensing features to be measured into the coastline recognition model, and outputting a four-color matrix, which is recorded as the four-color matrix to be measured; S80, extracting and outputting the contour information of the coastline according to the four-color matrix to be tested.

2. The method for automatically extracting a coastline from satellite remote sensing according to claim 1, characterized in that: The preset four-color filling rule is: Step 1: Divide the fractal image into a number of polygonal regions according to its characteristics, each of which contains at most N fractal triangles, i.e., equilateral triangles with a side length of L1; Step 2: For each polygonal area, paint the area with different colors according to the gradient information of its boundary pixels. The specific coloring rules used are as follows: If the gradient of the boundary pixel of the polygonal area is large, it is painted red and numbered 1; If the gradient of the boundary pixels of the polygonal area is small, it is painted blue and numbered 2; If the polygonal area is located in the transition zone between the above two areas, it is painted green and numbered 3; The remaining areas are painted yellow and numbered 4; Step 3: When adjacent areas have the same color, the color of the polygon with a larger number or the color of the polygon with a smaller area is adjusted first; Step 4: After the above steps, you can get a four-color filling map and set the number of each color; Specifically, the steps of filling the fractal image with the four-color conjecture according to the preset four-color filling rule to obtain a four-color filling image, and setting the number of each color, specifically include: First, each fractal image Divide into several polygonal regions {P1, P2, ..., P K }, each polygonal area contains at most N fractal triangles, where N is a preset constant; Then, for each polygonal area P k , according to the gray gradient information of its boundary pixels, the preset four-color filling rule is used for filling: If the polygonal area P k The gray gradient of the boundary pixels If it is larger, the area is painted red and numbered 1; If the polygonal area P k The gray gradient of the boundary pixels If it is smaller, the area is painted blue and numbered 2; If the polygonal area P k The transition zone between the above two areas, namely If it is between a preset gradient threshold interval [δ2, δ3], it will be painted green and numbered 3; The remaining unidentified areas are colored yellow and numbered 4; When adjacent areas have the same color, the color of the polygon with the larger number is adjusted first; After the above steps, we get the four-color filling image I c , and set the number of each color to {1, 2, 3, 4}.

3. The method for automatically extracting a coastline from satellite remote sensing according to claim 1, characterized in that: The first threshold is 0.

8.

4. The method for automatically extracting a coastline from satellite remote sensing according to claim 1, characterized in that: The similarity between the coastline of the fractal image and the measured coastline of the image taken by the drone is calculated using cosine similarity.

5. The method for automatically extracting a coastline from satellite remote sensing according to claim 1, characterized in that: The methods for aligning satellite remote sensing images and images taken by drones are: geometric correction and registration.

6. The method for automatically extracting a coastline from satellite remote sensing according to claim 1, characterized in that: The network structure of the convolutional neural network adopts LeNet.

7. The method for automatically extracting a coastline from satellite remote sensing according to claim 1, characterized in that: The step S80 specifically includes: According to the four-color matrix to be tested outputted in step S70, the position information of the corresponding coastline is identified, the area numbered 1 in the matrix is ​​regarded as the coastline, the area numbered 2 is regarded as the inland, the area numbered 3 is regarded as the transition area, and the area numbered 4 is regarded as the unidentified area; the contour of the identified coastline area is extracted to obtain the specific contour information of the coastline; and the extracted coastline contour information is outputted.

8. The method for automatically extracting a coastline from satellite remote sensing according to claim 5, characterized in that: The registration method specifically includes: using a feature point matching algorithm or a correlation matching algorithm based on pixel grayscale values.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program instructions, which, when executed, are used to execute the method for automatically extracting coastlines via satellite remote sensing according to any one of claims 1 to 8.

10. A satellite remote sensing coastline automatic extraction system, characterized in that: A computer-readable storage medium comprising the computer-readable storage medium of claim 9.