Unmanned aerial vehicle shielding target active tracking method based on deep reinforcement learning
By using a method based on deep reinforcement learning and using 3D target detection and reinforcement learning algorithms, the problem of large computational complexity and poor robustness when UAVs track occluded targets in complex environments is solved, and high-precision and reliable occluded target tracking is achieved. Simplifies system design.
Patent Information
- Application Number
- CN202410830817.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-26
AI Technical Summary
In complex environments, UAVs have problems such as heavy calculation, reliance on manual features, and poor robustness when tracking occluded targets, resulting in low tracking accuracy and reliability.
Using a method based on deep reinforcement learning, through 3D target detection and reinforcement learning decision-making algorithms, the drone model is trained to autonomously avoid obstacles, and the KITTI data set is used for data enhancement to construct a state space, action space and reward function, combined with convolution Neural networks and fully connected neural networks perform image feature extraction and action planning.
It achieves high-precision and reliable occlusion target tracking for UAVs in complex environments, reduces the dependence on manual feature engineering, and improves the simplicity and tracking accuracy of the system.
Smart Images

Figure CN118710683A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of unmanned aerial vehicles, and in particular relates to a method for actively tracking an occluded target of an unmanned aerial vehicle based on deep reinforcement learning. Background Art
[0002] At present, drones have been widely used in various fields such as security monitoring, search and rescue, and environmental monitoring. In these application scenarios, drones often need to continuously track and monitor targets to provide timely and accurate data support. However, due to the complexity of the environment, targets are often blocked by buildings, trees, and other flying objects, which poses a great challenge to the active target tracking of drones. The traditional method uses SLAM technology to complete scene mapping first, and then relies on manual features for decision planning. This has high requirements for onboard hardware and poor real-time performance. In addition, it is possible that the active tracking of blocked targets cannot be performed perfectly due to the limitations of manual design. Summary of the invention
[0003] In order to overcome the shortcomings of the prior art, the present invention provides a method for actively tracking obscured targets of unmanned aerial vehicles based on deep reinforcement learning. 3D target detection technology is used to complete the detection and solution of target position information. At the same time, a reinforcement learning decision algorithm is used to perform action planning for the current state of the unmanned aerial vehicle in real time, so that the unmanned aerial vehicle can identify and track the target while autonomously avoiding obstacles, and after the target disappears for a short time, a suitable path can be planned according to the position and state of the target before disappearance so that the sensor can capture the target again.
[0004] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0005] Step 1: Perform data enhancement on the KITTI dataset and use the enhanced dataset to train the target detection module in the drone tracking model through the 3D target detection algorithm;
[0006] Step 2: Calculate the target position information and obtain the relative status information between the drone and the target;
[0007] Step 3: Build a reinforcement learning model and design the state space, action space, and reward function of reinforcement learning according to task requirements;
[0008] Step 4: Build a model feature extraction neural network, use convolutional neural network and fully connected neural network to complete the extraction of image features, and splice the image features with the relative state information of the drone and the target;
[0009] Step 5: Build a drone active tracking model based on the reinforcement learning algorithm and train the model;
[0010] Step 6: Build a simulation scenario and test and verify the model.
[0011] Further, the step 3 is specifically as follows:
[0012] Step 3-1: State space design requires the design of a model feature extraction neural network. Four consecutive frames of 112×112 depth images are expanded and concatenated into 800-dimensional vectors through a convolutional neural network to form image feature information. Four consecutive frames of 112×112 depth images are input, that is, the first layer inputs the image of [112,112,4], passes through the convolution kernel of [3,16,8,8], and the stride is 4 to generate an image of [27,27,16]. The second layer inputs the image of [27,27,16], passes through the convolution kernel of [16,32,4,4], and the stride is 2, and the integer is obtained. The third layer inputs the image of [12,12,32], passes through the convolution kernel of [32,64,3,3], with a stride of 2, and rounds to get the image of [5,5,64]. The fourth layer inputs the image of [5,5,64], passes through the convolution kernel of [64,32,1,1], with a stride of 1, and outputs the image of [5,5,32]. The relative state information between the drone and the target is concatenated with the image feature information to form the model feature information, which is further abstracted through a 3-layer fully connected neural network. The relative state information includes: the relative distance information between the aircraft and the target (p x ,p y ,p z ), the aircraft's own speed information (v x ,v y ,v z ), the aircraft's heading angle θ, and the angle ω between the aircraft and the target; the number of outputs of the 3-layer fully connected network is: 512->256->128;
[0013] Step 3-2: Design of action space To enable the drone to avoid obstacles correctly, it is necessary to ensure that the direction of the front camera is consistent with the aircraft speed when the drone performs actions; design the action space as a discrete action space, set the decision frequency of the drone, that is, the frequency of executing actions, to 10Hz, limit the speed of the drone to [-1.5m / s, 1.5m / s], and design the action space based on the drone's body coordinate system;
[0014] Step 3-3: The reward function is designed as follows:
[0015]
[0016] Where d is the distance between the UAV and the target in the xy plane, (x uav ,y uav ,z uav ) is the absolute position of the drone, (xtarget ,y target , z target ) is the absolute position of the target, (v x,uav ,v y,uav ,v z,uav ) is the absolute speed of the UAV; ω is the angle between the front of the UAV and the target.
[0017] Furthermore, the training process in step 5 is as follows:
[0018] The drone perceives the environment from the sensor as state information, makes decisions through the reinforcement learning neural network, and finally outputs action instructions to control the drone's actions. In this process, the intelligent agent obtains information about the environment and target from the sensor, and uses the reward function of the reinforcement learning model to judge the quality of the environment and target information and obtain corresponding rewards. The intelligent agent then selects the next action to be performed through the reinforcement learning neural network. After the next action is executed, the corresponding environment and target information will also be updated, thus forming a learning cycle.
[0019] The beneficial effects of the present invention are as follows:
[0020] While coping with complex environments, the method of the present invention reduces the reliance on manual feature engineering, so that the UAV can identify and track the target while autonomously avoiding obstacles, and after the target disappears for a short time, the method can plan a suitable path based on the position and state of the target before disappearance so that the sensor can capture the target again. This is of great significance for simplifying the UAV system and realizing active target tracking tasks in a more intelligent way. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a schematic diagram of the process of the present invention;
[0022] Figure 2 This is a flow chart of CNN image feature extraction of the present invention;
[0023] Figure 3 This is a schematic diagram of the entire process of network feature extraction in the present invention;
[0024] Figure 4 It is a schematic diagram of the whole process of reinforcement learning of the present invention. DETAILED DESCRIPTION
[0025] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0026] In the fields of security monitoring, search and rescue, environmental monitoring, etc., drones are required to track targets for a long time. During the tracking process, the target is often obscured. Traditional methods generally have problems such as excessive computational complexity, reliance on manual features, poor robustness, and difficulty in applying to different types of complex scenes. There are situations where the target is lost or out of view. Therefore, the low accuracy and reliability of drones' active tracking of obscured targets is a key problem that urgently needs to be solved. The above problems are solved by the method of the present invention. The method of the present invention has the characteristics of high accuracy, strong reliability, and a more streamlined system. It can adapt to scenes such as occlusion and continuous target movement, and can achieve long-term active tracking of targets.
[0027] In order to effectively improve the continuous tracking capability of drones for targets, the present invention proposes an end-to-end active tracking method for occluded targets based on deep reinforcement learning, which improves the continuous tracking reliability and tracking accuracy of the model.
[0028] The technical method solution of the present invention comprises the following steps:
[0029] Step 1: Perform data enhancement on the KITTI dataset, and use the enhanced dataset to train the target detection module in the drone tracking model through the 3D target detection algorithm.
[0030] Step 2: Calculate the target position information and obtain the relative status information between the drone and the target.
[0031] Step 3: Build a reinforcement learning model and design the state space, action space, and reward function of reinforcement learning according to task requirements.
[0032] Step 4: Build a model feature extraction neural network, use convolutional neural network and fully connected neural network to complete the extraction of image features, and splice the image features with the relative state information of the drone and the target.
[0033] Step 5: Build a drone active tracking model based on the reinforcement learning algorithm and train the model.
[0034] Step 6: Build a simulation scenario and test and verify the model.
[0035] Example:
[0036] Figure 1 The present invention relates to a full process of a method for actively tracking obscured targets of unmanned aerial vehicles based on deep reinforcement learning.
[0037] First, a 3D target detection algorithm is used to complete the perception and positioning of the target. After the target is successfully detected, the target position information is settled. If occlusion or other conditions cause the detection to fail, the Kalman filter algorithm is used to predict the position of the occluded target, thus constructing the "perception" layer of the present invention.
[0038] Then, according to the requirements of this task, design the state space, action space, and reward function to complete the construction of the reinforcement learning model.
[0039] The design of the state space requires the design of a model feature extraction neural network. Four consecutive frames of 112×112 depth images are expanded and spliced into 800-dimensional vectors through a convolutional neural network to form image feature information. The specific process of image feature extraction is as follows: Figure 2 As shown, four consecutive frames of 112×112 depth images are input, that is, the first layer inputs the image [112,112,4], passes through the convolution kernel [3,16,8,8], and the stride is 4, generating the image [27,27,16]; the second layer inputs the image [27,27,16], passes through the convolution kernel [16,32,4,4], and the stride is 2, and the image [12,12,32] is rounded; the third layer inputs the image [12,12,32], passes through the convolution kernel [32,64,3,3], and the stride is 2, and the image [5,5,64] is rounded; the fourth layer inputs the image [5,5,64], passes through the convolution kernel [64,32,1,1], and the stride is 1, and the image [5,5,32] is output. For example Figure 3 As shown in Figure 1, the relative state information between the drone and the target is combined with the image feature information to form model feature information, which is then further abstracted through a three-layer fully connected neural network. The relative state information includes: the relative distance information between the aircraft and the target (p x ,p y ,p z ), the aircraft's own speed information (v x ,v y ,v z ), the aircraft’s heading angle θ, and the angle ω between the aircraft and the target; the number of outputs of the 3-layer fully connected network is: 512->256->128.
[0040] The design of the action space requires that the drone can correctly avoid obstacles. It is necessary to ensure that the direction of the front-view camera is consistent with the speed of the aircraft when the drone performs the action. In the early stage of reinforcement learning training, the output action has a very large randomness. If the action space is designed as a continuous action space, it will lead to frequent U-turns and jitters in the early stage of training, making the drone more likely to jitter or collide with obstacles, greatly increasing the difficulty of training. Therefore, the action space is designed as a discrete action space. According to the design experience of the reinforcement learning model, the decision frequency of the drone, that is, the frequency of executing actions, is set to 10Hz, the speed of the drone is limited to [-1.5m / s, 1.5m / s], and the action space is designed based on the drone's body coordinate system (the x-axis represents forward and backward movement, the y-axis represents left and right movement, and the z-axis represents up and down movement), as shown in Table 1:
[0041] Table 1
[0042]
[0043] The design of the reward function is as follows: The reward function is the key to whether the drone can complete the active target tracking task. The reward and punishment scheme needs to be designed according to the task requirements. The following are the task requirements of this task and the corresponding reward and punishment strategies:
[0044] 1) Collisions with obstacles will not be tolerated and will be penalized.
[0045] 2) If the target is still not tracked after exceeding the sampling steps, it means that the drone has entered a "confused" state and will also be penalized.
[0046] 3) In order to motivate the drone to complete the tracking of the target as quickly as possible and balance the relationship between obstacle avoidance and high-speed flight, the distance and speed of the target drone will be combined to give a suitable ratio as a reward or penalty.
[0047] 4) When the distance between the drone and the target is within the set range, it means that the drone has tracked the target and gives the maximum reward.
[0048] Combined with the above analysis, the reward function is designed as follows:
[0049]
[0050] Where d is the distance between the UAV and the target in the xy plane, (x uav ,y uav ,z uav ) is the absolute position of the drone, (x target ,y target , z target ) is the absolute position of the target, (v x,uav ,v y,uav,v z,uav ) is the absolute speed of the UAV. ω is the angle between the front of the UAV and the target.
[0051] Then, a reinforcement learning algorithm is used to construct an active tracking model for the UAV, completing the construction of the "decision-making" layer of the present invention.
[0052] The "perception" and "decision-making" layers of the present invention are then combined to form an end-to-end UAV occluded target active tracking method based on deep reinforcement learning.
[0053] Finally, press Figure 4 The process shown in the figure is used for training, and the test and performance evaluation are carried out in the simulation environment. The specific process is as follows: the information of the environment perceived by the drone from the sensor is used as the state information, and the decision is made through the reinforcement learning neural network, and finally the action command is output to control the action of the drone. In this process, the intelligent agent obtains the information of the environment and the target from the sensor, and judges the quality of the environment and target information through the reward function of the reinforcement learning model and obtains the corresponding reward. Then the intelligent agent selects the next action to be executed through the reinforcement learning neural network. After the next action is executed, the corresponding environment and target information will also be updated, thus forming a learning cycle.
Claims
1. A method for actively tracking obscured targets of unmanned aerial vehicles based on deep reinforcement learning, characterized in that: The steps include: Step 1: Perform data enhancement on the KITTI dataset and use the enhanced dataset to train the target detection module in the drone tracking model through the 3D target detection algorithm; Step 2: Calculate the target position information and obtain the relative status information between the drone and the target; Step 3: Build a reinforcement learning model and design the state space, action space, and reward function of reinforcement learning according to task requirements; Step 4: Build a model feature extraction neural network, use convolutional neural network and fully connected neural network to complete the extraction of image features, and splice the image features with the relative state information of the drone and the target; Step 5: Build a drone active tracking model based on the reinforcement learning algorithm and train the model; Step 6: Build a simulation scenario and test and verify the model.
2. According to claim 1, a method for actively tracking an obscured target of a drone based on deep reinforcement learning is characterized in that: The step 3 is as follows: Step 3-1: State space design requires the design of a model feature extraction neural network. Four consecutive frames of 112×112 depth images are expanded and concatenated into 800-dimensional vectors through a convolutional neural network to form image feature information. Four consecutive frames of 112×112 depth images are input, that is, the first layer inputs the image of [112,112,4], passes through the convolution kernel of [3,16,8,8], and the stride is 4 to generate an image of [27,27,16]. The second layer inputs the image of [27,27,16], passes through the convolution kernel of [16,32,4,4], and the stride is 2, and the integer is obtained. The third layer inputs the image of [12,12,32], passes through the convolution kernel of [32,64,3,3], with a stride of 2, and rounds to get the image of [5,5,64]. The fourth layer inputs the image of [5,5,64], passes through the convolution kernel of [64,32,1,1], with a stride of 1, and outputs the image of [5,5,32]. The relative state information between the drone and the target is concatenated with the image feature information to form the model feature information, which is further abstracted through a 3-layer fully connected neural network. The relative state information includes: the relative distance information between the aircraft and the target (p x ,p y ,p z ), the aircraft's own speed information (v x ,v y ,v z ), the aircraft's heading angle θ, and the angle ω between the aircraft and the target; the number of outputs of the 3-layer fully connected network is: 512->256->128; Step 3-2: Design of action space To enable the drone to avoid obstacles correctly, it is necessary to ensure that the direction of the front camera is consistent with the aircraft speed when the drone performs actions; design the action space as a discrete action space, set the decision frequency of the drone, that is, the frequency of executing actions, to 10Hz, limit the speed of the drone to [-1.5m / s, 1.5m / s], and design the action space based on the drone's body coordinate system; Step 3-3: The reward function is designed as follows: Where d is the distance between the UAV and the target in the xy plane, (x uav ,y uav ,z uav ) is the absolute position of the drone, (x target ,y target , z target ) is the absolute position of the target, (v x,uav ,v y,uav ,v z,uav ) is the absolute speed of the UAV; ω is the angle between the front of the UAV and the target.
3. The method for actively tracking an obstructed target of a UAV based on deep reinforcement learning according to claim 2, characterized in that: The training process in step 5 is as follows: The drone perceives the environment from the sensor as state information, makes decisions through the reinforcement learning neural network, and finally outputs action instructions to control the drone's actions. In this process, the intelligent agent obtains information about the environment and target from the sensor, and uses the reward function of the reinforcement learning model to judge the quality of the environment and target information and obtain corresponding rewards. The intelligent agent then selects the next action to be performed through the reinforcement learning neural network. After the next action is executed, the corresponding environment and target information will also be updated, thus forming a learning cycle.
