Unmanned aerial vehicle multi-target active tracking method based on predicted envelope and height interval
By predicting the envelope and altitude range, the problem of unifying the processing of the future divergence range and imaging resolution requirements of target groups in UAV multi-target tracking is solved. This enables timely arrival and effective coverage under the constraints of UAV takeoff and landing speed, and provides a maneuver basis for UAV active multi-target tracking.
Patent Information
- Application Number
- CN202611654846.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-27
AI Technical Summary
Existing UAV multi-target tracking methods cannot express the future divergence range of target groups in advance, cannot uniformly handle coverage requirements and imaging resolution requirements, and the planned altitude cannot guarantee timely arrival under the constraints of UAV takeoff and landing speed.
The method adopts a prediction envelope and altitude range-based approach. By calling the single-mode or multi-mode predictor through the predictor configuration identifier, the target group center and weighted discreteness matrix are calculated, the minimum coverage altitude and the maximum resolution altitude are determined, the imaging feasible altitude range is generated, and the achievable altitude set is propagated under the constraints of vertical motion to determine the target horizontal trajectory and altitude sequence. Finally, the joint position and altitude control quantity is sent to the flight controller.
This enables UAVs to obtain maneuvering information before the target group leaves the effective field of view, avoiding the mixing of the spatial dispersion of the group and the prediction uncertainty of a single target into the same computational quantity. It ensures that complete coverage and imaging resolution requirements are used as common constraints for trajectory planning, and triggers active tracking control in advance by the latest start time.
Smart Images

Figure CN123181511A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of UAV visual inspection and flight control technology, specifically to a UAV multi-target active tracking method based on predicted envelope and altitude range. Background Technology
[0002] Drones equipped with fixed cameras can continuously acquire images of road vehicles, pedestrians, and other moving ground targets. Whether a target is within the effective field of view and the pixel size of the target in the image are also affected by the drone's horizontal position, flight altitude, attitude, and the spatial distribution of the target group.
[0003] Existing multi-target tracking control typically generates control variables based on current observations such as the current target position, the geometric center of the target group, and the deviation of the detection box relative to the image center. It cannot determine the future coverage range of the target group before multiple targets diverge.
[0004] Raising the drone can expand the ground field of view, but it will reduce the target pixel size; lowering the drone can increase the target pixel size, but it will reduce the ground coverage area. Existing solutions lack a unified constraint that simultaneously expresses the requirements for complete coverage, target pixel size requirements, and drone lift-down accessibility. Summary of the Invention
[0005] 1. The technical problem to be solved:
[0006] To address the aforementioned technical problems, this invention provides a UAV multi-target active tracking method based on predicted envelope and altitude range, which solves the problems of existing UAV multi-target tracking methods that cannot express the future divergence range of the target group in advance, cannot uniformly handle coverage requirements and imaging resolution requirements, and cannot guarantee timely arrival of the planned altitude under the constraints of the UAV's takeoff and landing speed.
[0007] 2. Technical Solution:
[0008] A multi-target active tracking method for UAVs based on predicted envelope and altitude range is applied to UAVs equipped with fixed cameras, navigation modules, and flight controllers, and includes the following steps:
[0009] Step 1: According to the preset acquisition cycle, use a fixed camera to acquire a scene image including at least one ground target in each acquisition cycle, record the exposure time of the scene image, and obtain the UAV pose synchronized with the exposure time from the pose sequence output by the navigation module.
[0010] Step 2: Using a preset target detection method and multi-target tracking method, obtain the target identifier, detection box coordinates, and detection confidence score for each ground target; back-project the center pixel of the bottom edge of each detection box onto the preset target bearing plane to obtain the ground position of the corresponding ground target; based on the continuous ground positions with the same target identifier, obtain the current spatial state corresponding to each ground target; the current spatial state includes ground position, ground velocity, and state covariance.
[0011] Step 3: Set the predictor configuration flag; when the predictor configuration flag is 0, the orbit predictor of the single-mode predictor is called; when the predictor configuration flag is 1, the multi-mode predictor is called; input the current spatial state and historical spatial state of each ground target into the called trajectory predictor to obtain the prediction branch set of each ground target at each prediction time in the prediction time domain; each prediction branch in the prediction branch set includes the prediction position mean, prediction covariance and mode probability, and the sum of the mode probabilities of each prediction branch is 1;
[0012] Step 4: For each prediction time, calculate the target group center and weighted dispersion matrix based on the mean of the predicted positions, the mode probabilities, and the current detection confidence of the corresponding ground targets in the retained prediction branches of all ground targets. Determine the main direction and secondary direction of the target group for the corresponding prediction time based on the weighted dispersion matrix, and extend the projection boundary along the main direction and secondary direction of the target group based on the prediction covariance of the retained prediction branches of all ground targets to obtain the target group prediction envelope for each prediction time. All prediction times and their corresponding target group prediction envelopes constitute the target group prediction envelope in the prediction time domain.
[0013] Step 5: Generate candidate horizontal trajectories that satisfy the horizontal motion constraints of the UAV; for each candidate horizontal trajectory at each prediction time, determine the minimum coverage height that allows the predicted envelope of the target group to be fully projected into the safe field of view and the maximum resolution height that allows each ground target to meet the preset minimum target pixel size; determine the height interval of the non-empty set jointly defined by the minimum coverage height, the maximum resolution height, and the flight altitude boundary as the imaging feasible height interval, and determine the target horizontal trajectory and target altitude sequence of the UAV according to the achievable height set propagated by the UAV's lift-down motion constraints;
[0014] Step Six: While maintaining the current UAV attitude, determine the critical prediction moment when the first prediction moment fails to meet the safe field of view condition or the minimum target pixel size condition. Determine the latest start moment based on the horizontal maneuver time, the ascent and descent maneuver time, the flight control response delay, and the control safety margin. When the latest start moment is reached, send the first joint position and altitude control value to the flight controller as the first execution command of the current control cycle. Specifically, the first joint position and altitude control value is the first target horizontal position corresponding to the first control moment of the current control cycle extracted from the target horizontal trajectory, and the first target altitude corresponding to the same control moment extracted from the target altitude sequence.
[0015] Step 7: After obtaining the scene image for the next acquisition cycle, repeat steps 1 to 6.
[0016] Furthermore, step one specifically includes:
[0017] S11: Record the scene image exposure time t during the current acquisition cycle. c ;
[0018] S12: Obtain the previous sampling time t from the pose sequence output by the navigation module, which is located at the exposure time. a The first navigation state and the subsequent sampling time t at the exposure time. b The second navigation state; the navigation state includes the UAV's position, velocity, and attitude quaternions; then the interpolation ratio τ between adjacent navigation sampling times at the exposure time is as follows:
[0019] (1);
[0020] S13: Perform linear interpolation on the drone's position and speed respectively:
[0021] (2);
[0022] Where S represents the drone state; the drone state includes position and velocity; when calculating the drone position, S is the drone position; when calculating the drone velocity, S is the drone velocity; S(t c ) represents the exposure time t c The corresponding synchronization value;
[0023] S14: Based on the attitude quaternions of the first and second navigation states, according to the interpolation ratio Spherical linear interpolation is performed on the attitude quaternion of the UAV to obtain the exposure time t. c The synchronous attitude quaternion of the UAV; the UAV state and attitude quaternion constitute the UAV pose.
[0024] Furthermore, step two specifically includes:
[0025] S21: Extract the target identifier, detection box coordinates, detection confidence score, and image timestamp of each ground target in the scene image;
[0026] S22: Obtain the center pixel of the bottom edge of the detection box corresponding to each ground target, and determine the distortion-corrected center pixel of the bottom edge as the ground point pixel of the corresponding ground target; let the homogeneous coordinates of the ground point pixel be... , where u p and v p Let x and y be the x and y coordinates of the grounding point pixel, respectively, and T denote matrix transpose. Based on the synchronized UAV pose, camera intrinsic parameters, and camera extrinsic parameters relative to the UAV body, a spatial ray is constructed starting from the camera optical center, passing through the grounding point pixel, and pointing towards the preset target bearing plane:
[0027] (3);
[0028] Where r(λ) is the world coordinate system position vector on the spatial ray corresponding to the scale parameter λ; the scale parameter λ is greater than 0; t wc R is the position vector of the camera's optical center in the world coordinate system; wc K is the rotation matrix from the camera coordinate system to the world coordinate system. -1 Let K be the inverse of the camera intrinsic parameter matrix K;
[0029] S23: The preset target bearing plane is... Where n is the normal vector of the target bearing plane; x is the position vector of any point on the target bearing plane; d is the plane offset parameter of the target bearing plane; calculate the intersection parameters of the spatial ray and the target bearing plane:
[0030] (4);
[0031] in, The scale parameter corresponding to the intersection of the space ray and the target bearing plane; The ground location of the corresponding ground target was determined;
[0032] S24: Associate the current acquisition cycle with the ground locations that have the same target identifier in the previous acquisition cycle; as shown in the following formula, the state vector x of the current acquisition cycle c i,c With ground position measurement vector y i,c :
[0033] (5);
[0034] Where, p x,i,c and p y,i,cThese represent the x and y coordinates of ground target i at its location on the ground during the current acquisition period c; v x,i,c and v y,i,c These are the x and y coordinate components of the ground velocity of ground target i in the current acquisition period c, respectively.
[0035] S25: Let the time interval between adjacent acquisition cycles be Δt. c Construct the state transition matrix F c And measurement matrix H:
[0036] (6);
[0037] S26: Perform Kalman prediction:
[0038] (7);
[0039] in, and These are the prior state vector and the prior state covariance, respectively; X i,c-1 P i,c-1 These are the state vector and state covariance of the previous acquisition cycle, respectively; Q c The process noise covariance matrix;
[0040] S27: Calculate the Kalman gain and perform a measurement update:
[0041] (8);
[0042] Among them, G i,c R is the Kalman gain; c I is the ground position measurement noise covariance matrix; I4 is the fourth-order identity matrix; x i,c and P i,c These are the current spatial state vector and state covariance of ground target i after measurement update, respectively.
[0043] Further, in step three: the predictor configuration flag set during task initialization is read; if the predictor configuration flag is 0, the single-mode predictor is invoked; for ground target i, the single-mode predictor outputs a prediction branch at prediction time k; the prediction branch includes the predicted position mean p. i,k Predicting covariance and pattern probability ; and predict the pattern probability π of the branch i,1,k Set to 1; predict covariance Characterizing the mean p of the predicted location i,k Positional uncertainty;
[0044] If the predictor configuration flag is 1, the multi-mode predictor is invoked; for ground target i, the multi-mode predictor outputs M at prediction time k. i There are 1 prediction branch, and each prediction branch includes the prediction location mean p. i,m,k Predicting covariance and pattern probability And satisfy:
[0045] (9);
[0046] Among them, M i is the number of prediction branches for ground target i; m is the prediction branch index; Let m be the prediction branch for time k of ground target i. Arrange the prediction branches in descending order of their model probabilities and sum the model probabilities of the branches in sequence. Select the set of the smallest prediction branches whose cumulative model probabilities first reach the cumulative probability threshold η=0.90 as the set of retained prediction branches for ground target i to participate in the target group prediction envelope calculation.
[0047] Furthermore, step four, obtaining the target group prediction envelope within the prediction time domain, specifically includes:
[0048] S41: Calculate the detection confidence d of ground target i within the current acquisition period. i The mode probability π of the retained prediction branch m at prediction time k i,m,k The product is determined as the prediction branch weight:
[0049] (10);
[0050] Among them, w i,m,k For the corresponding prediction branch weights; d i The detection confidence level of ground target i within the current acquisition period; the probability of the predicted branch mode output by the single-mode predictor is 1;
[0051] S42: Calculate the target group center and weighted dispersion matrix at prediction time k based on the predicted location mean and predicted branch weights.
[0052] (11);
[0053] Among them, M i,k c is the set of prediction branches retained for ground target i at prediction time k; k C represents the target group center at prediction time k; k p is the weighted discreteness matrix for predicting time k; i,m,k This represents the mean of the corresponding predicted positions;
[0054] S43: For the weighted discreteness matrix C kPerform eigenvalue decomposition, and find the unit eigenvector e corresponding to the largest eigenvalue. 1,k The target group principal direction is determined as the target group principal direction at prediction time k, and the unit eigenvector e orthogonal to the target group principal direction is... 2,k The corresponding target group sub-direction was determined;
[0055] S44: Given a two-sided confidence level β = 0.95, determine the prediction uncertainty confidence coefficient ρ based on the cumulative distribution function Φ of the standard normal distribution.
[0056] (12);
[0057] Where, Φ -1 Φ is the inverse function of the cumulative distribution function of the standard normal distribution; ρ is the confidence coefficient used when the predicted location uncertainty is expanded along the main direction or the secondary direction of the target group; the pattern probability of the predicted branch is used for predictive branch selection and predictive branch weight calculation, and the prediction covariance is used to calculate the projected standard deviation of the predicted location uncertainty in the main direction and the secondary direction of the target group.
[0058] S45: Compare the lower and upper bounds of the projections of all retained prediction branches along the main and secondary directions of the target swarm to obtain the target swarm prediction envelope boundary:
[0059] (13);
[0060] Where j=1 represents the main direction of the target group; j=2 represents the secondary direction of the target group; and These are the lower boundary and upper boundary of the target group prediction envelope, respectively; Let be the prediction covariance of the m-th prediction branch of ground target i at prediction time k; the √(e^(k-1)) term represents the prediction covariance along direction e. j,k The projected standard deviation;
[0061] S46: Based on the target group center c k Unit eigenvector e 1,k and e 2,k And the corresponding lower and upper bounds of the prediction, constructing the rotated rectangular envelope E at prediction time k. k The target group prediction envelope is formed by combining the rotational rectangular envelope in the prediction time domain and its prediction time index. The target group prediction envelope is a group envelope that covers all retained prediction branches of all ground targets at prediction time k. A rotational rectangular envelope is not constructed separately for a single ground target.
[0062] Furthermore, determining the minimum coverage height in step five includes:
[0063] S51: Using the current horizontal position and horizontal speed of the UAV as initial values, generate N candidate horizontal trajectories. Each candidate horizontal trajectory satisfies the maximum horizontal speed, maximum horizontal acceleration, and flight area boundary constraints, where N is a preset positive integer.
[0064] S52: For the candidate horizontal position r of the nth candidate horizontal trajectory at prediction time k n,k The envelope of the rotated rectangle E k All vertices and a predetermined number of equally spaced sampling points on each boundary segment form an envelope sampling point set, where n ≤ N; let the candidate height be z, and based on the candidate horizontal position r n,k The candidate altitude z is used to construct the candidate UAV pose based on the current synchronous UAV attitude. The envelope sampling point set is projected onto the image plane based on the camera intrinsic parameters of the fixed camera and the extrinsic parameters of the fixed camera relative to the UAV body.
[0065] S53: Determine the minimum height from the preset height search range Z so that all projected points obtained in step S52 are within the safe field of view:
[0066] (14);
[0067] Among them, z cover,n,k Let be the minimum height of the coverage of the nth candidate horizontal trajectory at prediction time k; For fixed camera projection calculations; V safe A safe field of view is formed by pre-setting a safety margin for the image edge after shrinking the original image boundary inward;
[0068] If the set on the right side of the above equation is empty, the corresponding nth candidate horizontal trajectory is marked as infeasible for coverage at prediction time k; when the nth candidate horizontal trajectory is marked as infeasible for coverage at any prediction time, the candidate horizontal trajectory is deleted, and the subsequent calculation of the highest resolution height, the calculation of the feasible imaging height interval, the propagation of the reachable height set, and the evaluation of the objective function for the candidate horizontal trajectory are not performed.
[0069] Furthermore, in step five, the feasible imaging height range is determined according to the following steps:
[0070] S54: For candidate horizontal position r n,k Given the candidate height z, calculate the predicted pixel size corresponding to the retained prediction branch m of ground target i. :
[0071] (15);
[0072] Among them, f y To fix the effective focal length of the camera in the vertical direction of the image; h iThe preset physical height of ground target i; Z is the correction factor for the observation angle. i,m,k (r n,k ,z) is the prediction depth of the m-th prediction branch of ground target i relative to the optical axis of the fixed camera; where, when the prediction depth is positive, it indicates that the predicted target is located in front of the camera and can be imaged.
[0073] S55: From the height search height Z, determine the maximum height that makes all retained prediction branches of all ground targets satisfy the preset minimum target pixel size:
[0074] (16);
[0075] Among them, z resolution,n,k h represents the highest resolution height. min Set the minimum target pixel size;
[0076] S56: The intersection of the lowest coverage altitude, the highest resolution altitude, and the flight altitude boundary is determined as the feasible imaging altitude range.
[0077] (17);
[0078] Among them, I n,k Let be the imaging feasible height interval of the nth candidate horizontal trajectory at prediction time k; when the lower bound of the imaging feasible height interval is not greater than the upper bound of the interval, the imaging feasible height interval is a non-empty set, otherwise it is an empty set.
[0079] Furthermore, step five, determining the target horizontal trajectory and target height sequence, includes the following steps:
[0080] S57: Let the current altitude of the drone be z0, and let the initial reachable altitude set of the nth candidate horizontal trajectory be preset as A. n,0 ={z0}; The reachable height set propagates based on the predicted time as follows:
[0081] (18);
[0082] Among them, A n,k Let A be the set of reachable heights of the nth candidate horizontal trajectory at prediction time k; min(A n,k-1 ) and max(A n,k-1 ) are the lower and upper bounds of the reachable height set at the previous prediction time, respectively; v down The preset maximum descent speed; v up The preset maximum climbing speed; The time interval between adjacent prediction times;
[0083] S58: Delete candidate horizontal trajectories whose reachable height set is empty at the prediction time; for candidate horizontal trajectories whose reachable height set is not empty, backtrack from the last prediction time, satisfying the following conditions between adjacent prediction times.
[0084] Under the given conditions, heights are selected from each set of reachable heights to form a candidate height sequence that satisfies the lifting motion constraints. During the selection process, the initial height of the nth candidate horizontal trajectory is defined as equal to the current height of the UAV;
[0085] S59: Calculate the objective function for each candidate horizontal trajectory and its candidate height sequence:
[0086] (19);
[0087] Among them, J n Let N be the objective function value of the nth candidate horizontal trajectory; p For the number of prediction steps; r n,k Let z be the candidate horizontal position of the nth candidate horizontal trajectory at prediction time k; n,k Let z be the candidate height of the nth candidate horizontal trajectory at time k; mid,n,k For the feasible imaging height range I n,k The midpoint of λ; r , λ h and λ m These are the preset positive weighting coefficients for the horizontal motion term, the height change term, and the deviation from the midpoint of the interval term, respectively, and λ r +λ h +λ m =1; Represents the Euclidean norm;
[0088] The candidate horizontal trajectory with the smallest objective function value is determined as the target horizontal trajectory, and the corresponding candidate height sequence is determined as the target height sequence.
[0089] Furthermore, step six specifically includes the following steps:
[0090] S61: Maintain the current UAV pose, project the predicted envelope of the target group onto the safe field of view, and calculate the predicted pixel size of each ground target; determine the first prediction time t when either the envelope sampling point is located outside the safe field of view or the predicted pixel size is smaller than the preset minimum target pixel size. crit ;
[0091] S62: Based on the UAV's current horizontal position r0, current horizontal velocity v0, and the target's horizontal position r at the critical prediction time... critMaximum horizontal velocity v h,max and maximum horizontal acceleration a h,max Solve for the shortest horizontal maneuver time that satisfies the horizontal motion constraints:
[0092] (20);
[0093] Among them, T h For the shortest horizontal maneuver time; T sp Let be the candidate horizontal maneuver duration to be solved; r(t) is the function of horizontal position changing with time t; To perform first-order time derivative with respect to r(0); To perform second-order time differentiation with respect to r(t); inf denotes the infimation operation;
[0094] S63: Based on the drone's current altitude z0 and current ascent / descent rate v z,0 The feasible imaging height range I corresponding to the critical prediction time crit Maximum climb rate v up Maximum descent speed v down and maximum acceleration a v,max Find the shortest lifting and lowering maneuvering time that satisfies the lifting and lowering motion constraints:
[0095] (twenty one);
[0096] Among them, T v For the shortest lifting and maneuvering time; T sj Let be the candidate ascent / descent maneuver duration to be solved; z(t) is the function of flight altitude as a function of time t; To perform first-order time derivative with respect to z(0); To perform second-order time differentiation of z(t);
[0097] S64: Determine the latest start time based on the critical prediction time, the shortest horizontal maneuver time, the shortest climb and fall maneuver time, the flight control response delay, and the control safety margin.
[0098] (twenty two);
[0099] Among them, t start The latest start time; t response The response delay from sending a control input to the flight controller initiating the execution of that control input; t safety To control the safety margin;
[0100] S65: The first joint position height control value is expressed as: ;in, The first joint position and height control variable is r1 and z1, which are the target horizontal position and target height corresponding to the first control moment of the current control cycle, respectively.
[0101] Furthermore, it also includes step eight: when all candidate horizontal trajectories in step S58 have been deleted, a degradation strategy is initiated; specifically, this includes the following steps:
[0102] S81: When all candidate horizontal trajectories in step S58 are deleted, the degradation strategy is entered; under the constraints of the flight area boundary and flight safety altitude, with the current UAV pose as the initial state, a set of degradation candidate UAV poses that satisfy the UAV position, velocity, and altitude constraints is sampled and generated:
[0103] (twenty three);
[0104] in, Let L be the pose of the l-th candidate drone to be downgraded, and L be the number of candidate poses.
[0105] S82: Calculate the effective coverage ratio of the target group prediction envelope, the proportion of ground targets that meet the preset minimum target pixel size, the UAV motion cost, and the continuous unobserved duration of each ground target under the pose of each downgraded candidate UAV.
[0106] S83: Calculate the dynamic weight of ground target i based on its basic importance, duration of continuous unobservation, predicted covariance trace, motion cost of re-entering the field of view, and detection quality.
[0107] (twenty four);
[0108] Among them, w i The dynamic weight of ground target i; w 0,i To preset the basic importance; L i The duration of continuous unobserved events; L max To pre-set a normalized upper limit for the duration of continuous unobserved events; Σ i Let be the predicted covariance of ground target i; tr represents the matrix trace operation; C i The motion cost for the pre-defined ground target i to re-enter the field of view; D i is the preset detection quality of ground target i; g is the preset normalization function mapped to the interval 0 to 1; , , and These are the preset non-negative weighting coefficients for the corresponding evaluation items;
[0109] S84: For each candidate pose in the set of downgraded candidate UAV poses, determine the effective coverage and minimum target pixel size satisfaction of all ground targets under the corresponding candidate pose; using the dynamic weight of each ground target obtained in step S83 as a weighting coefficient, perform weighted summation on the effective coverage and pixel size satisfaction of all ground targets to obtain the weighted coverage ratio and weighted pixel size satisfaction ratio of the corresponding candidate pose; combine the UAV motion cost corresponding to the candidate pose to calculate the weighted evaluation value of the corresponding candidate pose; compare the weighted evaluation values of all downgraded candidate UAV poses, and determine the candidate pose corresponding to the largest weighted evaluation value as the downgraded target UAV pose; extract the target horizontal position and target height from the downgraded target UAV pose to form the first joint position and height control quantity of the current control cycle and send it to the flight controller; after obtaining the scene image of the next acquisition cycle, repeat steps one to six.
[0110] 3. Beneficial effects:
[0111] (1) The present invention provides a method for active tracking of multiple targets of UAV based on prediction envelope and altitude range. It uses the prediction envelope of target group with prediction time index to express the future center, direction, coverage and position uncertainty of multiple ground targets, so that UAV can obtain the basis for maneuver before the target group leaves the effective field of view.
[0112] (2) The present invention provides a method for active tracking of multiple targets of UAVs based on predicted envelope and altitude range. It uses only the predicted position mean and mode probability to calculate the target group center and weighted dispersion matrix of all ground targets, and uses the predicted covariance to expand the projection boundary, thus avoiding the confusion of the spatial dispersion of the group and the prediction uncertainty of a single target into the same amount of calculation.
[0113] (3) The present invention provides a method for active tracking of multiple targets of UAV based on predicted envelope and altitude range, which converts the minimum coverage altitude and the maximum resolution altitude into an imaging feasible altitude range, so that the complete coverage requirement and the minimum target pixel size requirement can be used as common constraints for trajectory planning.
[0114] (4) The present invention provides a method for active tracking of multiple targets of UAV based on predicted envelope and altitude range, which eliminates candidate trajectories that cannot arrive on time under the constraints of rising and falling motion by propagating the set of reachable altitudes, and triggers active tracking control in advance by the latest start time. Attached Figure Description
[0115] Figure 1 This is an overall flowchart of the UAV multi-target active tracking method of the present invention;
[0116] Figure 2A schematic diagram of an UAV multi-target active tracking system that utilizes this solution to achieve multi-target active tracking;
[0117] Figure 3 This is a schematic diagram of the target group prediction trajectory and temporal prediction envelope of the present invention;
[0118] Figure 4 This is a schematic diagram illustrating the relationship between the fixed camera projection geometry, complete coverage, and resolution constraints of the present invention.
[0119] Figure 5 This is a schematic diagram illustrating the candidate horizontal trajectory screening, achievable height propagation, and rolling control of the present invention.
[0120] Figure 6 This is a schematic diagram illustrating the relationship between the minimum coverage height, the maximum resolution height, and the feasible imaging height range of the present invention.
[0121] Figure 7 This is a schematic diagram of the multi-target detection and tracking image transmission results in a real road scenario according to the present invention. Detailed Implementation
[0122] The present invention will now be described in detail with reference to the accompanying drawings and embodiments.
[0123] Example 1:
[0124] Appendix Figure 2 This solution describes a UAV multi-target active tracking system. The system includes a UAV flight controller and navigation module, a fixed camera mounted on the UAV, a synchronous positioning module, a trajectory prediction module, an envelope construction module, an altitude range determination module, and a horizontal and altitude planning module. Fixed mounting means that the camera's extrinsic parameters relative to the UAV body remain known during mission execution and are not actively changed by the gimbal; the camera can be mounted vertically downwards or obliquely downwards at a preset pitch angle. Multiple companion computing modules can be located on the UAV or, via a communication link, on ground-based computing equipment.
[0125] The UAV pose information of the flight controller and navigation module is synchronized with the image information acquired by the fixed camera through a synchronous positioning mode. After synchronization, the pose and image are used by the trajectory predictor of the trajectory prediction module to obtain the predicted position mean, predicted covariance and mode probability, and construct a target group prediction envelope with time index. In the altitude interval determination module, the minimum coverage altitude and the highest resolution altitude are calculated for the candidate horizontal trajectory to form an imaging feasible altitude interval, and the achievable altitude set is propagated according to the rise and fall motion constraints. In the horizontal and altitude planning module, the target horizontal trajectory and target altitude sequence are determined according to the objective function, the latest start time is calculated, and the first joint position and altitude control quantity is sent to the flight controller.
[0126] Example 2:
[0127] This embodiment is used to illustrate the UAV multi-target active tracking method of this scheme.
[0128] Appendix Figure 1 This is a flowchart of the overall process of the UAV multi-target active tracking method based on predicted envelope and altitude range, which includes the following steps.
[0129] I. Image Acquisition, Time Synchronization, and Target Spatial Positioning
[0130] The fixed camera operates according to a preset acquisition cycle, outputting one scene image and the corresponding exposure time for each acquisition cycle. The flight controller continuously outputs the UAV's position, velocity, and attitude with timestamps. Using the time interpolation method in steps S11 to S14, the scene image and the UAV's pose are made to correspond to the same time.
[0131] The target identifier, detection box coordinates, and detection confidence score of each ground target in the scene image are obtained using a preset target detection method and a multi-target tracking method. The same target identifier is assigned to the same ground target in consecutive acquisition cycles using a preset multi-target tracking method. The center pixel of the bottom edge of the detection box of each ground target is used to represent the ground point between the ground target and the preset target bearing plane.
[0132] The ground position is obtained using the spatial ray and plane intersection formula from steps S21 to S23. A two-dimensional constant-velocity Kalman filter, using the ground position as the measurement, performs state prediction and measurement updates according to steps S24 to S27, outputting the ground position, ground velocity, and four-dimensional state covariance. The process noise covariance matrix Q... c The noise covariance matrix R can be measured based on the target maneuver intensity setting. c The settings are based on the back projection position error calibration results.
[0133] II. Single-model forecasting and multi-model forecasting
[0134] During task initialization, the predictor configuration flag is read. When the configuration flag is 0, the orbit predictor invoked is a single-mode predictor; the single-mode predictor outputs a prediction branch and fixes the mode probability of that prediction branch to 1.
[0135] When the configuration flag is set to 1, the multi-mode predictor is invoked. The multi-mode predictor outputs multiple prediction branches, each with a predicted location mean, prediction covariance, and mode probability. The mode probabilities are sorted in descending order, and the set of prediction branches with the smallest cumulative mode probability that first reaches the threshold η=0.90 is retained.
[0136] The predictor configuration identifier remains unchanged throughout a tracking task and does not temporarily switch based on road branches. Both single-mode and multi-mode predictors provide data to subsequent envelope construction steps through the prediction branch set interface.
[0137] III. Target Group Prediction Envelope
[0138] Figure 3 This diagram illustrates the predicted trajectory and temporal prediction envelope of the target swarm in this scheme. The mean of the predicted location describes the spatial distribution of the target swarm, the mode probability is used for prediction branch selection and weight calculation, and the prediction covariance is used to expand the projection boundary of each prediction branch. The prediction covariance and mode probability are not used as predicted locations in the calculation of the weighted discreteness matrix.
[0139] Detection confidence level d for the current acquisition period i With pattern probability π i,m,k The product of these factors forms the prediction branch weight; this weight is no longer superimposed with undefined target importance. Normalization is performed using the double summation formula in step S42, and the target group center and weighted dispersion matrix are calculated. Then, the principal and secondary directions of the target group are obtained through eigenvalue decomposition. Figure 3 The target group main direction and target group secondary direction corresponding to the prediction time are marked.
[0140] Based on the projected values of the predicted locations along the main and secondary directions of the target group, the prediction uncertainty expansion is subtracted and added, respectively. Minimum and maximum value comparisons are performed on all ground targets and all retained prediction branches to obtain the lower and upper boundaries of the group projection.
[0141] When the predicted location error follows a Gaussian distribution, the two-sided confidence level β and the prediction uncertainty confidence coefficient ρ satisfy the standard normal distribution quantile relationship in formula (12). In this embodiment, β is preset to 0.95, corresponding to ρ = 1.96.
[0142] IV. Minimum Coverage Height and Maximum Resolution Height
[0143] like Figure 4 As shown, the dashed rectangle on the left side of the image plane represents the safe field of view boundary, which is obtained by shrinking the original image boundary inward by a preset safety margin. The sampling points of the target group prediction envelope are projected onto the image plane, and the minimum height at which all projected points enter the safe field of view is the minimum coverage height.
[0144] Figure 4 In the image plane, the small solid rectangle is used to indicate the minimum target pixel size h. minThe highest altitude at which all predicted branches for all ground targets satisfy the size requirement is the highest resolution altitude. The intersection of the two altitude constraints for coverage and resolution mentioned above with the flight altitude boundary is the feasible imaging altitude interval; the feasible imaging altitude interval is not empty when the lower bound is not greater than the upper bound, contains only one altitude when they are equal, otherwise it is an empty set.
[0145] like Figure 6 As shown, solid line A represents the lowest coverage altitude, and dashed line B represents the highest resolution altitude. Without further truncation of the illustrated range at the flight altitude boundaries, at point C on the left (k=1, 2), A is below B, and the diagonal line between the two boundaries filling the vertical segment represents a non-empty feasible imaging altitude range; at point D on the right (k=3, 4), A is above B, and the interval is an empty set. express.
[0146] V. Reachable Altitude Propagation and Trajectory Selection
[0147] Figure 5 The left figure shows a schematic diagram of candidate horizontal trajectory selection. Taking the current horizontal position and horizontal velocity of the UAV (i.e., the current pose in the figure) as initial values, the preset horizontal velocity direction and velocity amplitude are discretely sampled to generate candidate horizontal trajectories that meet the constraints of horizontal velocity, horizontal acceleration and flight area boundary. The left figure shows three candidate horizontal trajectories.
[0148] For each candidate horizontal trajectory, the set of reachable heights at the predicted time is obtained according to the set intersection formula in step S57. If the set of reachable heights at the predicted time is empty, the corresponding candidate horizontal trajectory (i.e., the candidate horizontal trajectory shown by the dashed line in the left figure) is deleted.
[0149] Backtracking is performed on the retained candidate horizontal trajectories (the corresponding solid lines in the left figure), and the horizontal motion, height change, and deviation from the midpoint of the feasible imaging height range are evaluated using the objective function. The target horizontal trajectory and target height sequence with the smallest objective function value are selected. Figure 5 The right-hand figure illustrates the propagation process of the height range. The gray area represents the feasible height range at the corresponding prediction time, and the black line represents the line connecting the midpoints of the feasible imaging height range. The minimum target pixel size has already been used as a hard constraint on the feasible imaging height range, and the soft penalty for pixel size is not repeated in the objective function.
[0150] VI. Latest Start Time and Rolling Control
[0151] Maintaining the current UAV pose, sequentially examine the safe field of view conditions for the target group's prediction envelope and the minimum target pixel size conditions for all ground targets along the prediction time domain. The prediction time at which either condition is first violated is the critical prediction time.
[0152] The horizontal maneuver time is obtained through a shortest time constraint problem, which includes the current horizontal position, current horizontal velocity, maximum horizontal velocity, and maximum horizontal acceleration. The ascent and descent maneuver time is obtained through another shortest time constraint problem, which includes the current altitude, current ascent and descent rates, maximum climb rate, maximum descent rate, and maximum ascent and descent acceleration.
[0153] The latest start time is obtained by subtracting the larger of the horizontal maneuver time and the climb / descendancy time, the flight control response delay, and the control safety margin from the critical prediction time. Upon reaching the latest start time, only the first joint position / altitude control value from the target horizontal trajectory and target altitude sequence is sent to the flight controller. After obtaining the scene image for the next acquisition cycle, synchronization, localization, prediction, envelope construction, altitude interval determination, and trajectory planning are re-executed.
[0154] VII. Handling when the feasible imaging height range is empty
[0155] When all candidate horizontal trajectories are deleted because the reachable altitude set is empty, a degradation strategy is implemented. Candidate UAV poses are generated within the flight altitude boundary, and the effective coverage ratio of the target group prediction envelope, the proportion of ground targets satisfying the minimum target pixel size, and the UAV motion cost are calculated respectively.
[0156] The dynamic weights in step S83 are used to increase the evaluation contribution of ground targets with long periods of continuous non-observation, large prediction uncertainty, and high detection quality, while reducing the evaluation contribution of targets with high re-entry cost. The candidate UAV pose that meets the flight safety altitude constraint and has the largest weighted evaluation value is selected.
[0157] Example 3:
[0158] This embodiment illustrates the parameters involved in this solution; the fixed camera resolution is set to 1920×1080 pixels, the image edge safety margin is set to 5% of the image width and height, the UAV flight altitude range is set to 40m to 80m, the planning update frequency is set to 5Hz, the prediction time domain is set to 3s, the prediction time interval is set to 0.25s, and the minimum vehicle pixel height is set to 16 pixels. The above values are used to illustrate the calculation process; the actual values are determined based on the UAV platform, fixed camera parameters, and target detection model.
[0159] Before executing active tracking control, the flight controller checks the flight area boundaries, minimum safe altitude, battery status, and communication status. If any safety check fails to meet the preset conditions, the flight controller refuses to actively track the control input and executes the preset safety policy.
[0160] Verification example:
[0161] Twenty independent test scenarios were set up in a real-world road environment. Each scenario contained 10 moving ground targets, with each scenario lasting 120 seconds. The image acquisition frequency was 5Hz, the prediction time was 3 seconds, and the prediction time interval was 0.25 seconds. The fixed camera resolution was 1920×1080 pixels, the UAV flight altitude was constrained to 40m to 80m, and the minimum target pixel height was set to 16 pixels. Each test scenario included target swarm splitting, target speed changes, and UAV horizontal position changes.
[0162] In each acquisition cycle, a fixed camera acquires road scene images, a target detection method extracts detection boxes for each ground target, a preset multi-target tracking method assigns target identifier IDs to each ground target, and the detection boxes and target identifier IDs are superimposed onto the image transmission screen. Figure 7 This is a representative image from one of the real-world test scenarios.
[0163] like Figure 7 As shown, the scene image includes backgrounds such as roads, lanes, green areas, and buildings, with multiple ground vehicles distributed across different lanes and road locations. Each vehicle's detection bounding box is labeled with a corresponding target identifier ID, such as id:1, id:2, and id:37, to indicate the identity association of the same ground target within consecutive acquisition cycles. By using the target identifier IDs in consecutive images, the center pixels of the bottom edges of the detection bounding boxes of the same ground target are associated, and the associated pixel positions are used for ground location back-projection, current spatial state updates, and subsequent trajectory prediction.
[0164] The detection boxes and target identifiers of different colors in the figure are used to distinguish the target display status in the image transmission interface; color is not an essential technical feature of the present invention, and the specific color mapping is determined by the display configuration of the target detection and multi-target tracking software.
[0165] Set up a control group A and an experimental group B. Control group A performs reactive tracking based on the current target detection results, using the current altitude and not constructing a target swarm prediction envelope; experimental group B uses the prediction envelope, imaging feasible altitude range, achievable altitude propagation, and latest start time calculation methods of this invention. Both groups use the same target detection results, the same initial UAV pose, and the same flight safety boundaries.
[0166] Let Nq be the total number of samples from all targets in the q-th test scenario across all collection periods. cov,q For the q-th test scenario target group, the predicted envelope of the target group is completely located within the safe field of view - the number of samples in the acquisition cycle, and the complete coverage rate is defined as:
[0167] ;
[0168] Among them, R cov,qLet be the complete coverage of the q-th test scenario. Rq represents the coverage of all 20 test scenarios. cov,q Take the arithmetic mean to obtain the average complete coverage rate.
[0169] Let N pix,q For the target in the q-th test scene whose predicted pixel height is not less than 16 pixels, the minimum target pixel size satisfaction rate is defined as:
[0170] ;
[0171] Among them, R pix,q Let be the minimum target pixel size satisfaction rate for the q-th test scenario.
[0172] Exemplary simulation results show that the average complete coverage rate of control group A is 82.4%, with a standard deviation of 6.7%; while the average complete coverage rate of experimental group B is 96.8%, with a standard deviation of 2.1%. The average minimum target pixel size satisfaction rate of control group A is 76.3%, with a standard deviation of 8.4%; while the average minimum target pixel size satisfaction rate of experimental group B is 94.1%, with a standard deviation of 2.8%.
[0173] The Euclidean distance between the back-projected ground position and the simulated true position is used as the ground position error. Exemplary simulation results show that the average ground position error of control group A is 1.37m, with a standard deviation of 0.31m; while the average ground position error of experimental group B is 0.84m, with a standard deviation of 0.19m.
[0174] The continuous effective tracking duration is defined as the continuous time during which all targets in the scene simultaneously satisfy both the safe field of view condition and the minimum target pixel size condition. Exemplary simulation results show that the average continuous effective tracking duration of the control group A is 89.4 s with a standard deviation of 8.1 s; while the average continuous effective tracking duration of the experimental group B is 112.6 s with a standard deviation of 4.8 s.
[0175] The cumulative Euclidean distance between adjacent sampling points in the horizontal position of the UAV is used as the horizontal maneuver distance. Exemplary simulation results show that the average horizontal maneuver distance of the control group A is 203.7m with a standard deviation of 15.9m; the average horizontal maneuver distance of the experimental group B is 184.3m with a standard deviation of 12.7m.
[0176] The data above show that, under the same detection input and initial conditions, Experimental Group B improved the complete coverage of the target group and the minimum target pixel size satisfaction rate by constructing the target group prediction envelope in advance and propagating the achievable height set within the feasible imaging height range, while reducing the average ground position error and horizontal maneuvering distance.
[0177] Although the present invention has been disclosed above with reference to preferred embodiments, these are not intended to limit the present invention. Any person skilled in the art can make various changes or modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be defined by the scope of the claims of this application.
Claims
1. A multi-target active tracking method for UAVs based on predicted envelope and altitude range, applied to UAVs equipped with a fixed camera, navigation module, and flight controller, characterized in that: Includes the following steps: Step 1: According to the preset acquisition cycle, use a fixed camera to acquire a scene image including at least one ground target in each acquisition cycle, record the exposure time of the scene image, and obtain the UAV pose synchronized with the exposure time from the pose sequence output by the navigation module. Step 2: Using the preset target detection method and multi-target tracking method, obtain the target identifier, detection box coordinates and detection confidence score for each ground target; The center pixel of the bottom edge of each detection box is back-projected onto the preset target bearing plane to obtain the ground position of the corresponding ground target; based on the continuous ground positions with the same target identifier, the current spatial state of each ground target is obtained. The current spatial state includes ground position, ground velocity, and state covariance; Step 3: Set the predictor configuration flag; when the predictor configuration flag is 0, the orbit predictor of the single-mode predictor is called; when the predictor configuration flag is 1, the multi-mode predictor is called; input the current spatial state and historical spatial state of each ground target into the called trajectory predictor to obtain the prediction branch set of each ground target at each prediction time in the prediction time domain; each prediction branch in the prediction branch set includes the prediction position mean, prediction covariance and mode probability, and the sum of the mode probabilities of each prediction branch is 1; Step 4: For each prediction time, calculate the target group center and weighted dispersion matrix based on the mean of the predicted positions, the mode probabilities, and the current detection confidence of the corresponding ground targets in the retained prediction branches of all ground targets. Determine the main direction and secondary direction of the target group for the corresponding prediction time based on the weighted dispersion matrix, and extend the projection boundary along the main direction and secondary direction of the target group based on the prediction covariance of the retained prediction branches of all ground targets to obtain the target group prediction envelope for each prediction time. All prediction times and their corresponding target group prediction envelopes constitute the target group prediction envelope in the prediction time domain. Step 5: Generate candidate horizontal trajectories that satisfy the horizontal motion constraints of the UAV; for each candidate horizontal trajectory at each prediction time, determine the minimum coverage height that allows the predicted envelope of the target group to be fully projected into the safe field of view and the maximum resolution height that allows each ground target to meet the preset minimum target pixel size; determine the height interval of the non-empty set jointly defined by the minimum coverage height, the maximum resolution height, and the flight altitude boundary as the imaging feasible height interval, and determine the target horizontal trajectory and target altitude sequence of the UAV according to the achievable height set propagated by the UAV's lift-down motion constraints; Step Six: While maintaining the current UAV attitude, determine the critical prediction moment when the first prediction moment fails to meet the safe field of view condition or the minimum target pixel size condition. Determine the latest start moment based on the horizontal maneuver time, the ascent and descent maneuver time, the flight control response delay, and the control safety margin. When the latest start moment is reached, send the first joint position and altitude control value to the flight controller as the first execution command of the current control cycle. Specifically, the first joint position and altitude control value is the first target horizontal position corresponding to the first control moment of the current control cycle extracted from the target horizontal trajectory, and the first target altitude corresponding to the same control moment extracted from the target altitude sequence. Step 7: After obtaining the scene image for the next acquisition cycle, repeat steps 1 to 6.
2. The UAV multi-target active tracking method based on predicted envelope and altitude range according to claim 1, characterized in that: Step one specifically includes: S11: Record the scene image exposure time t during the current acquisition cycle. c ; S12: Obtain the previous sampling time t from the pose sequence output by the navigation module, which is located at the exposure time. a The first navigation state and the subsequent sampling time t at the exposure time. b The second navigation state; the navigation state includes the UAV's position, velocity, and attitude quaternions; then the interpolation ratio τ between adjacent navigation sampling times at the exposure time is as follows: (1); S13: Perform linear interpolation on the drone's position and speed respectively: (2); Where S represents the drone state; the drone state includes position and velocity; when calculating the drone position, S is the drone position; when calculating the drone velocity, S is the drone velocity; S(t c ) represents the exposure time t c The corresponding synchronization value; S14: Based on the attitude quaternion of the first and second navigation states, according to the interpolation ratio Spherical linear interpolation is performed on the attitude quaternion of the UAV to obtain the exposure time t. c The synchronous attitude quaternion of the UAV; the UAV state and attitude quaternion constitute the UAV pose.
3. The UAV multi-target active tracking method based on predicted envelope and altitude range according to claim 2, characterized in that: Step two specifically includes: S21: Extract the target identifier, detection box coordinates, detection confidence score, and image timestamp of each ground target in the scene image; S22: Obtain the center pixel of the bottom edge of the detection box corresponding to each ground target, and determine the distortion-corrected center pixel of the bottom edge as the ground point pixel of the corresponding ground target; let the homogeneous coordinates of the ground point pixel be... , where u p and v p Let x and y be the x and y coordinates of the grounding point pixel, respectively, and T denote matrix transpose. Based on the synchronized UAV pose, camera intrinsic parameters, and camera extrinsic parameters relative to the UAV body, a spatial ray is constructed starting from the camera optical center, passing through the grounding point pixel, and pointing towards the preset target bearing plane: (3); Where r(λ) is the world coordinate system position vector on the spatial ray corresponding to the scale parameter λ; the scale parameter λ is greater than 0; t wc R is the position vector of the camera's optical center in the world coordinate system; wc K is the rotation matrix from the camera coordinate system to the world coordinate system. -1 Let K be the inverse of the camera intrinsic parameter matrix K; S23: The preset target bearing plane is... Where n is the normal vector of the target bearing plane; x is the position vector of any point on the target bearing plane; d is the plane offset parameter of the target bearing plane; calculate the intersection parameters of the spatial ray and the target bearing plane: (4); in, The scale parameter corresponding to the intersection of the space ray and the target bearing plane; The ground location of the corresponding ground target was determined; S24: Associate the current acquisition cycle with the ground locations that have the same target identifier in the previous acquisition cycle; as shown in the following formula, the state vector x of the current acquisition cycle c i,c With ground position measurement vector y i,c : (5); Where, p x,i,c and p y,i,c These represent the x and y coordinates of ground target i at its location on the ground during the current acquisition period c; v x,i,c and v y,i,c These are the x and y coordinate components of the ground velocity of ground target i in the current acquisition period c, respectively. S25: Let the time interval between adjacent acquisition cycles be Δt. c Construct the state transition matrix F c And measurement matrix H: (6); S26: Perform Kalman prediction: (7); in, and These are the prior state vector and the prior state covariance, respectively; X i,c-1 P i,c-1 These are the state vector and state covariance of the previous acquisition cycle, respectively; Q c The process noise covariance matrix; S27: Calculate the Kalman gain and perform a measurement update: (8); Among them, G i,c R is the Kalman gain; c I is the ground position measurement noise covariance matrix; I4 is the fourth-order identity matrix; x i,c and P i,c These are the current spatial state vector and state covariance of ground target i after measurement update, respectively.
4. The UAV multi-target active tracking method based on predicted envelope and altitude range according to claim 3, characterized in that: In step three: the predictor configuration flag set during task initialization is read; if the predictor configuration flag is 0, the single-mode predictor is invoked; for ground target i, the single-mode predictor outputs a prediction branch at prediction time k; the prediction branch includes the predicted position mean p. i,k Predicting covariance and pattern probability ; and predict the pattern probability π of the branch i,1,k Set to 1; predict covariance Characterizing the mean p of the predicted location i,k Positional uncertainty; If the predictor configuration flag is 1, the multi-mode predictor is invoked; for ground target i, the multi-mode predictor outputs M at prediction time k. i There are 1 prediction branch, and each prediction branch includes the prediction location mean p. i,m,k Predicting covariance and pattern probability And satisfy: (9); Among them, M i is the number of prediction branches for ground target i; m is the prediction branch index; Let m be the prediction branch for time k of ground target i. Arrange the prediction branches in descending order of their model probabilities and sum the model probabilities of the branches in sequence. Select the set of the smallest prediction branches whose cumulative model probabilities first reach the cumulative probability threshold η=0.90 as the set of retained prediction branches for ground target i to participate in the target group prediction envelope calculation.
5. The UAV multi-target active tracking method based on predicted envelope and altitude range according to claim 4, characterized in that: Step four, obtaining the target group prediction envelope within the prediction time domain, specifically includes: S41: Calculate the detection confidence d of ground target i within the current acquisition period. i The mode probability π of the retained prediction branch m at prediction time k i,m,k The product is used to determine the prediction branch weights: (10); Among them, w i,m,k For the corresponding prediction branch weights; d i The detection confidence level of ground target i within the current acquisition period; the probability of the predicted branch mode output by the single-mode predictor is 1; S42: Calculate the target group center and weighted dispersion matrix at prediction time k based on the predicted location mean and predicted branch weights. (11); Among them, M i,k c is the set of prediction branches retained for ground target i at prediction time k; k C represents the target group center at prediction time k; k p is the weighted discreteness matrix for predicting time k; i,m,k This represents the mean of the corresponding predicted positions; S43: For the weighted discreteness matrix C k Perform eigenvalue decomposition, and find the unit eigenvector e corresponding to the largest eigenvalue. 1,k The target group principal direction is determined as the target group principal direction at prediction time k, and the unit eigenvector e orthogonal to the target group principal direction is... 2,k The corresponding target group sub-direction was determined; S44: Given a two-sided confidence level β = 0.95, determine the prediction uncertainty confidence coefficient ρ based on the cumulative distribution function Φ of the standard normal distribution. (12); Where, Φ -1 Φ is the inverse function of the cumulative distribution function of the standard normal distribution; ρ is the confidence coefficient used when the predicted location uncertainty is expanded along the main direction or the secondary direction of the target group; the pattern probability of the predicted branch is used for predictive branch selection and predictive branch weight calculation, and the prediction covariance is used to calculate the projected standard deviation of the predicted location uncertainty in the main direction and the secondary direction of the target group. S45: Compare the lower and upper bounds of the projections of all retained prediction branches along the main and secondary directions of the target swarm to obtain the target swarm prediction envelope boundary: (13); Where j=1 represents the main direction of the target group; j=2 represents the secondary direction of the target group; and These are the lower boundary and upper boundary of the target group prediction envelope, respectively; Let be the prediction covariance of the m-th prediction branch of ground target i at prediction time k; the √(e^(k-1)) term represents the prediction covariance along direction e. j,k The projected standard deviation; S46: Based on the target group center c k Unit eigenvector e 1,k and e 2,k And the corresponding lower and upper bounds of the prediction, constructing the rotated rectangular envelope E at prediction time k. k The target group prediction envelope is formed by combining the rotational rectangular envelope in the prediction time domain and its prediction time index. The target group prediction envelope is a group envelope that covers all retained prediction branches of all ground targets at prediction time k. A rotational rectangular envelope is not constructed separately for a single ground target.
6. The UAV multi-target active tracking method based on predicted envelope and altitude range according to claim 5, characterized in that: Step five, determining the minimum coverage height, includes: S51: Using the current horizontal position and horizontal speed of the UAV as initial values, generate N candidate horizontal trajectories. Each candidate horizontal trajectory satisfies the maximum horizontal speed, maximum horizontal acceleration, and flight area boundary constraints, where N is a preset positive integer. S52: For the candidate horizontal position r of the nth candidate horizontal trajectory at prediction time k n,k The envelope of the rotated rectangle E k All vertices and a predetermined number of equally spaced sampling points on each boundary segment form an envelope sampling point set, where n ≤ N; let the candidate height be z, and based on the candidate horizontal position r n,k The candidate altitude z is used to construct the candidate UAV pose based on the current synchronous UAV attitude. The envelope sampling point set is projected onto the image plane based on the camera intrinsic parameters of the fixed camera and the extrinsic parameters of the fixed camera relative to the UAV body. S53: Determine the minimum height from the preset height search range Z so that all projected points obtained in step S52 are within the safe field of view: (14); Among them, z cover,n,k Let be the minimum height of the coverage of the nth candidate horizontal trajectory at prediction time k; For fixed camera projection calculations; V safe A safe field of view is formed by pre-setting a safety margin for the image edge after shrinking the original image boundary inward; If the set on the right side of the above equation is empty, the corresponding nth candidate horizontal trajectory is marked as infeasible for coverage at prediction time k; when the nth candidate horizontal trajectory is marked as infeasible for coverage at any prediction time, the candidate horizontal trajectory is deleted, and the subsequent calculation of the highest resolution height, the calculation of the feasible imaging height interval, the propagation of the reachable height set, and the evaluation of the objective function for the candidate horizontal trajectory are not performed.
7. The UAV multi-target active tracking method based on predicted envelope and altitude range according to claim 6, characterized in that: In step five, the feasible imaging height range is determined according to the following steps: S54: For candidate horizontal position r n,k Given the candidate height z, calculate the predicted pixel size corresponding to the retained prediction branch m of ground target i. : (15); Among them, f y To fix the effective focal length of the camera in the vertical direction of the image; h i The preset physical height of ground target i; Z is the correction factor for the observation angle. i,m,k (r n,k ,z) is the prediction depth of the m-th prediction branch of ground target i relative to the optical axis of the fixed camera; where, when the prediction depth is positive, it indicates that the predicted target is located in front of the camera and can be imaged; S55: From the height search height Z, determine the maximum height that makes all retained prediction branches of all ground targets satisfy the preset minimum target pixel size: (16); Among them, z resolution,n,k h represents the highest resolution height. min Set the minimum target pixel size; S56: The intersection of the lowest coverage altitude, the highest resolution altitude, and the flight altitude boundary is determined as the feasible imaging altitude range. (17); Among them, I n,k Let be the imaging feasible height interval of the nth candidate horizontal trajectory at prediction time k; when the lower bound of the imaging feasible height interval is not greater than the upper bound of the interval, the imaging feasible height interval is a non-empty set, otherwise it is an empty set.
8. The UAV multi-target active tracking method based on predicted envelope and altitude range according to claim 7, characterized in that: Step five, determining the target horizontal trajectory and target height sequence, includes the following steps: S57: Let the current altitude of the drone be z0, and let the initial reachable altitude set of the nth candidate horizontal trajectory be preset as A. n,0 ={z0}; The reachable height set propagates based on the predicted time as follows: (18); Among them, A n,k Let A be the set of reachable heights of the nth candidate horizontal trajectory at prediction time k; min(A n,k-1 ) and max(A n,k-1 ) are the lower and upper bounds of the reachable height set at the previous prediction time, respectively; v down The preset maximum descent speed; v up The preset maximum climbing speed; The time interval between adjacent prediction times; S58: Delete candidate horizontal trajectories whose reachable height set is empty at the prediction time; for candidate horizontal trajectories whose reachable height set is not empty, backtrack from the last prediction time, satisfying the following conditions between adjacent prediction times. Under the given conditions, heights are selected from each set of reachable heights to form a candidate height sequence that satisfies the lifting motion constraints. During the selection process, the initial height of the nth candidate horizontal trajectory is defined as equal to the current height of the UAV; S59: Calculate the objective function for each candidate horizontal trajectory and its candidate height sequence: (19); Among them, J n Let N be the objective function value of the nth candidate horizontal trajectory; p For the number of prediction steps; r n,k Let z be the candidate horizontal position of the nth candidate horizontal trajectory at prediction time k; n,k Let z be the candidate height of the nth candidate horizontal trajectory at time k; mid,n,k For the feasible imaging height range I n,k The midpoint of λ; r , λ h and λ m These are the preset positive weighting coefficients for the horizontal motion term, the height change term, and the deviation from the midpoint of the interval term, respectively, and λ r +λ h +λ m =1; Represents the Euclidean norm; The candidate horizontal trajectory with the smallest objective function value is determined as the target horizontal trajectory, and the corresponding candidate height sequence is determined as the target height sequence.
9. The UAV multi-target active tracking method based on predicted envelope and altitude range according to claim 8, characterized in that: Step six specifically includes the following steps: S61: Maintain the current UAV pose, project the predicted envelope of the target group onto the safe field of view, and calculate the predicted pixel size of each ground target; determine the first prediction time t when either the envelope sampling point is located outside the safe field of view or the predicted pixel size is smaller than the preset minimum target pixel size. crit ; S62: Based on the UAV's current horizontal position r0, current horizontal velocity v0, and the target's horizontal position r at the critical prediction time... crit Maximum horizontal velocity v h,max and maximum horizontal acceleration a h,max Solve for the shortest horizontal maneuver time that satisfies the horizontal motion constraints: (20); Among them, T h For the shortest horizontal maneuver time; T sp Let be the candidate horizontal maneuver duration to be solved; r(t) is the function of horizontal position changing with time t; To perform first-order time derivative with respect to r(0); To perform second-order time differentiation with respect to r(t); inf denotes the infimation operation; S63: Based on the drone's current altitude z0 and current ascent / descent rate v z,0 The feasible imaging height range I corresponding to the critical prediction time crit Maximum climb rate v up Maximum descent speed v down and maximum acceleration a v,max Find the shortest lifting and lowering maneuvering time that satisfies the lifting and lowering motion constraints: (21); Among them, T v For the shortest lifting and maneuvering time; T sj Let be the candidate ascent / descent maneuver duration to be solved; z(t) is the function of flight altitude as a function of time t; To perform first-order time derivative with respect to z(0); To perform second-order time differentiation of z(t); S64: Determine the latest start time based on the critical prediction time, the shortest horizontal maneuver time, the shortest climb and fall maneuver time, the flight control response delay, and the control safety margin. (22); Among them, t start The latest start time; t response The response delay from sending a control input to the flight controller initiating the execution of that control input; t safety To control the safety margin; S65: The first joint position height control value is expressed as: ;in, The first joint position and height control variable is r1 and z1, which are the target horizontal position and target height corresponding to the first control moment of the current control cycle, respectively.
10. The UAV multi-target active tracking method based on predicted envelope and altitude range according to claim 9, characterized in that: It also includes step eight: when all candidate horizontal trajectories in step S58 have been deleted, the degradation strategy is initiated; specifically, it includes the following steps: S81: When all candidate horizontal trajectories in step S58 are deleted, the degradation strategy is entered; under the constraints of the flight area boundary and flight safety altitude, with the current UAV pose as the initial state, a set of degradation candidate UAV poses that satisfy the UAV position, velocity, and altitude constraints is sampled and generated: (23); in, Let L be the pose of the l-th candidate drone to be downgraded, and L be the number of candidate poses. S82: Calculate the effective coverage ratio of the target group prediction envelope, the proportion of ground targets that meet the preset minimum target pixel size, the UAV motion cost, and the continuous unobserved duration of each ground target under the pose of each downgraded candidate UAV. S83: Calculate the dynamic weight of ground target i based on its basic importance, duration of continuous unobservation, predicted covariance trace, motion cost of re-entering the field of view, and detection quality. (24); Among them, w i The dynamic weight of ground target i; w 0,i To preset the basic importance; L i The duration of continuous unobserved events; L max To pre-set a normalized upper limit for the duration of continuous unobserved events; Let be the predicted covariance of ground target i; tr represents the matrix trace operation; C i The motion cost for the pre-defined ground target i to re-enter the field of view; D i is the preset detection quality of ground target i; g is the preset normalization function mapped to the interval 0 to 1; , , and These are the preset non-negative weighting coefficients for the corresponding evaluation items; S84: For each candidate pose in the set of downgraded candidate UAV poses, determine the effective coverage and minimum target pixel size satisfaction of all ground targets under the corresponding candidate pose; using the dynamic weight of each ground target obtained in step S83 as a weighting coefficient, perform weighted summation on the effective coverage and pixel size satisfaction of all ground targets to obtain the weighted coverage ratio and weighted pixel size satisfaction ratio of the corresponding candidate pose; combine the UAV motion cost corresponding to the candidate pose to calculate the weighted evaluation value of the corresponding candidate pose; compare the weighted evaluation values of all downgraded candidate UAV poses, and determine the candidate pose corresponding to the largest weighted evaluation value as the downgraded target UAV pose; extract the target horizontal position and target height from the downgraded target UAV pose to form the first joint position and height control quantity of the current control cycle and send it to the flight controller; after obtaining the scene image of the next acquisition cycle, repeat steps one to six.
