A flight training and credibility evaluation method based on deep reinforcement learning reference trajectory

By generating reference flight trajectories through deep reinforcement learning and performing quantitative evaluation, the problem of inconsistent flight training evaluation standards in complex obstacle environments has been solved, realizing intelligent and standardized flight training evaluation and improving the autonomous navigation and obstacle avoidance capabilities of UAVs in complex environments.

CN123161003APending Publication Date: 2026-11-24BEIJING INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611343265.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-01
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing flight training systems struggle to objectively evaluate trainees’ path selection rationality, obstacle avoidance decision-making ability, and operational skills in complex obstacle environments. Furthermore, manually set reference routes have poor adaptability, leading to inconsistent training evaluation standards and susceptibility to human factors.

Method used

A deep reinforcement learning-based approach is adopted to construct an intelligent flight training closed loop that integrates autonomous learning, reference trajectory generation, and training evaluation. The reference flight trajectory is generated through a deep reinforcement learning policy network, and the flight control strategy is trained by combining a weighted combined dense reward function. Feature fusion is performed using depth images and flight state information to generate the reference flight trajectory and perform quantitative evaluation.

Benefits of technology

It achieves a unified, objective, and transferable flight training evaluation in complex obstacle environments, improves the objectivity and scenario adaptability of training evaluation standards, enhances the autonomous navigation and obstacle avoidance capabilities of UAVs in complex environments, and can comprehensively and quantitatively reflect the navigation ability and operation level of trainees.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123161003A_ABST
    Figure CN123161003A_ABST
Patent Text Reader

Abstract

This invention discloses a flight training and credibility evaluation method based on deep reinforcement learning reference trajectories. The method includes first training a deep reinforcement learning autonomous navigation model that fuses image observations and flight state information in a high-fidelity jungle simulation scenario constructed using UE4 and AirSim, enabling the UAV to autonomously avoid obstacles and navigate to targets in complex obstacle environments; then freezing the trained strategy model and generating a reference flight trajectory that matches the scenario through autonomous flight; finally, aligning and analyzing the trainee's manual flight trajectory with the reference flight trajectory to achieve a quantifiable evaluation of the credibility of the flight training process. This invention employs the aforementioned flight training and credibility evaluation method based on deep reinforcement learning reference trajectories, achieving objective quantitative evaluation of flight training through autonomously generated reference flight trajectories, significantly improving the intelligence and standardization level of UAV training evaluation in complex environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of aerospace intelligent control technology, and in particular to a flight training and credibility evaluation method based on deep reinforcement learning reference trajectory. Background Technology

[0002] With the development of applications such as low-altitude economy, emergency rescue, forest patrol, and autonomous flight in complex environments, unmanned aerial vehicles (UAVs) have gradually become an important research subject in the field of low-altitude intelligent applications due to their flexibility, ease of deployment, and strong environmental adaptability. In jungles, mountains, and other complex obstacle environments, UAVs need to simultaneously possess target navigation, obstacle avoidance, and stable control capabilities. Therefore, conducting high-fidelity flight training before actual deployment is of great significance. Compared with real flight training, flight training based on simulation environments can effectively reduce training costs and safety risks, and improve the repeatability and controllability of the training process.

[0003] Currently, extensive research on simulation-based training has been conducted both domestically and internationally in the field of flight training. Typical methods involve constructing digital flight scenarios and flight dynamics models to achieve flight operation training, emergency response training, and autonomous flight verification. For example, flight training systems built on platforms such as FlightGear, X-Plane, and AirSim have been widely applied to UAV control training and autonomous navigation algorithm verification. Existing training evaluation methods mostly score based on indicators such as task completion, flight time, number of collisions, and trajectory deviation, which can reflect the effectiveness of training tasks. However, their ability to evaluate the rationality of flight path selection, obstacle avoidance decision-making ability, and operational quality in complex obstacle environments remains relatively limited. Furthermore, most training systems use manually set reference routes or expert experience rules as evaluation criteria. This not only requires repeated design for different scenarios but also makes the evaluation results susceptible to human factors, making it difficult to form a unified, objective, and transferable training evaluation system.

[0004] In summary, while existing technologies have made some progress in autonomous navigation in complex obstacle environments, they primarily focus on path planning or autonomous control tasks themselves. Research on how post-training autonomous strategies can further serve flight training evaluation is relatively limited. Most existing flight training systems use indicators such as task completion, flight time, or number of collisions for evaluation, which fails to objectively reflect the trainee's path selection rationality, obstacle avoidance decision-making ability, and operational skill in complex obstacle environments. Furthermore, the method of manually designing reference routes requires repeated planning for different scenarios, and evaluation standards are easily influenced by human experience, making it difficult to meet the needs for standardized training and objective evaluation in complex environments.

[0005] Therefore, researching a flight training and credibility evaluation method for complex obstacle environments, enabling it to automatically generate reference flight trajectories in conjunction with autonomous navigation capabilities, and quantitatively evaluate manual flight processes based on these reference trajectories, has significant scientific value and engineering application prospects for improving the intelligence level of flight training and enhancing the objectivity and credibility of training results. However, existing technologies still have shortcomings in areas such as automatic reference trajectory generation, scenario transfer of evaluation criteria, and integration of autonomous navigation capabilities with training evaluation capabilities. These issues are precisely the core technical problems that this invention aims to solve. Summary of the Invention

[0006] The purpose of this invention is to provide a flight training and credibility evaluation method based on deep reinforcement learning reference trajectories. In order to overcome the problems in the prior art, such as the reliance on manual setting of flight training evaluation standards in complex obstacle environments, poor adaptability of reference route scenarios, insufficient objectivity of training evaluation, and the independence of autonomous navigation models and flight training evaluation, this method forms an intelligent flight training closed loop that integrates autonomous learning, reference trajectory generation, and training evaluation, providing a unified, objective, and transferable evaluation benchmark for flight training in complex environments.

[0007] To achieve the above objectives, this invention provides a flight training and credibility evaluation method based on deep reinforcement learning reference trajectories, comprising the following steps: S1. Construct a simulation scenario for flight training with complex jungle obstacles, acquire visible light image observation information and low-dimensional flight status information of UAVs, and perform depth information processing on the visible light images to generate a depth image sequence as the visual input of the policy network. S2. Construct a deep reinforcement learning policy network that integrates deep sequence image information and low-dimensional flight state. Optimize visual feature extraction by introducing an obstacle perception enhancement unit, combine low-dimensional flight state encoding features for feature fusion, and input the fused features into the SAC policy network to output continuous flight control commands. S3. Design a weighted combination dense reward function to guide the policy network to learn a flight control strategy that takes into account both target navigation and obstacle avoidance; S4. Freeze the network parameters to obtain a fixed strategy model. The fixed strategy model continuously outputs actions based on real-time image observation and flight status, and propels the UAV movement according to the actions, synchronously records flight pose data, and generates a reference flight trajectory. S5. Trainees manually pilot the drone in the same mission scenario and record the manual flight trajectory. The manual flight trajectory is then aligned and analyzed with the reference flight trajectory to conduct a credible quantitative evaluation of the flight training process.

[0008] Preferably, in S1, a complex obstacle flight training simulation scenario with trees, branches, forest paths, and training boundaries is constructed based on Unreal Engine UE4 and the high-fidelity simulator AirSim. During the reinforcement learning training phase, AirSim at every moment Acquire visible light image observation information and low-dimensional flight status The visible light images are processed for depth information to generate a sequence of depth images for observation. Depth image sequence For four depth images obtained through an airborne camera, the image input size is set to: ; in, , , , Representing time respectively , , and A single-frame depth image was captured; 4 indicates the current time; 4 indicates the number of consecutively stacked depth image frames; 128×128 indicates the spatial resolution of each depth image frame, that is, the image width and height are both 128 pixels; The data dimension representing the depth image sequence is Real tensors; Low-dimensional flight state It consists of flight speed, attitude angle, angular velocity, altitude, relative direction to the target, and distance to the target, and its expression is: ; in, , , Indicates the speed of the three axes; Indicates attitude angle; Representing the coordinate system of the UAV around its body respectively The angular velocities of the three axes are roll rate, pitch rate, and yaw rate. Indicates the current flight altitude; This indicates the azimuth and pitch angles of the target point relative to the current UAV. This indicates the distance between the current location and the target point; This represents the horizontal angular error between the target azimuth angle and the current nose yaw angle.

[0009] Preferably, in S2, the depth image sequence observation information obtained based on S1 is used as the main environmental observation input, and visual features are extracted by a multi-level lightweight convolutional neural network. The multi-level lightweight convolutional neural network includes a first convolutional block, a second convolutional block, an obstacle perception enhancement unit, a third convolutional block, and a fourth convolutional block arranged in sequence. The output features of the second convolutional block are denoted as: ; An obstacle perception enhancement unit is introduced in the intermediate layer, and a spatial attention map is generated through 1×1 convolution and sigmoid activation. Its expression is: ; in: ; Applying the attention map to the original features yields the enhanced visual features: ; Where ⊙ denotes element-wise multiplication, this enhancement unit only changes the feature response weights and does not change the dimension of the original feature matrix, therefore: ; The enhanced visual features are then compressed step by step by subsequent convolutional blocks into Then, a one-dimensional visual feature vector is formed through global average pooling: ; Low-dimensional flight state The input state-encoded MLP first passes through a first fully connected layer to be mapped into 64-dimensional intermediate state features, and then through a second fully connected layer to be mapped into a 128-dimensional flight state feature vector, resulting in depth image features: ; Depth image features With flight state feature vector By splicing the components together, the joint features before fusion are formed: ; .

[0010] Preferably, the joint features before fusion are compressed into a 256-dimensional joint state representation through a fusion fully connected layer: ; in, and These represent the weight matrix and bias vector of the fused fully connected layer, respectively. Represents the linear rectification activation function; Represents a 256-dimensional real vector space; Then The fused features are input into the SAC policy network, which then outputs continuous actions based on the action space. ; in, , These are the desired speed commands. This is the yaw rate command; This continuous action is applied to the drone control interface in AirSim, enabling the drone to perform autonomous obstacle avoidance navigation in jungle scenes.

[0011] Preferably, in S3, the expression for the weighted combination dense reward function is: ; in, This indicates the distance between the drone and the target point at the previous moment. This indicates the distance between the drone and the target point at the current moment; Indicates the angle between the current flight direction and the target direction; Indicates the distance between the drone and the nearest obstacle; Indicates the preset safe distance threshold; , , The weight of each reward item; To terminate rewards and punishments.

[0012] Preferably, in S3, the first term of the weighted combined dense reward function A target proximity reward is given when the drone approaches the target point, which promotes continuous navigation. Second item The alignment bonus is maximized when the flight direction is nearly aligned with the target direction, in order to reduce ineffective turns and movements away from the target. Third item Punishment for approaching obstacles, when Less than At the same time, the system applies penalties based on the proximity to obstacles, encouraging drones to actively maintain a safe distance; Termination of rewards and punishments The expression is: ; in, This indicates the termination reward given upon reaching the target; This represents the penalty value applied when a collision occurs; This represents the penalty value applied when the drone goes out of the training area.

[0013] Preferably, in S4, after the deep reinforcement learning policy network training converges, its network parameters are frozen, and the fixed policy is denoted as... ; In a designated jungle training scenario, the fixed-policy model continuously outputs actions based on real-time image observation and flight status. AirSim propels the UAV's movement according to these actions and simultaneously records the flight pose at each moment to form a reference trajectory. ; in, Indicates the first The reference trajectory state at time t is expressed as: .

[0014] Preferably, in S5, trainees manually pilot the drone in the same mission scenario and record the manual flight trajectory. : ; in, Indicates the manual driving trajectory at the 1st The flight status corresponding to each moment; Indicates manual driving; This indicates the number of states contained in the artificial flight trajectory; Will and Alignment is performed based on timestamps, flight progress, or key spatial nodes to calculate trajectory deviations, safety margins, mission duration, control smoothness, and collision / boundary violations. The total score is generated using a weighted scoring method: ; in, Indicates the degree to which the artificial trajectory closely approximates the reference trajectory; Indicates the degree to which a safe distance is maintained from obstacles during flight; Indicates task completion efficiency; It indicates the smoothness of the control actions and changes in flight attitude; Indicates the penalty for failure; to The weights for each scoring item.

[0015] Therefore, the present invention employs the aforementioned method for flight training and credibility evaluation based on deep reinforcement learning reference trajectories, with the following beneficial effects: (1) This invention constructs an intelligent flight training closed-loop model that integrates autonomous learning, reference trajectory generation and training evaluation. It organically combines deep reinforcement learning autonomous navigation, automatic generation of reference flight trajectories and artificial flight credibility evaluation to form a closed-loop training system of "autonomous learning - reference trajectory generation - artificial flight evaluation". This realizes the unification of flight training and training evaluation and provides an intelligent and standardized technical solution for UAV flight training in complex obstacle environments.

[0016] (2) The automatic generation method of reference flight trajectory proposed in this invention improves the objectivity of training evaluation criteria and the adaptability of scenarios; the reference trajectory is generated autonomously by the trained deep reinforcement learning strategy model in the specified simulation scenario without the need to manually design standard routes or set waypoints for different training scenarios; the generated reference trajectory can be automatically adjusted with changes in take-off position, target position and obstacle layout, reducing the cost of manual calibration and improving the reusability, transferability and consistency of training evaluation criteria.

[0017] (3) This invention improves the autonomous navigation and obstacle avoidance capabilities of UAVs in complex obstacle environments. By integrating visual observation and flight status information, and combining obstacle perception enhancement unit and weighted combination dense reward function, the deep reinforcement learning strategy can more accurately perceive complex environmental information and learn reasonable flight control strategies, thereby improving the environmental adaptability, autonomous obstacle avoidance capability, and stability and robustness of flight decisions of UAVs in complex obstacle environments such as jungles.

[0018] (4) This invention uses the reference flight trajectory as the evaluation benchmark and integrates multiple indicators such as trajectory deviation, safety margin, flight efficiency, control stability and collision situation to quantitatively analyze the flight process of trainees. It can more objectively and comprehensively reflect the trainees' navigation ability, obstacle avoidance ability and control level, and effectively solve the problems of inconsistent evaluation standards and insufficient objectivity of evaluation results in flight training under complex obstacle environment.

[0019] The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0020] Figure 1 This is a flowchart illustrating an embodiment of a flight training and credibility evaluation method based on deep reinforcement learning reference trajectories according to the present invention. Figure 2 This is a schematic diagram of the deep reinforcement learning policy network structure of an embodiment of the flight training and credibility evaluation method based on deep reinforcement learning reference trajectory of the present invention. Figure 3This is a schematic diagram of a computer-readable storage medium and electronic device according to an embodiment of a flight training and credibility evaluation method based on deep reinforcement learning reference trajectory of the present invention. Figure 4 This is a schematic diagram of a jungle training scenario, representing an embodiment of a flight training and credibility evaluation method based on deep reinforcement learning reference trajectories according to the present invention. Figure 5 This is the training reward convergence curve of an embodiment of a flight training and credibility evaluation method based on deep reinforcement learning reference trajectory according to the present invention; Figure 6 This is a reference flight trajectory map generated by a fixed strategy in an embodiment of a flight training and credibility evaluation method based on deep reinforcement learning reference trajectories according to the present invention. Figure 7 This is a comparison diagram of artificial flight and reference flight trajectory in an embodiment of the flight training and credibility evaluation method based on deep reinforcement learning reference trajectory of the present invention. Detailed Implementation

[0021] The technical solution of the present invention will be further described below with reference to the accompanying drawings and embodiments.

[0022] Unless otherwise defined, the technical or scientific terms used in this invention shall have the ordinary meaning understood by one of ordinary skill in the art to which this invention pertains. The terms "first," "second," and similar terms used in this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects.

[0023] like Figure 1 As shown, a flight training and credibility evaluation method based on deep reinforcement learning reference trajectories includes the following steps: S1. Construct a simulation scenario for flight training with complex jungle obstacles, acquire visible light image observation information and low-dimensional flight status information of UAVs, and perform depth information processing on the visible light images to generate a depth image sequence as the visual input of the policy network.

[0024] This invention constructs a complex jungle obstacle flight training simulation scenario with trees, branches, forest paths, and training boundaries based on Unreal Engine 4 and the high-fidelity simulator AirSim, and sets the basic flight parameters.

[0025] First, during the reinforcement learning training phase, AirSim at every moment... The system acquires visible light image observation information and low-dimensional flight status information from the UAV's onboard camera, and processes the depth information of the acquired visible light images to generate depth image sequence observation information. It also provides deep image sequence observations to the policy network of S2. and low-dimensional flight state Depth image sequence For four depth images obtained through an airborne camera, the image input size is set to: .

[0026] in, , , , Representing time respectively , , and A single-frame depth image was captured; 4 indicates the current time; 4 indicates the number of consecutively stacked depth image frames; 128×128 indicates the spatial resolution of each depth image frame, that is, the image width and height are both 128 pixels; The data dimension of the depth image sequence is . The real tensor.

[0027] Low-dimensional flight state It consists of flight speed, attitude angle, angular velocity, altitude, relative direction to the target, and distance to the target, and its expression is: ; in, , , Indicates the speed of the three axes; Indicates attitude angle; Representing the coordinate system of the UAV around its body respectively The angular velocities of the three axes are roll rate, pitch rate, and yaw rate. Indicates the current flight altitude; This indicates the azimuth and pitch angles of the target point relative to the current UAV. This indicates the distance between the current location and the target point; This represents the horizontal angular error between the target azimuth and the current nose yaw angle, used to help the strategy learn to turn toward the target more quickly.

[0028] S2. Construct a deep reinforcement learning policy network that integrates deep image sequence observations and low-dimensional flight status. By introducing an obstacle perception enhancement unit to optimize visual feature extraction, feature fusion is performed by combining low-dimensional flight status encoding features. The fused features are then input into the SAC policy network to output continuous flight control commands.

[0029] Specifically, this step uses the depth image sequence generated by S1 as visual observation input, extracts visual features through a multi-level lightweight convolutional neural network, and introduces an obstacle perception enhancement unit in the intermediate layer. A spatial attention map is generated through 1×1 convolution and sigmoid activation, and features are reweighted for key areas such as tree trunk occlusion, branch and leaf occlusion, and narrow passage gaps. The network structure is illustrated below. Figure 2 As shown.

[0030] The image branch first performs lightweight convolutional feature extraction on the input image. In this invention, the input image is: .

[0031] A multi-level lightweight convolutional neural network consists of a first convolutional block, a second convolutional block, an obstacle perception enhancement unit, a third convolutional block, and a fourth convolutional block arranged sequentially, with the feature matrix dimensions changing sequentially as follows: .

[0032] The output features of the second convolutional block are denoted as: .

[0033] To enhance the network's attention capabilities in areas such as tree trunks, foliage occlusion, and narrow passageways, this invention introduces an obstacle perception enhancement unit in the intermediate layer, generating a spatial attention map through 1×1 convolution and sigmoid activation. Its expression is: .

[0034] in: .

[0035] The attention map is then applied to the original features to obtain the enhanced visual features: ; Where ⊙ denotes element-wise multiplication, this enhancement unit only changes the feature response weights and does not change the dimension of the original feature matrix, therefore: .

[0036] The enhanced visual features are then compressed step by step by subsequent convolutional blocks into Then, a one-dimensional visual feature vector is formed through global average pooling: .

[0037] Meanwhile, low-dimensional flight state The input state encoding MLP is first mapped to 64-dimensional intermediate state features through a first fully connected layer, and then mapped to 128-dimensional flight state feature vectors through a second fully connected layer. .

[0038] Obtain depth image features: .

[0039] Furthermore, depth image features With flight state feature vector By splicing the components together, the joint features before fusion are formed: .

[0040] because , ,therefore: .

[0041] The joint features before fusion are compressed into a 256-dimensional joint state representation through a fusion fully connected layer: .

[0042] in, and These represent the weight matrix and bias vector of the fused fully connected layer, respectively. Represents the linear rectification activation function; It represents a 256-dimensional real vector space.

[0043] Then The fused features are input into the SAC policy network, which then outputs continuous actions based on the action space. ; in, , These are the desired speed commands. This is the yaw rate command.

[0044] This continuous action is applied to the drone control interface in AirSim, enabling the drone to perform autonomous obstacle avoidance navigation in jungle scenes.

[0045] S3. Design a weighted combination dense reward function to guide the policy network to learn a flight control strategy that takes into account both target navigation and obstacle avoidance. That is, simultaneously guide the UAV to learn to move towards the target point, maintain the correct direction, and actively avoid obstacles.

[0046] The expression for the weighted combination dense reward function is: ; in, This indicates the distance between the drone and the target point at the previous moment; This indicates the distance between the drone and the target point at the current moment; Indicates the angle between the current flight direction and the target direction; Indicates the distance between the drone and the nearest obstacle; Indicates the preset safe distance threshold; , , The weight of each reward item; To terminate rewards and punishments.

[0047] The first term in the above weighted combination dense reward function A target proximity reward is given when the drone approaches the target point, which promotes continuous navigation.

[0048] Second item The alignment bonus is maximized when the flight direction is nearly aligned with the target direction, in order to reduce ineffective turns and movements away from the target.

[0049] Third item Punishment for approaching obstacles, when Less than At the same time, the system applies penalties based on the proximity to obstacles, thereby encouraging drones to actively maintain a safe distance; Termination of rewards and punishments The expression is: ; in, This indicates the termination reward given upon reaching the target; This represents the penalty value applied when a collision occurs; This represents the penalty value applied when the drone goes out of the training area.

[0050] Through the above reward design, the deep reinforcement learning policy network can gradually develop control behavior that balances target navigation and obstacle avoidance during environmental interaction. The reward function has a simple structure and clear meaning, making it easy to implement and tune parameters in a simulation platform.

[0051] S4. Freeze the network parameters to obtain a fixed strategy model. The fixed strategy model continuously outputs actions based on real-time image observation and flight status, and propels the UAV movement according to the actions, synchronously recording flight pose data and generating a reference flight trajectory.

[0052] Specifically, after the deep reinforcement learning network trained and converged using the strategies set by S2 and S3, its network parameters are frozen, and the fixed strategy is denoted as... .

[0053] In a designated jungle training scenario, the fixed-policy model continuously outputs actions based on real-time image observation and flight status. AirSim propels the UAV's movement according to these actions and simultaneously records the flight pose at each moment, thereby forming a reference trajectory. ; in, Indicates the first The reference trajectory state at time t is expressed as: .

[0054] The reference trajectory is not pre-drawn manually, nor is it directly output by an additional trajectory prediction head. Instead, it is formed by a fixed strategy model that has been trained and flies autonomously in a specific simulation scenario, which can reflect the reasonable obstacle avoidance and navigation results under the current scenario and mission objectives.

[0055] S5. Trainees manually pilot the drone in the same mission scenario and record the manual flight trajectory. The manual flight trajectory is then aligned and analyzed with the reference flight trajectory to conduct a credible quantitative evaluation of the flight training process.

[0056] Specifically, after S4 generates a fixed strategy model reference flight trajectory, trainees manually pilot the drone in the same mission scenario and record the manual flight trajectory. : .

[0057] in, Indicates the manual driving trajectory at the 1st The flight status corresponding to each moment; Indicates manual driving; This indicates the number of states contained in the artificial flight trajectory.

[0058] Then and Alignment is performed based on timestamps, flight progress, or key spatial nodes to calculate trajectory deviations, safety margins, mission duration, control smoothness, and collision / boundary violations.

[0059] In this method, a weighted scoring approach is used to generate the total score: ; in, Indicates the degree to which the artificial trajectory closely approximates the reference trajectory; Indicates the degree to which a safe distance is maintained from obstacles during flight; Indicates task completion efficiency; It indicates the smoothness of the control actions and changes in flight attitude; Indicates penalties for failures such as collisions and boundary crossings; to Each scoring item is assigned a weight. This method transforms trainees' flight performance into quantifiable and comparable comprehensive training evaluation results.

[0060] like Figure 3 As shown, the present invention provides an electronic device, comprising: A memory that stores computer programs.

[0061] A communication interface is used for data exchange with external devices.

[0062] Input / output interfaces are used to connect input / output devices.

[0063] The processor, memory, communication interface, and input / output interface are interconnected via a communication bus.

[0064] When the computer program is loaded and executed by the processor, it implements a flight training and credibility evaluation method based on a deep reinforcement learning reference trajectory, as described above.

[0065] The present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is loaded and executed by a processor, it implements the flight training and credibility evaluation method based on deep reinforcement learning reference trajectory as described above.

[0066] Example 1: This embodiment uses an eVTOL autonomous obstacle avoidance flight training mission in a complex jungle obstacle environment as a typical application scenario for verification. First, a jungle complex obstacle flight training simulation scenario is constructed based on Unreal Engine UE4 and the high-fidelity simulator AirSim platform. Takeoff points, target points, and obstacles such as trees are set in the scenario, and a unified flight dynamics model and visual perception environment are established. Subsequently, the deep reinforcement learning strategy model is trained, a reference flight trajectory is generated, and the credibility of manual flight is evaluated according to the method proposed in this invention, thus verifying the entire flight training process.

[0067] The simulation platform used in this embodiment includes UE4.27, AirSim, and a Python control program. AirSim provides functions such as flight dynamics simulation, image acquisition, flight status acquisition, collision detection, and trajectory recording. UE4 is responsible for constructing a complex jungle obstacle scenario and uses the SimpleFlight flight control model as the eVTOL dynamics model. During training, the airborne camera acquires optical images as visual observation information, and simultaneously obtains low-dimensional flight status information such as flight speed, attitude angle, angular velocity, altitude, and target relative information, all of which serve as input to the deep reinforcement learning policy network. The specific implementation process is as follows.

[0068] Step 1: First, construct a complex jungle obstacle environment for flight training in the UE4 platform, and complete the simulation environment initialization and eVTOL model configuration using AirSim. For example... Figure 4 As shown, typical obstacles such as trees, branches, and narrow forest passages are set up in the training scenario. At the same time, take-off points and target points are set up, and flight training areas are demarcated.

[0069] During training, the eVTOL autonomously takes off from the launch point and completes target navigation tasks while ensuring flight safety. AirSim outputs real-time information such as airborne camera images, flight attitude, speed, angular velocity, altitude, and collision status, and performs depth information processing on visible light images to generate depth image sequences as visual input to the policy network, providing a unified data source for subsequent reinforcement learning training and flight evaluation.

[0070] By constructing a unified jungle training scenario, autonomous navigation training, reference trajectory generation, and artificial flight evaluation can all be completed in the same environment, providing consistent experimental conditions for subsequent training and evaluation.

[0071] Step Two: After completing the scene construction in Step One, the eVTOL is trained for autonomous obstacle avoidance navigation using the image observation and flight state fusion strategy network proposed in this invention. During training, the strategy network continuously acquires airborne depth image sequences and flight state information, and outputs continuous flight action control commands; AirSim updates the UAV's motion state according to the control commands, and simultaneously calculates target approach rewards, orientation alignment rewards, obstacle approach penalties, and termination rewards, feeding these back to the reinforcement learning algorithm to continuously update the strategy network parameters. Figure 5 As shown, as the training process continues, the cumulative reward of the policy network gradually increases and eventually stabilizes, indicating that the proposed method can gradually learn autonomous navigation and obstacle avoidance strategies in complex jungle environments and eventually obtain a stable and convergent control model.

[0072] Step 3: After training the deep reinforcement learning model in Step 2, fix the policy network parameters and use the trained policy model to autonomously perform flight missions in the same jungle scene.

[0073] During flight, the system outputs control commands in real time according to the policy network to drive the eVTOL to complete autonomous flight, and simultaneously records the UAV's position, attitude, speed, and time information at various moments, ultimately forming a reference flight trajectory. The reference trajectory data is automatically saved as a trajectory file, and a corresponding two-dimensional flight trajectory diagram is generated. For example... Figure 6 As shown, the fixed strategy model can autonomously complete obstacle avoidance flight from the takeoff point to the target point without any collisions during the entire flight. It can also automatically select a reasonable flight path based on the obstacle distribution, ultimately forming a reference flight trajectory suitable for the current training scenario. Since the reference trajectory is autonomously generated by the trained fixed strategy model, there is no need to manually design standard flight paths for different training scenarios, and it can be automatically updated as the starting point, target point, and obstacle layout change.

[0074] Step Four: After obtaining the reference flight trajectory in Step Three, the trainee manually pilots the eVTOL to complete the same flight mission in the same simulation scenario. The system synchronously records the manual flight trajectory and aligns it with the reference flight trajectory generated in Step Three in terms of time or flight progress. A comparison diagram is shown below. Figure 7 As shown. Subsequently, according to the training evaluation method proposed in this invention, evaluation indicators such as trajectory deviation, safety margin, flight efficiency, handling stability, and collision situation between the artificial flight trajectory and the reference trajectory are calculated respectively, and a comprehensive training score is formed according to preset weights, thereby realizing the quantitative evaluation of the trainee's flight ability. Since the reference trajectory is generated autonomously from a fixed strategy model, the evaluation criteria can be automatically transferred to different training scenarios, without the need to redesign the reference flight path for each scenario, thereby improving the objectivity, consistency, and standardization of training evaluation.

[0075] Step 5: After the trainees manually piloted the eVTOL to complete the same flight mission in the same jungle simulation scenario in Step 4, the system synchronously recorded the manual flight trajectory. Statistics show that the manual flight took 490 steps, with a total path length of approximately 396.8m, while the automatic reference trajectory path length was approximately 264.5m. The efficiency of the manual path was approximately 66.7% of the reference trajectory. According to the multi-dimensional quantitative evaluation method proposed in this invention, the various indicators were calculated as follows: (1) Trajectory deviation The artificial trajectory and the reference trajectory were aligned in time according to the flight progress, and the spatial Euclidean distance between each alignment point was calculated. Statistical analysis showed that the average spatial deviation of the artificial trajectory relative to the reference trajectory was approximately 5.2m, and the maximum deviation was approximately 15.8m. Taking a deviation tolerance threshold of 20m, we obtain... .

[0076] (2) Safety margin During manual flight, the drone exhibited directional hesitation at the start, made a single sharp S-curve in the middle stage, and over-adjusted during the return phase. In areas with dense obstacles, the drone deviated from the centerline of the safe passage through the forest. The safety margin score was [not specified]. .

[0077] (3) Flight efficiency The efficiency index is the ratio of the length of the reference trajectory path to the length of the manual trajectory path. .

[0078] (4) Stability of handling The detour rate of the manual trajectory, i.e., the ratio of the total path length to the straight-line distance between the start and end points, is approximately 1.51, higher than the 1.01 of the automatic reference trajectory. This indicates that there are problems such as excessive detours and over-adjustment during manual operation, affecting the stability of the operation. .

[0079] (5) Penalty for failure No collisions or boundary crossings occurred during this manned flight.

[0080] Weighted summation is performed according to preset weights: The overall score of 73.4 indicates that the trainee's flight performance in complex jungle environments differs somewhat from that of fixed-strategy automatic flight, mainly due to excessive mid-course detours, over-adjustment of direction during the return-to-center phase, and low flight efficiency. This quantitative score objectively reflects the trainee's navigation decision-making ability, obstacle avoidance control level, and flight efficiency, providing clear directions for improvement in subsequent targeted training.

[0081] Therefore, the present invention adopts the above-mentioned flight training and credibility evaluation method based on deep reinforcement learning reference trajectory. Its feasibility and effectiveness in UAV flight training scenarios with complex obstacles can form a closed-loop training system of autonomous learning, reference trajectory generation and manual flight evaluation, providing an intelligent and standardized technical solution for UAV flight training and credibility evaluation in complex environments.

[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the technical solutions of the present invention, and these modifications or equivalent substitutions cannot cause the modified technical solutions to deviate from the spirit and scope of the technical solutions of the present invention.

Claims

1. A flight training and credibility evaluation method based on deep reinforcement learning reference trajectory, characterized in that, Includes the following steps: S1. Construct a simulation scenario for flight training with complex jungle obstacles, acquire visible light image observation information and low-dimensional flight status information of UAVs, and perform depth information processing on the visible light images to generate a depth image sequence as the visual input of the policy network. S2. Construct a deep reinforcement learning policy network that integrates deep sequence image information and low-dimensional flight state. Optimize visual feature extraction by introducing an obstacle perception enhancement unit, combine low-dimensional flight state encoding features for feature fusion, and input the fused features into the SAC policy network to output continuous flight control commands. S3. Design a weighted combination dense reward function to guide the policy network to learn a flight control strategy that takes into account both target navigation and obstacle avoidance; S4. Freeze the network parameters to obtain a fixed strategy model. The fixed strategy model continuously outputs actions based on real-time image observation and flight status, and propels the UAV movement according to the actions, synchronously records flight pose data, and generates a reference flight trajectory. S5. Trainees manually pilot the drone in the same mission scenario and record the manual flight trajectory. The manual flight trajectory is then aligned and analyzed with the reference flight trajectory to conduct a credible quantitative evaluation of the flight training process.

2. The flight training and credibility evaluation method based on deep reinforcement learning reference trajectory according to claim 1, characterized in that, In S1, a complex obstacle flight training simulation scenario with trees, branches, forest paths, and training boundaries is constructed based on Unreal Engine UE4 and the high-fidelity simulator AirSim. During the reinforcement learning training phase, AirSim at every moment Acquire visible light image observation information and low-dimensional flight status The visible light images are processed for depth information to generate a sequence of depth images for observation. Depth image sequence For four depth images obtained through an airborne camera, the image input size is set to: ; wherein, 、 、 、 respectively represent the single-frame depth images collected at time 、 、 and ; represents the current time; 4 represents the number of frames of the depth images stacked continuously; 128x128 represents the spatial resolution of each frame of the depth images, i.e., the width and height of the image are both 128 pixels; represents that the data dimension of the sequence of the depth images is a real tensor of ; Low-dimensional flight state It consists of flight speed, attitude angle, angular velocity, altitude, relative direction to the target, and distance to the target, and its expression is: ; in, , , Indicates the speed of the three axes; Indicates attitude angle; Representing the coordinate system of the UAV around its body respectively The angular velocities of the three axes are roll rate, pitch rate, and yaw rate. Indicates the current flight altitude; This indicates the azimuth and pitch angles of the target point relative to the current UAV. This indicates the distance between the current location and the target point; This represents the horizontal angular error between the target azimuth angle and the current nose yaw angle.

3. The method for flight training and credibility evaluation based on deep reinforcement learning reference trajectories according to claim 2, characterized in that, In S2, the depth image sequence observation information obtained from S1 is used as the main environmental observation input. Visual features are extracted by a multi-level lightweight convolutional neural network. The multi-level lightweight convolutional neural network includes a first convolutional block, a second convolutional block, an obstacle perception enhancement unit, a third convolutional block, and a fourth convolutional block set in sequence. The output features of the second convolutional block are denoted as: ; An obstacle perception enhancement unit is introduced in the intermediate layer, and a spatial attention map is generated through 1×1 convolution and sigmoid activation. Its expression is: ; in: ; Applying the attention map to the original features yields the enhanced visual features: ; Where ⊙ denotes element-wise multiplication, this enhancement unit only changes the feature response weights and does not change the dimension of the original feature matrix, therefore: ; The enhanced visual features are then compressed step by step by subsequent convolutional blocks into Then, a one-dimensional visual feature vector is formed through global average pooling: ; Low-dimensional flight state The input state-encoded MLP first passes through a first fully connected layer to be mapped into 64-dimensional intermediate state features, and then through a second fully connected layer to be mapped into a 128-dimensional flight state feature vector, resulting in depth image features: ; Depth image features With flight state feature vector By splicing the components together, the joint features before fusion are formed: ; 。 4. The method for flight training and credibility evaluation based on deep reinforcement learning reference trajectories according to claim 3, characterized in that, The joint features before fusion are compressed into a 256-dimensional joint state representation through a fully connected fusion layer: ; in, and These represent the weight matrix and bias vector of the fused fully connected layer, respectively. Represents the linear rectification activation function; Represents a 256-dimensional real vector space; Then The fused features are input into the SAC policy network, which then outputs continuous actions based on the action space. ; in, , These are the desired speed commands. This is the yaw rate command; This continuous action is applied to the drone control interface in AirSim, enabling the drone to perform autonomous obstacle avoidance navigation in jungle scenes.

5. The method for flight training and credibility evaluation based on deep reinforcement learning reference trajectories according to claim 4, characterized in that, In S3, the expression for the weighted combined dense reward function is: ; in, This indicates the distance between the drone and the target point at the previous moment. This indicates the distance between the drone and the target point at the current moment; Indicates the angle between the current flight direction and the target direction; Indicates the distance between the drone and the nearest obstacle; Indicates the preset safe distance threshold; , , The weight of each reward item; To terminate rewards and punishments.

6. The method for flight training and credibility evaluation based on deep reinforcement learning reference trajectories according to claim 5, characterized in that, In S3, the first term of the weighted combination dense reward function A target proximity reward is given when the drone approaches the target point, which promotes continuous navigation. Second item The alignment bonus is maximized when the flight direction is nearly aligned with the target direction, in order to reduce ineffective turns and movements away from the target. Third item Punishment for approaching obstacles, when Less than At the same time, the system applies penalties based on the proximity to obstacles, encouraging drones to actively maintain a safe distance; Termination of rewards and punishments The expression is: ; in, This indicates the termination reward given upon reaching the target; This represents the penalty value applied when a collision occurs; This represents the penalty value applied when the drone goes out of the training area.

7. The flight training and credibility evaluation method based on deep reinforcement learning reference trajectory according to claim 6, characterized in that, In S4, after the deep reinforcement learning policy network training converges, its network parameters are frozen; the fixed policy is denoted as... ; In a designated jungle training scenario, the fixed-policy model continuously outputs actions based on real-time image observation and flight status. AirSim propels the UAV's movement according to these actions and simultaneously records the flight pose at each moment to form a reference trajectory. ; in, Indicates the first The reference trajectory state at time t is expressed as: 。 8. The method for flight training and credibility evaluation based on deep reinforcement learning reference trajectories according to claim 7, characterized in that, In S5, trainees manually piloted drones and recorded their flight paths in the same mission scenario. : ; in, Indicates the manual driving trajectory at the 1st The flight status corresponding to each moment; Indicates manual driving; This indicates the number of states contained in the artificial flight trajectory; Will and Alignment is performed based on timestamps, flight progress, or key spatial nodes to calculate trajectory deviations, safety margins, mission duration, control smoothness, and collision / boundary violations. The total score is generated using a weighted scoring method: ; in, Indicates the degree to which the artificial trajectory closely approximates the reference trajectory; Indicates the degree to which a safe distance is maintained from obstacles during flight; Indicates task completion efficiency; It indicates the smoothness of the control actions and changes in flight attitude; Indicates the penalty for failure; to The weights for each scoring item.