Sea surface ship extraction method capable of specifying category zero samples

Extracting sea surface areas through coastline vector segmentation and threshold segmentation, combined with saliency detection and expert knowledge base screening, solves the problem of sample dependence and low accuracy in sea surface ship target extraction in the existing technology, and achieves efficient designated category extraction and Quick calculation.

CN118658059APending Publication Date: 2024-09-17CHANGGUANG SATELLITE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410686782.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In existing technology, in the extraction of surface ship targets, the deep learning method requires a large number of samples and the detection effect is difficult to guarantee, while the sample-free method has low accuracy and cannot meet the specified category extraction, and the calculation speed is slow, making it difficult to meet the time-sensitivity requirements.

Method used

A zero-sample sea surface ship extraction method is used to extract the sea surface area through coastline vector segmentation. Combined with threshold segmentation and saliency detection, the expert knowledge base is used to screen specified types of ships to reduce the calculation area and improve calculation efficiency.

Benefits of technology

It can efficiently extract specified categories of surface ship targets under sample-free conditions, and the calculation speed has been increased by nearly two times. It can extract specified categories without relying on samples, meeting time-sensitive requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658059A
    Figure CN118658059A
Patent Text Reader

Abstract

The invention discloses a sea surface ship extraction method capable of specifying category zero samples. The method comprises the following steps: carrying out sea-land segmentation on an obtained remote sensing image through a coastline vector, and extracting a sea surface region; determining a to-be-extracted target type and an image resolution; segmenting the sea surface region into a pure sea surface region and a sea surface target region through threshold segmentation; carrying out region division with overlapped regions on the obtained remote sensing image, and dividing a whole image region into a specified size to obtain divided regions; comparing the divided region with the extracted region with the target on the sea surface, and reserving region blocks overlapped with the region with the target on the sea surface; saliency detection is carried out in the reserved region blocks; screening region blocks of which the proportion of the salient regions in the whole image is 0.001%-10%; extracting contours of the salient targets through edge extraction, and solving a minimum enclosing rectangle for the contours; basic information of the minimum enclosing rectangle is judged and compared with information in the expert knowledge base, and the ship of the specified type is extracted if comparison succeeds.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of remote sensing image application, and specifically relates to the technical field of sea surface ship extraction methods. Background Art

[0002] Among the methods that can currently be used to extract surface ship targets, the sample-based method can propose targets of a specified category, while the sample-free method can only roughly extract all targets on the sea surface. There are two main existing methods for extracting surface ships: deep learning methods, which accumulate samples through a large amount of data, train corresponding target detection models, and detect surface ships; and saliency detection methods, which obtain ship targets by performing saliency detection on the sea surface, and filter out targets such as clouds and islands through information such as gradient features.

[0003] The first method can meet the requirements of extracting sea surface ship targets of specified categories, but it requires a large number of samples, and the difficulty of obtaining samples is extremely high. In order to achieve better results in detecting sea surface ship targets, first of all, there must be sufficient samples of various categories of ships. Because the structures of ship targets are quite different, it is difficult to ensure the detection effect of ships as a type of target, so it is necessary to have sufficient samples of each type of ship for training. In addition, there needs to be sufficient samples of sea scene. The existing mainstream target detection algorithm - single-stage target detection is often greatly affected by the scene in which the target is located. The implicit encoding of background information allows the scene information of the target to be extracted, but it also makes it difficult to detect when the target and the scene in the training set are very different. Among them, it is extremely difficult to obtain samples of sea surface targets, especially for some ships that do not go to sea frequently, there are almost no corresponding samples.

[0004] The second method can achieve sea surface target extraction under the condition of zero samples, but the accuracy is low and it cannot meet the requirements of extracting sea surface ship targets of specified categories. Saliency detection is to use image processing technology and computer vision algorithms to locate the most "salient" areas in the picture. Salient areas refer to eye-catching or important areas in the picture, such as the areas that the human eye will first focus on when viewing a picture. The results of saliency detection usually only contain positioning information but not category information.

[0005] Moreover, the calculation speed of the above two methods is relatively time-consuming. The task of finding sea surface targets is generally time-sensitive. Faster calculation can ensure faster acquisition of the ship's motion status and facilitate the implementation of rescue tasks. Summary of the invention

[0006] In order to solve the above problems, the present invention provides a method for extracting zero-sample sea surface ships with a specified category, and the method comprises the following steps:

[0007] S1. For the acquired remote sensing images, the sea and land are segmented by coastline vectors to extract the sea surface area;

[0008] S2, determining the target type and image resolution to be extracted;

[0009] S3, segmenting the sea surface area by threshold value to separate the pure sea surface area and the sea surface target area;

[0010] S4, dividing the acquired remote sensing images into regions with overlapping areas, dividing the entire image area into specified sizes, and obtaining divided regions;

[0011] S5, comparing the divided area with the extracted sea surface target area, and retaining the area blocks that overlap with the sea surface target area;

[0012] S6. Perform saliency detection in the retained area blocks;

[0013] S7, screening the area blocks where the proportion of significant areas in the whole image is between 0.001% and 10%;

[0014] S8, extracting the outline of the salient target by edge extraction, and finding the minimum circumscribed rectangle of the outline;

[0015] S9. Determine the basic information of the minimum circumscribed rectangle and compare it with the information in the expert knowledge base. If the comparison is successful, extract the specified type of ship.

[0016] Furthermore, the step S1 is specifically as follows: confirming whether the input image is entirely a sea surface image, and if there is a land area, segmenting the sea surface area by coastline vectors, wherein the coastline vectors are obtained by manual rough segmentation.

[0017] Further, in step S2:

[0018] Determining the target type to be extracted is specifically as follows: specifying the target type to be extracted by interacting with the expert knowledge base, where X different types of ship targets and their features are pre-stored in the expert knowledge base, and the features include: target length, target width and target aspect ratio;

[0019] Further, the step S3 is specifically as follows: using the Otsu algorithm to binarize the image threshold, segmenting the pure sea surface area and the sea surface target area, and setting the grayscale value of the pure sea surface area to 0 and the grayscale value of the sea surface target area to 255.

[0020] Further, the step S4 is specifically as follows: adopting a sliding window cutting method, the sliding window size is 1024*1024, and setting the length and width of the overlapping area to 300*300 during the sliding window process.

[0021] Further, the step S6 is specifically as follows:

[0022] The noise in the retained area block image is smoothed by the SmoothGrad method, and then:

[0023] M i,j =|wh(i,j)|;

[0024] Obtain its saliency map, where w represents the weight vector of the linear model,

[0025] h(i,j) is the index of w, representing the jth pixel in the i-th row of the image.

[0026] Furthermore, the conditions for successful comparison in step S9 are specifically:

[0027] The length error is less than 8m; the width error is less than 4m; the difference between the length-to-width ratio and the target length-to-width ratio is between 0.95-1.05.

[0028] The beneficial effects of the method of the present invention are:

[0029] The method of the present invention can extract targets of a specified category without samples and has high computational efficiency.

[0030] The method of the present invention can extract all targets on the sea surface through saliency detection without relying on any samples.

[0031] The method of the present invention also constructs an expert knowledge base, which contains the basic characteristics of 12 types of military ships. Relying on the expert knowledge base and the extraction results, targets of specified types can be screened out.

[0032] In order to improve the calculation speed, the method of the present invention also divides the sea surface area and the suspected non-sea surface area by threshold segmentation in the initial stage, reducing the target area that needs to be calculated by saliency; a completely cloudless image can be extracted in only 5 seconds under single-thread conditions, and a cloudy image takes about 15-20 seconds. Compared with using only saliency detection, the speed is increased by at least twice. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 This is a flow chart of the method described in an embodiment of the present invention;

[0034] Figure 2 Schematic diagram of the situation of correctly extracting sea surface ship targets and the situation of incorrectly extracting sea surface ship targets;

[0035] Figure 3 This is the result diagram of testing the sea surface data. DETAILED DESCRIPTION

[0036] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of the present invention.

[0037] The present invention provides a method for extracting sea surface ships with zero samples of specified categories, such as Figure 1 As shown, the method comprises the following steps:

[0038] S1. For the acquired remote sensing images, the sea and land are segmented by coastline vectors to extract the sea surface area;

[0039] S2, determining the target type and image resolution to be extracted;

[0040] S3, segmenting the sea surface area by threshold value to separate the pure sea surface area and the sea surface target area;

[0041] S4, dividing the acquired remote sensing images into regions with overlapping areas, dividing the entire image area into specified sizes, and obtaining divided regions;

[0042] S5, comparing the divided area with the extracted sea surface target area, and retaining the area blocks that overlap with the sea surface target area;

[0043] S6. Perform saliency detection in the retained area blocks;

[0044] S7, screening the area blocks where the proportion of significant areas in the whole image is between 0.001% and 10%;

[0045] S8, extracting the outline of the salient target by edge extraction, and finding the minimum circumscribed rectangle of the outline;

[0046] S9. Determine the basic information of the minimum circumscribed rectangle and compare it with the information in the expert knowledge base. If the comparison is successful, extract the specified type of ship.

[0047] The following content describes each step in detail.

[0048] For step S1, the acquired remote sensing image is segmented into land and sea by coastline vector to extract the sea surface area:

[0049] Confirm whether the input image is all sea surface images. If there are land areas, the sea surface area is segmented by coastline vectors, where the coastline vectors are obtained by manual rough division.

[0050] For step S2, determine the target type and image resolution to be extracted:

[0051] Determining the target type to be extracted is specifically as follows: specifying the target type to be extracted by interacting with the expert knowledge base, where X different types of ship targets and their features are pre-stored in the expert knowledge base, and the features include: target length, target width and target aspect ratio;

[0052] Specifically, the image resolution can be determined based on the image source. For example, in the images produced by Jilin-1, there is a field describing the image resolution in the meta file produced along with the image. The image resolution can be obtained by parsing the meta file.

[0053] For step S3, the sea surface area is segmented by threshold value to separate the pure sea surface area and the sea surface target area:

[0054] The Otsu algorithm is used to binarize the image threshold and segment the pure sea surface area and the sea surface target area. At the same time, the grayscale value of the pure sea surface area is set to 0, and the grayscale value of the sea surface target area is set to 255.

[0055] Since the sea surface background is simple and there is a large degree of distinction between the sea surface background and the foreground, it is very suitable for threshold segmentation. There are many threshold segmentation algorithms. By weighing the speed and performance, the OTSU algorithm was selected. The OTSU algorithm maximum inter-class variance method is also known as the Otsu algorithm, which was proposed by Japanese scholar Nobuyuki Otsu in 1991.

[0056] The assumption of the OTSU algorithm is that there is a threshold TH that divides all pixels of the image into two categories C1 (less than TH) and C2 (greater than TH). The means of the two categories of pixels are m1 and m2 respectively, and the global mean of the image is mG. At the same time, the probability of pixels being classified into C1 and C2 is p1 and p2 respectively. Therefore, we have:

[0057] p1 1+p2 2=mG

[0058] p1+p2=1

[0059] According to the concept of variance, the expression of between-class variance is:

[0060] σ 2 =1(m1-mG) 2 +2(m2-G) 2

[0061] We simplify the above formula and get:

[0062] σ 2 =p1 2(1-m2) 2

[0063] The gray level k that maximizes the above formula is the OTSU threshold, where:

[0064]

[0065] p2=1-p1;

[0066]

[0067] L represents each grayscale value in the image grayscale level 0-255.

[0068] The cumulative mean m of gray level k and the global mean mG of the image are:

[0069]

[0070]

[0071] Thus m1 and m2 can be transformed into:

[0072] m1=1 / 1*m

[0073] m2=1 / 2*(-m)

[0074] Derived from the above formula, we can get the between-class variance formula:

[0075]

[0076] After calculating the entire image, we set the grayscale value of the pure sea surface area to 0 and the grayscale value of the sea surface target area to 255. At this point, we extract the sea surface target area through threshold segmentation.

[0077] For step S4, the acquired remote sensing image is divided into regions with overlapping areas, and the whole image area is divided into specified sizes to obtain the divided areas:

[0078] The acquired remote sensing images are divided into regions with overlapping areas (300 pixels horizontally and 300 pixels vertically), and the whole image area is divided into specified sizes (1024*1024, pixels);

[0079] The size of satellite remote sensing images generally exceeds 5000*5000, and it is impossible to directly read them into the device to complete the saliency detection of the original remote sensing images. To solve this problem, this method adopts the sliding window cutting method. For the complete remote sensing image, the sliding window size is also 1024×1024; if the length and width of the overlapping area are set to 300 during the sliding window process, the image processing speed will be improved to a certain extent, but the sliding window cutting method with an overlap of 0 will truncate a complete target during the cutting of the original image, resulting in the loss of important targets. Here we only calculate the coordinates of the divided slices, and only calculate the slice coordinates without actual image slicing.

[0080] For step S5, the divided area is compared with the extracted sea surface target area, and the area blocks overlapping with the sea surface target area are retained:

[0081] Compare the divided area with the extracted sea surface target area, retain the area blocks that overlap with the sea surface target area, divide the binary image after threshold segmentation, and discard it if it is completely black. The result of threshold segmentation is a binary image, which is only used to represent the mask of the sea surface area and the non-sea surface area. If the slice range calculated in step S4 is completely black in the binary image, it proves that there is no non-sea surface area in the area, otherwise it exists. If there is a sea surface area, the actual image slice is cut using the coordinates in step S4, and the saliency detection of step S6 is performed based on this image slice.

[0082] For step S6, saliency detection is performed in the reserved area block:

[0083] After extracting the target area on the sea surface through the above steps, clouds and slightly larger waves on the sea surface are still difficult to be completely removed. In order to further extract the ship targets on the sea surface, saliency detection is performed on the target area.

[0084] Currently, convolutional neural networks are widely used in image recognition tasks. It is very important to understand the visual representation information obtained in the deep model. In the past CNN visualization work, Erhan proposed to construct an input image by maximizing the activity of neurons of interest (optimized using gradient ascent in the image space) to visualize the deep model. Zeiler proposed a Deconvolutional Network to reconstruct the input of each layer from the output of each layer.

[0085] Since the image size we are dealing with is relatively large, we need to consider both the speed and the target extraction effect. Given an image I0, category c, and the variable representing the CNN category c score is Sc(I), we sort the pixels in I0 according to their impact on Sc(I). Let’s take a simple example and consider the case of a linear model:

[0086]

[0087] The image is represented by a one-dimensional vector, w and b represent the weight vector and bias vector of the linear model. In this case, the size of the element of w determines the importance of the corresponding pixel in image I for category c.

[0088] For highly nonlinear models such as CNN, the above analysis cannot be directly and simply applied. Given an image I0, a linear function of the first-order Taylor expansion is used near I0 to approximate Sc(I):

[0089] S c ()≈w T I+b;

[0090] Where w is the value of the derivative of Sc with respect to image I at point I0:

[0091]

[0092] Given an image I0 (m rows and n columns) and the corresponding category c, we now need to find its corresponding saliency map M (M∈Rmxn). First, we can use back-propagation to get the derivative w according to the above formula, and then rearrange the elements of w to get the Saliency Map.

[0093] For the grayscale image I, the number of w elements is equal to the number of pixels in I0, so the Saliency Map can be obtained by Mi,j=|wh(i,j)|, where h(i,j) is the index of the w element, representing the jth pixel in the i-th row of the image.

[0094] For an RGB image I, the w element indexed by h(i,j,c) represents the c channel of pixel (i,j) in image I. For the single class saliency of pixel (i,j), the maximum value of the three channels is used to represent it: Mi,j = maxc|wh(i,j,c)|.

[0095] Saliency Map is directly extracted using the trained CNN without the need for additional annotations (such as segmentation mask / detection bounding box). Moreover, the solution of the image-specific saliency map for a specific category is very fast, requiring only one back-propagation.

[0096] However, due to the obvious noise in remote sensing images and the large number of noise points on the sea surface, it is difficult to extract the effective area. Therefore, we introduced the SmoothGrad method to smooth the noise.

[0097] When inputting an image, random noise is added to the input image multiple times, and the transformed image is averaged to achieve the effect of "introducing noise to eliminate noise". Random sampling is performed in the neighborhood of an input, and the resulting sensitivity map is averaged. Its mathematical definition is as follows:

[0098]

[0099] In the formula, n is the number of samples, N(0,σ 2) represents Gaussian noise with standard deviation σ.

[0100] By introducing smooth noise into the CNN visualization salient target extraction, we can accurately obtain the sea surface ship targets and effectively remove targets such as thin clouds and sea clutter.

[0101] For step S7, select the area blocks whose significant areas account for 0.001% to 10% of the whole image:

[0102] The statistical significant area, that is, the number of pixels in the sea target area (white) extracted by threshold segmentation in S3, is divided by the total number of pixels in the significant area. If the ratio is between 0.001% and 10% of the area block, it proves that there is a high possibility of ship targets in the area. The 10% threshold is determined by searching the largest ship size in the expert knowledge base.

[0103] Since thicker clouds, especially those in blocks, will also be defined as significant targets, it is necessary to filter out area blocks with larger cloud proportions.

[0104] In step S8, the contour of the salient target is extracted by edge extraction, and the minimum circumscribed rectangle of the contour is calculated:

[0105] After loading the image, we use GaussianBlur to smooth it to remove the noise in the image. In edge detection, we need to numerically derivate the pixel brightness, which will produce noisy edges. In other words, the brightness of adjacent pixels in the image (especially near the edge) fluctuates greatly, which will be regarded as a boundary, but it is not the main edge structure we are looking for.

[0106] The brightness near the boundary is smoothed by blurring, which makes it easier to identify the main edge structure in the image. The size of the convolution kernel (in this example, a 3×3 convolution kernel is used) determines the degree of blurring. The Gaussian kernel is mainly used when discretizing the window rowing convolution. The size of the Gaussian kernel is an odd number because the Gaussian convolution will output the result at the center of its coverage area. The commonly used Gaussian template will not be repeated here.

[0107] The Gaussian template is calculated by the Gaussian function, and the formula is as follows:

[0108]

[0109] Taking a 3×3 Gaussian filter template as an example, the center of the template is used as the coordinate origin for sampling. The coordinates of the template at each position have the x-axis pointing horizontally to the right and the y-axis pointing vertically upward.

[0110] Substitute the coordinates of each position into the Gaussian function G, and arrange each value obtained according to the position to obtain the template.

[0111] The output template has two forms:

[0112] (1) Decimal type: The value is calculated directly without any processing.

[0113] (2) Integer type: The obtained values ​​are normalized. That is, the coordinates of each position are substituted into the value of the Gaussian function G and normalized. Each other coefficient is divided by the coefficient of the upper left corner and then rounded. When using an integer template, a coefficient needs to be added in front of the template. The coefficient is the reciprocal of the sum of the template coefficients.

[0114] For example, a template with a Gaussian kernel of 3×3 and σ=0.8 is generated, and then the final result is obtained by rounding and adding coefficients.

[0115] like Figure 2 As shown, after the edge contour is extracted, the minimum circumscribed rectangle will be calculated. A large cargo ship was tested on the sea surface data, and the sea surface target can be accurately extracted. If some clouds are extracted, they can also be removed through the expert information database in the next step.

[0116] For step S9, the basic information of the minimum bounding rectangle is determined and compared with the information in the expert knowledge base. If the comparison is successful, the specified type of ship is extracted:

[0117] Determine the basic information of the bounding rectangle and compare it with the information in the expert knowledge base, compare the aspect ratio of the minimum bounding rectangle, search among several types with similar aspect ratios, and then convert the pixel length and width into meter-level length and width through calculation, search in the expert knowledge base, and extract the specified type of ship if the comparison is successful. The comparison is successful based on the following three conditions:

[0118] The length error is less than 8m;

[0119] Width error is less than 4m;

[0120] The difference between the aspect ratio and the target aspect ratio is between 0.95-1.05. Figure 2 As shown, the case where the sea surface ship target is correctly extracted and the case where the sea surface ship target is incorrectly extracted are demonstrated.

[0121] The 12 types of ships included in the expert knowledge base are shown in Table 1:

[0122] Table 1:

[0123]

[0124]

[0125] For further testing, we tested on FGSCR-42 (Fine-Grained Ship Classification in Remote Sensing Images), which contains remote sensing images collected from Google Earth and popular remote sensing imaging satellites such as DOTA, HRSC2016, NWPUVHR-10, etc., which contain warships and civilian ships of various sizes. The entire dataset contains about 9,320 images, divided into 42 categories (FGSCR-42), which consists of 9,320 optical satellite images of different spatial resolutions.

[0126] These images contain 9320 ship instances (classified as: 1 image = 1 instance). The image sizes in FGSCR-42 range from about 50×50 to about 1500×1500 pixels. The dataset contains 42 different categories. Some of the sea surface data was selected for testing: Since the data comes from Google Earth with a resolution of 0.3m, the extracted bounding box can accurately identify the specific category of the extraction result after comparing it with the expert information database. The specific extraction results are as follows: Figure 3 shown.

Claims

1. A method for extracting sea surface ships with zero samples of specified categories, characterized in that: The method comprises the following steps: S1. For the acquired remote sensing images, the sea and land are segmented by coastline vectors to extract the sea surface area; S2, determining the target type and image resolution to be extracted; S3, segmenting the sea surface area by threshold value to separate the pure sea surface area and the sea surface target area; S4, dividing the acquired remote sensing images into regions with overlapping areas, dividing the entire image area into specified sizes, and obtaining divided regions; S5, comparing the divided area with the extracted sea surface target area, and retaining the area blocks that overlap with the sea surface target area; S6. Perform saliency detection in the retained area blocks; S7, screening the area blocks where the proportion of significant areas in the whole image is between 0.001% and 10%; S8, extracting the outline of the salient target by edge extraction, and finding the minimum circumscribed rectangle of the outline; S9. Determine the basic information of the minimum circumscribed rectangle and compare it with the information in the expert knowledge base. If the comparison is successful, extract the specified type of ship.

2. The method for extracting zero-sample sea surface ships with assignable categories according to claim 1, characterized in that: The step S1 specifically includes: confirming whether the input image is entirely a sea surface image; if there is a land area, segmenting the sea surface area by using a coastline vector, wherein the coastline vector is obtained by manual rough segmentation.

3. The method for extracting zero-sample sea surface ships with assignable categories according to claim 1, characterized in that: In step S2: Determining the target type to be extracted specifically includes: specifying the target type to be extracted by interacting with the expert knowledge base, wherein the expert knowledge base pre-stores X different types of ship targets and their features, and the features include: target length, target width and target aspect ratio.

4. The method for extracting zero-sample sea surface ships with assignable categories according to claim 1, characterized in that: The step S3 specifically includes: using the Otsu algorithm to binarize the image threshold, segmenting the pure sea surface area and the sea surface target area, and setting the gray value of the pure sea surface area to 0 and the gray value of the sea surface target area to 255.

5. The method for extracting zero-sample sea surface ships with assignable categories according to claim 1, characterized in that: The step S4 specifically includes: adopting a sliding window cutting method, the sliding window size is 1024*1024, and setting the length and width of the overlapping area to 300*300 during the sliding window process.

6. The method for extracting zero-sample sea surface ships with assignable categories according to claim 1, characterized in that: The step S6 is specifically as follows: The noise in the retained area block image is smoothed by the SmoothGrad method, and then: M i,j =|wh(i,j)|; The saliency map is obtained, where w represents the weight vector of the linear model, h(i, j) is the index of w, and represents the jth pixel in the i-th row of the image.

7. The method for extracting zero-sample sea surface ships with assignable categories according to claim 1, characterized in that: The conditions for successful comparison in step S9 are specifically: The length error is less than 8m; the width error is less than 4m; the difference between the length-to-width ratio and the target length-to-width ratio is between 0.95-1.05.

Citation Information

Patent Citations

  • Method for detecting optical remote-sensing image ship with assistance of prior geographic information

    CN103886285A

  • Sea surface vessel target detection method

    CN104077777A

  • Automatic ship matching method based on optical satellite remote sensing image

    CN113408615A

  • Method for extracting saliency candidate region of ship target in optical remote sensing image

    CN117911675A