A vision-based method for tracking unmanned vehicles by unmanned aerial vehicles

By employing a vision-based drone tracking method, which utilizes visual detection and deep learning to predict the trajectory of unmanned vehicles, and combines path search and trajectory optimization algorithms, the problem of drones losing track of unmanned vehicles and having unstable trajectories in extreme situations is solved, achieving safe, smooth, and real-time drone tracking results.

CN118736449BActive Publication Date: 2026-11-24ROBOTICS RESEARCH CENTER OF YUYAO CITY +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410883410.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2026-11-24
Estimated Expiration
2044-07-03

AI Technical Summary

Technical Problem

Existing methods for tracking unmanned vehicles using drones are prone to losing the target in extreme situations, and the safety and stability of the trajectory are difficult to guarantee, resulting in poor reliability of existing solutions.

Method used

A vision-based approach is adopted, using a monocular camera and the YOLOv8 object detection algorithm or AprilTag to detect the unmanned vehicle in real time. The motion trajectory is predicted by combining a deep learning Transformer model, the informed RRT* algorithm is used to search the path, and the trajectory is optimized by piecewise Bézier curves to ensure safety and smoothness.

Benefits of technology

It achieves obstacle avoidance and keeps the target within the detection range during the tracking of unmanned vehicles, with a safe and smooth trajectory, adaptability to various scenarios, fast computing speed, high real-time performance, and strong adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736449B_ABST
    Figure CN118736449B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of unmanned aerial vehicle (UAV) technology and discloses a vision-based method for UAV tracking of unmanned vehicles. First, by using YOLOv8 target detection technology or Apriltag technology, the UAV can accurately determine the position of the unmanned vehicle in real time. Next, based on a deep learning-based transformer architecture, the future trajectory of the unmanned vehicle can be predicted based on past motion data. The predicted information is input into a front-end path search module, which applies the informed RRT* algorithm to quickly generate an effective tracking path in complex environments. Then, a series of flight corridors are obtained by expanding the front-end path points. Finally, the UAV uses piecewise Bézier curves to optimize the path, generating a safe and dynamically feasible path within the series of flight corridors. The method used in this invention meets the needs of UAVs for efficient, accurate, and safe tracking of unmanned vehicles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of unmanned aerial vehicle (UAV) technology, and particularly relates to a vision-based method for tracking unmanned vehicles by UAVs. Background Technology

[0002] Over the past decade, drone technology has developed rapidly and is playing a role in various fields, such as logistics, environmental monitoring, and agricultural spraying. With the continuous improvement of onboard computer computing power and sensors, drones' target tracking capabilities have also been significantly enhanced. Drone tracking technology involves multiple aspects, including target detection, trajectory prediction, autonomous navigation, and motion control. Drone tracking of unmanned vehicles (UAVs) is a challenging problem, generally facing three main technical challenges: first, safety—drones should avoid collisions with surrounding obstacles and targets during tracking; second, visibility—drones should keep the UAV within sight, avoiding obstruction by obstacles; and third, smoothness—drones should maintain a smooth trajectory, avoiding blurring of the observed UAV's motion.

[0003] Currently, traditional methods for tracking unmanned vehicles (UAVs) not only struggle to guarantee the safety and stability of the trajectory, but also easily lead to target loss in extreme situations, such as sudden turns or accelerations / decelerations by the UAV, resulting in poor reliability of existing solutions. Significant gaps remain in the development of reliable UAV-based UAV tracking solutions. Summary of the Invention

[0004] The purpose of this invention is to provide a vision-based method for tracking unmanned vehicles by drones, in order to solve the aforementioned technical problems.

[0005] To address the aforementioned technical problems, the specific technical solution of the vision-based drone tracking unmanned vehicle method of the present invention is as follows:

[0006] A vision-based method for tracking unmanned vehicles using drones includes the following steps:

[0007] Step 1: Equip the drone with a monocular camera and use the YOLOv8 target detection algorithm or AprilTag to detect and locate the target drone in real time based on vision.

[0008] Step 2: Predict the trajectory of the target autonomous vehicle. After the autonomous vehicle is successfully identified and located, the trained deep learning Transformer model is used to predict the trajectory of the autonomous vehicle based on its historical trajectory.

[0009] Step 3: Global path search. Based on the current position of the target unmanned vehicle and the predicted future trajectory, the informed RRT* algorithm is used to build an exploratory random tree to effectively search for a path from the current position of the drone to the tracked target.

[0010] Step 4: Trajectory optimization. For the path generated in Step 3, an incremental expansion is performed at each discrete path point to construct a series of flight corridors. Then, within the flight corridors, a smooth, safe, and dynamically feasible path is generated using piecewise Bézier curves.

[0011] Furthermore, step 1 uses the lightest YOLOv8 algorithm, YOLOv8n, as the algorithm model. The YOLOv8 algorithm includes the following specific steps:

[0012] After obtaining the bounding box of the autonomous vehicle using YOLOv8, the width of the bounding box is w, the length is d, and the coordinates of the two diagonal points of the bounding box are [x1, y1] and [x2, y2].

[0013] w = y2 - y1

[0014]

[0015] Using camera intrinsics to determine the position of the autonomous vehicle's center of gravity:

[0016]

[0017] f x ,f y ,c x ,c y These represent the focal length of the camera along the x-axis, the focal length along the y-axis, the x-coordinate of the camera's principal point, and the y-coordinate of the camera's principal point, respectively.

[0018] Furthermore, the algorithm steps for using AprilTag to detect and locate target unmanned vehicles in real time are as follows: adaptive threshold segmentation; finding contours and using Union-find to find connected components; fitting straight lines to the contours and finding candidate convex quadrilaterals; decoding the quadrilaterals, recognizing Tag coordinate transformations, and converting to the world coordinate system.

[0019] When a tag appears in the scene, the gradient image of the scene image is first calculated; then, straight lines in the scene are extracted and square corner points are detected; then, the square regions of the protrusions and key corner points are obtained, and the square regions are homomorphically mapped to squares; the mapped squares are matched with the tag library to determine whether they are tags; then, based on the camera's imaging principle, the three-dimensional coordinates in the camera coordinate system are calculated according to the camera focal length and the size of the tag, thus determining the position of the tag.

[0020] Furthermore, the Transformer structure described in step 2 includes an encoder and a decoder. The encoder contains multiple multi-head attention modules and a fully connected layer network, while the decoder contains a multi-head attention module and a feedforward neural network. Residual connections are used between the modules, and normalization is performed. The model training uses the smooth-L1 loss function.

[0021]

[0022] In the formula y i It is the true value, f(x) i ) represents the predicted value, and n represents the number of predicted locations. The autonomous vehicle will be able to locate the target location in the future (T). p N predicted positions within a time period Represented as:

[0023]

[0024] Furthermore, step 3 uses a greedy method to decouple the problem into a multi-objective path search problem, where each predicted position z... n Define an unobstructed region Φ x Φ n It is set as the destination for the nth path search problem. Further, the informed RRT* algorithm flow described in step 3 is as follows:

[0025] Step 3.1 Initialize the random tree: Select an initial node in the state space as the root node of the tree; Step 3.2 Define an elliptical sampling region, with the foci of the region being the start and end points, and the major axis 'a' equal to half the initial path length, i.e.:

[0026] a = c_best / 2

[0027] Where c_best is the initial path length, and the minor axis b and focal length c are calculated based on the properties of an ellipse:

[0028] a 2 =b 2 +c 2

[0029] Step 3.3 Elliptical Sampling: Sampling is performed within the defined elliptical sampling area to obtain a random point x_rand;

[0030] Step 3.4 Find the nearest neighbor node: Find the node x_near that is closest to x_rand in the tree:

[0031] x near =argmin(dist(x) rand ,x))

[0032] dist uses Euclidean distance;

[0033] Step 3.5 Expand the tree: Starting from x_near and ending at x_rand, generate a new node sequence along the path from x_near to x_rand. During the process of adding new nodes, calculate the cost of each node and update the parent node and cost of the node.

[0034] Step 3.6 Find a feasible path: If a new node x_new is added to tree T, check if the path from the starting point to x_new is feasible. If it is feasible, check if a path from the starting point to the target point has been found. If a feasible path is found, the algorithm may enter the optimization phase or terminate. Step 3.7 Optimize the path: Optimize tree T by reconnecting nodes and pruning useless branches to reduce the cost of the path. If a shorter path is found in a later iteration, update the value of c_best and recalculate the size and shape of the elliptic sampling region.

[0035] Step 3.8 Repeat: Repeat steps 3.2 to 3.7 until a feasible path is found or the specified number of iterations is reached;

[0036] If a feasible path is found, the path is obtained by backtracking from the endpoint back to the starting point along the tree structure; otherwise, the output is "No feasible path found".

[0037] Furthermore, in step 4, based on the series of discrete position points sampled in step 3, a small polygon is generated for each discrete point along the velocity direction, and then expanded along the surrounding area to obtain a collision-free convex polygonal flight corridor.

[0038] The entire trajectory is represented by piecewise Bézier curves:

[0039]

[0040] Where σ is the dimension of the Bézier curve, Let t0, t1, ..., tj be the i-th control point in segment j. n These are the timestamps for the start and end points.

[0041] A scaling factor α is introduced for each segment based on its duration. j ;

[0042] A piecewise Bézier curve of order 5 (m=5) is used as the trajectory parameterization, and the k-th derivative of the Bézier curve passes through control points. Represented as:

[0043]

[0044] The tracking question should be expressed in the following form:

[0045]

[0046] The first line represents the objective function for optimization, which is to minimize jerk loss and minimize time. ρ is an adjustable time weight parameter. The first constraint represents the initial and final positions of the trajectory; the second constraint represents the maximum velocity and acceleration constraints; the third constraint represents the flight corridor constraint, ensuring that the generated trajectory can avoid obstacles; the fourth constraint is the visibility area constraint, ensuring that there is a visible area for each target prediction point, guaranteeing that the tracking UAV can detect the target UAV in real time; the fifth constraint is the distance constraint between the UAV and the target UAV, requiring a certain distance between the UAV and the target UAV in both the horizontal and vertical directions; the sixth constraint is that the duration of the output trajectory is greater than or equal to the duration of the target predicted trajectory. These constraints are softened and added to the objective function. The algorithm then uses gradient descent and L-BFGS to solve the problem. The L-BFGS algorithm uses the curvature information from the first m iterations to approximate the update of the Hessian matrix or its inverse matrix.

[0047] The change s of the independent variable x in two separate instances:

[0048] s i =x i+1 -x i

[0049] Gradient change y between two iterations:

[0050]

[0051] L-BFGS update formula:

[0052]

[0053] In the formula H k+1 V is an approximation of the Hessian matrix or its inverse matrix for the (k+1)th iteration. i For the sake of s i and y i The resulting matrix is ​​used for updating the approximate Hessian matrix or its inverse. The initial Hessian matrix or its inverse is an approximation, usually taken as the identity matrix or a diagonal matrix, ρ k This is a positive number used to adjust the accuracy of the approximation; its value is usually 1. S k For the sake of s k-m , ..., s k-1 The matrix formed.

[0054] The vision-based method for tracking unmanned vehicles by drones according to the present invention has the following advantages:

[0055] (1) The method used in this invention allows the drone to avoid obstacles while maintaining a certain distance from the target drone during the tracking process, thus ensuring the safety of the tracking process.

[0056] (2) The method used in this invention is highly flexible. The drone will update its trajectory in a timely manner according to the trajectory trend of the target unmanned vehicle, ensuring that the target unmanned vehicle does not leave the detection range of the drone.

[0057] (3) The method used in this invention is highly efficient. After detecting the vehicle's position, it does not process a large amount of point cloud data, but instead treats the vehicle as a point mass for prediction and trajectory generation. At the same time, it uses fast path search and trajectory optimization algorithms, which are fast and ensure the real-time generation of UAV trajectory.

[0058] (4) The method used in this invention is applicable to a wide range of scenarios. Whether in open spaces or complex scenarios with many obstacles, the drone can effectively track unmanned vehicles in real time. Attached Figure Description

[0059] Figure 1 This is the overall flowchart of drone tracking unmanned vehicles.

[0060] Figure 2 This is a Yolov8 network diagram.

[0061] Figure 3 This is a comparison chart of the proposed solutions.

[0062] Figure 4 This is a diagram of the Transformer architecture.

[0063] Figure 5 This is a flowchart of drone motion planning.

[0064] Figure 6 This is a schematic diagram of the Informed RRT* algorithm.

[0065] Figure 7 This is a schematic diagram of Example 1.

[0066] Figure 8 This is a schematic diagram of Example 2. Detailed Implementation

[0067] To better understand the purpose, structure, and function of this invention, the following detailed description of a vision-based method for tracking unmanned vehicles using drones, in conjunction with the accompanying drawings, is provided.

[0068] like Figure 1 As shown, the present invention provides a vision-based method for tracking unmanned vehicles using drones, comprising the following steps:

[0069] Step 1: Equip the drone with a monocular camera to acquire visual information about the target object. Based on this vision, use the YOLOv8 target detection algorithm or AprilTag to detect and locate the target drone in real time.

[0070] like Figure 2 As shown, the lightest version of YOLOv8, YOLOv8n, is used as the algorithm model. The YOLOv8 algorithm includes the following specific steps:

[0071] After obtaining the detection box of the autonomous vehicle using YOLOv8, the width of the target detection box is w, the length is d, and the coordinates of the two diagonal points of the target detection box are [x1, y1] and [x2, y2].

[0072] w = y2 - y1

[0073]

[0074] Using camera intrinsics to determine the position of the autonomous vehicle's center of gravity:

[0075]

[0076] f x ,f y ,c x ,c y These represent the focal length of the camera along the x-axis, the focal length along the y-axis, the x-coordinate of the camera's principal point, and the y-coordinate of the camera's principal point, respectively.

[0077] The present invention compares the target representation scheme using point masses with common point cloud schemes for sensing the entire vehicle. Figure 3 As shown, since the trajectory is predicted, the mass of the moving object can be known and predicted in advance. Therefore, it is not dependent on the point cloud and the mass can be used to replace the point cloud, which greatly reduces the calculation and increases the stability of the judgment.

[0078] To achieve real-time detection and localization of the target unmanned vehicle, this embodiment equips the drone with a monocular camera to acquire visual information about the target object. The AprilTag identification system is used to quickly identify and locate the target unmanned vehicle, thereby enabling the monitoring and tracking of the target vehicle. The algorithm steps are as follows: adaptive threshold segmentation; contour finding, using Union-find to find connected components; line fitting of the contour to find candidate convex quadrilaterals; decoding the quadrilaterals, recognizing Tag coordinate transformations, and converting to the world coordinate system; rapid decoding and accurate localization.

[0079] When a tag appears in the scene, the gradient image of the scene image is first calculated; then, straight lines in the scene are extracted, and square corner points are detected; then, the square regions with protrusions and key corner points are obtained, and the square regions are homomorphically mapped to squares; the mapped squares are matched with the tag library to determine whether they are tags; then, based on the camera's imaging principle, the three-dimensional coordinates in the camera coordinate system are calculated based on the camera's focal length and the size of the tag (OpenMV will generate a three-dimensional coordinate system with itself as the origin), thus determining the position of the tag.

[0080] Step 2: Predict the trajectory of the target autonomous vehicle. After the autonomous vehicle is successfully identified and located, the trained deep learning Transformer model is used to predict the trajectory of the autonomous vehicle based on its historical trajectory.

[0081] like Figure 4 As shown, since the trajectory is predicted, the mass of the moving object can be known and predicted in advance. Therefore, it is possible to replace the point cloud with the mass, which greatly reduces the computing power and increases the stability of the judgment.

[0082] The Transformer architecture mainly consists of two parts: an encoder and a decoder. The encoder contains multiple multi-head attention modules and a fully connected layer network, while the decoder contains multi-head attention modules and a feedforward neural network. Residual connections are used between the modules, and normalization is performed.

[0083] The model training uses the smooth-L1 loss function:

[0084]

[0085] In the formula y i It is the true value, f(x) i ) represents the predicted value, and n represents the number of predicted locations. The autonomous vehicle will be able to locate the target location in the future (T). p N predicted positions within a time period Represented as:

[0086]

[0087] Step 3: Global path search, based on the target autonomous vehicle's current position and predicted future trajectory, such as... Figure 5 As shown, the informed RRT* algorithm is used. An exploratory random tree is built to efficiently search for a path from the drone's current position to the tracked target.

[0088] Using a greedy method, the problem is decoupled into a multi-objective path search problem, where each predicted position z... n Define an unobstructed region Φ n Φn It is set as the destination for the nth path search problem.

[0089] like Figure 6 As shown, the global path search informed RRT* algorithm flow is as follows:

[0090] Step 3.1 Initialize the random tree: Select an initial node in the state space as the root node of the tree.

[0091] Step 3.2 Define an elliptical sampling region, with the foci of the region being the start and end points, and the major axis 'a' equal to half the initial path length, i.e.:

[0092] a = c_best / 2

[0093] Where c_best is the initial path length. The minor axis b and focal length c are calculated based on the properties of an ellipse.

[0094] a 2 =b 2 +c 2

[0095] Step 3.3 Elliptical Sampling: Sampling is performed within the defined elliptical sampling area to obtain a random point x_rand.

[0096] Step 3.4 Find the nearest neighbor node: Find the node x_near that is closest to x_rand in the tree.

[0097] X near =argmin(dist(x) ra n d ,x))

[0098] dist uses Euclidean distance.

[0099] Step 3.5 Expand the tree: Starting from x_near and ending at x_rand, generate a new sequence of nodes along the path from x_near to x_rand. During the process of adding new nodes, calculate the cost of each node and update the parent node and cost of each node.

[0100] Step 3.6 Find a feasible path: If a new node x_new is added to tree T, check if a path from the starting point to x_new is feasible. If feasible, check if a path from the starting point to the target node has been found. If a feasible path is found, the algorithm may enter the optimization phase or terminate.

[0101] Step 3.7 Path Optimization: Optimize tree T by reconnecting nodes and pruning unnecessary branches to reduce path cost. If a shorter path is found in a later iteration, update the value of c_best and recalculate the size and shape of the elliptic sampling region.

[0102] Step 3.8 Repeat: Repeat steps 3.2 to 3.7 until a feasible path is found or the specified number of iterations is reached.

[0103] If a feasible path is found, the path is obtained by backtracking from the endpoint back to the starting point along the tree structure. Otherwise, the output is "No feasible path found".

[0104] Step 4: Trajectory optimization. For the path generated in Step 3, an incremental expansion is performed at each discrete path point to construct a series of flight corridors. Then, within the flight corridors, a smooth, safe, and dynamically feasible path is generated using piecewise Bézier curves.

[0105] Based on a series of discrete position points obtained from sampling in step 3, a small polygon is generated for each discrete point along the velocity direction, and then expanded along the surrounding area to obtain a collision-free convex polygon flight corridor.

[0106] The entire trajectory is represented by piecewise Bézier curves:

[0107]

[0108] Where σ is the dimension of the Bézier curve, Let t0, t1, ..., tj be the i-th control point in segment j. n These are the timestamps of the start and end points. Since the Bézier curve is defined on a fixed interval [0,1], and the duration of each segment's trajectory may vary, we introduce a scaling factor α for each segment based on its duration. j .

[0109] A piecewise Bézier curve of order 5 (m=5) is used as the trajectory parameterization. The k-th derivative of the Bézier curve can be obtained through control points. Represented as:

[0110]

[0111] The tracking question should be expressed in the following form:

[0112]

[0113] The first line represents the objective function for optimization, which is to minimize the jerk loss and minimize the time, where ρ is an adjustable time weight parameter. The first constraint represents the initial and final positions of the trajectory; the second constraint represents the constraints on maximum velocity and acceleration; the third constraint represents the flight corridor constraint, ensuring that the generated trajectory avoids obstacles; the fourth constraint is the visibility area constraint, ensuring that there is a visible area for each target prediction point, guaranteeing that the tracking UAV can detect the target unmanned vehicle in real time; the fifth constraint is the distance constraint between the UAV and the target unmanned vehicle, requiring a certain distance between the UAV and the target unmanned vehicle in both the horizontal and vertical directions; the sixth constraint is that the duration of the output trajectory is greater than or equal to the duration of the target predicted trajectory.

[0114] The constraints are softened and added to the objective function, and then solved using L-BFGS with the help of gradients. The L-BFGS algorithm uses the curvature information from the first m iterations to approximate the update of the Hessian matrix or its inverse.

[0115] The change s of the independent variable x in two separate instances:

[0116] s i =x i+1 -x i

[0117] Gradient change y between two iterations:

[0118]

[0119] L-BFGS update formula:

[0120]

[0121] In the formula H k+1 V is an approximation of the Hessian matrix or its inverse matrix for the (k+1)th iteration. i For the sake of s i and y i The resulting matrix is ​​used for updating the approximate Hessian matrix or its inverse. The initial Hessian matrix or its inverse is an approximation, usually taken as the identity matrix or a diagonal matrix, ρ k This is a positive number used to adjust the accuracy of the approximation; its value is usually 1. S k For the sake of s k-m , ..., s k-1 The matrix formed.

[0122] Example 1: As Figure 7As shown, in an urban delivery scenario, unmanned vehicles are responsible for transporting goods from one location to another on city streets. Drones track and monitor the unmanned vehicles to ensure the smooth operation of the delivery tasks. During the tracking process, the drone may encounter obstacles such as tall buildings or tree branches. Using the method of this invention, the drone can effectively track and monitor the delivery unmanned vehicles, and can also promptly track the unmanned vehicles even in situations such as sudden turns or acceleration / deceleration.

[0123] Example 2: As Figure 8 As shown, in some shooting scenarios, unmanned vehicles travel in open outdoor areas, and drones equipped with high-definition cameras track and film the vehicles. The drones must ensure they can capture high-quality video and images during the tracking process. Using the method of this invention, the drone's vision-based tracking of the unmanned vehicle ensures a safe and smooth trajectory, effectively guaranteeing the high-quality requirements for the captured video and images.

[0124] It is understood that the present invention has been described through some embodiments, and those skilled in the art will recognize that various changes or equivalent substitutions can be made to these features and embodiments without departing from the spirit and scope of the invention. Furthermore, under the teachings of the present invention, these features and embodiments can be modified to adapt to specific situations and materials without departing from the spirit and scope of the invention. Therefore, the present invention is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the protection scope of the present invention.

Claims

1. A vision-based method for tracking unmanned vehicles using drones, characterized in that, Includes the following steps: Step 1: The drone is equipped with a monocular camera. Based on vision, the YOLOv8 target detection algorithm is used to detect and locate the target unmanned vehicle in real time; the vehicle is treated as a point mass for prediction. The YOLOv8 algorithm includes the following specific steps: After obtaining the bounding box of the autonomous vehicle using YOLOv8, the bounding box has a width of w and a length of d, and the coordinates of its two diagonal points are... , , Using camera intrinsic parameters to determine the position of the autonomous vehicle's center of gravity: These represent the focal length of the camera along the x-axis, the focal length along the y-axis, the x-coordinate of the camera's principal point, and the y-coordinate of the camera's principal point, respectively. Step 2: Predict the trajectory of the target autonomous vehicle. After the autonomous vehicle is successfully identified and located, the trained deep learning Transformer model is used to predict the trajectory of the autonomous vehicle based on its historical trajectory. Step 3: Global path search. Based on the current position of the target unmanned vehicle and the predicted future trajectory, the informed RRT* algorithm is used to build an exploratory random tree to effectively search for a path from the current position of the drone to the tracked target. Step 4: Trajectory optimization. For the path generated in Step 3, an incremental expansion is performed at each discrete path point to construct a series of flight corridors. Then, within the flight corridors, a smooth, safe, and dynamically feasible path is generated using piecewise Bézier curves. Step 4, based on the series of discrete position points sampled in step 3, generates a small polygon along the velocity direction for each discrete point, and then expands it around the perimeter to obtain a collision-free convex polygonal flight corridor. The tracking question should be expressed in the following form: The first line represents the objective function for optimization, which is expressed as minimizing acceleration loss and minimizing time. The time weight parameter is adjustable. The first constraint represents the initial and final positions of the trajectory; the second constraint represents the maximum velocity and acceleration; the third constraint is the flight corridor constraint, ensuring that the generated trajectory can avoid obstacles; the fourth constraint is the visibility area constraint, ensuring that there is a visible area for each target prediction point, ensuring that the tracking UAV can detect the target UAV in real time; the fifth constraint is the distance constraint between the UAV and the target UAV, requiring a certain distance between the UAV and the target UAV in both the horizontal and vertical directions; the sixth constraint is that the duration of the output trajectory is greater than or equal to the duration of the target predicted trajectory. These constraints are softened and added to the objective function, and then solved using L-BFGS with gradient descent. The L-BFGS algorithm uses the curvature information from the first m iterations to approximate the update of the Hessian matrix or its inverse matrix. The change s of the independent variable x in two separate instances: Gradient change y between two iterations: L-BFGS update formula: In the formula This is an approximation of the Hessian matrix or its inverse matrix for the (k+1)th iteration. For the reason and The resulting matrix is ​​used for updating the approximate Hessian matrix or its inverse. For an approximation of the initial Hessian matrix or its inverse, take it as the identity matrix or a diagonal matrix. This is a positive number used to adjust the accuracy of the approximation; its value is... , For the reason The matrix formed.

2. The vision-based method for tracking unmanned vehicles using drones according to claim 1, characterized in that, Step 2 describes the Transformer structure, which includes an encoder and a decoder. The encoder comprises multiple multi-head attention modules and a fully connected layer network, while the decoder comprises a multi-head attention module and a feedforward neural network. Residual connections are used between the modules, and normalization processing is performed. The model training uses the smooth-L1 loss function: In the formula It is the actual value. Here, n represents the predicted value, and n is the number of predicted locations. The autonomous vehicle will be in the future... The corresponding time period Predicted locations Represented as: 。 3. The vision-based method for tracking unmanned vehicles using drones according to claim 1, characterized in that, Step 3 uses a greedy method to decouple the problem into a multi-objective path search problem, where each predicted position... Define an unobstructed area , It is set as the destination for the nth path search problem.

4. The vision-based method for tracking unmanned vehicles using drones according to claim 1, characterized in that, The flow of the informed RRT* algorithm described in step 3 is as follows: Step 3.1 Initialize the random tree: Select an initial node in the state space as the root node of the tree; Step 3.2 Define an elliptical sampling region, with the foci of the region being the start and end points, and the major axis 'a' equal to half the initial path length, i.e.: Where c_best is the initial path length, and the minor axis b and focal length c are calculated based on the properties of an ellipse: Step 3.3 Elliptical Sampling: Sampling is performed within the defined elliptical sampling area to obtain a random point x_rand; Step 3.4 Find the nearest neighbor node: Find the node x_near that is closest to x_rand in the tree: dist uses Euclidean distance; Step 3.5 Expand the tree: Starting from x_near and ending at x_rand, generate a new node sequence along the path from x_near to x_rand. During the process of adding new nodes, calculate the cost of each node and update the parent node and cost of the node. Step 3.6 Find a feasible path: If a new node x_new is added to tree T, check if the path from the starting point to x_new is feasible. If it is feasible, check if a path from the starting point to the target point has been found. If a feasible path is found, the algorithm may enter the optimization stage or end. Step 3.7 Optimize the path: Optimize the tree T by reconnecting nodes and pruning useless branches to reduce the cost of the path. If a shorter path is found in a later iteration, update the value of c_best and recalculate the size and shape of the elliptical sampling region. Step 3.8 Repeat: Repeat steps 3.2 to 3.7 until a feasible path is found or the specified number of iterations is reached; If a feasible path is found, the path is obtained by backtracking from the endpoint back to the starting point along the tree structure; otherwise, the output is "No feasible path found".

5. The vision-based method for tracking unmanned vehicles using drones according to claim 1, characterized in that, The entire trajectory is represented by piecewise Bézier curves: in Let Bézier curve be the dimension. This represents the i-th control point in segment j. These are the timestamps for the start and end points. A scaling factor is introduced for each segment based on its duration. ; A piecewise Bézier curve of order 5, m=5, is used as the trajectory parameter. The k-th derivative of the Bézier curve passes through control points. Represented as: 。

Citation Information

Patent Citations

  • Unmanned aerial vehicle trajectory generation method based on flight corridor and Bezier curve

    CN112068588A

  • Track generation method of elastic target tracking for ensuring visibility of unmanned aerial vehicle

    CN114740882A