Water surface small target tracking method and system based on state adaptive learning and trend-harmonic prediction
By employing stateful adaptive learning and trend-harmonic prediction, the problem of complex interference in UAV tracking of small targets on the water surface was solved, achieving efficient target tracking and servo compensation, and improving the system's anti-interference capability and tracking success rate.
Patent Information
- Application Number
- CN202611637395.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-22
- Publication Date
- 2026-11-20
AI Technical Summary
Unmanned aerial vehicle (UAV)-borne optoelectronic systems face interference from solar glare, wave foam, and platform vibration when tracking small targets on the water surface. This leads to a decrease in the target signal-to-noise ratio, line-of-sight jitter, and template contamination. Existing methods are insufficient to effectively suppress these combined interferences and perform servo compensation.
A method based on stateful adaptive learning and trend-harmonic prediction is adopted to achieve target tracking in complex water surface backgrounds by enhancing preprocessing, target detection and correlation tracking, template contamination debt management and servo prediction compensation.
It improved the tracking success rate under complex water surface conditions, reduced the tracking loss rate, reduced the impact of prediction errors and observation contamination, and enhanced the system's anti-interference capability.
Smart Images

Figure CN123141518A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of UAV-borne photoelectric detection, target tracking and servo predictive control technology, specifically to a method and system for tracking small water surface targets based on stateful adaptive learning and trend-harmonic prediction. Background Technology
[0002] Missions such as water search and rescue, water surveillance, and navigation safety have created an urgent need for real-time detection and continuous tracking of small targets on the water surface. Unmanned aerial vehicles (UAVs) have become an important carrier for water search missions due to their advantages of low cost, rapid deployment, and high maneuverability. However, UAV-borne optoelectronic systems face multiple challenges in performing these missions: 1. Solar glare creates large areas of strong reflection on the water surface, and wave foam and horizontal undulations generate numerous noise patches similar in size to small targets, severely reducing the target signal-to-noise ratio. Traditional image enhancement methods struggle to suppress these combined interferences. 2. Platform vibration, wind disturbance, and attitude changes introduce continuous line-of-sight jitter. Combined with the link delays in image acquisition, processing, and control transmission, this significantly reduces the gimbal pointing accuracy. Existing feedforward compensation methods often employ a fixed delay assumption, and the motion of the water surface target image includes periodic components formed by wave undulations projected onto the image. Polynomial extrapolation has inherent errors for periodic signals under large time delays. 3. The appearance of small targets on the water surface changes rapidly with waves and viewing angles, and the target template is easily contaminated by surface clutter, leading to correlation filter tracking drift or even loss.
[0003] Current surface target tracking methods typically determine template updates based on single-frame response quality, lacking a state variable that continuously characterizes the template contamination level. When the target overlaps with clutter such as glare and foam, erroneous observations may be continuously written into the template, causing tracking drift. Furthermore, existing servo feedforward compensation methods often employ fixed delays and single polynomial extrapolation, making it difficult to simultaneously handle real-time link delays, target trend motion, and periodic motion formed by wave undulation projections. When observations are contaminated by clutter, higher-order motion quantities estimated from contaminated observations are amplified by extrapolation. Therefore, it is necessary to involve the template health state in learning rate control and use the reliable state formed during the tracking phase for servo prediction order and periodic channel control. Summary of the Invention
[0004] To address the problems existing in the prior art, this invention provides a method and system for tracking small targets on the water surface based on stateful adaptive learning and trend-harmonic prediction.
[0005] To achieve the above objectives, the present invention provides the following technical solution: a method for tracking small water surface targets based on stateful adaptive learning and trend-harmonic prediction, characterized by comprising the following steps: Step S1: Acquire video sequences against a complex water surface background and perform enhancement preprocessing to obtain enhanced images for target detection and correlation tracking; Step S2: Detect small targets on the water surface in the enhanced image of the current frame, output the classification confidence and regression bounding box coordinates of each target, determine the tracking target of the current frame based on the classification confidence, and use the regression bounding box coordinates of the target as the target tracking position. Step S3: Using the target tracking position as the search center, a discriminative correlation filtering algorithm is used for correlation tracking to establish a main template that is updated with the current observation and an anchor template that serves as a long-term stable reference. From the current frame observation of the enhanced image, indicators such as response quality, consistency between the response peak and the predicted position, competition intensity of the error peak, and consistency between the observation center features and the main template and anchor template are extracted to construct a comprehensive observation credibility and current contamination evidence. Template contamination debt is then recursively calculated, and the template update state is switched. Step S4: Based on the bounding box coordinates of the target tracking position, generate the image plane miss quantity sequence, and decompose the image plane miss quantity sequence online into a trend component and a wave-induced periodic component formed by the imaging projection of the wave undulations. Step S5: Using a channel linkage mechanism, trend component prediction and periodic component prediction are performed respectively to obtain trend component compensation amount and periodic component compensation amount. The trend component compensation amount and periodic component compensation amount are superimposed to form the prediction compensation amount, and a prediction pointing command is generated. After the disturbance observer compensates for wind disturbance vibration, the servo motor is driven to control the line of sight to point to the small target on the water surface. Among them, the trend component prediction is extrapolated through Taylor expansion, the periodic component prediction is extrapolated through harmonic rotation, and the comprehensive observation reliability and template contamination debt are used to control the measurement correction, the higher-order compensation term of the trend prediction and the periodic prediction channel, so that the template update status is linked with the prediction order and the opening and closing of the channel.
[0006] On the other hand, the present invention also provides a system based on the above method, comprising: Photoelectric detection payload, used to acquire video streams against complex water surface backgrounds; The image processing unit is configured to perform target detection, stateful adaptive correlation tracking based on the master template and anchor template, comprehensive observation confidence and template contamination debt recursion, and trend-harmonic dual-channel time delay prediction compensation. The servo gimbal and servo motor are used to generate a predicted pointing command based on the compensated target predicted position and drive the line of sight to continuously point at the small target on the water surface.
[0007] The beneficial effects of this invention are: This invention discloses a method for tracking small surface targets based on stateful adaptive learning and trend-harmonic prediction. Based on a stateful adaptive learning mechanism involving a master template, anchor template, and template contamination debt, it can limit erroneous observations when observation reliability decreases or template contamination risk increases, and gradually restore template updates after observation quality recovers. This improves the tracking success rate and reduces the tracking loss ratio under complex surface clutter conditions. The trend-harmonic dual-channel model separately models the target's macroscopic maneuvering and wave-induced periodic motion, with the periodic component phase-advanced according to a real-time effective time delay, reducing the prediction error of periodic motion caused by fixed-delay single-channel extrapolation. By integrating observation reliability and template contamination debt into measurement correction, higher-order compensation terms for trend prediction, and periodic channel control, it can suppress the propagation of errors amplified by higher-order extrapolation of contamination observations. Both controlled simulation experiments and publicly available real water surface video experiments show that state-based adaptive template learning improves the tracking success rate and reduces the proportion of lost frames compared to correlation filtering methods based on single-frame response quality updates; trend-harmonic dual-channel prediction and confidence gating reduce the overall prediction compensation error, time-weighted error, and observation contamination segment error compared to fixed-delay second-order Taylor compensation; ablation comparison shows that both harmonic channels and confidence gating have a positive effect on error reduction. Attached Figure Description
[0008] Figure 1 This is a schematic diagram of the overall process of the method and system of the present invention; Figure 2 A schematic diagram of the network architecture for the small target search and detection phase on the water surface. Figure 3 Block diagram of feedforward compensation control principle for trend-harmonic prediction and reliability gating of servo gimbal; Figure 4 This is a schematic diagram of the state signal flow between stateful adaptive correlation tracking and servo prediction compensation.
[0009] In the diagram: 1. Photoelectric detection payload; 2. Image processing unit; 3. Servo pan-tilt unit; 4. Servo motor; 5. Encoder; 6. Central processing unit; 7. Graphics processor; 8. Field programmable gate array. Detailed Implementation
[0010] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0011] Please see Figure 1-4This invention discloses a method for tracking small targets on the water surface based on stateful adaptive learning and trend-harmonic prediction, comprising the following steps: Step S1: Acquire video sequences against a complex water surface background and perform enhancement preprocessing to obtain enhanced images for target detection and correlation tracking; Enhancement preprocessing includes luminance component extraction, clutter suppression, and edge enhancement, specifically: The input image is converted to the YCrCb color space to extract the luminance component, and guided filtering decomposition is performed to obtain the background layer. and detail layers ; Guided filtering is used as the edge-preserving filter, and its output is , To guide pixels in the image grayscale value, , The coefficients are linear; after obtaining the smooth background layer, the detail layer is obtained by subtracting the background layer from the original brightness map. After gain amplification, the brightness components are reconstructed and enhanced, and then clipped and limited by a threshold. Suppress overly bright areas.
[0012] Using background layer and detail layers Construct pixel-level clutter risk maps; The saturated area of the background layer is defined as the glare channel. , is represented as: ; The high-frequency energy and high-brightness concurrent region of the detail layer is defined as the foam channel. It is composed of the product of the local weighted energy factor of the squared detail layer and the brightness threshold factor, and is expressed as: ; in, The local energy is obtained by squared-down details and weighted by local Gaussian weighting. This is the original brightness map. , , The threshold for judgment, , , For transition bandwidth, This is a saturation cutoff function that restricts the output to the interval [0,1]. A linear structure region with high consistency in the principal directions of the structure tensor and an orientation close to horizontal is defined as the horizontal line and the wake channel. It is composed of the consistency of the principal directions of the structure tensor and the near-horizontal orientation criterion; The three channels are weighted and fused to form the instantaneous clutter risk map for the current frame. : ; in, , , For weighting; The instantaneous clutter risk map is then smoothed using time-domain recursion to obtain the memory clutter risk map: ; in, This is the memory clutter risk map for the current frame. This is a memory clutter risk map of the previous frame. Forgetting factor, , The larger the value, the longer the memory clutter risk map retains historical frame clutter scenes; The pixel-wise maximum value of the instantaneous clutter risk map and the memory clutter risk map is taken as the clutter risk map. The memory clutter risk map preserves the memory of the clutter scene, while the instantaneous clutter risk map ensures an immediate response to fast-moving glare.
[0013] To prevent the brightness details of small targets from being misjudged as foam clutter, the clutter risk map is... By embedding zeros in the target protection neighborhood centered on the Kalman prediction location and with the protection radius adapting to the target scale, a clutter penalty map is obtained. Furthermore, under the protected frozen state, when the deviation between the main peak of the response and the Kalman prediction position exceeds a preset threshold, the protected neighborhood is canceled, thus... Activated only when the main peak deviates from the normal tracking position and falls into the high-risk zone. Clutter risk map. Used for front-end enhancement, amplitude limiting modulation, detection decision threshold modulation, and reacquisition candidate suppression; clutter penalty map. Used for spatial penalty and contamination evidence verification of the correlation filter response.
[0014] The shear limiting threshold is expressed as: ; in, The shearing threshold is set and monotonically decreases. As the baseline limit value, , The modulation coefficient, This is the lower limit of the amplitude limit. Template-based pollution debt; when When =0, it indicates reliable tracking, which fully enhances the contrast of target details; as Increase the amplitude and linearly decrease the limit to suppress contrast enhancement in clutter areas to the greatest extent under strong pollution conditions, and avoid over-amplifying interference textures to mislead tracking. Reduced shear limit by For pixel-by-pixel weighting, the limiting of each sub-block within the search window is spatially modulated; in low-risk areas, the sub-block limiting is... When the difference is below the set value, normal contrast enhancement is maintained; in high-risk areas, sub-block clipping is significantly reduced to suppress contrast enhancement in that area and avoid misenhancing clutter textures as target-like structures. prevent With frequent jumps within the critical pollution probability range, a hysteresis dual-threshold mechanism and a minimum dwell frame constraint are introduced. Upon release from the protection freeze state, the amplitude limit adjusts accordingly. The decline recovers continuously using an exponential moving average method.
[0015] Step S2: Detect small targets on the water surface in the enhanced image of the current frame, output the classification confidence and regression bounding box coordinates of each target, determine the tracking target of the current frame based on the classification confidence, and use the regression bounding box coordinates of the target as the target tracking position. Perform deep learning-based target detection on the current frame of the enhanced image, perform multi-scale feature extraction and bounding box regression, and output the confidence score and the target regression bounding box set; identify targets in consecutive frames of the enhanced image with a confidence score higher than the detection threshold and that meet the spatial consistency constraint as suspected targets; Density clustering is performed on suspected targets in the spatial domain to eliminate isolated noise points and false targets; for the candidate point clusters formed after clustering, their spatial distribution compactness and centroid stability are calculated, and only candidate clusters with high compactness and centroid drift velocity within a reasonable range are retained to complete the agglomeration verification. Extract the position information of candidate clusters from multiple consecutive frames and perform polynomial trajectory fitting; calculate the fitting residual and motion continuity index. Only when the residual is below the threshold and the motion direction and speed change meet the physical constraints is it determined to be the real target trajectory, the trajectory fitting confirmation is completed, the effective tracking target is determined, and the tracking mode is officially activated. For suspected targets that fall into the high clutter risk zone, an additional cross-frame dual confirmation mechanism is added. If the target passes the cohesion verification in two consecutive frames and the trajectory fitting residual and motion continuity index between the two frames meet the requirements, it is determined to be a valid tracking target. If no target is detected in the current frame, or if all suspected targets fail to pass the aggregation verification and trajectory fitting, the loss protection mechanism is triggered to maintain the servo pointing command of the previous frame.
[0016] In the search and detection phase, a lightweight deep convolutional neural network is employed, consisting of a CSPNet backbone feature extraction network, a bidirectional fusion of feature pyramid and path aggregation (FPN top-down semantic fusion path and PANet bottom-up localization fusion path), and a decoupled detection head. The classification branch uses a focusing loss. ,in, The predicted classification probability of the sample. To balance the weights for each category, To focus on the parameters, this embodiment... Take 0.25, Set the value to 2.0; use the perfect intersection-union loss for the regression branch; The detection decision threshold is spatially modulated pixel by pixel from the clutter risk map. This requires high clutter risk area candidates to pass the decision with higher classification confidence, suppressing glare and bubble false alarms; high-risk area candidates are subject to cross-frame double confirmation in the secondary triggering mechanism.
[0017] In a further implementation of the associated tracking, a clutter penalty map is obtained by using the clutter risk map generated during the enhancement phase and then setting the target protection neighborhood to zero. The spatially weighted response is then applied to the correlation filter response, and the resulting spatially weighted response graph is shown below. ,in, To determine the matched response plot of the correlation filter output, To compensate for the penalty coefficient, the clutter penalty map is aligned with the response map's cyclic displacement coordinate system and multiplied element-wise with the response map. When the peak-to-sidelobe ratio is below a threshold, the Kalman predictor slides, and re-capture is performed in conjunction with full-map re-detection and appearance confirmation. Kalman measurement updates can be jointly gated by the innovation amplitude and clutter risk: when the innovation exceeds the threshold and the observation falls into the high-risk zone, or when the observation falls into the glare risk zone under protected freeze state, the measurement update is rejected to reduce the probability of clutter observations entering the tracking state estimation.
[0018] Step S3: Using the target tracking position as the search center, a discriminative correlation filtering algorithm is used for correlation tracking to establish a main template that is updated with the current observation and an anchor template that serves as a long-term stable reference. From the current frame observation of the enhanced image, indicators such as response quality, consistency between the response peak and the predicted position, competition intensity of the error peak, and consistency between the observation center features and the main template and anchor template are extracted to construct a comprehensive observation credibility and current contamination evidence. Template contamination debt is then recursively calculated, and the template update state is switched. Based on the frame in which the tracked target is first stably detected, the regression bounding box region of that frame is used as the template window to extract the target's appearance features and establish the main template and anchor template. Using the target regression bounding box of the current frame as the search area, the main template is matched by a sliding window within this area to obtain the matching response map. Based on the response quality, the consistency between the response peak and the predicted position, the competition intensity of the error peak, and the consistency between the current observation center features and the main template and anchor template, a comprehensive observation credibility and contamination evidence are constructed. Based on historical pollution debt, current pollution evidence, pollution duration, and repayment items corresponding to credible observations, a template for pollution debt is derived. Based on the comprehensive observation credibility, pollution evidence, and template pollution debt, the tracking status is divided into three modes: normal update, protection freeze, and slow release recovery. The learning rate of the main template, the learning rate of the anchor template, and the source of the main template update are set respectively.
[0019] The learning rate of the discriminant correlation filter adopts a state-based adaptive learning rate mechanism based on anchor templates and pollution debt accumulation: using the master template... Indicates the current template and anchor template. This represents a long-term stable reference, with the anchor template initialized as the center-cropped normalized feature of the target observation in the first frame.
[0020] Response quality, normalized by sidelobe ratio quality factor and sharpening normalized entropy Characterization; Based on the baseline sidelobe ratio Normalized response quality factor The diffusion factor is the linearly normalized result of the fourth-order sharpening of the response graph. The consistency between the response peak and the predicted location is measured using the Kalman consistency factor. Characterization, In response to peak Kalman Predicted Position Consistency factor; Error peak contention intensity, determined by the error peak contention intensity factor. Characterization, This is the ratio of the weighted sum of all local peaks (excluding the main peak) in the response diagram to the height of the main peak; Current observation center characteristics Consistency with the main template and anchor templates is measured through the consistency of the main template. Consistency measurement of anchor template The representation is expressed as: ; ; in, Characteristics of the current observation center Main template, For anchor templates; , These are the consistency scale parameters for the main template and the anchor template, respectively; Contamination evidence is obtained from the sampled values of the clutter penalty map at the location of the main peak of the response. Confirmation and magnification In response to the location of the main peak, the overall observation reliability of the current frame and evidence of pollution , respectively represented as: ; ; The accumulation rate of template-contaminated debt increases in tandem with clutter confirmation; template-contaminated debt Represented as: ; in, To maintain the pollution debt coefficient, The cumulative rate coefficient of pollution evidence. This is the cumulative coefficient of pollution duration. For reliable observation of debt repayment coefficients, For the duration of pollution, For the maximum duration of pollution, As an indicator of pollution events, The sampled values of the clutter penalty map at the main peak position of the response are... Clutter penalty gain coefficient; Contamination event indicator exist or or The value is 1 if the condition is met, and 0 otherwise. As a credibility threshold, For error peak competition threshold, Gao Er The low value indicates that the current observation is consistent with the contaminated main template and deviates from the clean anchor template. The main template has been deflected, so the evidence of contamination is amplified to trigger a protective freeze.
[0021] Template contamination debt characterizes the accumulation of contamination evidence over time and the restorative effect of credible observations on the contamination state. When the credibility of the integrated observation decreases, template consistency declines, or competition for error peaks intensifies, the contamination evidence increases, pushing the state machine into a protective freeze state, restricting the current observation from being written into the main template. When the credibility of the integrated observation recovers and the contamination evidence decreases, the state machine enters a normal update or slow recovery state. The main template recovers to the anchor template in the protective freeze state, updates adaptively based on credibility and contamination debt in the normal update state, and uses a weighted mixture of the anchor template and the current observation as the update source in the slow recovery state. The anchor template is only updated slowly in the normal update state. The sampled values of the clutter penalty map at the main peak position of the response can serve as additional corroborating evidence of contamination.
[0022] when or At that time, it enters a protective freeze state, in which, Template pollution debt, To enforce the order reduction threshold, This is the freeze time threshold; when and At that time, it will enter normal update mode. To ensure the overall reliability of the observations, As evidence of contamination, For normal threshold updates, The threshold for evidence of contamination; In other cases, it enters a slow-release recovery state; Learning rate in three states With Update Source for: Under protected frozen state, , ; Under normal update conditions, , ; In the sustained-release recovery state, , , ; Main template renew; Anchor templates only update at the learning rate during normal updates. renew; in, For anchor templates, Main template, To minimize the learning rate, This represents the maximum learning rate under normal update conditions. To achieve the maximum learning rate during the recovery phase, This represents the maximum learning rate for the anchor template.
[0023] An inverse modulation loop that adjusts the front-end enhancement parameters based on the tracking state can be configured: When the state machine enters a protected freeze state and the template contamination debt exceeds the inverse modulation threshold, the clipping threshold within the current search window is lowered, and clutter risk is used as the pixel-by-pixel selection weight to suppress enhancements for high-risk pixels; simultaneously, the guided filter edge preservation regularization parameter is adjusted, and parameter oscillation is limited by the hysteresis threshold and the minimum dwell time. After the freeze state is lifted, the enhancement parameters continuously recover as the template contamination debt decreases.
[0024] In the servo gimbal prediction pointing stage, a composite controller of feedback control and predictive feedforward control is constructed, with the feedback part adopting a position-velocity dual closed-loop PID. The servo gimbal dynamics are simplified as follows: ; in, For rotational inertia, The coefficient of viscous friction is... External load disturbance. Pointing angle, For quadrature axis current, The torque constant of the servo motor (unit: N·m / A) is given by the datasheet of the selected servo motor, or it can be obtained by applying a constant quadrature-axis current to the servo motor, measuring its output torque with a torque sensor, and taking the ratio of the output torque to the quadrature-axis current. The torque constant of the brushless DC torque motor commonly used in airborne optoelectronic pods is usually between 0.05 and 0.5 N·m / A. This implementation is designed based on 0.12 N·m / A. The feedforward compensation control law is: ; in, This is the total quadrature-axis current command for the servo motor. The quadrature-axis current command is output by the position-velocity dual closed-loop PID feedback controller. This is a command for feedforward compensation of quadrature-axis current. , , The desired angular velocity and angular acceleration; An embedded disturbance observer estimates the equivalent disturbance torque caused by wind disturbance, vibration, and mechanical nonlinear friction based on the deviation between the actual current of the servo motor and the output of the nominal model, and then provides feedback compensation.
[0025] Step S4: Based on the bounding box coordinates of the target tracking position, generate the image plane miss quantity sequence, and decompose the image plane miss quantity sequence online into a trend component and a wave-induced periodic component formed by the imaging projection of the wave undulations. Extract the pixel position of the target center in the image coordinate system from the regression bounding box coordinates of the target tracking position, and determine the image center position; Obtain the pixel difference between the target center and the image center to get the image plane miss amount. Arrange the image plane miss amounts of consecutive frames in chronological order to generate an image plane miss amount sequence.
[0026] Step S5: Using a channel linkage mechanism, trend component prediction and periodic component prediction are performed respectively to obtain trend component compensation amount and periodic component compensation amount. The trend component compensation amount and periodic component compensation amount are superimposed to form the prediction compensation amount, and a prediction pointing command is generated. After the disturbance observer compensates for wind disturbance vibration, the servo motor is driven to control the line of sight to point to the small target on the water surface. Among them, the trend component prediction is extrapolated through Taylor expansion, the periodic component prediction is extrapolated through harmonic rotation, and the comprehensive observation reliability and template contamination debt are used to control the measurement correction, the higher-order compensation term of the trend prediction and the periodic prediction channel, so that the template update status is linked with the prediction order and the opening and closing of the channel.
[0027] The trend component is extrapolated using Taylor expansion, and its second-order coefficients are determined by the template confidence gating factor. Continuous modulation, third-order term coefficients determined by template confidence gating factor With motor gating factor Joint continuous modulation, and when template contaminates debt Not less than the forced reduction threshold When this happens, the coefficients of the third-order terms are forcibly set to zero; The periodic component is estimated online using a trend-harmonic joint state filter to determine the dominant wave frequency. , in-phase component Orthogonal components According to the effective delay of the current frame Apply phase lead angle Perform harmonic rotation extrapolation; When the confidence level of the dominant frequency estimation is insufficient or the template confidence gating factor is insufficient Below the channel threshold At that time, the cyclical channel automatically closes and degenerates into a trend single-channel Taylor extrapolation; Among them, the trend-harmonic joint state filter is based on Using the state vector, online decomposition and dual-channel prediction are performed on the image plane miss quantity sequence, where... , , For trend position, velocity, and acceleration, , These are the in-phase and quadrature components of the periodic component; The trend substates propagate according to the uniformly accelerated model; Harmonic states according to angle The propagation of the rotation matrix is expressed as: ; in, It is the sampling time interval between two adjacent frames, which is the reciprocal of the video frame rate; The observation equation is , To observe noise; When template trust gating factor Below the channel threshold At this time, the filter only predicts without correcting; the harmonic sub-state is continuously extrapolated according to phase rotation; the trend acceleration decays frame by frame according to preset coefficients; and the dominant frequency estimation is frozen synchronously. The estimated dominant frequency of the image plane is the frequency after the relative geometry of the target and the carrier is projected onto the image, which varies with the observation distance and line-of-sight angle, and is distinct from the heave dominant frequency of the carrier platform itself; wave dominant frequency. The sliding window spectral analysis of the detrended residuals is used to obtain and recursively smooth the update, and only when... Not less than Updated regularly; in, .
[0028] The compensated target prediction position is obtained by superimposing the compensation amounts from the two channels: ; in, For jerk estimator, For the motor gating factor, For acceleration threshold parameters; The coefficient of the second-order term is given by Continuous modulation, the coefficients of the third-order term are from and Common continuous modulation; when The coefficients of the third-order terms are forced to zero, meaning that the template reliable gating has a veto asymmetric structure for the motor gating, which blocks the error propagation path of the false jerk estimated by the contaminated observation, which is amplified by the cubic time delay through the third-order extrapolation and drives the gimbal to point to the wrong pre-position. When the confidence level of the main frequency estimation is lower than the spectral peak threshold or Below The time period channel is automatically closed to suppress low-confidence periodic components from entering the prediction instruction.
[0029] Effective delay is ,in, This is the estimated effective delay value for the current frame. , , These represent the time consumed by the current frame image acquisition, object detection inference, and correlation tracking stages, respectively, obtained from actual measurements of the start and end timestamps of each stage. This is the predicted value of the control transmission time for the current frame; the control transmission time has not yet occurred at the compensation calculation time and is theoretically unmeasurable, so its predicted value is calculated as follows: Online recursive updates, among which, This is the predicted value for the control transmission time of the current frame. This is a predicted value for the control transmission time of the previous frame. This refers to the control transmission time measured in the previous frame. The recursive smoothing coefficients are used; this recursion does not require storing historical windows, has a constant computational cost, and is suitable for airborne embedded real-time constraints; when , Furthermore, when the periodic channel is closed, it degenerates into a fixed-delay-based system. Second-order Taylor compensation.
[0030] Will The commands are converted into azimuth and pitch angles of the servo pan-tilt unit, driving the line of sight to point at the predicted target position, thus completing the line of sight position-speed dual closed-loop control.
[0031] When the peak sidelobe ratio of the matched response map is lower than the loss threshold When the current frame observation is deemed unreliable, the filter observation correction update is immediately stopped, and the Kalman predictor sliding mode is started. In this mode, the filter performs pure prediction extrapolation based solely on the state transition equation, without absorbing any observation values, and the servo pointing depends entirely on the prediction results. Continuously monitor tracking quality during gliding; if the peak sidelobe ratio is below the loss threshold for multiple consecutive frames... If the deviation between the predicted position and the detected position continues to widen beyond a preset threshold, the target is determined to be completely lost, triggering a global search. After full-image correlation detection using the anchor template and consistency verification, the image is recaptured. During recapture, the clutter risk map synchronously suppresses high-risk candidate areas. After successful recapture, the image is forced into a slow-release recovery state and maintained for no less than a preset number of frames.
[0032] The search and tracking switch employs a two-tier triggering mechanism consisting of candidate point aggregation verification and trajectory confirmation verification: continuous Frames detecting targets with confidence levels higher than the modulated threshold and satisfying spatial consistency constraints within the same water monitoring area are classified as suspected targets. After centroid trajectory polynomial fitting and kinematic constraint verification, the tracking mode is activated. The number of consecutive detection frames required for suspected target identification is typically 3 to 5 frames. In this embodiment... 3 is selected; candidates in high-risk areas undergo additional cross-frame double confirmation. The image processing unit adopts a heterogeneous platform: the field-programmable gate array is responsible for image acquisition interface and frame synchronization, the graphics processor performs image enhancement, risk map construction and detection inference, and the central processing unit performs correlation tracking, joint filtering, delay compensation and servo control. The two are pipelined in parallel through shared memory ping-pong buffer.
[0033] This invention operates on an unmanned aerial vehicle (UAV)-borne optoelectronic surveillance system. The optoelectronic detection payload 1 integrates a visible light camera and an infrared thermal imager, and is mounted on a stabilizing servo gimbal 3 under the fuselage. The video stream is injected into the image processing unit 2 through a high-speed interface. The image processing unit 2 consists of a central processing unit 6, a graphics processing unit 7, and a field-programmable gate array 8, forming a heterogeneous platform. The servo gimbal 3 is driven by a servo motor 4, and the encoder 5 at the shaft provides real-time feedback on the pointing angle.
[0034] In the image acquisition and enhancement stage, the input RGB image is converted to YCrCb space to extract the luminance component, guided filtering is used to obtain a smooth background layer, and differential filtering is used to obtain a detail layer. After cropping, limiting and equalization, the enhanced image is reconstructed. At the same time, the background layer and detail layer are reused to construct a clutter risk map.
[0035] In this embodiment, The background layer brightness adaptive high quantile (typical value 0.62) is selected. The local energy of the foam channel is weighted by a Gaussian kernel with a standard deviation of 2 pixels. , , , ; Fusion weights , , Forgetting factor It can adaptively adjust to changes in platform movement and lighting conditions; The protected neighborhood radius is approximately 2.3 times the equivalent radius of the target. Protection is canceled when the deviation of the main peak of the response in the frozen state exceeds 12 pixels. The risk map is constructed through pixel-wise thresholding, separable convolution, and recursive averaging operations, and intermediate results from the image enhancement stage are reused.
[0036] During the search and detection phase, the detection network is deployed on the graphics processor 7, and a super-resolution detection layer with a stride of 8 is set for distant small targets; threshold modulation coefficients In the secondary triggering mechanism, candidates for high-risk areas with a clutter risk map sampling value greater than 0.5 must pass spatial consistency constraints in two adjacent frames before they can be marked as suspected targets. The tracking mode is then activated after centroid trajectory polynomial fitting and motion school verification.
[0037] In the association tracking stage, the extracted directional gradient histogram, color name, and deep semantic features are weighted and fused using a spatially perceptual attention mechanism. The discriminant correlation filter is solved in a closed-form solution in the frequency domain; the response penalty coefficient... The clutter penalty map is aligned with the cyclic displacement coordinate system of the response map and then multiplied element by element with the response map.
[0038] Kalman predictor measurement gating: When the new information exceeds 16 pixels and the observation falls into the high-risk zone with a sample value greater than 0.4, or when the observation is frozen and falls into the flare risk zone, only time updates are performed.
[0039] Peak sidelobe ratio is lower than If the filter is suspended and the system slides, and recovery fails for several consecutive frames, or if the predicted position deviates from the detected position by more than 15 pixels for 10 consecutive frames, the system is considered to have completely lost the data and returns to the global search: The entire image is then matched and filtered again using the anchor template's central sub-template. Several candidate maxima in the response are verified for anchor template consistency. If verification is successful, tracking resumes and the Kalman state is reset. After re-capture, the system is forced into a slow recovery state and maintained for at least [time value missing]. frame, This is the minimum number of frames required to maintain the slow recovery state after recapture, preventing secondary contamination of the main template during the initial recapture phase.
[0040] The stateful adaptive learning rate mechanism is calculated frame-by-frame according to the formula described in the invention.
[0041] The normalization calibration of this implementation is as follows: The sharpened normalized entropy is mapped to a bandwidth linearity with a zero point of 0.85 and a bandwidth linearity of 0.12; the error peak contention intensity is mapped to a bandwidth linearity with a zero point of 0.5 and a bandwidth linearity of 0.35. Take 8 pixels; Template consistency is calculated on a 24×24 pixel center cropping feature centered on the target. .
[0042] Typical parameters: , , , , , , , , , , , , , , , , , .
[0043] Inverted modulation circuit take , , The trigger condition is entering a protected freeze state and The conditions for termination are After each trigger, it remains stationary for at least 5 frames to prevent parameter oscillation; after deactivation, the enhanced parameters are pressed... The decline has been followed by a continuous recovery.
[0044] In terms of servo delay compensation, the trend sub-state process noise is configured with an acceleration standard deviation of 15 pixels / second squared, and the harmonic sub-state process noise spectral density is taken as 0.8. The dominant wave frequency was obtained by Hanning window spectral analysis using a 256-frame detrended residual sliding window, with a search band of 0.3–1.6 Hz. The spectral peaks were refined by parabolic interpolation. The recursive smoothness and the update every 16 frames mean that the initial value of the main frequency does not require prior calibration. , , , ; Below The time-joint filter only predicts and does not correct, and the trend acceleration is attenuated by a coefficient of 0.95 per frame.
[0045] The field-programmable gate array (FPGA) 8 is responsible for the image interface and frame synchronization, the graphics processor 7 is responsible for enhancement, risk map construction, and detection inference, and the central processing unit (CPU) 6 is responsible for tracking, joint filtering, compensation, and servo control. All processes are pipelined in parallel via shared memory ping-pong buffers. The start and end timestamps of each stage are measured frame-by-frame, and the control output time is predicted using a first-order recursive method based on the measured values of the previous frame, summed to obtain the output. After each frame of translation tracking is completed, the tracking window size is adjusted according to the scale-dependent filter response.
[0046] To verify the effectiveness of stateful adaptive template learning, controlled simulation experiments and publicly available real water surface video experiments were conducted. The controlled simulation was performed in the MATLAB R2025b environment, constructing a water surface sequence containing solar flare sweeps, wave foam patches, near-horizontal lines, and wake undulations. The image resolution was 320×240, with 420 frames per scene, totaling 40 scenes. The target's equivalent size was approximately 12 pixels. Each scene contained three solar flare sweeps, with the flare center sweeping at a speed of 2.2 pixels / frame relative to the target. There were 22 foam patches. All comparison methods were run under the same scenes and initial conditions, with only the first frame initialized with the target's true position; subsequent frames used only for evaluation.
[0047] The comparison methods include: Method A, a discriminative correlation filtering method that determines template updates based on the peak-to-side-lobe ratio, where the peak-to-side-lobe ratio is not lower than... Method A updates the template at a fixed learning rate of 0.025. Method B uses a three-state learning rate control method with a master template, anchor template, contaminated evidence, and template contaminated debt. Method C is a complete method based on Method B, superimposed with clutter penalty map response space penalty, clutter verification, measurement gating, and front-end inverse modulation. All three methods share the same front-end enhancement, the same discriminant correlation filter, and the same Kalman predictor: the discriminant correlation filter uses a 4-pixel cell size, a histogram of directional gradients in 9 unsigned directions, and grayscale features; the search window is not less than 2.5 times the target equivalent size and not less than 96 pixels; the standard deviation of the Gaussian expected response is 0.1 times the target equivalent size; the regularization coefficient is 0.001; and the 11×11 pixel region around the main peak is excluded when calculating the peak-to-sidelobe ratio. The state-based learning and clutter co-operation parameters are taken from the typical values listed in this implementation. In the controlled simulation, the proportion of frames with a center position error of no more than 20 pixels is used as the tracking success rate; frames with a center position error greater than 30 pixels are considered lost frames.
[0048] The controlled simulation results are shown in Table 1. Compared with method A, the average tracking success rates of methods B and C increased by 8.3 and 9.0 percentage points, respectively, while the proportion of lost frames decreased from 75.8% to 67.8% and 67.3%, respectively. The average center position error decreased from 77.6 pixels to 67.0 pixels and 68.0 pixels, respectively. Furthermore, after removing the front-end inverse modulation, the average tracking success rate of method C decreased from 26.6% to 25.6%, and the proportion of lost frames increased from 67.3% to 68.4%, indicating that the inverse modulation loop, which adjusts the front-end enhancement parameters by the tracking state, has a positive effect on suppressing the false contrast enhancement in the clutter region.
[0049] Table 1. Comparison Results of Controlled Simulation Tracking ; The real-world water surface video experiment used all water surface scene sequences from the publicly available UAV123 drone aerial target tracking dataset, including 19 segments: boat sequences (boat1-boat9) and wakeboard sequences (wakeboard1-wakeboard10), totaling 15,144 frames for evaluation. The original resolution was 1280×720, and the frame rate was 30 frames per second. The scenes included solar glare, stern spray and foam trails, shoreline, target scale changes, and platform movement. To simulate imaging of small targets at long distances, each sequence was scaled down proportionally according to the equivalent side length of the ground truth box in the first frame, making the equivalent side length of the target approximately 16 pixels. The scaling factor was limited to between 0.15 and 1, and the images were converted to grayscale. Methods A, B, and C were set up the same as in the controlled simulation, except that the first frame was initialized with the center of the ground truth box. The tracking success rate was defined as the percentage of frames where the ratio of the center position error to the equivalent side length of the current frame's ground truth box did not exceed 0.5. Frames with a ratio greater than 1 were considered lost frames. The center position error was calculated in pixel coordinates at the original resolution. The results are shown in Table 2: On all 19 real sequences, the average tracking success rate of Method B and Method C increased from 62.4% to 65.3% and 64.6%, respectively, and the average center position error decreased from 147.0 pixels to 97.1 pixels and 91.9 pixels, respectively, representing reductions of 33.9% and 37.5%, respectively. The proportion of lost frames decreased from 25.8% to 21.5% and 22.6%, respectively. On the 7 difficult sequences containing strong wake waves, foam, and glare interference where the proportion of lost frames of Method A was not less than 10%, the average tracking success rate of Method B and Method C increased from 24.2% to 32.2% and 30.2%, respectively, and the average center position error decreased from 348.2 pixels to 212.6 pixels and 198.6 pixels, respectively.
[0050] Table 2 Comparison of UAV123 Real Water Surface Sequence Tracking Results ; It should be noted that in Table 2, the average tracking success rate of Method C (64.6%) is slightly lower than that of Method B (65.3%), and the proportion of lost frames (22.6%) is slightly higher than that of Method B (21.5%), with differences of 0.7 and 1.1 percentage points respectively. Furthermore, Method B and Method C achieved identical tracking results on 7 out of the 19 sequences. In the controlled simulation shown in Table 1, Method C outperformed Method B in both average tracking success rate and proportion of lost frames. The advantage of Method C on real water surface sequences is mainly reflected in the error magnitude: across all 19 sequences, the average center position error of Method C further decreased from 97.1 pixels (Method B) to 91.9 pixels, a reduction of 5.4%; in the 7 difficult sequences containing strong wake waves, foam, and glare interference, it further decreased from 212.6 pixels to 198.6 pixels, a reduction of 6.6%. This is because the clutter-coordinated processing, including response space penalty and measurement gating, added by Method C, suppresses response peaks and observations falling into high clutter risk zones. In real surface sequences, its effect is mainly manifested in reducing error amplitude. In contrast, tracking success rate and the proportion of lost frames only count whether the error of each frame exceeds a threshold, and are not sensitive to the reduction of error amplitude. Therefore, the ranking of the two types of indicators is inconsistent. The above results show that the clutter-coordinated processing added by Method C further reduces the average center position error on difficult sequences with strong clutter interference.
[0051] To verify the effectiveness of the trend-harmonic dual-channel prediction and reliability gating technology, controlled simulation and real trajectory verification were also conducted. The controlled simulation, built in the MATLAB environment, constructed an image plane miss sequence that simultaneously included trend maneuvers, wave-induced periodic components, dynamic link delays, and observational contamination: a total of 30 scenarios, each 60 seconds long, with a sampling rate of 30 Hz; the periodic components had a dominant frequency of 0.6–0.9 Hz and an amplitude of 8–14 pixels; the trend components included linear drift, quadratic terms, and maneuvering steps with an amplitude not exceeding 22 pixels; the average latency for the four stages of image acquisition, detection inference, correlation tracking, and control transmission in the link delay were 20 ms, 55 ms, 18 ms, and 25 ms, respectively, with standard deviations of 2 ms. The simulation uses 8 milliseconds, 3 milliseconds, and 6 milliseconds, and randomly inserts 5 inference time spikes lasting 2 to 6 frames and 45 to 100 milliseconds in each scene; the measurement noise standard deviation is 1.15 pixels; each scene contains an observation contamination segment lasting 1 to 1.6 seconds with an amplitude of about 16 pixels. In this simulation, the comprehensive observation confidence and template contamination debt are set according to the observation contamination interval, that is, the comprehensive observation confidence within the contamination segment is about 0.16 and about 0.92 outside the segment. The template contamination debt adopts the recursive form and coefficients of this implementation method and is recursively obtained from the contamination evidence set according to the contamination interval.
[0052] The comparison methods include the uncompensated method, the fixed-delay second-order Taylor compensation method (fixed delay of 0.118 seconds, velocity and acceleration obtained by fitting local cubic polynomials from the most recent 25 frames), the third-order Taylor compensation method under real-time link delay (including maneuver gating), and the trend-harmonic dual-channel prediction and reliability gating method of this invention. The latter uses typical values listed in this embodiment for parameters, and determines loss when the deviation between the predicted position and the detected position exceeds 15 pixels for 10 consecutive frames during coasting, and resets the filter with the recapture position. All predictions use effective delay estimates, and the evaluation time is the actual link completion time. The controlled simulation results are shown in Table 3: Compared with the fixed-delay second-order Taylor compensation method, the root mean square error of the method of this invention is reduced by 30.4%, the time-weighted absolute error integral is reduced by 71.1%, the root mean square error of the observed contaminated section is reduced by 28.4%, and the maximum absolute error is reduced from 61.60 pixels to 21.59 pixels; compared with the uncompensated method, the root mean square error is reduced by 21.0%.
[0053] Table 3 Comparison Results of Controlled Simulation Prediction and Compensation ; The real trajectory verification uses the horizontal and vertical image plane miss distances relative to the image center in the aforementioned 19 real sequences as the target's real motion, totaling 38 trajectories, including real periodic motions formed by platform motion and water surface undulations. In this simulation, the comprehensive observation confidence and template contamination debt sequence output frame-by-frame by the aforementioned stateful adaptive correlation tracking module (method C) on the same real video are used as inputs for the prediction compensation simulation. Detection and localization noise with a standard deviation of 1.15 pixels is superimposed on the center of the real frame in frames successfully tracked by the tracking module, and the actual output position of the tracking module is taken in frames where tracking fails. The latter represents the contamination observation caused by wakes, foam, and glare in the real video, and such frames are used as the observed contamination segments. The link latency is set according to the remote link conditions of airborne images being transmitted via data link to the ground station for processing. The average latency of the four links is 60 milliseconds, 165 milliseconds, 54 milliseconds, and 75 milliseconds, respectively. The jitter and inference spike settings are the same as in the controlled simulation. The target's real position at the evaluation time is obtained by linear interpolation of the real trajectory.
[0054] The verification results of the real trajectories are shown in Table 4: Compared with the fixed-delay second-order Taylor compensation method, the root mean square error of the method of the present invention is reduced from 111.95 pixels to 88.63 pixels, a reduction of 20.8%, the time-weighted absolute error integral is reduced by 5.9%, the root mean square error of the observed contaminated section is reduced by 16.7%, and the maximum absolute error is reduced from 643.09 pixels to 268.85 pixels; when comparing line by line, the root mean square error of the method of the present invention on all 38 real trajectories is lower than that of the fixed-delay second-order Taylor compensation method and the real-time delay third-order Taylor compensation method.
[0055] Table 4 Comparison Results of Actual Trajectory Prediction and Compensation ; In the ablation comparison, under controlled simulation, the root mean square error (RMSE) increased from 4.03 pixels to 13.45 pixels after removing the harmonic channel, which is 3.3 times that of the complete method. The RMSE of the observed contaminated section increased from 11.15 pixels to 29.21 pixels. After removing the confidence gating, the RMSE increased to 4.27 pixels, and the RMSE of the observed contaminated section increased to 15.33 pixels. In the real trajectory verification, after removing the confidence gating, the RMSE increased from 88.63 pixels to 91.23 pixels, and the RMSE of the observed contaminated section increased from 141.49 pixels to 150.02 pixels. The maximum absolute error increased from 268.85 pixels to 306.72 pixels. These results indicate that the harmonic channel and confidence gating have a positive effect on error suppression under conditions containing periodic motion and observed contamination.
[0056] Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for tracking small water surface targets based on stateful adaptive learning and trend-harmonic prediction, characterized in that, Includes the following steps: Step S1: Acquire video sequences against a complex water surface background and perform enhancement preprocessing to obtain enhanced images for target detection and correlation tracking; Step S2: Detect small targets on the water surface in the enhanced image of the current frame, output the classification confidence and regression bounding box coordinates of each target, determine the tracking target of the current frame based on the classification confidence, and use the regression bounding box coordinates of the target as the target tracking position. Step S3: Using the target tracking position as the search center, a discriminative correlation filtering algorithm is used for correlation tracking to establish a main template that is updated with the current observation and an anchor template that serves as a long-term stable reference. From the current frame observation of the enhanced image, the response quality, the consistency between the response peak and the predicted position, the competition intensity of the error peak, and the consistency between the observation center features and the main template and anchor template are extracted to construct a comprehensive observation credibility and contamination evidence. The template contamination debt is then recursively calculated, and the template update state is switched. Step S4: Based on the bounding box coordinates of the target tracking position, generate the image plane miss quantity sequence, and decompose the image plane miss quantity sequence online into a trend component and a wave-induced periodic component formed by the imaging projection of the wave undulations. Step S5: Using a channel linkage mechanism, trend component prediction and periodic component prediction are performed respectively to obtain trend component compensation amount and periodic component compensation amount. The trend component compensation amount and periodic component compensation amount are superimposed to form the prediction compensation amount, and a prediction pointing command is generated. After the disturbance observer compensates for wind disturbance vibration, the servo motor is driven to control the line of sight to point to the small target on the water surface. Among them, the trend component prediction is extrapolated through Taylor expansion, the periodic component prediction is extrapolated through harmonic rotation, and the comprehensive observation reliability and template contamination debt are used to control the measurement correction, the higher-order compensation term of the trend prediction and the periodic prediction channel, so that the template update status is linked with the prediction order and the opening and closing of the channel.
2. The method according to claim 1, characterized in that, In step S1, the enhancement preprocessing includes luminance component extraction, clutter suppression, and edge enhancement, specifically: The current frame t of the input image is converted to the YCrCb color space to extract the luminance component, and guided filtering decomposition is performed to obtain the background layer. and detail layers After gain amplification, the enhanced luminance component is reconstructed and then clipped to a threshold value. Suppress overly bright areas; Using background layer and detail layers Construct pixel-level clutter risk maps; The saturated area of the background layer is defined as the glare channel. , represented as: ; The high-frequency energy and high-brightness concurrent region of the detail layer is defined as the foam channel. , represented as: ; in, The local energy is obtained by squared-down details and weighted by local Gaussian weighting. This is the original brightness map. , , The threshold for judgment, , , For transition bandwidth, This is a saturation cutoff function that restricts the output to the interval [0,1]. Linear structural regions with high consistency in the principal directions of the structure tensor and whose orientation and horizontal slope difference is less than a set value are defined as the horizontal line and the wake channel. ; The three channels are weighted and fused to form the instantaneous clutter risk map for the current frame. : ; in, , , For weighting; The instantaneous clutter risk map is then smoothed using time-domain recursion to obtain the memory clutter risk map: ; in, This is the memory clutter risk map for the current frame. This is a memory clutter risk map of the previous frame. Forgetting factor, , The larger the value, the longer the memory clutter risk map retains historical frame clutter scenes; The pixel-wise maximum value of the instantaneous clutter risk map and the memory clutter risk map is taken as the clutter risk map. The memory clutter risk map preserves the memory of the clutter scene, while the instantaneous clutter risk map ensures an immediate response to fast-moving glare.
3. The method according to claim 2, characterized in that, The shear limiting threshold is expressed as: ; in, The shearing threshold is set and monotonically decreases. As the baseline limit value, , The modulation coefficient, This is the lower limit of the amplitude limit. Template-based pollution debt; when When =0, it indicates reliable tracking, which fully enhances the contrast of target details; as Increase, then linearly decrease the amplitude limit; Reduced shear limit by To achieve pixel-by-pixel weighting, the limiting of each sub-block within the search window is spatially modulated; in low-risk areas, the sub-block limiting is... When the difference is below the set value, normal contrast enhancement is maintained; in high-risk areas, sub-block clipping is significantly reduced to suppress contrast enhancement in that area and avoid misenhancing clutter textures as target-like structures. prevent With frequent jumps within the critical pollution probability range, a hysteresis dual-threshold mechanism and a minimum dwell frame constraint are introduced. Upon release from the protection freeze state, the amplitude limit adjusts accordingly. The decline recovers continuously using an exponential moving average method.
4. The method according to claim 1, characterized in that, Step S2 specifically includes: Perform deep learning-based target detection on the current frame of the enhanced image, perform multi-scale feature extraction and bounding box regression, and output the confidence score and the target regression bounding box set; identify targets in consecutive frames of the enhanced image with a confidence score higher than the detection threshold and that meet the spatial consistency constraint as suspected targets; Density clustering is performed on suspected targets in the spatial domain to eliminate isolated noise points and false targets; for the candidate point clusters formed after clustering, their spatial distribution compactness and centroid stability are calculated, and only candidate clusters with high compactness and centroid drift velocity within a reasonable range are retained to complete the agglomeration verification. Extract the position information of candidate clusters from multiple consecutive frames and perform polynomial trajectory fitting; calculate the fitting residual and motion continuity index. Only when the residual is below the threshold and the motion direction and speed change meet the physical constraints is it determined to be the real target trajectory, the trajectory fitting confirmation is completed, the effective tracking target is determined, and the tracking mode is officially activated. For suspected targets that fall into the high clutter risk zone, an additional cross-frame dual confirmation mechanism is added. If the target passes the cohesion verification in two consecutive frames and the trajectory fitting residual and motion continuity index between the two frames meet the requirements, it is determined to be a valid tracking target. If no target is detected in the current frame, or if all suspected targets fail to pass the aggregation verification and trajectory fitting, the loss protection mechanism is triggered to maintain the servo pointing command of the previous frame.
5. The method according to claim 4, characterized in that, Step S3 specifically includes: Based on the frame in which the tracked target is first stably detected, the regression bounding box region of that frame is used as the template window to extract the target's appearance features and establish the main template and anchor template. Using the target regression bounding box of the current frame as the search area, the main template is matched by a sliding window within this area to obtain the matching response map. Based on the response quality, the consistency between the response peak and the predicted position, the competition intensity of the error peak, and the consistency between the current observation center features and the main template and anchor template, a comprehensive observation credibility and contamination evidence are constructed. Based on historical pollution debt, current pollution evidence, pollution duration, and repayment items corresponding to credible observations, a template for pollution debt is derived. Based on the comprehensive observation credibility, pollution evidence, and template pollution debt, the tracking status is divided into three modes: normal update, protection freeze, and slow release recovery. The learning rate of the main template, the learning rate of the anchor template, and the source of the main template update are set respectively.
6. The method according to claim 5, characterized in that, In step S3, the response quality is normalized by the sidelobe ratio to a quality factor. and sharpening normalized entropy Characterization; The peak sidelobe ratio of the matched response map is obtained by normalizing the reference sidelobe ratio, which reflects the peak sharpness and anti-interference ability of the response map. After performing sharpening filtering on the response map, the Shannon entropy is calculated and normalized to [0,1]. The lower the entropy value, the more concentrated the response and the clearer the target. The consistency between the response peak and the predicted location is measured using the Kalman consistency factor. Characterization; Error peak contention intensity, determined by the error peak contention intensity factor. Characterization, The ratio of the weighted sum of all local peaks except the main peak in the response figure to the height of the main peak reflects the severity of clutter interference. The consistency between the current observation center features and the main template and anchor template is measured by the consistency of the main template. Consistency measurement of anchor template The representation is expressed as: ; ; in, Characteristics of the current observation center Main template, For anchor templates; , These are the consistency scale parameters for the main template and the anchor template, respectively; Overall observation reliability of the current frame t and evidence of pollution , respectively represented as: ; ; Template pollution debt Represented as: ; in, To maintain the pollution debt coefficient, The cumulative rate coefficient of pollution evidence. This is the cumulative coefficient of pollution duration. For reliable observation of debt repayment coefficients, For the duration of pollution, For the maximum duration of pollution, As an indicator of pollution events, The sampled values of the clutter penalty map at the main peak position of the response are... This is the clutter penalty gain coefficient; when or At that time, it enters a protective freeze state, in which, Template pollution debt, To enforce the order reduction threshold, This is the freeze time threshold; when and At that time, it will enter normal update mode. To ensure the overall reliability of the observations, As evidence of contamination, For normal threshold updates, The threshold for evidence of contamination; In other cases, it enters a slow-release recovery state; Learning rate in three states With Update Source for: Under protected frozen state, , ; Under normal update conditions, , ; In the sustained-release recovery state, , , ; Main template renew; Anchor templates only update at the learning rate during normal updates. renew; in, For anchor templates, Main template, To minimize the learning rate, This represents the maximum learning rate under normal update conditions. To achieve the maximum learning rate during the recovery phase, This represents the maximum learning rate for the anchor template.
7. The method according to claim 6, characterized in that, Step S4 specifically includes: Extract the pixel position of the target center in the image coordinate system from the regression bounding box coordinates of the target tracking position, and determine the image center position; Obtain the pixel difference between the target center and the image center to get the image plane miss amount. Arrange the image plane miss amounts of consecutive frames in chronological order to generate an image plane miss amount sequence.
8. The method according to claim 7, characterized in that, Step S5 specifically includes: The trend component is extrapolated using Taylor expansion, and its second-order coefficients are determined by the template confidence gating factor. Continuous modulation, third-order term coefficients determined by template confidence gating factor With motor gating factor Joint continuous modulation, and when template contaminates debt Not less than the forced reduction threshold When this happens, the coefficients of the third-order terms are forcibly set to zero; The periodic component is estimated online using a trend-harmonic joint state filter to determine the dominant wave frequency. , in-phase component Orthogonal components According to the effective delay of the current frame Apply phase lead angle Perform harmonic rotation extrapolation; When the confidence level of the dominant frequency estimation is insufficient or the template confidence gating factor is insufficient Below the channel threshold At that time, the cyclical channel automatically closes and degenerates into a trend single-channel Taylor extrapolation; Among them, the trend-harmonic joint state filter is based on Using the state vector, online decomposition and dual-channel prediction are performed on the image plane miss quantity sequence, where... , , For trend position, velocity, and acceleration, , These are the in-phase and quadrature components of the periodic component; The trend substates propagate according to the uniformly accelerated model; Harmonic states according to angle The propagation of the rotation matrix is expressed as: ; in, It is the sampling time interval between two adjacent frames, which is the reciprocal of the video frame rate; The observation equation is , To observe noise; When template trust gating factor Below the channel threshold At that time, the filter only predicts without correcting, and the harmonic sub-states are continuously extrapolated according to phase rotation; the wave dominant frequency The sliding window spectral analysis of the detrended residuals is used to obtain and recursively smooth the update, and only when... Not less than Updated regularly; in, ; The calculated target prediction position is obtained by superimposing the compensation amounts from the two channels: ; in, For jerk estimator, For the motor gating factor, For acceleration threshold parameters; Will The commands are converted into azimuth and pitch angles of the servo pan-tilt unit, driving the line of sight to point to the predicted target position, thus completing closed-loop control.
9. The method according to claim 8, characterized in that, Also includes: When the peak sidelobe ratio of the matched response map is lower than the loss threshold When the current frame observation is deemed unreliable, the filter observation correction update is immediately stopped, and the Kalman predictor sliding mode is started. In this mode, the filter performs pure prediction extrapolation based solely on the state transition equation, without absorbing any observation values, and the servo pointing depends entirely on the prediction results. Continuously monitor tracking quality during gliding; if the peak sidelobe ratio is below the loss threshold for multiple consecutive frames... If the deviation between the predicted position and the detected position continues to widen beyond a preset threshold, the target is determined to be completely lost, triggering a global search. After full-image correlation detection using the anchor template and consistency verification, the image is recaptured. During recapture, the clutter risk map synchronously suppresses high-risk candidate areas. After successful recapture, the image is forced into a slow-release recovery state and maintained for no less than a preset number of frames.
10. A system based on the method of any one of claims 1-9, characterized in that, include: Photoelectric detection payload, used to acquire video streams against complex water surface backgrounds; The image processing unit is configured to perform target detection, stateful adaptive correlation tracking based on the master template and anchor template, comprehensive observation confidence and template contamination debt recursion, and trend-harmonic dual-channel time delay prediction compensation. The servo gimbal and servo motor are used to generate a predicted pointing command based on the compensated target predicted position and drive the line of sight to continuously point at the small target on the water surface.
