A method and device for identifying ship position at night
Through multi-level recognition analysis and the region growing method of radiance characteristics, combined with the influence of land lights, the problem of ship extraction under complex backgrounds in night ship identification is solved, and efficient and automated night ship position identification is achieved.
Patent Information
- Application Number
- CN202410838832.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-26
AI Technical Summary
It is difficult for the existing technology to achieve stable and high-precision ship extraction in the complex sea background during night-time ship identification, especially under the conditions of moon phase and near-shore strong light, and there are problems of missed detection and false detection.
Using a multi-level identification analysis method, the monitoring data of the sea area to be identified is preprocessed to remove background pixels, and the radiance characteristics and area growing method are used to screen ship pixels, combined with the area affected by land lights, to accurately locate the ship's position.
It improves the robustness and accuracy of nighttime ship extraction, reduces missed detections and false detections, and achieves automated and efficient identification, which is suitable for long-term sequences and complex backgrounds.
Smart Images

Figure CN118397096B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ship identification, and in particular to a method and device for identifying a ship position at night. Background Art
[0002] As an emerging hot research direction in the field of remote sensing, night light remote sensing can detect weak light sources on the surface at night or dusk, and detect ships at night by capturing the light emitted by ships at night. This technology makes up for the limitations of traditional optical remote sensing that relies on sunlight reflection, and can conduct large-scale, efficient, and low-cost long-term active monitoring of ships at sea at night. In terms of fishery management, for those ships that are not equipped with Automatic Identification System (AIS) transceivers, night light data can serve as an important supplementary data source for fishery spatial data. It can not only be used to draw fishing area maps for fishing vessels, but also monitor and identify illegal, unreported and unregulated fishing activities.
[0003] The methods for extracting ships using nighttime remote sensing images can be mainly divided into two categories: detection methods based on image radiation features and detection methods based on deep learning. The detection methods based on image radiation features focus on removing the noise background and enhancing the contrast to highlight the ship pixels. The difficulty lies in designing a flexible threshold method to distinguish between the background and the ship. In addition, due to the influence of the moon phase on the complex sea surface background and the poor extraction accuracy of the sea surface illuminated by strong light on the shore, there is a lack of a nighttime ship extraction method that is stable and accurate over a long time series.
[0004] Therefore, in order to meet actual needs, a nighttime ship position recognition technology is provided. Summary of the invention
[0005] In view of the defects existing in the prior art, the purpose of the present invention is to provide a method and device for identifying the position of ships at night. Based on the monitoring data of the sea area to be identified, multi-level recognition analysis is performed, the background of the image is eliminated, and the ship in the image is identified, thereby efficiently realizing the position of ships at night and meeting actual work needs.
[0006] In order to achieve the above purpose, the technical solution adopted by the present invention is:
[0007] In a first aspect, the present application provides a method for identifying a vessel position at night, the method comprising the following steps:
[0008] Based on a plurality of brightness and cloud monitoring data of the sea area to be identified within the time period to be identified, a plurality of pre-processed night light remote sensing images and a background threshold value of the sea area to be identified within the time period to be identified are obtained;
[0009] Based on the background threshold of the sea area to be identified within the time period to be identified, identifying the determined background pixels and the pixels to be determined in each of the pre-processed night light remote sensing images, and eliminating the determined background pixels to obtain the corresponding night light remote sensing images after the determined background is eliminated;
[0010] Based on the brightness value of the pixel to be determined in the determined background-removed night-light remote sensing image, the determined background-removed night-light remote sensing image is screened to obtain a first-level ship pixel set;
[0011] Taking the pixels in the first-level ship pixel set as seed points, expanding outward to the surrounding pixels, and screening to obtain the second-level ship pixel set according to whether they are similar to the determined background pixels, recorded as the ship potential position set;
[0012] Based on the potential ship position set and combined with the land light influence area, a final ship position set is obtained.
[0013] On the basis of the above technical solution, the method of obtaining a plurality of pre-processed night light remote sensing images and background thresholds of the sea area to be identified within the time period to be identified based on a plurality of brightness and cloud monitoring data of the sea area to be identified within the time period to be identified includes the following steps:
[0014] Acquire multiple brightness and cloud monitoring data of the sea area to be identified within the time period to be identified, and process them based on preset rules to obtain corresponding multiple pre-processed night light remote sensing images;
[0015] Based on the multiple pre-processed night light radiance images of the sea area to be identified within the time period to be identified, the background threshold of the sea area to be identified within the time period to be identified is obtained.
[0016] On the basis of the above technical solution, the method of obtaining a plurality of brightness and cloud monitoring data of the sea area to be identified within the time period to be identified, and processing based on preset rules to obtain a plurality of corresponding pre-processed night light remote sensing images includes the following steps:
[0017] Acquire multiple night light radiance data layers and multiple cloud mask identification data layers of the sea area to be identified within the time period to be identified, and obtain corresponding multiple night light radiance images and multiple cloud mask identification images;
[0018] Based on each of the cloud mask identification images, the corresponding night light radiance brightness image is processed according to a preset first screening rule to obtain a plurality of pre-processed night light remote sensing images.
[0019] On the basis of the above technical solution, the step of obtaining the background threshold of the sea area to be identified within the time period to be identified based on the multiple pre-processed night light radiance images of the sea area to be identified within the time period to be identified includes the following steps:
[0020] Based on the stable sea surface background area set in the sea area to be identified, each of the pre-processed night light radiance brightness images is cropped to obtain a plurality of first night light radiance brightness images of the sea area to be identified within the time period to be identified;
[0021] Eliminate pixels with abnormal radiance values in each of the first luminous radiance images, calculate the brightness mean and brightness standard deviation corresponding to each of the first luminous radiance images, and obtain the upper limit radiance value of the background area of each of the first luminous radiance images;
[0022] Based on the upper limit radiance value of each background area, a sequence of upper limit radiance values of the background area of the to-be-identified sea area within the to-be-identified time period is constructed, and the seasonal term, trend term and residual term are decomposed to obtain the background threshold of the to-be-identified sea area within the to-be-identified time period, combined with the set bias term.
[0023] On the basis of the above technical solution, the method further comprises the following steps:
[0024] For each of the determined night light remote sensing images after background removal, adjacent pixels to be determined are merged into the same pixel connected set.
[0025] On the basis of the above technical solution, the method of identifying the determined background pixels and the pixels to be determined in each of the pre-processed night light remote sensing images based on the background threshold of the sea area to be identified within the time period to be identified, and eliminating the determined background pixels to obtain the corresponding night light remote sensing images after the determined background is eliminated includes the following steps:
[0026] Based on the background threshold of the sea area to be identified within the time period to be identified, the determined background pixels in each of the pre-processed night light remote sensing images of the sea area to be identified within the time period to be identified are eliminated to obtain the corresponding night light remote sensing images after the determined background is eliminated;
[0027] For each of the pixels to be determined in the night light remote sensing image after background removal, a connected domain set of adjacent pixels to be determined is created by constructing and finding a set tree.
[0028] On the basis of the above technical solution, based on the brightness value of the pixel to be determined in the night light remote sensing image after background removal, the night light remote sensing image after background removal is screened to obtain a first-level ship pixel set, including the following steps:
[0029] Arrange the pixels to be determined as the potential positions of the ship in ascending order according to pixel values, select the pixels to be determined in sequence, and assume that they are pixels of the ship as seed points;
[0030] The surrounding pixels of each seed point are traversed by using a breadth-first search algorithm, and the radiance similarity of the pixels in the surrounding preset area is calculated with the corresponding seed point as the center pixel, so as to obtain the corresponding relative similarity index and absolute similarity index;
[0031] Based on the relative similarity index and the absolute similarity index, in combination with the corresponding relative similarity index judgment threshold and the absolute similarity index judgment threshold, a first-level ship pixel set is obtained.
[0032] On the basis of the above technical solution, the pixel in the first-level ship pixel set is used as a seed point, and the pixels are expanded to the surrounding pixels. According to whether the pixels are similar to the determined background pixels, a second-level ship pixel set is obtained by screening and recorded as a ship potential position set, which includes the following steps:
[0033] Based on the expansion of each pixel in the first-level ship pixel set, a neighboring pixel set is constructed; if the brightness of the corresponding pixel in the neighboring pixel set meets a preset similarity condition with the brightness of the determined background pixel, the pixel is included in the determined background pixel set corresponding to the determined background pixel; otherwise, the pixel is included in a preset high-value pixel set;
[0034] Based on each pixel in the high-value pixel set, searching for its corresponding neighbor pixel, if the neighbor pixel is a determined background pixel, then classifying the neighbor pixel into the determined background pixel set, if the neighbor pixel has not been traversed, then judging whether the neighbor pixel is similar to each of the determined background pixels, if similar, then classifying the neighbor pixel into the determined background pixel set, otherwise, then classifying the neighbor pixel into the high-value pixel set;
[0035] For each pixel of the first-level ship pixel set, it is identified that the corresponding neighbor pixel is marked as a first ship pixel, and then the pixel set to which the neighbor pixel belongs is searched. If the neighbor pixel belongs to the determined background pixel set, the ship pixel set is not merged. If the neighbor pixel belongs to the high-value pixel set, the first-level ship pixel sets of the corresponding two pixels are merged to obtain a second-level ship pixel set.
[0036] Based on the set pixel number threshold, the number of pixels of each of the second-level ship pixel sets is determined, and the corresponding ship potential position set is screened and obtained.
[0037] On the basis of the above technical solution, the method of obtaining a final set of ship positions based on the set of potential ship positions and combining the land light influence area includes the following steps:
[0038] Converting the vessel pixels in the vessel potential position set into vessel point vectors, performing projection transformation with the coastline vector to obtain a buffer zone, and screening to obtain a nearshore vessel set in the buffer zone;
[0039] Constructing a label matrix of the ocean and land ranges to which each pixel in the nearshore ship set belongs, expanding each pixel in the nearshore ship set pixel by pixel until the number of land pixels included exceeds the ship pixels, thereby obtaining the corresponding first-level nearshore ship set and the adjacent land pixel set;
[0040] Based on the first-level nearshore vessel set and the adjacent land pixel set, pixels in the first-level nearshore vessel set that are affected by land lights are eliminated to obtain a second-level nearshore vessel set;
[0041] If the maximum radiance of the pixels in the adjacent land pixel set is greater than the maximum radiance of the pixels in the second level nearshore vessel set, the vessel pixel set should be eliminated, otherwise it should be retained to obtain the final nearshore vessel set;
[0042] A final vessel position set is obtained based on the potential vessel position set, the nearshore vessel set and the final nearshore vessel set.
[0043] In a second aspect, the present application provides a device for identifying a vessel position at night, the device comprising:
[0044] A first preprocessing module, which is used to obtain a plurality of preprocessed night light remote sensing images and a background threshold of the sea area to be identified within the time period to be identified based on a plurality of brightness and cloud monitoring data of the sea area to be identified within the time period to be identified;
[0045] A background elimination module is used to identify the determined background pixels and the pixels to be determined in each of the pre-processed night light remote sensing images based on the background threshold of the sea area to be identified within the time period to be identified, and eliminate the determined background pixels to obtain the corresponding night light remote sensing images after the determined background is eliminated;
[0046] A first-level ship determination module, which is used to screen the determined background-removed night-light remote sensing image based on the brightness value of the pixel to be determined in the determined background-removed night-light remote sensing image to obtain a first-level ship pixel set;
[0047] A second-level ship determination module is used to use pixels in the first-level ship pixel set as seed points, expand outward to surrounding pixels, and screen and obtain a second-level ship pixel set based on whether it is similar to the determined background pixels, and record it as a ship potential position set;
[0048] The final ship determination module is used to obtain a final ship position set based on the potential ship position set and the land light influence area.
[0049] Compared with the prior art, the advantages of the present invention are:
[0050] (1) The present invention performs multi-level recognition analysis based on the monitoring data of the sea area to be identified, removes the background of the image, and then identifies the ship in the image, thereby efficiently realizing the position recognition of the ship at night and meeting the actual work needs.
[0051] (2) The present invention takes into account the influence of the moon phase on the complex sea surface background and incorporates the periodic fluctuation characteristics of the sea surface background pixel radiance value with the moon phase into the selection of the background threshold. This can more effectively distinguish ship pixels from background pixels and has good robustness for long-term series of night sea surface ship extraction.
[0052] (3) The present invention uses the region growing method to extract ships based on the radiance characteristics of the night light remote sensing image itself. Compared with the single threshold segmentation method in the prior art, the spatial similarity between the ship pixels and the pixels around them is taken into account, and there are fewer missed detections and false detections in complex backgrounds and large sea areas. In addition, the present invention does not require manual annotation of the ship data set, and has a high degree of automation. Compared with the deep learning extraction method, it saves time and effort, and is fast and efficient.
[0053] (4) For ships in the sea area that are illuminated by strong light near the shore, the present invention compares the radiant brightness of the ship with the brightness of the nearshore light and then eliminates it. Compared with the prior art that directly eliminates nearshore ships, this is more in line with the actual situation and effectively improves the extraction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0055] Figure 1 This is a flowchart of steps A1 to A5 in the method for identifying the position of a ship at night according to an embodiment of the present invention;
[0056] Figure 2This is a flowchart of steps S1 to S6 in the method for identifying the position of a ship at night according to an embodiment of the present invention;
[0057] Figure 3 It is a principle flow chart of a method for identifying a vessel position at night according to an embodiment of the present invention;
[0058] Figure 4 4 is a structural block diagram of a device for identifying a vessel position at night according to an embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0060] The embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
[0061] The embodiment of the present application provides a method and device for identifying the position of a ship at night. Based on the monitoring data of the sea area to be identified, multi-level identification analysis is performed, the background of the image is removed, and the ship in the image is identified, thereby efficiently realizing the position of the ship at night and meeting the actual work needs.
[0062] In order to achieve the above technical effects, the overall idea of this application is as follows:
[0063] A method for identifying a vessel position at night, the method comprising the following steps:
[0064] A1. Based on multiple brightness and cloud monitoring data of the sea area to be identified within the time period to be identified, multiple pre-processed night light remote sensing images and background thresholds of the sea area to be identified within the time period to be identified are obtained;
[0065] A2. Based on the background threshold of the sea area to be identified within the time period to be identified, identify the determined background pixels and the pixels to be determined in each pre-processed night light remote sensing image, and remove the determined background pixels to obtain the corresponding night light remote sensing images after the determined background is removed;
[0066] A3, based on the brightness value of the pixel to be determined in the night light remote sensing image after background removal, the night light remote sensing image after background removal is screened to obtain a first-level ship pixel set;
[0067] A4, taking the pixels in the first-level ship pixel set as seed points, expanding to the surrounding pixels, and screening to obtain the second-level ship pixel set according to whether it is similar to the background pixels, and recording it as the ship potential position set;
[0068] A5. Based on the potential ship position set and combined with the land light influence area, the final ship position set is obtained.
[0069] The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.
[0070] First, see Figure 1~2 As shown, the embodiment of the present application provides a method for identifying the position of a ship at night, the method comprising the following steps:
[0071] A1. Based on multiple brightness and cloud monitoring data of the sea area to be identified within the time period to be identified, multiple pre-processed night light remote sensing images and background thresholds of the sea area to be identified within the time period to be identified are obtained;
[0072] A2. Based on the background threshold of the sea area to be identified within the time period to be identified, identify the determined background pixels and the pixels to be determined in each pre-processed night light remote sensing image, and remove the determined background pixels to obtain the corresponding night light remote sensing images after the determined background is removed;
[0073] A3, based on the brightness value of the pixel to be determined in the night light remote sensing image after background removal, the night light remote sensing image after background removal is screened to obtain a first-level ship pixel set;
[0074] A4, taking the pixels in the first-level ship pixel set as seed points, expanding to the surrounding pixels, and screening to obtain the second-level ship pixel set according to whether it is similar to the background pixels, and recording it as the ship potential position set;
[0075] A5. Based on the potential ship position set and combined with the land light influence area, the final ship position set is obtained.
[0076] The embodiment of the present application performs multi-level recognition analysis based on the monitoring data of the sea area to be identified, removes the background of the image, and then identifies the ship in the image, thereby efficiently realizing the position of the ship at night and meeting the actual work needs.
[0077] Specifically, the method of obtaining a plurality of pre-processed night light remote sensing images and a background threshold of the sea area to be identified within the time period to be identified based on a plurality of brightness and cloud monitoring data of the sea area to be identified within the time period to be identified includes the following steps:
[0078] Acquire multiple brightness and cloud monitoring data of the sea area to be identified within the time period to be identified, and process them based on preset rules to obtain corresponding multiple pre-processed night light remote sensing images;
[0079] Based on the multiple pre-processed night light radiance images of the sea area to be identified within the time period to be identified, the background threshold of the sea area to be identified within the time period to be identified is obtained.
[0080] Therefore, the actual operation steps of the embodiment of the present application may be as follows:
[0081] S1. Acquire multiple brightness and cloud monitoring data of the sea area to be identified within the time period to be identified, and process them based on preset rules to obtain corresponding multiple pre-processed night light remote sensing images;
[0082] S2. obtaining a background threshold of the sea area to be identified within the time period to be identified based on a plurality of pre-processed night light radiance images of the sea area to be identified within the time period to be identified;
[0083] S3, based on the background threshold of the sea area to be identified within the time period to be identified, identifying the determined background pixels and the pixels to be determined in each pre-processed night light remote sensing image, and removing the determined background pixels to obtain the corresponding night light remote sensing images after the determined background is removed;
[0084] S4, based on the brightness value of the pixel to be determined in the night light remote sensing image after background removal, the night light remote sensing image after background removal is screened to obtain a first-level ship pixel set;
[0085] S5, taking the pixels in the first-level ship pixel set as seed points, expanding to the surrounding pixels, and screening to obtain the second-level ship pixel set according to whether they are similar to the determined background pixels, and recording them as the ship potential position set;
[0086] S6. Based on the potential ship position set and combined with the land light influence area, a final ship position set is obtained.
[0087] On the basis of the above technical solution, the method of obtaining a plurality of brightness and cloud monitoring data of the sea area to be identified within the time period to be identified, and processing based on preset rules to obtain a plurality of corresponding pre-processed night light remote sensing images includes the following steps:
[0088] Acquire multiple night light radiance data layers and multiple cloud mask identification data layers of the sea area to be identified within the time period to be identified, and obtain corresponding multiple night light radiance images and multiple cloud mask identification images;
[0089] Based on each of the cloud mask identification images, the corresponding night light radiance brightness image is processed according to a preset first screening rule to obtain a plurality of pre-processed night light remote sensing images.
[0090] On the basis of the above technical solution, the step of obtaining the background threshold of the sea area to be identified within the time period to be identified based on the multiple pre-processed night light radiance images of the sea area to be identified within the time period to be identified includes the following steps:
[0091] Based on the stable sea surface background area set in the sea area to be identified, each of the pre-processed night light radiance brightness images is cropped to obtain a plurality of first night light radiance brightness images of the sea area to be identified within the time period to be identified;
[0092] Eliminate pixels with abnormal radiance values in each of the first luminous radiance images, calculate the brightness mean and brightness standard deviation corresponding to each of the first luminous radiance images, and obtain the upper limit radiance value of the background area of each of the first luminous radiance images;
[0093] Based on the upper limit radiance value of each background area, a sequence of upper limit radiance values of the background area of the to-be-identified sea area within the to-be-identified time period is constructed, and the seasonal term, trend term and residual term are decomposed to obtain the background threshold of the to-be-identified sea area within the to-be-identified time period, combined with the set bias term.
[0094] On the basis of the above technical solution, the method further comprises the following steps:
[0095] For each of the determined night light remote sensing images after background removal, adjacent pixels to be determined are merged into the same pixel connected set.
[0096] On the basis of the above technical solution, the method of identifying the determined background pixels and the pixels to be determined in each of the pre-processed night light remote sensing images based on the background threshold of the sea area to be identified within the time period to be identified, and eliminating the determined background pixels to obtain the corresponding night light remote sensing images after the determined background is eliminated includes the following steps:
[0097] Based on the background threshold of the sea area to be identified within the time period to be identified, the determined background pixels in each of the pre-processed night light remote sensing images of the sea area to be identified within the time period to be identified are eliminated to obtain the corresponding night light remote sensing images after the determined background is eliminated;
[0098] For each of the pixels to be determined in the night light remote sensing image after background removal, a connected domain set of adjacent pixels to be determined is created by constructing and finding a set tree.
[0099] On the basis of the above technical solution, based on the brightness value of the pixel to be determined in the night light remote sensing image after background removal, the night light remote sensing image after background removal is screened to obtain a first-level ship pixel set, including the following steps:
[0100] Arrange the pixels to be determined as the potential positions of the ship in ascending order according to pixel values, select the pixels to be determined in sequence, and assume that they are pixels of the ship as seed points;
[0101] The surrounding pixels of each seed point are traversed by using a breadth-first search algorithm, and the radiance similarity of the pixels in the surrounding preset area is calculated with the corresponding seed point as the center pixel, so as to obtain the corresponding relative similarity index and absolute similarity index;
[0102] Based on the relative similarity index and the absolute similarity index, in combination with the corresponding relative similarity index judgment threshold and the absolute similarity index judgment threshold, a first-level ship pixel set is obtained.
[0103] It should be noted that, during the specific operation of the above steps, a first marking matrix for marking the category to which each pixel belongs may also be constructed, wherein the category to which the pixel belongs includes first-level untraversed pixels, first-level background pixels, and first-level ship pixels;
[0104] In order to mark each pixel during operation, it is convenient to understand the processing progress.
[0105] On the basis of the above technical solution, the pixel in the first-level ship pixel set is used as a seed point, and the pixels are expanded to the surrounding pixels. According to whether the pixels are similar to the determined background pixels, a second-level ship pixel set is obtained by screening and recorded as a ship potential position set, which includes the following steps:
[0106] Based on the expansion of each pixel in the first-level ship pixel set, a neighboring pixel set is constructed; if the brightness of the corresponding pixel in the neighboring pixel set meets a preset similarity condition with the brightness of the determined background pixel, the pixel is included in the determined background pixel set corresponding to the determined background pixel; otherwise, the pixel is included in a preset high-value pixel set;
[0107] Based on each pixel in the high-value pixel set, searching for its corresponding neighbor pixel, if the neighbor pixel is a determined background pixel, then classifying the neighbor pixel into the determined background pixel set, if the neighbor pixel has not been traversed, then judging whether the neighbor pixel is similar to each of the determined background pixels, if similar, then classifying the neighbor pixel into the determined background pixel set, otherwise, then classifying the neighbor pixel into the high-value pixel set;
[0108] For each pixel of the first-level ship pixel set, it is identified that the corresponding neighbor pixel is marked as a first ship pixel, and then the pixel set to which the neighbor pixel belongs is searched. If the neighbor pixel belongs to the determined background pixel set, the ship pixel set is not merged. If the neighbor pixel belongs to the high-value pixel set, the first-level ship pixel sets of the corresponding two pixels are merged to obtain a second-level ship pixel set.
[0109] Based on the set pixel number threshold, the number of pixels of each of the second-level ship pixel sets is determined, and the corresponding ship potential position set is screened and obtained.
[0110] It should be noted that before the above steps are performed, a second marking matrix for marking the category to which each pixel belongs may also be constructed, wherein the categories to which the pixels belong include second-level untraversed pixels, second-level background pixels, and second-level vessel pixels;
[0111] In order to control the processing status of each pixel with the help of each second marking matrix, the processing progress can be conveniently monitored.
[0112] On the basis of the above technical solution, the method of obtaining a final set of ship positions based on the set of potential ship positions and combining the land light influence area includes the following steps:
[0113] Converting the vessel pixels in the vessel potential position set into vessel point vectors, performing projection transformation with the coastline vector to obtain a buffer zone, and screening to obtain a nearshore vessel set in the buffer zone;
[0114] Constructing a label matrix of the ocean and land ranges to which each pixel in the nearshore ship set belongs, expanding each pixel in the nearshore ship set pixel by pixel until the number of land pixels included exceeds the ship pixels, thereby obtaining the corresponding first-level nearshore ship set and the adjacent land pixel set;
[0115] Based on the first-level nearshore vessel set and the adjacent land pixel set, pixels in the first-level nearshore vessel set that are affected by land lights are eliminated to obtain a second-level nearshore vessel set;
[0116] If the maximum radiance of the pixels in the adjacent land pixel set is greater than the maximum radiance of the pixels in the second level nearshore vessel set, the vessel pixel set should be eliminated, otherwise it should be retained to obtain the final nearshore vessel set;
[0117] A final vessel position set is obtained based on the potential vessel position set, the nearshore vessel set and the final nearshore vessel set.
[0118] Based on the technical solution of the embodiment of the present application, especially the operations of steps S1 to S6, a detailed description is given, and the specific contents are as follows:
[0119] Step S1, obtaining a plurality of brightness and cloud monitoring data of the sea area to be identified within the time period to be identified, and processing based on preset rules to obtain a corresponding plurality of pre-processed night light remote sensing images.
[0120] Assuming that the sea area to be identified is the Bay of Bengal, in actual operation, obtain the VNP46A1 night light remote sensing image of the Black Marble night light image product covering the study sea area and its coastal area, and perform data preprocessing; the specific process includes:
[0121] Step S1.1, read the DNB_At_Sensor_Radiance night light radiance data layer and the QF_Cloud_Mask cloud mask identification data layer of the VNP46A1 product, the image size of which is 1792×1724, the pixel type of the night light radiance data layer is double-precision floating point, and the pixel type of the cloud mask identification data layer is unsigned 16-bit integer;
[0122] The coastline vector data are used to clip them separately to achieve land and sea segmentation, and the night light radiance image of the sea surface and the cloud mask identification image are obtained.
[0123] Step S1.2, the cloud mask identification image reflects important information about whether the pixel is blocked by clouds. According to the cloud mask identification image, the screening rules shown in Table 1 below are specifically set to retain pixels that meet the conditions and remove pixels in the night light radiance image that are blocked by clouds and have poor quality.
[0124] Table 1. Rules for filtering the values of each bit of the cloud mask identification image
[0125]
[0126] Step S2, calculating the background threshold corresponding to the day and night light image: based on the multiple pre-processed night light radiance brightness images of the sea area to be identified within the time period to be identified, obtaining the background threshold of the sea area to be identified within the time period to be identified.
[0127] Specifically, step S2 includes the following steps:
[0128] Step S2.1, based on the ship route data in the sea area and manual experience, select an area where no ships pass through all year round as a stable sea surface background area, crop the night light image obtained in step S1 according to the area, and obtain a long-term series of night light radiance brightness images of the area including that day.
[0129] Step S2.2: for the night light radiance image of each day in the time series, after removing pixels with abnormal radiance values according to the 3σ criterion, calculate the mean and standard deviation. The upper limit radiance of the background area on that day is the sum of the two.
[0130] Step S2.3, construct a long time series of the upper limit radiance of the background area. Since the nighttime lights on the sea surface show a trend of periodic changes with the phases of the moon, the daily background threshold should also take into account the periodic changes. The upper limit radiance of the long time series is decomposed using the additive seasonal-trend model, and the daily upper limit radiance is decomposed into seasonal terms, trend terms and residual terms. The calculation formulas of the seasonal-trend model and the background threshold are as follows:
[0131] Y(t)=S(t)+T(t)+R(t);
[0132] Among them, Y(t) represents the upper limit radiance at time t, S(t), T(t), and R(t) are the periodic term, trend term, and residual term at time t, respectively. The periodic term reflects the pattern of night light repeating with the lunar phase cycle, the trend term reflects the trend of the change of the mean of the time series over time, and the residual term represents unexplained independent changes. Since the lunar phase cycle is about 30 days, the period of the decomposition model is set to 30.
[0133] In addition, B(t)=S(t)+T(t)+b;
[0134] Among them, B(t) represents the background threshold at time t, S(t) and T(t) are the periodic term and trend term obtained from the season-trend decomposition model, and b is the bias term, which is set to 1 based on manual experience and visual inspection of a large number of images.
[0135] Step S3, based on the background threshold of the sea area to be identified within the time period to be identified, identify the determined background pixels and the pixels to be determined in each of the preprocessed night light remote sensing images, and eliminate the determined background pixels to obtain the corresponding night light remote sensing images after the determined background is eliminated, that is, after filtering out the background pixels based on the background threshold in step S2, use the union-find structure to merge adjacent pixels into the same set.
[0136] Specifically, step S3 includes the following steps:
[0137] Step S3.1, based on the background threshold of the day's image calculated in step S2.3, pixels smaller than the threshold are considered to be background and do not participate in subsequent operations.
[0138] Step S3.2, for the remaining non-background pixels, create a connected set of adjacent non-background pixels by constructing a union-find tree:
[0139] First, initialize the pixel set, each pixel node forms a set;
[0140] Then traverse the non-background pixel set, and for each pixel node, find the non-background pixels in its 4-neighborhood. These two pixel sets need to be merged;
[0141] Find the root node of the current pixel node, and point the pixel root node to be merged to the current pixel root node;
[0142] After all traversals are completed, for all pixels in the union-find tree, the pixel nodes pointing to the same root node are classified into the same set to obtain the connected domain set of spatially adjacent pixels in non-background pixels.
[0143] Step S4, using the region growing method to screen out brighter pixel positions as potential positions of ships: based on the brightness values of the pixels to be determined in the determined background-removed night-light remote sensing image, the determined background-removed night-light remote sensing image is screened to obtain a first-level ship pixel set.
[0144] Specifically, step S4 includes the following steps:
[0145] Step S4.1, construct a labeling matrix for labeling the category to which each pixel belongs, including three categories: untraversed pixels, background pixels, and ship pixels.
[0146] Step S4.2, arrange the pixels in the set in ascending order according to pixel value, and select the brightest pixel as the seed point each time, assuming it is a ship pixel.
[0147] Step S4.3, use the breadth-first search algorithm to traverse the pixels around the seed point, take the seed point as the center pixel, and construct the relative similarity index (RSI) and absolute similarity index (ASI) to judge the similarity of the radiance between the four neighboring pixels around it and the seed point. The calculation formula is as follows:
[0148]
[0149]
[0150] in, The coordinates are The night light radiance value of the central pixel, Indicates the center pixel Four neighborhood pixels The night light radiance value.
[0151] Step S4.4, select the similarity judgment threshold according to the actual situation and manual experience. It is generally considered that and When the central pixel is similar to its neighboring pixels, the similar and untraversed neighboring pixels are merged into the ship pixel set and used as the seed point for the next growth to continue growing outward until no pixels that meet the conditions are included; if they are similar to the central pixel and have been marked as background pixels, then all the assumed ship pixel sets in step 4.2 are changed to background pixels and no longer grow outward; if the central pixel is not similar to its neighboring pixels ( or ) and is much brighter than its neighboring pixels (in specific implementation, the brightness is greater than that of the neighboring pixels), the neighboring pixels are marked as background pixels; if the central pixel is not similar to the neighboring pixels ( or ) and the neighboring pixels are much brighter than the central pixel (in specific implementation, the brightness is greater than the neighboring pixels), the assumed ship pixel set in step S4.2 is completely changed to background pixels, and no longer grows outward. After all traversals are completed, the final ship pixel set is the initially determined potential position of the ship, which can be recorded as the first-level ship pixel set.
[0152] Step S5, starting from the first-level ship pixel set obtained in step S4, expand outward to the surrounding pixels to ensure that the brightness of the surrounding background pixels of the ship set is similar: use the pixels in the first-level ship pixel set as seed points, expand outward to the surrounding pixels, and screen to obtain the second-level ship pixel set based on whether it is similar to the determined background pixels, which is recorded as the potential ship position set.
[0153] Specifically, step S5 includes the following steps:
[0154] Step S5.1, construct a labeling matrix for marking the category to which each pixel belongs, including three categories: untraversed pixels, background pixels and ship pixels. All potential positions of ships obtained in step S4 are marked as ship pixels, pixels smaller than the threshold in step S3 are marked as background pixels, and the rest are untraversed pixels.
[0155] Step S5.2, for each potential position set of ships, expand it outward by one pixel and classify the expanded pixels into the neighborhood set, perform initial division on the pixels in the neighborhood set, sort the neighborhood pixels from small to large according to the radiant brightness value, add the pixel with the lowest brightness to the background pixel set, and then traverse the remaining pixels in turn and compare them with the pixels in the background pixel set. If the pixel to be judged is similar to all the background pixels, then add it to the background pixel set, otherwise add it to the high-value pixel set and mark the background pixel.
[0156] Step S5.3, for the high-value pixel set, a depth-first search algorithm is used to further expand the search for neighboring pixels of the pixel after the expanded pixel. If the neighboring pixels have been marked as background pixels, they are included in the background pixel set, i.e., the marking matrix in step S5.1;
[0157] If the neighbor pixel has not been traversed, compare the neighbor pixel with all current background pixels. If it is not similar to all background pixels and is much brighter than the background pixels (in specific operations, high brightness is sufficient), classify it into the high-value pixel set, otherwise classify it into the background pixel set;
[0158] Step S5.4, if the neighbor pixel has been marked as a ship, search the set where the ship pixel is located. If the set has been judged in step S5.3, mark the current neighbor pixel as background, and do not expand outward from this pixel to perform depth-first search;
[0159] Otherwise, take out all neighbor pixels of the ship set and divide them into background pixel set and high-value pixel set according to certain rules. If the current neighbor pixel is in the background pixel set, then the two ship sets are not merged, the current neighbor pixel is marked as background, and the depth-first search is no longer expanded outward from this pixel;
[0160] If the current neighbor pixel is in the high-value pixel set, the two ship sets need to be merged into one ship set and the above judgment is performed again.
[0161] It should be noted that if there are several ships in the image, then several ship sets are obtained accordingly.
[0162] Step S5.5: Based on the shape characteristics of the ship in the night light image, it is generally considered that a bright pixel set with a number of pixels not exceeding 16 is a ship, and a set with a number of pixels exceeding 16 may be a sea area illuminated by strong light from the shore or other noise. If the number of current high-value pixels exceeds the threshold of 16, it is considered to be a piece of noise, and the outward search is stopped;
[0163] Otherwise, the search continues outward until all traversals are completed, and high-value pixels are merged into the potential ship position set. In specific operations, if the number of pixels in the ship set in step S5.4 is greater than 16, the corresponding ship set will be excluded, or a new ship set may be obtained.
[0164] Step S6, based on the potential ship position set and combined with the land light influence area, a final ship position set is obtained, that is, based on the ship pixel positions obtained in step S5, the ship set illuminated by the land light is eliminated to obtain the final ship position.
[0165] Specifically, step S6 includes the following steps:
[0166] Step S6.1, convert all the ship pixels obtained in step S5 into point vectors, and perform projection transformation on the coastline vector data and the ship point vector data, create a buffer zone with a radius of 2000 meters with the projected coastline vector, perform intersection analysis with the ship point vector, and filter out the nearshore ship point set in the buffer zone.
[0167] Step S6.2, construct a label matrix of the ocean and land range to which each pixel belongs. For each nearshore ship point set obtained in step 6.1, expand it pixel by pixel in all directions until the number of land pixels included exceeds the ship pixels. At this point, the nearshore ship set and the adjacent land pixel set are obtained; (the ship set does not change, only the nearest land pixel set is found) each nearshore ship set corresponds to a land pixel set.
[0168] Step S6.3, based on the radiance of land pixels and ship pixels, determine whether the ship pixel is illuminated by the lights on the land according to the following rules: if the maximum radiance of the land pixel set is greater than the maximum radiance of the ship pixel set, the ship pixel set should be eliminated, otherwise it should be retained.
[0169] In step S6.4, after checking all the nearshore ship sets, the remaining ship pixels are the final ship positions.
[0170] In summary, the vessels in the final vessel position set are the corresponding vessels in the vessel potential position set minus the corresponding vessels in the nearshore vessel set, plus the corresponding vessels in the final nearshore vessel set;
[0171] That is, through the above steps, offshore vessels and accurate offshore vessels are identified.
[0172] It should be noted that the technical solution of the embodiment of the present application has the following technical advantages:
[0173] First, the embodiment of the present application takes into account the influence of the moon phase on the complex sea surface background, and incorporates the periodic fluctuation characteristics of the radiance value of the sea surface background pixel with the moon phase into the selection of the background threshold, which can more effectively distinguish ship pixels from background pixels and has good robustness for long-term series of night sea surface ship extraction.
[0174] Second, the embodiment of the present application uses the regional growing method to extract ships based on the radiance characteristics of the night light remote sensing image itself. Compared with the single threshold segmentation method in the prior art, the spatial similarity between the ship pixels and the pixels around them is taken into account, and there are fewer missed detections and false detections in complex backgrounds and large sea areas. In addition, the present invention does not require manual annotation of the ship data set, and has a high degree of automation. Compared with the deep learning extraction method, it saves time and effort, is fast and efficient;
[0175] Third, for ships in the sea area exposed to strong light near the shore, the embodiment of the present application compares the radiant brightness of the ship with the brightness of the nearshore light and then eliminates it. Compared with the prior art of directly eliminating nearshore ships, this is more in line with the actual situation and effectively improves the extraction accuracy.
[0176] Second, see Figure 3 As shown, an embodiment of the present application provides a device for identifying a vessel position at night, the device comprising:
[0177] A first preprocessing module, which is used to obtain a plurality of preprocessed night light remote sensing images and a background threshold of the sea area to be identified within the time period to be identified based on a plurality of brightness and cloud monitoring data of the sea area to be identified within the time period to be identified;
[0178] A background elimination module is used to identify the determined background pixels and the pixels to be determined in each of the pre-processed night light remote sensing images based on the background threshold of the sea area to be identified within the time period to be identified, and eliminate the determined background pixels to obtain the corresponding night light remote sensing images after the determined background is eliminated;
[0179] A first-level ship determination module, which is used to screen the determined background-removed night-light remote sensing image based on the brightness value of the pixel to be determined in the determined background-removed night-light remote sensing image to obtain a first-level ship pixel set;
[0180] A second-level ship determination module is used to use pixels in the first-level ship pixel set as seed points, expand outward to surrounding pixels, and screen and obtain a second-level ship pixel set based on whether it is similar to the determined background pixels, and record it as a ship potential position set;
[0181] The final ship determination module is used to obtain a final ship position set based on the potential ship position set and the land light influence area.
[0182] The embodiment of the present application performs multi-level recognition analysis based on the monitoring data of the sea area to be identified, removes the background of the image, and then identifies the ship in the image, thereby efficiently realizing the position of the ship at night and meeting the actual work needs.
[0183] Furthermore, the first preprocessing module is also used to obtain a plurality of brightness and cloud monitoring data of the sea area to be identified within the time period to be identified, and process based on preset rules to obtain a plurality of corresponding preprocessed night light remote sensing images;
[0184] The first preprocessing module is also used to obtain the background threshold of the sea area to be identified within the time period to be identified based on the multiple preprocessed night light radiance brightness images of the sea area to be identified within the time period to be identified.
[0185] Furthermore, the first preprocessing module is also used to obtain multiple night light radiance data layers and multiple cloud mask identification data layers of the sea area to be identified within the time period to be identified, and obtain corresponding multiple night light radiance images and multiple cloud mask identification images;
[0186] The first preprocessing module is also used to process the corresponding night light radiance brightness image based on each of the cloud mask identification images according to a preset first screening rule to obtain a plurality of preprocessed night light remote sensing images.
[0187] Furthermore, the first preprocessing module is further used to crop each of the preprocessed night light radiance brightness images based on the stable sea surface background area set in the sea area to be identified, so as to obtain a plurality of first night light radiance brightness images of the sea area to be identified within the time period to be identified;
[0188] The first preprocessing module is also used to remove pixels with abnormal radiance values in each of the first luminous radiance images, calculate the brightness mean and brightness standard deviation corresponding to each of the first luminous radiance images, and obtain the upper limit radiance value of the background area of each of the first luminous radiance images;
[0189] The first preprocessing module is also used to construct a sequence of upper limit radiance values of the background area of the to-be-identified sea area within the to-be-identified time period based on the upper limit radiance values of each background area, decompose to obtain seasonal terms, trend terms and residual terms, and combine with the set bias term to obtain the background threshold of the to-be-identified sea area within the to-be-identified time period.
[0190] Furthermore, the background elimination module is also used to merge adjacent pixels to be determined into the same pixel connected set for each of the night light remote sensing images after background elimination.
[0191] Furthermore, the background elimination module is further used to eliminate the determined background pixels in each of the pre-processed night light remote sensing images of the sea area to be identified within the time period to be identified based on the background threshold of the sea area to be identified within the time period to be identified, so as to obtain each of the corresponding determined background eliminated night light remote sensing images;
[0192] The background elimination module is also used to create a connected domain set of adjacent pixels to be determined in each of the pixels to be determined in the night light remote sensing image after background elimination by constructing and finding a set tree.
[0193] Furthermore, the first-level ship determination module is further used to arrange the pixels to be determined as the potential positions of the ship in ascending order according to pixel values, select the pixels to be determined in sequence, and assume that they are ship pixels as seed points.
[0194] The first-level ship determination module is also used to use a breadth-first search algorithm to traverse the surrounding pixels of each seed point, take the corresponding seed point as the center pixel, calculate the inter-radiance similarity of the pixels in the surrounding preset area, and obtain the corresponding relative similarity index and absolute similarity index;
[0195] The first-level ship determination module is further used to obtain a first-level ship pixel set based on the relative similarity index and the absolute similarity index in combination with the corresponding relative similarity index judgment threshold and the absolute similarity index judgment threshold.
[0196] Furthermore, the second-level ship determination module is further used to construct a neighboring pixel set based on the expansion of each pixel in the first-level ship pixel set, and if the brightness of the corresponding pixel in the neighboring pixel set meets the preset similarity condition with the brightness of the determined background pixel, then the pixel is included in the determined background pixel set corresponding to the determined background pixel, otherwise, the pixel is included in the preset high-value pixel set;
[0197] The second-level ship determination module is also used to search for the corresponding neighbor pixel based on each pixel in the high-value pixel set, and if the neighbor pixel is a determined background pixel, the neighbor pixel is included in the determined background pixel set; if the neighbor pixel has not been traversed, it is determined whether the neighbor pixel is similar to each of the determined background pixels, and if so, it is included in the determined background pixel set, otherwise, it is included in the high-value pixel set;
[0198] The second-level ship determination module is also used for identifying, for each pixel of the first-level ship pixel set, that the corresponding neighbor pixel is marked as a first ship pixel, searching the pixel set to which the neighbor pixel belongs, and if the neighbor pixel belongs to the determined background pixel set, not merging the ship pixel set; if the neighbor pixel belongs to the high-value pixel set, merging the first-level ship pixel sets of the corresponding two pixels to obtain a second-level ship pixel set;
[0199] The second-level ship determination module is further used to determine the number of pixels of each of the second-level ship pixel sets based on a set pixel number threshold, and screen to obtain the corresponding ship potential position set.
[0200] Furthermore, the final vessel determination module is also used to convert the vessel pixels in the vessel potential position set into vessel point vectors, and perform projection transformation with the coastline vector to obtain a buffer zone, and screen to obtain a nearshore vessel set in the buffer zone;
[0201] The final ship determination module is also used to construct a label matrix of the ocean and land ranges to which each pixel in the nearshore ship set belongs, and expand each pixel in the nearshore ship set pixel by pixel until the number of land pixels included exceeds the ship pixels, thereby obtaining the corresponding first-level nearshore ship set and the adjacent land pixel set;
[0202] The final vessel determination module is further used to remove pixels in the first-level nearshore vessel set that are affected by land lights based on the first-level nearshore vessel set and the adjacent land pixel set, so as to obtain a second-level nearshore vessel set;
[0203] The final ship determination module is further configured to remove the ship pixel set if the maximum radiance of the pixels in the adjacent land pixel set is greater than the maximum radiance of the pixels in the second level nearshore ship set, and otherwise retain the set to obtain a final nearshore ship set;
[0204] The final vessel determination module is further configured to obtain a final vessel position set based on the vessel potential position set, the nearshore vessel set and the final nearshore vessel set.
[0205] It should be noted that the technical problems, technical means and technical effects corresponding to the method for identifying the position of a ship at night provided in the embodiment of the present application are similar to those of the device for identifying the position of a ship at night in terms of principle.
[0206] In the description of the present application, it should be noted that the terms "upper", "lower", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. Unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0207] It should be noted that, in this application, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0208] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for identifying the position of a ship at night, characterized in that: The method comprises the following steps: Acquire multiple brightness and cloud monitoring data of the sea area to be identified within the time period to be identified, and process them based on preset rules to obtain corresponding multiple pre-processed night light remote sensing images; Based on the plurality of pre-processed night light radiance images of the sea area to be identified within the time period to be identified, obtaining a background threshold of the sea area to be identified within the time period to be identified; Based on the background threshold of the sea area to be identified within the time period to be identified, identifying the determined background pixels and the pixels to be determined in each of the pre-processed night light remote sensing images, and eliminating the determined background pixels to obtain the corresponding night light remote sensing images after the determined background is eliminated; Based on the brightness value of the pixel to be determined in the determined background-removed night-light remote sensing image, the determined background-removed night-light remote sensing image is screened to obtain a first-level ship pixel set; Taking the pixels in the first-level ship pixel set as seed points, expanding outward to the surrounding pixels, and screening to obtain the second-level ship pixel set according to whether they are similar to the determined background pixels, recorded as the ship potential position set; Based on the potential ship position set and combined with the land light influence area, a final ship position set is obtained; The step of obtaining the background threshold of the sea area to be identified within the time period to be identified based on the plurality of pre-processed night light radiance images of the sea area to be identified within the time period to be identified comprises the following steps: Based on the stable sea surface background area set in the sea area to be identified, each of the pre-processed night light radiance brightness images is cropped to obtain a plurality of first night light radiance brightness images of the sea area to be identified within the time period to be identified; Eliminate pixels with abnormal radiance values in each of the first luminous radiance images, calculate the brightness mean and brightness standard deviation corresponding to each of the first luminous radiance images, and obtain the upper limit radiance value of the background area of each of the first luminous radiance images; Based on the upper radiance value of each background area, a sequence of upper radiance values of the background area of the to-be-identified sea area within the to-be-identified time period is constructed, and the seasonal term, the trend term and the residual term are decomposed to obtain the background threshold of the to-be-identified sea area within the to-be-identified time period in combination with the set bias term; The method is configured with a seasonal-trend model and a calculation formula for the background threshold: Y(t)=S(t)+T(t)+R(t); B(t)=S(t)+T(t)+b; Among them, Y(t) represents the upper limit radiance at time t, S(t), T(t), and R(t) are the periodic term, trend term, and residual term at time t, respectively. The periodic term reflects the pattern of night light repeating with the lunar phase cycle, the trend term reflects the trend of the time series mean over time, and the residual term represents the independent changes that cannot be explained. Since the lunar phase cycle is about 30 days, the period of the decomposition model is set to 30; B(t) represents the background threshold at time t, S(t) and T(t) are the periodic term and trend term obtained from the seasonal-trend decomposition model, and b is the bias term, which is set to 1.
2. The method for identifying the position of a vessel at night as claimed in claim 1, characterized in that: The method of obtaining a plurality of brightness and cloud monitoring data of the sea area to be identified within the time period to be identified, and processing based on preset rules to obtain a plurality of corresponding pre-processed night light remote sensing images, comprises the following steps: Acquire multiple night light radiance data layers and multiple cloud mask identification data layers of the sea area to be identified within the time period to be identified, and obtain corresponding multiple night light radiance images and multiple cloud mask identification images; Based on each of the cloud mask identification images, the corresponding night light radiance brightness image is processed according to a preset first screening rule to obtain a plurality of pre-processed night light remote sensing images.
3. The method for identifying the position of a vessel at night as claimed in claim 1, characterized in that: After obtaining the corresponding night light remote sensing images after background removal, the method further comprises the following steps: For each of the determined night light remote sensing images after background removal, adjacent pixels to be determined are merged into the same pixel connected set.
4. The method for identifying the position of a vessel at night as claimed in claim 1, characterized in that: The method of identifying the determined background pixels and the pixels to be determined in each of the pre-processed night light remote sensing images based on the background threshold of the sea area to be identified within the time period to be identified, and removing the determined background pixels to obtain the corresponding night light remote sensing images after the determined background is removed comprises the following steps: Based on the background threshold of the sea area to be identified within the time period to be identified, the determined background pixels in each of the pre-processed night light remote sensing images of the sea area to be identified within the time period to be identified are eliminated to obtain the corresponding night light remote sensing images after the determined background is eliminated; For each of the pixels to be determined in the night light remote sensing image after background removal, a connected domain set of adjacent pixels to be determined is created by constructing and finding a set tree.
5. The method for identifying the position of a vessel at night as claimed in claim 1, characterized in that: The method of screening the determined background-removed night-light remote sensing image based on the brightness value of the pixel to be determined in the determined background-removed night-light remote sensing image to obtain a first-level ship pixel set includes the following steps: Arrange the pixels to be determined as the potential positions of the ship in ascending order according to pixel values, select the pixels to be determined in sequence, and assume that they are pixels of the ship as seed points; The surrounding pixels of each seed point are traversed by using a breadth-first search algorithm, and the radiance similarity of the pixels in the surrounding preset area is calculated with the corresponding seed point as the center pixel, so as to obtain the corresponding relative similarity index and absolute similarity index; Based on the relative similarity index and the absolute similarity index, in combination with the corresponding relative similarity index judgment threshold and the absolute similarity index judgment threshold, a first-level ship pixel set is obtained.
6. The method for identifying the position of a vessel at night as claimed in claim 1, characterized in that: The method uses the pixels in the first-level ship pixel set as seed points, expands to surrounding pixels, and screens to obtain a second-level ship pixel set based on whether the pixels are similar to the determined background pixels, which is recorded as a ship potential position set, including the following steps: Based on the expansion of each pixel in the first-level ship pixel set, a neighboring pixel set is constructed; if the brightness of the corresponding pixel in the neighboring pixel set meets a preset similarity condition with the brightness of the determined background pixel, the pixel is included in the determined background pixel set corresponding to the determined background pixel; otherwise, the pixel is included in a preset high-value pixel set; Based on each pixel in the high-value pixel set, searching for its corresponding neighbor pixel, if the neighbor pixel is a determined background pixel, then classifying the neighbor pixel into the determined background pixel set, if the neighbor pixel has not been traversed, then judging whether the neighbor pixel is similar to each of the determined background pixels, if similar, then classifying the neighbor pixel into the determined background pixel set, otherwise, then classifying the neighbor pixel into the high-value pixel set; For each pixel of the first-level ship pixel set, it is identified that the corresponding neighbor pixel is marked as a first ship pixel, and then the pixel set to which the neighbor pixel belongs is searched. If the neighbor pixel belongs to the determined background pixel set, the ship pixel set is not merged. If the neighbor pixel belongs to the high-value pixel set, the first-level ship pixel sets of the corresponding two pixels are merged to obtain a second-level ship pixel set. Based on the set pixel number threshold, the number of pixels of each of the second-level ship pixel sets is determined, and the corresponding ship potential position set is screened and obtained.
7. The method for identifying the position of a vessel at night as claimed in claim 1, characterized in that: The method of obtaining a final set of ship positions based on the set of potential ship positions and combining the land light influence area comprises the following steps: Converting the vessel pixels in the vessel potential position set into vessel point vectors, performing projection transformation with the coastline vector to obtain a buffer zone, and screening to obtain a nearshore vessel set in the buffer zone; Constructing a label matrix of the ocean and land ranges to which each pixel in the nearshore ship set belongs, expanding each pixel in the nearshore ship set pixel by pixel until the number of land pixels included exceeds the ship pixels, thereby obtaining the corresponding first-level nearshore ship set and the adjacent land pixel set; Based on the first-level nearshore vessel set and the adjacent land pixel set, pixels in the first-level nearshore vessel set that are affected by land lights are eliminated to obtain a second-level nearshore vessel set; If the maximum radiance of the pixels in the adjacent land pixel set is greater than the maximum radiance of the pixels in the second level nearshore vessel set, the vessel pixel set should be eliminated, otherwise it should be retained to obtain the final nearshore vessel set; A final vessel position set is obtained based on the vessel potential position set, the nearshore vessel set and the final nearshore vessel set.
8. A nighttime vessel position recognition device, characterized in that: The device comprises: The first preprocessing module is used to obtain a plurality of brightness and cloud monitoring data of the sea area to be identified within the time period to be identified, and process them based on preset rules to obtain a plurality of corresponding preprocessed night light remote sensing images; The first preprocessing module is further used to obtain the background threshold of the sea area to be identified within the time period to be identified based on the multiple preprocessed night light radiance images of the sea area to be identified within the time period to be identified; A background elimination module is used to identify the determined background pixels and the pixels to be determined in each of the pre-processed night light remote sensing images based on the background threshold of the sea area to be identified within the time period to be identified, and eliminate the determined background pixels to obtain the corresponding night light remote sensing images after the determined background is eliminated; A first-level ship determination module, which is used to screen the determined background-removed night-light remote sensing image based on the brightness value of the pixel to be determined in the determined background-removed night-light remote sensing image to obtain a first-level ship pixel set; A second-level ship determination module is used to use pixels in the first-level ship pixel set as seed points, expand outward to surrounding pixels, and screen and obtain a second-level ship pixel set based on whether it is similar to the determined background pixels, and record it as a ship potential position set; A final ship determination module, which is used to obtain a final ship position set based on the potential ship position set and the land light influence area; The first preprocessing module is further used to crop each of the preprocessed night light radiance images based on the stable sea surface background area set in the sea area to be identified, so as to obtain a plurality of first night light radiance images of the sea area to be identified within the time period to be identified; The first preprocessing module is also used to remove pixels with abnormal radiance values in each of the first luminous radiance images, calculate the brightness mean and brightness standard deviation corresponding to each of the first luminous radiance images, and obtain the upper limit radiance value of the background area of each of the first luminous radiance images; The first preprocessing module is further used to construct a background area upper limit radiance value sequence of the sea area to be identified within the time period to be identified based on the upper limit radiance value of each background area, decompose to obtain a seasonal term, a trend term and a residual term, and combine with a set bias term to obtain the background threshold of the sea area to be identified within the time period to be identified; The device is equipped with a seasonal-trend model and a calculation formula for the background threshold: Y(t)=S(t)+T(t)+R(t); B(t)=S(t)+T(t)+b; Among them, Y(t) represents the upper limit radiance at time t, S(t), T(t), and R(t) are the periodic term, trend term, and residual term at time t, respectively. The periodic term reflects the pattern of night light repeating with the lunar phase cycle, the trend term reflects the trend of the time series mean over time, and the residual term represents the independent changes that cannot be explained. Since the lunar phase cycle is about 30 days, the period of the decomposition model is set to 30; B(t) represents the background threshold at time t, S(t) and T(t) are the periodic term and trend term obtained from the seasonal-trend decomposition model, and b is the bias term, which is set to 1.
