SAR ship multi-target tracking method based on improved kernel correlation filter

By improving the kernel correlation filtering algorithm and dual-parameter Gaussian CFAR detection, combined with the Kalman tracker and SIFT feature matching, the problem of poor performance of the multi-target tracking algorithm in SAR images in small samples and defocused scenes is solved, and a stable ship is achieved Target tracking.

CN114037733BActive Publication Date: 2024-10-29XIDIAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111125425.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-24
Publication Date
2024-10-29
Estimated Expiration
2041-09-24

AI Technical Summary

Technical Problem

Existing multi-target tracking algorithms have poor performance in SAR image scenes. Especially in small sample cases, neural network training is difficult to converge and the recognition effect is poor. In addition, there are many clutters and serious land area interference, resulting in false alarms, and ship swaying causes image scattering. focus, affecting tracking performance and persistence.

Method used

An improved kernel correlation filtering algorithm (KCF) is used combined with dual-parameter Gaussian CFAR detection to establish a ship target template tensor. The influence of clutter is removed through sea and land segmentation preprocessing and CFAR detection. Kalman tracker and SIFT feature matching are used to solve defocusing and tracking. Interruption problem.

Benefits of technology

It achieves good detection performance in the case of small samples, effectively removes false alarms, improves the tracking stability and persistence of ship targets, and solves the problems of frame offset and tracking interruption caused by defocus.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114037733B_ABST
    Figure CN114037733B_ABST
Patent Text Reader

Abstract

The invention provides a SAR ship multi-target tracking method based on improved kernel correlation filtering, which utilizes the advantage of fast operation speed in the KCF algorithm and combines dual-parameter Gaussian CFAR detection, and can achieve good detection performance in the case of small samples. In addition, in the process of continuous frame association of ship targets, the kalman filter is combined with SIFT feature matching, and the Gaussian distribution is used to improve the limitation of the tracker, which can solve the problem of ship target frame offset and tracking interruption caused by different scales of defocusing in continuous SAR image data sets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image target tracking, and in particular relates to a SAR ship multi-target tracking method based on improved kernel correlation filtering. Background Art

[0002] In the field of target recognition and tracking, optical images and synthetic aperture radar (SAR) images play an important role. Optical images are rich in image details such as color and shape information, while SAR images are less affected by weather and have the characteristics of all-day and all-weather, which can greatly improve the stability and application ability of ship target tracking. Target tracking algorithm is a hot topic in the field of computer vision. This technology has wide applications in civil and other fields. Target tracking algorithms are divided into single target tracking and multi-target tracking. Compared with single target tracking algorithms, multi-target tracking algorithms focus on the association problem of targets in previous and next frames, and the algorithm performance depends on the results of the detection algorithm. In the image sequence, there will be situations such as position changes, new targets appearing, and old targets disappearing. In this complex transformation process, achieving stable tracking of all targets of interest in the image is a problem that the multi-target tracking algorithm needs to solve.

[0003] The currently proposed multi-target tracking algorithms are mostly for optical image scenes, and most of the algorithms use neural networks such as Faster R-CNN for target detection. SAR water scenes have the following characteristics compared to optical water scenes: first, SAR images have fewer prior samples and are grayscale images, lacking features such as color, so the network training method has poor results; second, SAR images have more clutter, and the land area is seriously disturbed, which easily leads to false alarm targets; finally, due to the swaying of the ship itself and other problems, the image will be defocused. A small defocus may cause the tracking frame to shift and thus affect the tracking performance, while a large defocus may cause the overall tracking to be interrupted, posing a great challenge to the sustainability of the association algorithm. Summary of the invention

[0004] In order to solve the above problems existing in the prior art, the present invention provides a SAR ship multi-target tracking method based on improved kernel correlation filtering. The technical problem to be solved by the present invention is achieved through the following technical solutions:

[0005] The present invention provides a SAR ship multi-target tracking method based on improved kernel correlation filtering, comprising:

[0006] Step 1: Obtain the continuous SAR images to be tracked and prior samples;

[0007] Among them, the prior samples are SAR images of ships;

[0008] Step 2: Obtain an average sample image based on the prior samples;

[0009] Step 3: Establish the ship target template tensor based on the average sample image;

[0010] Step 4: Use the average sample image as the sample label in the preset kernel correlation filter, use the ship target template tensor as the input of the preset kernel correlation filter, and obtain the ship template filter of the ship target template tensor;

[0011] Step 5: performing land-sea segmentation preprocessing on the continuous SAR image to be tracked, so as to remove the influence of clutter and land area in the continuous SAR image to be tracked, and obtain a preprocessed SAR image;

[0012] Step 6: Perform CFAR detection on the preprocessed SAR images to obtain a rough detection result including false alarms for each SAR image;

[0013] The rough detection result includes a ship target, and the detection position of the ship target is marked with a detection frame;

[0014] Step 7: perform correlation operations on the coarse detection results and the ship template filter respectively, and take the maximum value of the correlation operation results;

[0015] Step 8: In the rough detection results of each SAR image, remove the ship targets whose maximum value of the correlation operation is less than the screening threshold, and obtain the ship target screening result of each SAR image;

[0016] Step 9: Establish a Kalman tracker for each ship target in the ship target screening result of the first frame of SAR image;

[0017] Step 10: Use the Kalman tracker corresponding to each ship target in the first frame of SAR image to predict the predicted position of the same ship target in subsequent frames of SAR image.

[0018] Optionally, step 2 includes:

[0019] Each priori sample is center-shifted so that the centers of each priori sample overlap to achieve shift registration, and each priori sample after shift registration is obtained;

[0020] Perform image summation operation on each prior sample after shift registration to obtain the summed prior sample;

[0021] The average sample calculation formula is used to calculate the summed priori samples to obtain an average sample image.

[0022] The average sample calculation formula is expressed as:

[0023]

[0024] Among them, x m is the average sample image, N represents the total number of prior samples, x i represents the prior sample after each shift registration of the i-th.

[0025] Optionally, step 3 includes:

[0026] Obtain the number of pixels corresponding to each pixel value in the average sample image;

[0027] According to the principle of pixel values ​​from large to small, the number of pixel points corresponding to each pixel value is selected and summed, and when the ratio of the summation result to the sum of the number of pixel points corresponding to all pixel values ​​is a first ratio, the pixel points corresponding to each pixel value selected at the first ratio are retained, and the pixel values ​​of other pixel points are set to zero, so as to obtain a first image;

[0028] According to the principle of pixel values ​​from large to small, the number of pixel points corresponding to each pixel value is selected and summed, and when the ratio of the summation result to the sum of the number of pixel points corresponding to all pixel values ​​is a second ratio, the pixel points corresponding to each pixel value selected at the second ratio are retained, and the pixel values ​​of other pixel points are set to zero, so as to obtain a second image;

[0029] The first image and the second image are combined using a preset formula to obtain a three-dimensional tensor;

[0030] The three-dimensional tensor is used as the ship target template tensor.

[0031] Among them, the relevant parameters of the ship template filter are expressed as:

[0032]

[0033]

[0034] Among them, x m is the average sample image, is the conjugate of the Fourier transform of the vectors that make up the circulant matrix X, By x m The Fourier transform gives the vector, the ^ symbol indicates the vector after the Fourier transform, and ⊙ indicates the dot product. is the kernel function, and λ represents the regularization parameter in the ridge regression formula.

[0035] Optionally, step 7 includes:

[0036] The coarse detection results are respectively correlated with the ship template filter using the correlation operation formula, and the correlation operation maximum value is taken for the correlation operation result;

[0037] The related operation formula is expressed as:

[0038]

[0039] in, Represents the template tensor and the ship target to be screened.

[0040] Optionally, the screening threshold is expressed as:

[0041]

[0042] Among them, N is the prior sample, z i Represents the ship target in the coarse detection result of each SAR image.

[0043] Optionally, step 10 includes:

[0044] Use the Kalman tracker corresponding to each ship target in the first SAR image to predict the predicted position of the same ship target in the second SAR image;

[0045] Wherein, the predicted position is marked with a prediction box;

[0046] For each ship target in the second frame SAR image, the prediction box of the ship target is matched with the detection box of each ship target by SIFT features. If the match is successful, the predicted position marked by the prediction box is determined as the real position of the ship target; if the match is unsuccessful, the number of consecutive unsuccessful matches of the Kalman tracker corresponding to the ship target is determined, and the Kalman tracker corresponding to the ship target is deleted according to the number; and the pending Kalman tracker of the ship target is established according to the position of the ship target marked by the detection box of the second frame SAR image. If the number threshold is exceeded, the pending Kalman tracker is determined as the Kalman tracker of the ship target;

[0047] For each ship target in the Nth frame SAR image, the prediction box of the ship target is matched with the detection box of each ship target in the Nth frame by SIFT features. If the match is successful, the predicted position marked by the prediction box is determined as the real position of the ship target; if the match is unsuccessful, the number of consecutive unsuccessful matches of the Kalman tracker corresponding to the ship target is determined, and the Kalman tracker corresponding to the ship target is deleted; and the pending Kalman tracker of the ship target is established according to the position of the ship target marked by the detection box of the SAR image of the Nth frame. If the number threshold is exceeded, the pending Kalman tracker is determined as the Kalman tracker of the ship target;

[0048] The predicted position of each ship target in the N+1th frame SAR image is predicted using the Kalman tracker of each ship target in the Nth frame SAR image.

[0049] 1. The SAR ship multi-target tracking method based on improved kernel correlation filtering of the present invention adopts the improved kernel correlation filtering algorithm (KCF), takes advantage of the fast operation speed of the KCF algorithm, and effectively solves the problem that the neural network training is difficult to converge and the recognition effect is poor under small sample conditions. In the case of small samples, combined with dual-parameter Gaussian CFAR detection, good detection performance can be achieved.

[0050] 2. The SAR ship multi-target tracking method based on improved kernel correlation filtering of the present invention, in the target association process, combines Kalman filtering with SIFT feature matching and adopts Gaussian distribution to improve the tracker time limit, which can solve the ship target frame offset problem and tracking interruption problem caused by defocusing conditions of different scales in continuous SAR image data sets.

[0051] The invention provides a SAR ship multi-target tracking method based on improved kernel correlation filtering, which utilizes the advantage of fast operation speed in the KCF algorithm and combines dual-parameter Gaussian CFAR detection, and can achieve good detection performance in the case of small samples. In addition, in the process of continuous frame association of ship targets, the kalman filter is combined with SIFT feature matching, and the Gaussian distribution is used to improve the limitation of the tracker, which can solve the problem of ship target frame offset and tracking interruption caused by different scales of defocusing in continuous SAR image data sets.

[0052] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following specifically cites a preferred embodiment and describes it in detail with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 It is a flow chart of a SAR ship multi-target tracking method based on improved kernel correlation filtering provided by an embodiment of the present invention;

[0054] Figure 2 is a distribution diagram of average target image pixel values ​​provided by an embodiment of the present invention;

[0055] Figure 3 is a flow chart of generating a target template tensor provided by an embodiment of the present invention;

[0056] Figure 4 is a flow chart of land-sea segmentation processing provided by an embodiment of the present invention;

[0057] Figure 5 is a schematic diagram of a CFAR detection sliding window provided by an embodiment of the present invention;

[0058] Figure 6 is a schematic diagram of SIFT feature matching provided by an embodiment of the present invention;

[0059] Figure 7 Schematic diagrams of three common situations in the matching process provided by the embodiments of the present invention;

[0060] Figure 8 is a schematic diagram of setting the time limit of a tracker provided by an embodiment of the present invention;

[0061] Fig. 9 4 is a graph showing a comparison result of algorithms provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0062] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, the following is a detailed description of a SAR ship multi-target tracking method based on improved kernel correlation filtering proposed in accordance with the present invention, in combination with the accompanying drawings and specific implementation methods.

[0063] The above and other technical contents, features and effects of the present invention are clearly presented in the following detailed description of the specific implementation modes in conjunction with the accompanying drawings. Through the description of the specific implementation modes, the technical means and effects adopted by the present invention to achieve the predetermined purpose can be more deeply and specifically understood. However, the attached drawings are only for reference and explanation purposes and are not used to limit the technical solutions of the present invention.

[0064] Embodiment 1

[0065] See also Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for detecting rotating ships in SAR images based on a directed Gaussian function provided by an embodiment of the present invention. Figure 1 As shown, the SAR ship multi-target tracking method based on improved kernel correlation filtering in this embodiment includes:

[0066] Step 1: Obtain the continuous SAR images to be tracked and prior samples;

[0067] Among them, the prior samples are SAR images of ships;

[0068] Step 2: Obtain an average sample image based on the prior samples;

[0069] In a specific implementation, each priori sample is center-shifted so that the centers of each priori sample overlap to achieve shift registration, and each priori sample after shift registration is obtained;

[0070] Perform image summation operation on each prior sample after shift registration to obtain the summed prior sample;

[0071] The average sample calculation formula is used to calculate the summed prior samples to obtain the average sample image.

[0072] The average sample calculation formula is expressed as:

[0073]

[0074] Among them, x m is the average sample image, N represents the total number of prior samples, x i represents the prior sample after each shift registration of the i-th.

[0075] It is worth noting that: for the prior sample, the prior sample is the ship target sample x i , and then perform image summation after center shift registration. The pixel value at the center is much higher than that at other positions. In order to reduce the imbalance of pixel value distribution, the log function is used to compress the maximum value, that is, the average sample calculation formula, and the pixel value distribution of the template image is analyzed. Figure 2 .

[0076] Step 3: Establish the ship target template tensor based on the average sample image;

[0077] In a specific implementation, first, the number of pixel points corresponding to each pixel value in the average sample image is obtained; based on the principle of pixel values ​​from large to small, the number of pixel points corresponding to each pixel value is selected and summed, and when the ratio of the sum result to the sum of the number of pixel points corresponding to all pixel values ​​is a first ratio, the pixel points corresponding to each pixel value selected at the first ratio are retained, and the pixel values ​​of other pixel points are set to zero to obtain a first image; based on the principle of pixel values ​​from large to small, the number of pixel points corresponding to each pixel value is selected and summed, and when the ratio of the sum result to the sum of the number of pixel points corresponding to all pixel values ​​is a second ratio, the pixel points corresponding to each pixel value selected at the second ratio are retained, and the pixel values ​​of other pixel points are set to zero to obtain a second image; the first image and the second image are combined using a preset formula to obtain a three-dimensional tensor; the three-dimensional tensor is used as a ship target template tensor.

[0078] In order to better match different ship targets, the first 80% and 95% of the images with the largest pixel values ​​are selected according to the pixel value distribution of the template image, and the obtained images are combined to obtain a template tensor, which is used as the input x of the template filter, as shown in Figure 3 That is, the first ratio is 80%, and the second ratio is 95%. In practical applications, the ratios may be changed so that the images obtained according to the two ratios include the shapes of most ship targets.

[0079] Assume that the image obtained according to the first ratio is I1, and the image obtained according to the second ratio is I2, and the size of the two images is n×m. Then the template tensor x is formed by stacking the above two images in the third dimension, which is expressed as follows:

[0080] x[:,:,1]=I1

[0081] x[:,:,2]=I2

[0082] That is, the constructed template tensor is n×m×2, and the preset formula is the formula for stacking the third dimension mentioned above.

[0083] Step 4: Use the average sample image as the sample label in the preset kernel correlation filter, use the ship target template tensor as the input of the preset kernel correlation filter, and obtain the ship template filter of the ship target template tensor;

[0084] Specifically, the ridge regression formula in the derivation process of the original kernel correlation filter algorithm is:

[0085]

[0086] The Gaussian function is used as the label of the sample x. According to the definition of ridge regression, the following explanation can be given: Under the premise of constraining the parameter w, the target image is fitted to y. Therefore, in order to eliminate the false alarm targets, the average sample image x in the above formula (2) is m As label y fit, that is:

[0087] The improved ridge regression formula is:

[0088]

[0089] Similar to the derivation process of kernel correlation filter, the ship target template tensor is used as the input of the preset kernel correlation filter, and the relevant parameters of the ship template filter are obtained as follows:

[0090]

[0091] as well as:

[0092]

[0093] in is the conjugate of the Fourier transform of the vectors that make up the circulant matrix X, By x m The Fourier transform gives the vector, the ^ symbol indicates the vector after the Fourier transform, and ⊙ indicates the dot product. is the kernel function.

[0094] Step 5: Perform land-sea segmentation preprocessing on the continuous SAR images to be tracked, so as to remove the influence of clutter and land areas in the continuous SAR images to be tracked, and obtain the preprocessed SAR images;

[0095] Step 6: Perform land-sea segmentation preprocessing on the continuous SAR images to be tracked to remove clutter and land area influence;

[0096] Specifically, under the complex sea surface background, the land area will cause false alarms in the CFAR detection results. For the SAR ship multi-target tracking algorithm, the false alarms caused by the land part will have a great impact on the algorithm performance, such as the number of tracking false detections, the number of ID switches, etc. The present invention adopts a fast land rejection algorithm to reduce the impact of the sea-land junction area on the tracking effect. The flow chart of the land rejection algorithm of the present invention is as follows: Figure 4 shown.

[0097] First, the SAR image is preprocessed, which includes filtering, maximum between-class variance algorithm (OTSU) and binarization. After filtering, the maximum between-class variance algorithm (Otsu) is used for processing. This method obtains a binary image by solving the optimal threshold. Assuming that there is a threshold T∈[0,255], the total number of image pixels N total The number of pixels whose pixel values ​​are greater than the threshold T is N h , the number of pixels less than the threshold T is N l , then the probability of occurrence of pixels less than the threshold T and the probability of occurrence of pixels greater than the threshold T are:

[0098]

[0099]

[0100] The grayscale mean of pixels less than the threshold T, the grayscale mean of pixels greater than the threshold T, and the grayscale mean of all pixels in the entire image are:

[0101]

[0102]

[0103]

[0104] Then the inter-class variance between the two classes greater than the threshold T and less than the threshold T is:

[0105] σ 2 =P l ×(μ total -μ l ) 2 +P h ×(μtotal -μ h ) 2 (11)

[0106] Find the threshold T value when the between-class variance reaches the maximum value, that is:

[0107]

[0108] After obtaining the optimal threshold, the image is binarized, namely:

[0109]

[0110] Among them I bw (j) represents the pixel value in the binary image, and I(j) represents the pixel value in the original image.

[0111] There will still be holes in the SAR image after filtering and binarization operations, and due to the characteristics of SAR imaging, the ship target will be split, which will affect the subsequent ship detection, thereby reducing the algorithm performance of target association during target tracking. Therefore, the expansion and corrosion algorithm is used, and its kernel size needs to be selected according to the SAR image resolution and the size range of the ship target in the image.

[0112] In order to eliminate false alarms caused by land areas, the above processing results are analyzed for connected domains and then eliminated according to the size of land and ships to obtain the preprocessed SAR image.

[0113] Step 6: Perform CFAR detection on the preprocessed SAR images to obtain a rough detection result including false alarms for each SAR image;

[0114] According to the preprocessing results after land removal, a fast CFAR detection method based on Gaussian distribution is used to detect ship targets. The sliding window is designed according to the image. Figure 5 shown.

[0115] The constant false alarm rate (CFAR) algorithm is a pixel-level target detection algorithm, which is suitable for use when the contrast between the target and the background is strong. First, the false alarm rate P is given. fa , calculate the variance coefficient:

[0116] α=Φ -1 (1-P fa ) (14)

[0117] where Φ(·) is the normal distribution function, Φ -1 (x) is to find its x quantile. Then the detection threshold K is obtained by the following formula:

[0118] K=α×σ+μ (15)

[0119] When the pixel value intensity is greater than the detection threshold K, it is a target pixel, otherwise it is a background pixel.

[0120] Step 7: perform correlation operations on the coarse detection results and the ship template filter respectively, and take the maximum value of the correlation operation results;

[0121] For each SAR image z in the coarse detection result, the relevant operation is:

[0122]

[0123] in, Represents the template tensor and the ship target to be screened.

[0124] Step 8: In the rough detection results of each SAR image, remove the ship targets whose maximum value of the correlation operation is less than the screening threshold, and obtain the ship target screening result of each SAR image;

[0125] The detection method proposed in the present invention is applied to tracking multiple target ships in a video sequence of the same region, where the target appearance characteristics such as scale and aspect ratio do not change significantly. The following method is used for the screening threshold:

[0126]

[0127] Where N is the prior target used to generate the filter template, and the screening threshold is generated for the ship target with the lower correlation maximum value existing in the prior target. The screening threshold generated by this method can eliminate the false targets while retaining the real targets with the low correlation maximum value when eliminating false alarms.

[0128]

[0129] In the above formula, max(corr) is the maximum correlation value of the target to be detected.

[0130] Step 9: Establish a Kalman tracker for each ship target in the ship target screening result of the first frame of SAR image;

[0131] In a specific implementation, step 9 includes:

[0132] Step a: The present invention uses the Kalman tracker corresponding to each ship target in the first frame of SAR image to predict the predicted position of the same ship target in the second frame of SAR image;

[0133] Among them, the predicted position is marked with a prediction box;

[0134] Step b: for each ship target in the second frame SAR image, the prediction box of the ship target is matched with the detection box of each ship target by SIFT features. If the match is successful, the predicted position marked by the prediction box is determined as the real position of the ship target; if the match is unsuccessful, the number of consecutive unsuccessful matches of the Kalman tracker corresponding to the ship target is determined, and the Kalman tracker corresponding to the ship target is deleted; and the pending Kalman tracker of the ship target is established according to the position of the ship target marked by the detection box of the second frame SAR image. If the number threshold is exceeded, the pending Kalman tracker is determined as the Kalman tracker of the ship target;

[0135] Step c: for each ship target in the Nth frame SAR image, perform SIFT feature matching between the prediction box of the ship target and the detection box of each ship target in the Nth frame. If the matching is successful, the predicted position marked by the prediction box is determined as the real position of the ship target; if the matching is unsuccessful, the number of consecutive unsuccessful matching of the Kalman tracker corresponding to the ship target is determined, and the Kalman tracker corresponding to the ship target is deleted; and the pending Kalman tracker of the ship target is established according to the position of the ship target marked by the detection box of the SAR image of the Nth frame. If the number threshold is exceeded, the pending Kalman tracker is determined as the Kalman tracker of the ship target;

[0136] Step d: Use the Kalman tracker of each ship target in the Nth frame SAR image to predict the predicted position of each ship target in the N+1th frame SAR image.

[0137] It is worth noting that: in view of the characteristics that the motion state of SAR ship targets does not change violently and the ship targets have few intersection states, the present invention uses Kalman motion prediction to associate the targets of the previous and next frames, and uses the five basic formulas of the Kalman prediction equation for prediction:

[0138]

[0139]

[0140]

[0141]

[0142]

[0143] Where A is the state transfer matrix, is the prior state estimate at time k, is the posterior state estimate at time k, P kis the covariance between the true value and the predicted value at time k, is the covariance between the true value and the optimal estimate at time k, K k is the Kalman gain at time k, z k is the system measurement value at time k, H is the state observation matrix, and R is the covariance matrix of the measurement noise.

[0144] Among them, equations (19) and (20) are time update equations, and equations (21), (22), and (23) are measurement update equations. A Kalman tracker is established for the newly appeared target. In the subsequent tracking process, the targets of the previous and next frames are associated through the SIFT feature association algorithm, and the information is returned to the Kalman tracker to update the covariance matrix, so that the Kalman tracker is continuously updated during the tracking process to adapt to the motion changes of the target. At the same time, a target loss time limit is set for the target Kalman tracker to continuously predict its position within a certain number of frames after the target loses tracking. If it is redetected within the time limit, it can continue to be tracked, thereby improving the robustness of tracking.

[0145] In view of the defocusing situation that is easy to appear in SAR data sets, this section uses the scale invariance of SIFT features to associate the targets in the previous and next frames. For the targets that may be matched when the current frame prediction box of the previous frame and the current detection box have complex intersections, SIFT features are extracted respectively, and K-nearest neighbor association is performed on the feature points. The first ten pairs of matching points are matched, such as Figure 6 As shown. Clustering is performed by performing expansion and corrosion operations on the matching points to eliminate clutter matching points (such as Figure 6 The matching point in the upper right corner of (c) and the matching points in the defocused part are used to obtain the matching area, and the objects in the previous and next frames are matched through subsequent operations such as intersection-over-union (IOU) calculation and comparison.

[0146] The IOU calculation is performed on the prediction box and the detection box to obtain three types of intersections: Figure 7As shown in the figure, the first case is that a single prediction box intersects with a single detection box. This is a normal matching case, and matching can be performed according to whether the boxes have intersections. The second case is that a single prediction box intersects with multiple detection boxes. Since the distance between ship targets is relatively large, this case is mostly caused by CFAR detection split false alarms. The SIFT features are extracted from the target image of the previous frame saved by the Kalman tracker, and then SIFT feature matching is performed with the Kalman predicted current frame area image. The matching area is obtained by clustering operation, and the IOU is calculated between the matching area and the conflicting detection box area. The detection box with the largest IOU is the detection area associated with the Kalman tracker. The third type is that multiple prediction boxes intersect with the same detection box. This situation is mostly because the false alarm target in the previous frame was not completely eliminated, resulting in the Kalman tracker prediction result established for the false alarm target conflicting with the Kalman tracker prediction result of the actual target. The SIFT features are extracted from the prediction boxes to be matched and matched with the current detection box area image to obtain the SIFT matching area. Since the SIFT feature matching degree between the false alarm target and the actual target is low, the IOU is calculated and compared between the matching area and the current frame detection area, and the Kalman prediction target with the highest matching degree is associated with the current frame detection target.

[0147] Gaussian distribution is used to set time limits for targets in different regions of the image, such as Figure 8 As shown, where:

[0148]

[0149]

[0150] in, The symbol represents the rounding down operation, th is the Gaussian maximum time limit value set according to the actual situation, and the Gaussian-like function distribution time limit distributed on the entire SAR image generated by the above formula is consistent with the characteristics that the addition or reduction of ship targets in SAR images often appears at the edge of the image.

[0151] The SAR ship multi-target tracking method based on improved kernel correlation filtering in this embodiment adopts an improved kernel correlation filtering algorithm to calculate the template tensor generated by a small sample to obtain a template filter, and eliminates false alarms by performing correlation maximum value screening on the CFAR detection results. During the tracking process, Kalman filtering is combined with SIFT feature matching, and Gaussian distribution is used to improve the tracker time limit, which can solve the ship target frame offset problem and tracking interruption problem caused by defocusing conditions of different scales in continuous SAR image data sets.

[0152] The effect of the SAR image rotation ship detection method based on directed Gaussian function according to the first embodiment of the present invention is verified by experiments below.

[0153] During the simulation experiment of this embodiment, according to the common scene characteristics of the multi-target tracking algorithm, the present invention selected a continuous SAR image of a ship target in the land-water junction area of ​​a certain area of ​​the Yangtze River to make a data set for testing, a total of 57 frames, which contain targets with large speed differences, which may cause tracking interruption and tracking offset defocused targets, split targets due to the characteristics of SAR images, the number of targets in the data set changes frequently, and the presence of land will cause false alarms in target detection. This data set is manually annotated and quotes the data format of the MOT16 data set. There are 1345 target information in 57 frames, and the MOT16 evaluation index is used to compare the algorithm performance.

[0154] The data is subjected to dual-parameter CFAR coarse detection. First, the data set needs to be preprocessed by removing land. In this process, the connected domain is eliminated to obtain an image of the background clutter of the data set, which is used to estimate the constant false alarm rate detection parameters later.

[0155] A sliding window of a specific size is constructed, and the sizes of 80 and 78 are used as the background window and protection window respectively. The variance and mean parameters of the background clutter image are calculated, and Gaussian dual-parameter CFAR detection is used to detect ship targets.

[0156] In order to compare the improvement effect of the proposed method, three groups of experiments were conducted: only using CFAR detection, Kalman filtering and the basic SORT tracking algorithm matched with the Hungarian algorithm; adding the core-related false alarm elimination algorithm on the basis of the basic algorithm; adding the core-related false alarm elimination algorithm and replacing the basic algorithm with the SIFT feature matching algorithm. The indicators of the multi-target tracking algorithm were calculated for the results, and the following were obtained: Fig. 9 The comparison results are shown.

[0157] It can be seen that except for a slight decrease in the IDP index project, the other indicators of the proposed method are significantly improved. It can be concluded that the improved method proposed in the present invention has good adaptability to the characteristics of SAR ship targets.

Claims

1. A SAR ship multi-target tracking method based on improved kernel correlation filtering, characterized in that: include: Step 1: Obtain the continuous SAR images to be tracked and prior samples; Among them, the prior samples are SAR images of ships; Step 2: Obtain an average sample image based on the prior samples; Step 3: Establish the ship target template tensor based on the average sample image; Step 4: Use the average sample image as the sample label in the preset kernel correlation filter, use the ship target template tensor as the input of the preset kernel correlation filter, and obtain the ship template filter of the ship target template tensor; Step 5: performing land-sea segmentation preprocessing on the continuous SAR image to be tracked, so as to remove the influence of clutter and land area in the continuous SAR image to be tracked, and obtain a preprocessed SAR image; Step 6: Perform CFAR detection on the preprocessed SAR images to obtain a rough detection result including false alarms for each SAR image; The rough detection result includes a ship target, and the detection position of the ship target is marked with a detection frame; Step 7: perform correlation operations on the coarse detection results and the ship template filter respectively, and take the maximum value of the correlation operation results; Step 8: In the rough detection results of each SAR image, remove the ship targets whose maximum value of the correlation operation is less than the screening threshold, and obtain the ship target screening result of each SAR image; Step 9: Establish a Kalman tracker for each ship target in the ship target screening result of the first frame of SAR image; Step 10: Use the Kalman tracker corresponding to each ship target in the first frame of SAR image to predict the predicted position of the same ship target in subsequent frames of SAR image.

2. The method according to claim 1, characterized in that: The step 2 comprises: Each priori sample is center-shifted so that the centers of each priori sample overlap to achieve shift registration, and each priori sample after shift registration is obtained; Perform image summation operation on each prior sample after shift registration to obtain the summed prior sample; The average sample calculation formula is used to calculate the summed priori samples to obtain an average sample image.

3. The method according to claim 2, characterized in that The average sample calculation formula is expressed as: Among them, x m is the average sample image, N represents the total number of prior samples, x i represents the prior sample after each shift registration of the i-th.

4. The method according to claim 1, characterized in that: The step 3 comprises: Calculate the number of pixels corresponding to each pixel value in the average sample image; According to the principle of pixel values ​​from large to small, the number of pixel points corresponding to each pixel value is selected and summed, and when the ratio of the summation result to the sum of the number of pixel points corresponding to all pixel values ​​is a first ratio, the pixel points corresponding to each pixel value selected at the first ratio are retained, and the pixel values ​​of other pixel points are set to zero, so as to obtain a first image; According to the principle of pixel values ​​from large to small, the number of pixel points corresponding to each pixel value is selected and summed, and when the ratio of the summation result to the sum of the number of pixel points corresponding to all pixel values ​​is a second ratio, the pixel points corresponding to each pixel value selected at the second ratio are retained, and the pixel values ​​of other pixel points are set to zero, so as to obtain a second image; The first image and the second image are combined using a preset formula to obtain a three-dimensional tensor; The three-dimensional tensor is used as the ship target template tensor.

5. The method according to claim 1, characterized in that The relevant parameters of the ship template filter are expressed as: Among them, x m is the average sample image, is the conjugate of the Fourier transform of the vectors that make up the circulant matrix X, By x m The Fourier transform gives the vector, the ^ symbol indicates the vector after the Fourier transform, and ⊙ indicates the dot product. is the kernel function, and λ represents the regularization parameter in the ridge regression formula.

6. The method according to claim 5, characterized in that The step 7 comprises: The coarse detection results are respectively correlated with the ship template filter using the correlation operation formula, and the correlation operation maximum value is taken for the correlation operation result; The related operation formula is expressed as: in, Represents the template tensor and the ship target to be screened.

7. The method according to claim 6, characterized in that The screening threshold is expressed as: Among them, N is the prior sample, z i Represents the ship target in the coarse detection result of each SAR image.

8. The method according to claim 1, characterized in that The step 10 comprises: Use the Kalman tracker corresponding to each ship target in the first SAR image to predict the predicted position of the same ship target in the second SAR image; Wherein, the predicted position is marked with a prediction box; For each ship target in the second frame SAR image, the prediction box of the ship target is matched with the detection box of each ship target by SIFT features. If the match is successful, the predicted position marked by the prediction box is determined as the real position of the ship target; if the match is unsuccessful, the number of consecutive unsuccessful matches of the Kalman tracker corresponding to the ship target is determined, and the Kalman tracker corresponding to the ship target is deleted according to the number; and the pending Kalman tracker of the ship target is established according to the position of the ship target marked by the detection box of the second frame SAR image. If the number threshold is exceeded, the pending Kalman tracker is determined as the Kalman tracker of the ship target; For each ship target in the Nth frame SAR image, the prediction box of the ship target is matched with the detection box of each ship target in the Nth frame by SIFT features. If the match is successful, the predicted position marked by the prediction box is determined as the real position of the ship target; if the match is unsuccessful, the number of consecutive unsuccessful matches of the Kalman tracker corresponding to the ship target is determined, and the Kalman tracker corresponding to the ship target is deleted; and the pending Kalman tracker of the ship target is established according to the position of the ship target marked by the detection box of the SAR image of the Nth frame. If the number threshold is exceeded, the pending Kalman tracker is determined as the Kalman tracker of the ship target; The Kalman tracker of each ship target in the Nth frame SAR image is used to predict the predicted position of each ship target in the N+1th frame SAR image.