A low frame rate surface navigation multi-target tracking method, system and electronic equipment
Through multi-scale super-resolution reconstruction and improved YOLOv5s network and DeepSORT algorithm, combined with SA attention mechanism and Kalman filter algorithm, the problem of low recognition and tracking accuracy in low frame rate water navigation target tracking is solved, and low-speed tracking is achieved. The precise identification and trajectory tracking of ship targets at frame rate improves the anti-interference ability and stability of the system.
Patent Information
- Application Number
- CN202311630989.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-11-30
AI Technical Summary
Existing surface navigation target tracking technology is affected by factors such as waves, clouds, and low-quality videos, resulting in low recognition and tracking accuracy. Especially in the case of low frame rates or missing frames, targets are easily lost, and low-resolution videos Poor adaptability.
The multi-scale super-resolution reconstruction algorithm is used to process the target image to enhance the resolution, and through the combination of the improved YOLOv5s network and the DeepSORT algorithm, the SA attention mechanism, the Kalman filter algorithm and the Hungarian algorithm are used to achieve low frame rate ship targets. accurate identification and trajectory tracking.
Significantly improves the accuracy and stability of multi-target tracking for low frame rate water navigation, enhances resistance to interference from clouds, fog and waves, and ensures the effectiveness of target recognition and tracking.
Smart Images

Figure CN117593371B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of target tracking processing, and in particular to a low-frame-rate surface navigation multi-target tracking method, system and electronic equipment. Background Art
[0002] At present, surface navigation target tracking technology has attracted wide attention due to its special military needs. This technology has very important strategic significance for specific sea area monitoring, port flow statistics, marine safety management, unknown ship identity recognition and unknown ship behavior analysis. However, this technology will be affected by wave interference, cloud and fog obstruction, surface cruising target movement speed and direction change factors. At the same time, low-quality video images will also bring certain difficulties to target tracking. Some low-resolution videos will cause image features to be blurred, which will lead to target recognition failure, while other videos with low frame rate or frame loss will cause the tracking target to be lost during the tracking process. Therefore, how to improve the accuracy of recognition and tracking is the focus of people's attention.
[0003] Previous ship tracking algorithms included correlation filtering (CF), but since correlation filtering only considers local feature information, it is easily interfered by background clutter and has poor performance for scale changes and partial occlusion of the target. Later, a background difference method was proposed. Although this method has improved the accuracy, it is too slow to update, which will lead to the problem that the background model is outdated and cannot adapt to environmental changes. In addition, it has poor adaptability to sudden changes in scenes and dynamic backgrounds. In recent years, some people have proposed a method of using residual neural networks to identify, locate and track ship targets. This method has good anti-interference ability for high-resolution ship targets, but for low-resolution ship target tracking video images, the recognition performance is reduced and cannot meet the tracking requirements. Summary of the invention
[0004] In order to solve the above problems existing in the prior art, the present invention provides a low frame rate surface navigation multi-target tracking method, system and electronic equipment.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] A low frame rate surface navigation multi-target tracking method, comprising:
[0007] A multi-scale super-resolution reconstruction algorithm is used to process the target image to obtain a reconstructed image; the target image is obtained based on a video of a cruising ship;
[0008] Inputting the reconstructed image into a ship recognition network to obtain a weight file; the ship recognition network is constructed based on an improved YOLOv5s network;
[0009] A ship tracking network is used to determine the target trajectory based on the weight file and mark the ID; the ship tracking network is constructed based on the DeepSORT algorithm.
[0010] Optionally, the process of processing the target image by the multi-scale super-resolution reconstruction algorithm includes:
[0011] Performing frame extraction processing on the target image;
[0012] The first layer of convolution is used to perform preliminary feature extraction on the target image after frame extraction;
[0013] A hierarchical feature fusion structure is used to perform multi-scale feature fusion and local residual learning on the initially extracted features to obtain a hierarchical feature fusion image.
[0014] The pixel mixing and magnification layer is used to magnify the hierarchical feature fusion image, and a reconstructed image is obtained after a convolution.
[0015] Optionally, in the process of using a hierarchical feature fusion structure to perform multi-scale feature fusion and local residual learning on the initially extracted features to obtain a hierarchical feature fusion image, the multi-scale feature fusion is expressed as:
[0016]
[0017]
[0018]
[0019]
[0020]
[0021] In the formula, ω represents weight, b represents bias, the upper mark represents the number of layers, and the lower mark represents the size of the convolution kernel used in the layer; [·, ·] represents the connection parameter, σ represents the ReLU function, S1 represents the first 3*3 convolution structure and activation function, S2 represents the second 3*3 convolution structure and activation function, P1 represents the first 5*5 convolution structure and activation function, P2 represents the second 5*5 convolution structure and activation function, and S' represents a 1*1 convolution structure and activation function;
[0022] For each MSRB convolutional block, a residual network is used to learn a multi-scale residual block, which is:
[0023] M n =S′+M n-1 ;
[0024] Where M nRepresents the input of the nth MSRB convolutional block, M n-1 Represents the output of the n-1th MSRB convolutional block, S'+M n-1 Represents the addition of multiple residual networks performed via a fast connection and element-wise.
[0025] Optionally, the construction process of the hierarchical feature fusion structure includes: setting an output terminal on the input of each MSRB convolution block, and importing each output terminal into a 1×1 convolution layer so that the fused feature channels are compressed to a certain number of channels to form a hierarchical feature fusion structure.
[0026] Optionally, the process of constructing the ship identification network includes:
[0027] The SA attention mechanism is introduced into the three branches of the Neck part of the YOLOv5s network to obtain the ship recognition network;
[0028] Among them, the SA attention mechanism uses ShuffleUnits to combine the spatial attention mechanism and the channel attention mechanism;
[0029] In the SA attention mechanism, the channel attention mechanism uses global average pooling to embed global information, generates channel statistics, and uses the Sigmoid activation function to obtain the output of the channel attention mechanism based on the channel statistics;
[0030] The spatial attention mechanism uses GroupNorm to obtain spatial statistical information, and then uses F c Enhance spatial statistics to get the output of the spatial attention mechanism;
[0031] A channel shuffling operation is used to rearrange the feature groups formed by the output of the channel attention mechanism and the output of the spatial attention mechanism to enable information flow between different groups.
[0032] Optionally, a ship tracking network is used to determine the target trajectory based on the weight file and mark the ID, specifically including:
[0033] Obtaining a target detection frame based on the weight file;
[0034] Using a Kalman filter algorithm to predict the target trajectory based on the target detection frame;
[0035] Based on the target trajectory, the Hungarian algorithm is used to perform Euclidean distance matching on the prediction box of the current frame and the detection box of the next frame in the target trajectory;
[0036] After matching the detection frame, the category label and ID of the target detection frame are assigned to the tracking target detection frame of the target trajectory to obtain the target moving trajectory, thereby completing the trajectory tracking and ID marking of the identified ship target.
[0037] Optionally, a Kalman filter algorithm is used to predict the target trajectory based on the target detection frame, specifically including:
[0038] The Kalman filter algorithm is used to determine the current state of the target detection frame;
[0039] The error of the current state prediction estimation is linearly updated to obtain the current state prediction estimation error, and the Kalman gain is determined according to the current state and the current state prediction estimation error;
[0040] The weight distribution of the current state and the next state is obtained based on the Kalman gain;
[0041] Based on the weight distribution, the current state and the next state are weighted and summed to obtain an optimal estimate value, and the optimal estimate value is used as a priori estimate input at the next moment, so as to obtain the target trajectory in a cycle.
[0042] Optionally, based on the target trajectory, the Hungarian algorithm is used to perform Euclidean distance matching on the prediction box of the current frame and the detection box of the next frame in the target trajectory, specifically including:
[0043] The prediction box of the current frame is set to a feature group including n pixels as the first feature group;
[0044] The detection frames of the next frame are all set to a feature group including n pixels as the second feature group;
[0045] The Euclidean distance formula is used to determine the distance between the first feature group and the second feature group, and the detection frame corresponding to the minimum distance is used as the tracking target detection frame of the target trajectory.
[0046] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0047] The present invention aims to solve the problem that the tracking result is lost and the ID is redistributed due to the low frame rate or frame missing ship images, and the cloud and waves interfere with the recognition network. The target image is processed by adopting a multi-scale super-resolution reconstruction algorithm to enhance the image resolution. The ship recognition network is constructed based on the improved YOLOv5s network to achieve accurate recognition of low frame rate ship images. By using the ship tracking network to determine the target trajectory based on the weight file and mark the ID, the tracking effect of the low frame rate ship target image can be further significantly improved.
[0048] Furthermore, the present invention provides a low frame rate surface navigation multi-target tracking system, the system is used to implement the low frame rate surface navigation multi-target tracking method provided above; the system comprises:
[0049] An image preprocessing module, used to process a target image using a multi-scale super-resolution reconstruction algorithm to obtain a reconstructed image; the target image is obtained based on a video of a cruising ship;
[0050] A ship recognition network module is used to input the reconstructed image into the ship recognition network to obtain a weight file; the ship recognition network is constructed based on the improved YOLOv5s network;
[0051] The ship tracking network module is used to determine the target trajectory based on the weight file using the ship tracking network and mark the ID; the ship tracking network is constructed based on the DeepSORT algorithm.
[0052] Furthermore, the present invention also provides an electronic device, the electronic device comprising:
[0053] Memory for storing computer programs;
[0054] A processor is connected to the memory and is used to retrieve and execute the computer program to implement the low frame rate surface navigation multi-target tracking method provided above.
[0055] Since the technical effects achieved by the above-mentioned system and electronic device provided by the present invention are the same as the technical effects achieved by the low frame rate surface navigation multi-target tracking method provided by the present invention, they will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0057] Figure 1 A flow chart of a low frame rate surface navigation multi-target tracking method provided by the present invention;
[0058] Figure 2 This is an implementation architecture diagram of the low frame rate surface navigation multi-target tracking method provided by the present invention;
[0059] Figure 3 A schematic diagram of the MSRN network structure provided by the present invention;
[0060] Figure 4This is a schematic diagram of the YOLOv5 network structure provided by the present invention. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] The purpose of the present invention is to provide a low-frame rate surface navigation multi-target tracking method, system and electronic equipment, which can achieve good tracking effect when the low-frame rate video and the fast movement speed cause the targets of adjacent video frames to have large differences.
[0063] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0064] like Figure 1 and Figure 2 As shown, the low frame rate surface navigation multi-target tracking method provided by the present invention includes:
[0065] Step 100: Use a multi-scale super-resolution reconstruction algorithm to process the target image to obtain a reconstructed image. This step is image preprocessing. The target image is obtained based on the video of the cruising ship.
[0066] In the actual application process, in order to improve the image resolution and improve the recognition accuracy, the present invention uses a multi-scale super-resolution reconstruction network (MSRN) to enhance the resolution of the target image. The network takes the LR image (low-resolution image, Low-ResolutionImage) as a direct input, and then performs preliminary feature extraction through the first layer of convolution M0 after the video is processed by frame extraction, and then a multi-scale residual block with the same structure is set between each subsequent MSRB convolution block. Among them, the multi-scale residual block also includes multi-scale feature fusion and local residual learning. Multi-scale feature fusion can be expressed as:
[0067]
[0068]
[0069]
[0070]
[0071]
[0072] Among them, ω and b represent weights and biases respectively, the upper mark represents the number of layers, the lower mark represents the size of the convolution kernel used in the layer, the parameters in the brackets represent the connection parameters, σ represents the ReLU function, S1 represents the first 3*3 convolution structure and activation function, S2 represents the second 3*3 convolution structure and activation function, P1 represents the first 5*5 convolution structure and activation function, P2 represents the second 5*5 convolution structure and activation function, and S' represents a 1*1 convolution structure and activation function.
[0073] Local residual learning is used to improve network efficiency. Residual network learning is used for each MSRB convolution block, so that the multi-scale residual block can be expressed as:
[0074] M n =S′+M n-1 (6)
[0075] Among them, M n Represents the input of the nth MSRB convolutional block, M n-1 Represents the output of the n-1th MSRB convolutional block, S'+M n-1 Represents the addition of multiple residual networks performed via a fast connection and element-wise.
[0076] Then, by setting an output port on the input of each MSRB convolution block, each output port is imported into a 1×1 convolution layer to compress the fused feature channels to a certain number of channels, thus forming a hierarchical feature fusion structure (HFFS). Finally, the image is enlarged using a pixel mixing and enlarging layer, and the final reconstructed image is obtained after another convolution.
[0077] For example, the structure of the multi-scale super-resolution reconstruction network is as follows Figure 3 As shown in the figure, the input target video and data set go through the M0 convolution layer and then go through eight MSRB convolution blocks. The results of these nine times are passed through a 1×1 convolution layer to compress the fused feature channels to a certain number of channels. The image is enlarged using a pixel mixing and enlarging layer, and finally the final reconstructed image is obtained after one convolution.
[0078] Step 101: Input the reconstructed image into the ship recognition network to obtain a weight file. The ship recognition network is constructed based on the improved YOLOv5s network.
[0079] In the actual application process, the processed data set (i.e., the reconstructed image) is passed into the YOLOv5 network for training the weight file. In order to ensure the high accuracy and good detection speed of the YOLOv5 network, an attention mechanism can be added to the YOLOv5s network to enable the entire network to have significant performance optimization. Based on this, the present invention introduces a new attention mechanism ShuffleAttention (SA), which uses Shuffle Units to effectively combine the spatial attention mechanism and the channel attention mechanism. The SA attention mechanism used in the present invention groups and maps the input features (the feature refers to the feature information after the feature extraction structure in the YOLOv5 network), and divides them into g units, and then each unit is divided into two branches through the two convolution structures of channel attention and spatial attention in SA. The two branches are the spatial attention mechanism and the channel attention mechanism.
[0080] Among them, the channel attention mechanism uses global average pooling (GAP) to embed global information and generate channel statistics. Channel statistics can be shrunk by spatial size H×W k1 To calculate, it is:
[0081]
[0082] In the formula, X k1 is the value of the feature map of the input channel attention mechanism, F gp (X k1 ) represents the GAP processing of the feature map, H and W represent the spatial height and width respectively, X k1 (i, j) represents the value of the feature map with height i and width j. After that, the Sigmoid activation function is used to make the features accurately and adaptively selected, and the final output is:
[0083] X′ k1 =α(F c (s))·X k1 =α(W1s+b1)·X k1 (8)
[0084] Where α represents the activation function operation, and W1 and b1 are used to scale and translate the channel statistics s.
[0085] The spatial attention mechanism is a complement to the channel attention, which uses Group Norm (GN) to obtain spatial statistical information. Then Fc (•) is used to enhance X′ k2 The final spatial attention output is X′ k2 :
[0086] X′k2 =α(W2GN(X k2 )+b2)·X k2 (9)
[0087] Where W2 and b2 are parameters used to scale and translate the channel statistics s, X k2 Represents the value of the feature map of the input spatial attention mechanism, GN(X k2 ) represents the pair X k2 Perform the Group Norm operation. Then connect the two branches so that the number of channels is the same as the number of inputs, that is:
[0088] X′ k =[X′ k1 , X′ k2 ]∈R C / G×H×W (10)
[0089] In the formula, C represents the number of channels, G represents dividing the original feature map X into G groups, and X′ k A group representing the result of joining two branches.
[0090] Finally, after all sub-features are aggregated, the channel shuffle operation is used to rearrange the connection result groups to allow information to flow between different connection result groups. After that, the SA attention mechanism is introduced into the three branches of the Neck part of the YOLOv5s network. The YOLOv5s network structure after the introduction is as follows: Figure 4 shown.
[0091] Step 102: Use a ship tracking network to determine the target trajectory based on the weight file and mark the ID. The ship tracking network is constructed based on the DeepSORT algorithm.
[0092] In actual application, the weight file obtained in step 101 is imported into the ship tracking network for accurate identification, and then the ID obtained by identification is assigned.
[0093] Among them, the DeepSORT algorithm is an improvement on the SORT algorithm. The main process is to predict the target trajectory through the Kalman filter algorithm based on the target detection frame obtained by detection and recognition (where the weight file is the source of the detection frame). Specifically: The Kalman filter determines the initial position and speed of the target detection frame, and establishes the state transfer matrix and control matrix, and obtains the current state based on the state at the previous moment through the discrete random difference equation. The process can be refined as follows:
[0094] The state of the detection box at the current moment is used to predict the state of the detection box at the next moment. At the same time, the error (covariance matrix) of the previous state prediction estimate is linearly updated to obtain the error of the current state prediction estimate. The Kalman gain is calculated based on the current state and the error. The weight distribution of the two states is obtained through the Kalman gain. Finally, the two states are weighted and summed to obtain the optimal estimate. The optimal estimate is used as the prior estimate input for the next moment, and the trajectory of the prediction box (i.e., the target trajectory) is obtained in this cycle.
[0095] The prediction frame trajectory is matched with the prediction frame and the detection frame of the next frame under the action of the intersection-and-union ratio (IOU) by the Hungarian algorithm, and the overlap rate of the predicted frame and the real frame is calculated. However, when the number of frames of the ship target video is relatively low, the prediction frame and the detection frame will not overlap, resulting in an overlap rate of 0, so the ship target tracking frame of the next frame will be lost, so the present invention uses Euclidean distance matching instead of IOU matching. In order to deal with the ship target video of low frame rate video tracking, the Euclidean distance matching algorithm mainly sets the image matrix (i.e., the detection frame) to n pixels, and uses n element values to form the feature group of the image. The feature group constitutes an n-dimensional space, and each pixel in the feature group constitutes a value. Then, the mathematical Euclidean distance formula is used to calculate the distance between two points in different detection frames at a point formed by each of the two images. The detection frame with the smallest distance is the most matched detection frame. After matching the detection frame, the category label and ID of the previously obtained target detection frame are assigned to the tracking target detection frame of the prediction trajectory, and the target trajectory is matched according to the trajectory obtained by the Kalman algorithm. Finally, the trajectory of the identified ship target is tracked and the ID is marked. The calculation formula of the Euclidean distance is as follows:
[0096] A=(x1,x2,…,x n ) (11)
[0097] B=(y1,y2,…,y n ) (12)
[0098]
[0099] Where A is the image matrix of the current detection frame, B is the image matrix of the next detection frame, AB is the Euclidean distance between the image matrix of the current detection frame and the image matrix of the next detection frame, and x * is the *th pixel in the image matrix of the current detection box, y * It is the *th pixel in the image matrix of the next detection box.
[0100] Based on the above description, the present invention aims to solve the problems of loss of tracking results and reallocation of IDs due to low frame rate or frame missing ship images, as well as interference of clouds and waves on the recognition network. By optimizing the matching mechanism of the DeepSORT network on the basis of the recognition network with image enhancement and enhanced feature extraction capabilities, the tracking effect of the entire tracking network on low frame rate ship target images is significantly improved.
[0101] Furthermore, the present invention provides a low frame rate surface navigation multi-target tracking system, which is used to implement the low frame rate surface navigation multi-target tracking method provided above. The system includes: an image preprocessing module, a ship recognition network module and a ship tracking network module.
[0102] The image preprocessing module is used to process the target image using a multi-scale super-resolution reconstruction algorithm to obtain a reconstructed image. The target image is obtained based on the video of the cruising ship.
[0103] The ship recognition network module is used to input the reconstructed image into the ship recognition network to obtain the weight file. The ship recognition network is constructed based on the improved YOLOv5s network.
[0104] The ship tracking network module is used to determine the target trajectory based on the weight file using the ship tracking network and mark the ID. The ship tracking network is constructed based on the DeepSORT algorithm.
[0105] Furthermore, the present invention also provides an electronic device, which includes: a memory and a processor.
[0106] The memory is used to store computer programs.
[0107] The processor is connected to the memory and is mainly used to retrieve and execute computer programs to implement the low frame rate surface navigation multi-target tracking method provided above.
[0108] In addition, when the computer program in the above-mentioned memory is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.
[0109] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0110] The principles and implementation methods of the present invention are described herein using specific examples. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A low frame rate surface navigation multi-target tracking method, characterized in that: include: A multi-scale super-resolution reconstruction algorithm is used to process the target image to obtain a reconstructed image; The target image is obtained based on a video of a cruising ship; Input the reconstructed image into the ship recognition network to obtain the weight file; The ship recognition network is constructed based on the improved YOLOv5s network; Using a ship tracking network to determine the target's trajectory based on the weight file, and marking the target's ID; The ship tracking network is constructed based on the DeepSORT algorithm; The process of constructing the ship identification network includes: The SA attention mechanism is introduced into the three branches of the Neck part of the YOLOv5s network to obtain the ship recognition network; Among them, the SA attention mechanism uses Shuffle Units to combine the spatial attention mechanism and the channel attention mechanism; In the SA attention mechanism, the channel attention mechanism uses global average pooling to embed global information, generates channel statistics, and uses the Sigmoid activation function to obtain the output of the channel attention mechanism based on the channel statistics; The spatial attention mechanism uses Group Norm to obtain spatial statistical information, and then uses F c (·) Enhance spatial statistics to obtain the output of the spatial attention mechanism; A channel shuffling operation is used to rearrange the feature groups formed by the output of the channel attention mechanism and the output of the spatial attention mechanism to enable information flow between different groups.
2. The low frame rate surface navigation multi-target tracking method according to claim 1 is characterized in that: The process of processing the target image by the multi-scale super-resolution reconstruction algorithm includes: Performing frame extraction processing on the target image; The first layer of convolution is used to perform preliminary feature extraction on the target image after frame extraction; A hierarchical feature fusion structure is used to perform multi-scale feature fusion and local residual learning on the initially extracted features to obtain a hierarchical feature fusion image. The pixel mixing and magnification layer is used to magnify the hierarchical feature fusion image, and a reconstructed image is obtained after a convolution.
3. The low frame rate surface navigation multi-target tracking method according to claim 2 is characterized in that: In the process of using the hierarchical feature fusion structure to perform multi-scale feature fusion and local residual learning on the initially extracted features to obtain the hierarchical feature fusion image, the multi-scale feature fusion is expressed as: In the formula, ω represents weight, b represents bias, the upper mark represents the number of layers, and the lower mark represents the size of the convolution kernel used in the layer; [·, ·] represents the connection parameter, σ represents the ReLU function, S1 represents the first 3*3 convolution structure and activation function, S2 represents the second 3*3 convolution structure and activation function, P1 represents the first 5*5 convolution structure and activation function, P2 represents the second 5*5 convolution structure and activation function, and S' represents a 1*1 convolution structure and activation function; For each MSRB convolutional block, a residual network is used to learn a multi-scale residual block, which is: M n =S′+M n-1 ; Where M n Represents the input of the nth MSRB convolutional block, M n-1 Represents the output of the n-1th MSRB convolutional block, S'+M n-1 Represents the addition of multiple residual networks performed via a fast connection and element-wise.
4. The low frame rate surface navigation multi-target tracking method according to claim 2 is characterized in that: The construction process of the hierarchical feature fusion structure includes: setting an output end on the input of each MSRB convolution block, and importing each output end into a 1×1 convolution layer so that the fused feature channels are compressed to a certain number of channels to form a hierarchical feature fusion structure.
5. The low frame rate surface navigation multi-target tracking method according to claim 1, characterized in that: The ship tracking network is used to determine the target trajectory based on the weight file and mark the ID, which specifically includes: Obtaining a target detection frame based on the weight file; Using a Kalman filter algorithm to predict the target trajectory based on the target detection frame; Based on the target trajectory, the Hungarian algorithm is used to perform Euclidean distance matching on the prediction box of the current frame and the detection box of the next frame in the target trajectory; After matching the detection frame, the category label and ID of the target detection frame are assigned to the tracking target detection frame of the target trajectory to obtain the target moving trajectory, thereby completing the trajectory tracking and ID marking of the identified ship target.
6. The low frame rate surface navigation multi-target tracking method according to claim 5 is characterized in that: The Kalman filter algorithm is used to predict the target trajectory based on the target detection frame, specifically including: The Kalman filter algorithm is used to determine the current state of the target detection frame; The error of the current state prediction estimation is linearly updated to obtain the current state prediction estimation error, and the Kalman gain is determined according to the current state and the current state prediction estimation error; The weight distribution of the current state and the next state is obtained based on the Kalman gain; Based on the weight distribution, the current state and the next state are weighted and summed to obtain an optimal estimate value, and the optimal estimate value is used as a priori estimate input at the next moment, so as to obtain the target trajectory in a cycle.
7. The low frame rate surface navigation multi-target tracking method according to claim 5 is characterized in that: Based on the target trajectory, the Hungarian algorithm is used to perform Euclidean distance matching on the prediction box of the current frame and the detection box of the next frame in the target trajectory, specifically including: The prediction box of the current frame is set to a feature group including n pixels as the first feature group; The detection frames of the next frame are all set to a feature group including n pixels as the second feature group; The Euclidean distance formula is used to determine the distance between the first feature group and the second feature group, and the detection frame corresponding to the minimum distance is used as the tracking target detection frame of the target trajectory.
8. A low frame rate surface navigation multi-target tracking system, characterized in that: The system is used to implement the low frame rate surface navigation multi-target tracking method according to any one of claims 1 to 7; the system comprises: An image preprocessing module, used to process a target image using a multi-scale super-resolution reconstruction algorithm to obtain a reconstructed image; the target image is obtained based on a video of a cruising ship; A ship recognition network module is used to input the reconstructed image into the ship recognition network to obtain a weight file; the ship recognition network is constructed based on the improved YOLOv5s network; The ship tracking network module is used to determine the target trajectory based on the weight file using the ship tracking network and mark the ID; the ship tracking network is constructed based on the DeepSORT algorithm.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, connected to the memory, is used to retrieve and execute the computer program to implement the low frame rate surface navigation multi-target tracking method as described in any one of claims 1-7.
Citation Information
Patent Citations
Aircraft multi-target tracking method based on improved YOLOV5 algorithm
CN114529799A
Infrared ship target tracking method and device for unmanned ship
CN116245916A
Multi-scale ship identification method
CN116704354A
SAR image fast super-resolution method based on multi-scale feature fusion
CN116977176A
Multi-target tracking method and related device
US20220319020A1
