Unmanned aerial vehicle path planning method and system combining visual model and improved TD3

By combining the visual model and the improved TD3 algorithm, the problems of long waiting time and low efficiency in UAV path planning are solved, achieving more efficient path planning, reducing time costs, and improving the reliability and stability of the system. .

CN118605601APending Publication Date: 2024-09-06HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410572468.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing model-based UAV path planning technology has problems such as long waiting time, low overall efficiency, and high time cost.

Method used

Combining the visual model and the improved TD3 algorithm, through the modeling and path planning module, we obtain the UAV mission requirements, build functional models and parameter diagrams, determine the optimization goals, design the reward function, and use the improved TD3 model to solve the optimal UAV path. , and evaluate the path planning effect through simulation.

Benefits of technology

It shortens the waiting time for the UAV to actually perform tasks, improves efficiency, reduces time costs, and verifies logical errors through partitioned experience pools and state machine diagrams, improving the reliability and stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605601A
    Figure CN118605601A
Patent Text Reader

Abstract

The invention discloses an unmanned aerial vehicle path planning method and system in combination with a visual model and an improved TD3, and the method comprises the steps: obtaining the task demands of an unmanned aerial vehicle, and forming a demand document; converting the demand document into description of functions of the unmanned aerial vehicle, and establishing a function model; the method comprises the following steps: dividing an unmanned aerial vehicle into a plurality of subsystems, and obtaining structure information of each subsystem, thereby forming a module definition graph; extracting parameters from physical characteristics, performance indexes, environmental conditions and task requirements of the unmanned aerial vehicle to form a parameter graph; structural information related to path planning is obtained from the module definition diagram, parameters and constraint conditions related to path planning are obtained from the parameter diagram, and therefore an optimization target is determined, a state space and an action space are defined, and a reward function is designed; and inputting the improved TD3 model, and solving the optimal path of the unmanned aerial vehicle. According to the method, the visual model and the improved TD3 are combined for path planning, the waiting time of the unmanned aerial vehicle for actually executing task operation can be shortened, the efficiency is improved, and the time cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of model-based system engineering, and more specifically, relates to a method and system for unmanned aerial vehicle path planning combining a visualization model and improved TD3. Background Art

[0002] The UAV system is composed of subsystems such as flight control system, remote control system, power system, sensor system, mission system, obstacle avoidance system, communication system and weapon system to achieve tasks such as operation, collaborative work and emergency response.

[0003] As a complex product system, the UAV system has a complex structure, a wide variety of parts and design parameters, and its design is hierarchical, multidisciplinary, and coupled, requiring the coordination and cooperation of multiple disciplines, departments, and systems. However, the current UAV design mainly uses engineering documents, design drawings, icons, emails, etc. to achieve overall to system task allocation, weak information communication between R&D departments, and difficult data exchange between disciplines. The few solutions based on models to implement UAV system design do not consider optimization problems such as path planning that arise during the operation of the UAV in advance, thereby increasing the waiting time for the UAV to actually perform its tasks, greatly reducing the overall efficiency of the system and increasing the system time cost.

[0004] It can be seen that the existing model-based technology for realizing UAV path planning has technical problems such as long waiting time for the actual execution of the UAV mission, low overall efficiency and high time cost. Summary of the invention

[0005] In response to the above defects or improvement needs of the prior art, the present invention provides a UAV path planning method and system that combines a visualization model and an improved TD3, thereby solving the technical problems of the existing model-based technology for implementing UAV path planning, such as long waiting time for the actual execution of the UAV mission, low overall efficiency and high time cost.

[0006] To achieve the above object, according to one aspect of the present invention, a UAV path planning method combining a visualization model and improved TD3 is provided, including a modeling part and a path planning part.

[0007] The modeling part includes:

[0008] Obtain UAV mission requirements and form a requirements document;

[0009] Convert the requirement document into a description of the drone's functions, construct a use case diagram, and build a functional model based on the use case diagram;

[0010] Divide the UAV into multiple subsystems (including flight control system, remote control system, power system, sensor system, mission system, obstacle avoidance system, communication system and weapon system), obtain the structural information of each subsystem, and allocate the various functions of the UAV to the subsystem that realizes the function according to the functional model, thereby forming a module definition diagram;

[0011] Extract parameters from the UAV's physical characteristics, performance indicators, environmental conditions, and mission requirements to form a parameter map;

[0012] Obtain multiple constraints from the UAV's physical characteristics, performance indicators, environmental conditions, and mission requirements, establish a corresponding constraint block for each constraint in the module definition diagram, define constraint parameters related to the constraint in the constraint block, convert each constraint into a mathematical expression, and add it to the parameter diagram;

[0013] The path planning part includes:

[0014] The structural information related to path planning is obtained from the module definition graph, and the parameters and constraints related to path planning are obtained from the parameter graph. The path planning task of the UAV is described using the structural information, parameters and constraints related to path planning, including determining the optimization objective, defining the state space and action space, and designing the reward function. The optimization objective, state space, action space and reward function are used as the input of the improved TD3 model to solve the optimal path of the UAV.

[0015] Furthermore, the experience pool in the improved TD3 model is divided into two parts, which are respectively used to store the experience generated by the modeling part and the experience explored by the interaction between the UAV and the environment. The experience generated by the modeling part is generated through a visualization model, which includes a functional model, a module definition diagram and a parameter diagram. The experience explored by the interaction between the UAV and the environment is obtained through sensor exploration.

[0016] Furthermore, the method further comprises:

[0017] Simulations are performed using functional models to evaluate the effectiveness of path planning.

[0018] Furthermore, the functional model includes an activity diagram and a state machine diagram;

[0019] The state machine diagram is used to describe the different working modes or behavior states of the drone. The state machine diagram is used to verify whether the behavior logic of the drone in different scenarios and conditions meets the expectations of path planning, so as to evaluate the effect of path planning.

[0020] By comprehensively analyzing the UAV functional activities described in each activity diagram and combining it with the state machine diagram, the UAV functional logic is verified to discover the logical errors or inconsistencies of the UAV.

[0021] Furthermore, the solution of the optimal path of the drone includes:

[0022] The optimization objective, state space, action space and reward function are used as the input of the improved TD3 model, and the Q value of the action to be taken is output. The route composed of actions corresponding to the maximum Q value at each moment in the period from the starting moment to the end moment is the optimal path for the drone.

[0023] Furthermore, the path planning is obstacle avoidance path planning, and the optimization goal is that the distance between the UAV and each obstacle in the flight area is greater than 0, and the reward function is the distance reward between the UAV and the obstacle.

[0024] Furthermore, the path planning is the target strike path planning, and the optimization goal is to minimize the sum of the flight time from the starting point to the target area and the time for searching, identifying and striking the target in the target area, and the reward function is the weighted sum of the UAV distance target reward, the UAV and target orientation angle reward, and the UAV distance obstacle distance reward.

[0025] Furthermore, the state space includes: the drone position, speed state, roll angle, pitch angle, yaw angle, and environmental state detected by the sensor, and the action space includes: the drone's angular velocity and the drone's linear velocity in the X, Y, and Z directions.

[0026] According to another aspect of the present invention, a UAV path planning system combining a visualization model and an improved TD3 is provided, comprising a modeling module and a path planning module.

[0027] The modeling module includes:

[0028] Requirements analysis module, used to obtain UAV mission requirements and form requirements documents;

[0029] Functional analysis module, used to convert the requirement document into a description of the drone’s functions, construct a use case diagram, and establish a functional model based on the use case diagram;

[0030] The structural analysis module is used to divide the UAV into multiple subsystems, obtain the structural information of each subsystem, and allocate the various functions of the UAV to the subsystems that realize the functions according to the functional model, thereby forming a module definition diagram;

[0031] The parameter analysis module is used to extract parameters from the physical characteristics, performance indicators, environmental conditions and mission requirements of the UAV to form a parameter diagram; obtain multiple constraints from the physical characteristics, performance indicators, environmental conditions and mission requirements of the UAV, establish a corresponding constraint block for each constraint in the module definition diagram, define constraint parameters related to the constraint in the constraint block, convert each constraint into a mathematical expression, and add it to the parameter diagram;

[0032] The path planning module is used to obtain structural information related to path planning from a module definition graph, obtain parameters and constraints related to path planning from a parameter graph, and use the structural information, parameters and constraints related to path planning to describe the path planning task of the UAV, including determining the optimization target, defining the state space and action space, and designing the reward function; the optimization target, state space, action space and reward function are used as inputs of the improved TD3 model to solve the optimal path of the UAV.

[0033] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a method for unmanned aerial vehicle path planning combining a visualization model and improved TD3 is implemented.

[0034] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0035] (1) The present invention forms a visualization model by analyzing the requirements, functions, structure and parameters of the UAV, including a functional model, a module definition diagram and a parameter diagram. This shows that the present invention generates a visualization model through model-based system engineering (MBSE). When users use the visualization model established by the present invention, the communication efficiency and data interaction efficiency between users can be improved. The visualization model established by the present invention can support the development, analysis, design and verification of the entire life cycle of the UAV system. The present invention combines the visualization model with the improved TD3 for path planning, which can shorten the waiting time for the actual execution of the UAV task, improve efficiency and reduce time cost.

[0036] (2) The design of the experience buffer pool enables the TD3 algorithm to randomly extract samples from it as needed, and these samples are used to update the parameters of the neural network. By randomly extracting rather than using experience data sequentially, the TD3 algorithm can break the correlation between data and reduce the impact of non-static distribution, thereby learning more stably. However, the traditional experience replay mechanism uses random sampling, which will result in uneven sample data quality and the sequential storage of experience data, resulting in some samples being recycled, which in turn leads to a large number of useless samples. This uneven sample use will affect the comprehensiveness of learning and the training effect. Storing the experience generated by modeling and the experience explored through interaction with the environment in different experience pool areas helps to clearly distinguish these two different types of data. The experience generated by modeling may reflect more of the dynamics and laws within the system, while the experience explored through interaction with the environment contains more of the randomness and uncertainty in actual operation. By storing them separately, it is easier to manage and analyze these two types of experience data, so as to better understand their characteristics and value. Partitioning the experience pool helps to improve the stability and efficiency of training.

[0037] (3) The present invention uses a model generated based on MBSE to evaluate the algorithm, which can provide reference and guidance for the deployment and application of the actual system, and achieve more effective combination and application. The state machine diagram can be used to describe the different working modes or behavioral states of the UAV, such as preparation, flight, hovering, mission execution, and return to base. Through the state machine diagram, it is possible to verify whether the behavioral logic of the UAV in different scenarios and conditions meets expectations to ensure that the UAV can operate correctly according to the design requirements. By comprehensively analyzing the system functional activities described in each activity diagram and verifying the system functional logic in combination with the state machine diagram, potential logical errors or inconsistencies can be discovered, which helps to discover and solve problems and improve the reliability and stability of the UAV.

[0038] (4) The present invention can perform a variety of path planning tasks, including obstacle avoidance path planning and target strike path planning. The reward function can map the state and action to a reward value, indicating the degree of goodness or badness of the agent to the state and action. By designing and adjusting the reward function, the agent can learn how to choose the optimal action. Based on this, the present invention designs different optimization objectives and reward functions for different path planning tasks to ensure that the waiting time of the drone's actual execution of the task is short, efficient, and time-cost-effective.

[0039] (5) The size and complexity of the state space directly affect the performance and training difficulty of the improved TD3 algorithm. By modeling and representing the state space, the drone can make appropriate decisions based on the current state, select the optimal action strategy, and judge what action to take next to achieve the mission goal. Therefore, it is extremely important to design a suitable and practical state space expression. The state space designed by the present invention can not only accurately express the current state of the drone, but also provide important information in the environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a flow chart of a UAV path planning method combining a visualization model and improved TD3 provided by an embodiment of the present invention;

[0041] Figure 2 This is an optimization schematic diagram provided by Example 1 of the present invention;

[0042] Figure 3 is a route planning simulation diagram of five obstacles provided in Example 1 of the present invention;

[0043] Figure 4 This is a route planning simulation diagram of eight obstacles provided in Example 1 of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0045] like Figure 1 As shown, a UAV path planning method combining a visualization model and improved TD3 includes a modeling part and a path planning part.

[0046] The modeling part includes:

[0047] Obtain UAV mission requirements and form a requirements document;

[0048] Convert the requirement document into a description of the drone's functions, construct a use case diagram, and build a functional model based on the use case diagram;

[0049] Divide the UAV into multiple subsystems, obtain the structural information of each subsystem, and assign each function of the UAV to the subsystem that realizes the function according to the functional model, thereby forming a module definition diagram;

[0050] Extract parameters from the UAV's physical characteristics, performance indicators, environmental conditions, and mission requirements to form a parameter map;

[0051] Obtain multiple constraints from the UAV's physical characteristics, performance indicators, environmental conditions, and mission requirements, establish a corresponding constraint block for each constraint in the module definition diagram, define constraint parameters related to the constraint in the constraint block, convert each constraint into a mathematical expression, and add it to the parameter diagram;

[0052] The path planning part includes:

[0053] The structural information related to path planning is obtained from the module definition graph, and the parameters and constraints related to path planning are obtained from the parameter graph. The path planning task of the UAV is described using the structural information, parameters and constraints related to path planning, including determining the optimization objective, defining the state space and action space, and designing the reward function. The optimization objective, state space, action space and reward function are used as the input of the improved TD3 model to solve the optimal path of the UAV.

[0054] Through the analysis of stakeholders' needs and the analysis of drone functions, the first-level requirements for drone missions are: operational capability, collaborative combat capability, and emergency response capability. According to the first-level requirements of drone missions, we can analyze from top to bottom, further decompose the requirements and performance requirements of drones, and further refine them to form the definition of second-level requirements, which are included in the requirements. After being refined and disassembled, the second-level requirements of drones are: standby and flight capability, launch capability, recovery capability, hovering capability, vertical movement capability, relative positioning capability, task allocation capability, communication capability, detection capability, target tracking capability, strike capability, electromagnetic interference capability, route planning capability, visible severe weather processing capability, invisible severe weather processing capability, collision processing capability, insufficient power processing capability, communication interruption processing capability, and threat avoidance processing capability.

[0055] A use case diagram is a behavioral model that describes the functional requirements of a system and the interactions between users and the system. It shows the various use cases (user scenarios or functional requirements) in the system, as well as the relationships between these use cases. Use case diagrams are often used in the software development process as a tool for requirements analysis and system design to help system engineers clearly understand the functional requirements of the system and visualize these requirements in the form of use cases and user interactions. This helps to clarify requirements and avoid misunderstandings or omissions of requirements. Use case diagrams provide an intuitive way to describe the functions and user behaviors of a system, allowing different team members to communicate and share understanding of system requirements more clearly. By analyzing the use case diagram, you can check whether the system requirements are complete, consistent, and meet user expectations. This helps to discover and solve potential requirements problems and ensure that the system meets the actual needs of users.

[0056] For each use case and each system function, functional decomposition is performed and analyzed using SysML activity diagrams. Activity diagrams are used to describe the processes and interactions of various activities in the system, such as the sequence, concurrency, and conditional control between various activities. SysML activity diagrams contain a variety of elements, such as activity nodes, control flows, object flows, decision nodes, merge nodes, etc., which can be flexibly combined and used to meet different modeling needs. Graphic symbols are used to represent the activities, behaviors, and control flows in the system, so that the behavior and flow of the system can be presented intuitively, and structured modeling elements such as partitions, branches, merges, and iterations can be combined to help organize and manage the activity flow of the system.

[0057] First, we need to start with the physical characteristics of the system, including the size, weight, and fuselage structure of the drone. These parameters directly determine the flight characteristics and maneuverability of the drone, and play a vital role in flight stability and controllability. In addition, it is also necessary to consider the various sensors and equipment carried by the drone, such as cameras, radars, GPS, etc. Their performance parameters (such as resolution, measurement accuracy, etc.) should also be included in the parameter definition range.

[0058] Secondly, for the performance indicators of drones, various indicators need to be clearly defined, such as maximum flight speed, maximum flight altitude, endurance, load capacity, etc. These performance indicators directly reflect the capabilities and limitations of drones when performing tasks, and are crucial for matching mission requirements and the efficiency of mission execution.

[0059] When considering environmental conditions, it is necessary to pay attention to the characteristics of the environment in which the drone is located, including factors such as climate, temperature, humidity, wind speed, etc. These environmental conditions have a significant impact on the flight performance and system stability of the drone, and need to be fully considered and described in the parameter definition.

[0060] Finally, the mission requirements need to be carefully analyzed and defined, including the type of mission that the drone needs to perform, mission objectives, mission time limits, etc. Different types of missions have different requirements for drones, and the corresponding parameter definitions will also be different, so the diversity and complexity of these mission requirements need to be fully considered during the parameter identification and definition process.

[0061] Through comprehensive analysis and definition of the system's physical characteristics, performance indicators, environmental conditions, and mission requirements, sufficient data foundation and accurate input can be provided for subsequent parameter modeling, thereby providing strong support for the optimization and design of the UAV system.

[0062] After identifying and defining the parameters of the UAV system, the next step is to build a SysML parameter diagram to model the relationships between the parameters. This process aims to reveal the mutual influence and correlation between different parameters, so as to more fully understand the behavior and performance of the system.

[0063] (1) Relationship between physical properties and performance indicators:

[0064] The physical characteristics of a drone (e.g., size, weight) directly affect its flight performance. For example, fuselage length and wing span determine the aerodynamic characteristics of the aircraft, while fuselage weight affects the choice and performance of the power system. The relationship between physical characteristics and performance indicators needs to be modeled through aerodynamic models. These models can accurately describe the performance of different models under different flight conditions based on fluid mechanics principles and experimental data.

[0065] (2) Relationship between environmental conditions and performance indicators:

[0066] The flight performance of drones is affected by environmental conditions such as temperature, air pressure, humidity, and wind speed. Adverse weather conditions such as high temperature, high humidity, and strong winds can have a negative impact on the flight performance of drones. The relationship between environmental conditions and performance indicators can be modeled using meteorological models. These models can predict the atmospheric state and wind field distribution under different environmental conditions, thus providing an important basis for drone flight planning and performance evaluation.

[0067] (3) Relationship between task requirements and performance indicators:

[0068] The performance indicators of drones should be able to meet specific mission requirements. For example, for reconnaissance missions, the endurance and sensor performance of drones are crucial; while for attack missions, the flight speed and accuracy of drones are key indicators. The relationship between mission requirements and performance indicators needs to be modeled through mission planning and analysis models. These models can consider factors such as the type of mission, regional characteristics, enemy situation, etc., to determine the performance indicators and mission execution strategies required by drones.

[0069] TD3 stands for Twin Delayed Deep Deterministic Policy Gradient algorithm.

[0070] TD3 introduces Clipped Double Q-Learning technology based on DDPG. The core idea of ​​this technology is to estimate the Q value through two independent Critic networks. When calculating the target Q value, a smaller Q value is selected for calculation, which solves the problem of overestimation of Q value to a certain extent.

[0071] The Q value is the maximum value in each training update process, which will cause errors during the update. The accumulated errors after multiple updates will lead to overestimation of some states. Therefore, in order to solve this problem, TD3 uses a pessimistic learning method to avoid overestimation in the Critic network.

[0072] In the reinforcement learning algorithm, local optimal problems may occur when the agent selects actions through strategies. Assuming that the agent selects the action with the maximum v value every time, the strategy will converge quickly, but this will result in a very small search, and the strategy is likely not to be the optimal strategy, that is, some actions will never be selected, and fall into the local optimality. Therefore, it is necessary to transform the local optimal strategy into the global optimal strategy. TD3 adds Gaussian noise to the learning objective of Critic.

[0073] The TD3 algorithm implements the Delayed Policy Updates mechanism, that is, the Actor network uses delayed learning. The update frequency of the Critic network is greater than that of the Actor network, so that the error is minimized before the policy is introduced, and the Actor network is updated after the Critic network is more stable. Specifically, when the entire framework is learned, the Critic's estimate of the current policy is first iterated for multiple rounds, so that the Critic has a good estimate before the Actor is learned. In summary, the Critic in TD3 will be trained for multiple times before an Actor is trained, so it is not called delayed policy update.

[0074] The Actor network consists of an input layer, a fully connected layer (FC), a rectified linear unit (ReLU) activation function layer, and a hyperbolic tangent (tanh) activation function layer; the Critic network consists of an input layer, a fully connected layer, a rectified linear unit activation function layer, and a hyperbolic tangent activation function layer.

[0075] Example 1

[0076] 33% of China's land area is mountainous, with vast territory and complex and varied terrain, including the Sichuan-Tibet Plateau, Qinling Mountains, Altai Mountains and other famous mountains and highlands. These mountainous areas have undulating terrain, different altitudes, rich vegetation coverage, diverse climate changes, and high geological, meteorological, and ecological characteristics.

[0077] The following challenges may arise when flying drones in mountainous areas:

[0078] Complex terrain: Mountainous areas have undulating terrain with a large number of peaks, canyons, rivers and other terrain features, which pose challenges to UAV flight path planning and navigation.

[0079] Changeable climate: The climate in mountainous areas changes diversely, and sometimes there will be severe weather conditions such as strong winds, rainfall, and low temperatures, which puts forward requirements for the stability and tolerance of drones.

[0080] Dense vegetation: Mountainous areas have abundant vegetation and dense coverage, which may interfere with the visual perception and flight trajectory of the drone, so obstacle avoidance and anti-collision technology need to be considered.

[0081] Complex geological conditions: The geological conditions in mountainous areas are changeable, and there may be obstacles such as cliffs, rocks, and complex landforms, which pose challenges to the flight safety and control of drones.

[0082] Unstable communication signals: Mountainous areas have complex terrain, and communication signals may be blocked and interfered by the terrain, which may affect drone remote control and data transmission.

[0083] Therefore, when completing a mission, the UAV needs to fully consider and make reasonable and effective decisions to successfully complete it. By conducting example verification in mountainous areas, the performance and applicability of the method of the present invention to UAVs in complex terrain and environmental conditions can be effectively evaluated.

[0084] When a drone performs a mountain operation mission, in order to obtain accurate environmental information, it will fly at low altitudes to obtain more accurate sensor information. However, when flying at low altitudes, it will be affected by obstacles such as mountains and trees. Therefore, it is necessary to first mathematically model the mountain terrain. The function expression used is:

[0085]

[0086] In the formula, a~h are constant coefficients. Different map models can be modeled according to parameter changes to form a simulated map. x and y are the horizontal and vertical coordinates respectively, and z is the height coordinate value of the drone's location. For mountainous terrain, the formula can be transformed into:

[0087]

[0088] In the formula, hi is the highest height of the i-th mountain, (a i 、b i ) is the center coordinate of the i-th mountain, m i 、n i is the slope value of a specific point on the i-th mountain, and k is the total number of mountains encountered by the UAV when performing mountain operation missions.

[0089] The specific parameters of the drone are shown in Table 1:

[0090] Table 1 UAV parameters

[0091] parameter Numeric Maximum flight distance (m) 3000 Maximum rotation angle (°) 90 Flight speed (m / s) 5 Energy consumption per unit distance of horizontal flight (J / m) 300 Vertical flight energy consumption per unit distance (J / m) 100

[0092] like Figure 2 As shown in the figure, first, the problem background is described, a simulation map is constructed, and the basic flight parameters of the UAV are given; then, the parameter requirements and system structure information of the UAV system in the visualization model are used to accurately describe the optimization tasks and environmental settings of the UAV system, including determining the optimization goal, defining the state space and action space, and designing the reward function; as the input of the improved TD3 model, the optimal path of the UAV is output, and finally, the algorithm is verified and evaluated using the model generated based on MBSE. By simulating and testing the state machine diagram generated by MBSE, the performance and effect of the method of the present invention in different scenarios can be evaluated, which can provide reference and guidance for the deployment and application of actual systems and achieve more effective combination and application.

[0093] Storing the experience generated by MBSE system modeling and the experience explored through interaction with the environment in different experience pools helps to clearly distinguish these two different types of data, improve the stability and efficiency of training, and implement a more effective experience replay mechanism.

[0094] The drone first uses the environmental state information explored by the lidar, combined with the visualization model parameter information, to calculate the position and direction of the target and hill obstacles, determine the next action based on the exploration noise, and judge whether it has reached the target state or ended. If it is the end state, the environment needs to be reset and started again, otherwise it continues to learn in the environment until it reaches the target state. If the algorithm converges at this time, the process ends, otherwise it continues to generate target points and interact with the environment to learn until the process ends.

[0095] The method framework proposed in the present invention is tested in a mountainous environment. In the mountainous environment, the positions of the UAV, the target point and the mountain are randomly initialized, and the generated initial trajectory is as follows: Figure 3As shown, it shows the result that the UAV successfully reaches the target point by using the improved TD3 algorithm proposed in the present invention, wherein point A is the starting point of the UAV, point B is the target point, there are five mountains, namely M1, M2, M3, M4, and M5, and the UAV successfully avoids these five mountains to reach the target.

[0096] from Figure 3 It can be seen that by improving the training of TD3, the UAV can successfully make autonomous decisions on path planning in mountainous areas, and it can be seen that since the direction of movement is constrained by the angular velocity and the size of the turning angle, the turning angle of the quadcopter is less than 90°, which is an arc turn and meets the constraints.

[0097] When the number of hills increases to 8 and the number of targets is 4, the simulated trajectory is as follows Figure 4 As shown in the figure, point A is the starting point of the drone, point B is the target end point, there are three target points along the way, namely P, Q, and N, and there are eight mountains, namely M1, M2, M3, M4, M5, M6, M7, and M8. It can be seen that when the surrounding environment is more complex and the number of targets increases, the drone can still meet the constraints, avoid obstacles, and successfully complete the task.

[0098] Table 2 Comparison of algorithm test parameters under two environments

[0099] environment Success rate (%) Impact rate (%) Average Reward Run time(s) 5 hills, 1 target point 92.81 4.17 533.24 85.22 8 hills, 4 target points 87.65 6.44 285.32 140.89

[0100] Next, Table 2 shows the specific parameter comparison of the success rate, collision rate, average reward and running time of the improved TD3 algorithm under two environmental settings. It can be seen that due to the increase in environmental complexity and task difficulty, the success rate, average reward and running time of the improved TD3 have all decreased, and the collision rate has increased, which is expected. At the same time, the table shows that for different numbers of obstacles and target points, the improved TD3 model proposed in the present invention still has a high accuracy and efficiency, proving its effectiveness, reliability and generalization.

[0101] In system engineering, the state machine diagram focuses on how the devices in the system change their states according to events that occur over time, and explains the system's behavior process through the states in the state machine and the transitions between states. By integrating the functional logic models of each system and taking the state machine as the object, the correctness of the functional logic of the drone swarm system can be effectively verified. The state machine diagram can clearly describe the transition relationship between each state in the system and the states after the event is triggered. In the drone swarm system, the state machine diagram can be used to describe the different working modes or behavioral states of the drone, such as standby, flight, hovering, mission execution, return to base, etc. Through the state machine diagram, it is possible to verify whether the system's behavioral logic in different scenarios and conditions meets expectations, to ensure that the system can operate correctly according to the design requirements.

[0102] By comprehensively analyzing the system functional activities described in each activity diagram and verifying the system functional logic in combination with the state machine diagram, potential logical errors or inconsistencies can be discovered, which helps to discover and solve problems and improve the reliability and stability of the system. According to the simulation and test results, it can be found that the system operates stably. When dealing with the problem of autonomous decision-making of drones, the improved TD3 algorithm can be actively called to solve the optimization path. The improved TD3 algorithm and MBSE can be more effectively combined and applied by making full use of the parameter requirements and system structure information generated by MBSE, optimizing the task description and environment settings, improving the training process of the optimization algorithm, and verifying and evaluating it in the MBSE-based model.

[0103] The present invention combines the visualization model with the improved TD3 for path planning, which can shorten the waiting time for the UAV to actually perform the task, improve efficiency and reduce time cost.

[0104] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A UAV path planning method combining a visualization model and improved TD3, characterized in that: Including modeling part and path planning part, The modeling part includes: Obtain UAV mission requirements and form a requirements document; Convert the requirement document into a description of the drone's functions, construct a use case diagram, and build a functional model based on the use case diagram; Divide the UAV into multiple subsystems, obtain the structural information of each subsystem, and assign each function of the UAV to the subsystem that realizes the function according to the functional model, thereby forming a module definition diagram; Extract parameters from the UAV's physical characteristics, performance indicators, environmental conditions, and mission requirements to form a parameter map; Obtain multiple constraints from the UAV's physical characteristics, performance indicators, environmental conditions, and mission requirements, establish a corresponding constraint block for each constraint in the module definition diagram, define constraint parameters related to the constraint in the constraint block, convert each constraint into a mathematical expression, and add it to the parameter diagram; The path planning part includes: The structural information related to path planning is obtained from the module definition graph, and the parameters and constraints related to path planning are obtained from the parameter graph. The path planning task of the UAV is described using the structural information, parameters and constraints related to path planning, including determining the optimization objective, defining the state space and action space, and designing the reward function. The optimization objective, state space, action space and reward function are used as the input of the improved TD3 model to solve the optimal path of the UAV.

2. A method for UAV path planning combining a visualization model and improved TD3 as claimed in claim 1, characterized in that: The experience pool in the improved TD3 model is divided into two parts, which are used to store the experience generated by the modeling part and the experience explored by the interaction between the drone and the environment. The experience generated by the modeling part is generated through a visualization model, which includes a functional model, a module definition diagram and a parameter diagram. The experience explored by the interaction between the drone and the environment is obtained through sensor exploration.

3. A UAV path planning method combining a visualization model and improved TD3 as described in claim 1 or 2, characterized in that: The method further comprises: Simulations are performed using functional models to evaluate the effectiveness of path planning.

4. A method for UAV path planning combining a visualization model and improved TD3 as claimed in claim 3, characterized in that: The functional model includes an activity diagram and a state machine diagram; The state machine diagram is used to describe the different working modes or behavior states of the drone. The state machine diagram is used to verify whether the behavior logic of the drone in different scenarios and conditions meets the expectations of path planning, so as to evaluate the effect of path planning. By comprehensively analyzing the UAV functional activities described in each activity diagram and combining it with the state machine diagram, the UAV functional logic is verified to discover the logical errors or inconsistencies of the UAV.

5. A UAV path planning method combining a visualization model and improved TD3 as described in claim 1 or 2, characterized in that: The solution of the optimal path of the UAV includes: The optimization objective, state space, action space and reward function are used as the input of the improved TD3 model, and the Q value of the action to be taken is output. The route composed of actions corresponding to the maximum Q value at each moment in the period from the starting moment to the end moment is the optimal path for the drone.

6. A UAV path planning method combining a visualization model and improved TD3 as described in claim 1 or 2, characterized in that: The path planning is obstacle avoidance path planning, and the optimization goal is that the distance between the UAV and each obstacle in the flight area is greater than 0, and the reward function is the distance reward between the UAV and the obstacle.

7. A method for UAV path planning combining a visualization model and improved TD3 as described in claim 1 or 2, characterized in that: The path planning is the target strike path planning, and the optimization goal is to minimize the sum of the flight time from the starting point to the target area and the time for searching, identifying and striking the target in the target area. The reward function is the weighted sum of the reward for the drone's distance to the target, the reward for the drone's orientation angle with the target, and the reward for the drone's distance to the obstacle.

8. A method for UAV path planning combining a visualization model and improved TD3 as described in claim 1 or 2, characterized in that: The state space includes: the drone position, speed state, roll angle, pitch angle, yaw angle, and environmental state detected by the sensor; the action space includes: the drone's angular velocity and the drone's linear velocity in the X, Y, and Z directions.

9. A UAV path planning system combining a visualization model and improved TD3, characterized in that: Including modeling module and path planning module, The modeling module includes: Requirements analysis module, used to obtain UAV mission requirements and form requirements documents; Functional analysis module, used to convert the requirement document into a description of the drone’s functions, construct a use case diagram, and establish a functional model based on the use case diagram; The structural analysis module is used to divide the UAV into multiple subsystems, obtain the structural information of each subsystem, and allocate the various functions of the UAV to the subsystems that realize the functions according to the functional model, thereby forming a module definition diagram; The parameter analysis module is used to extract parameters from the physical characteristics, performance indicators, environmental conditions and mission requirements of the UAV to form a parameter diagram; obtain multiple constraints from the physical characteristics, performance indicators, environmental conditions and mission requirements of the UAV, establish a corresponding constraint block for each constraint in the module definition diagram, define constraint parameters related to the constraint in the constraint block, convert each constraint into a mathematical expression, and add it to the parameter diagram; The path planning module is used to obtain structural information related to path planning from a module definition graph, obtain parameters and constraints related to path planning from a parameter graph, and use the structural information, parameters and constraints related to path planning to describe the path planning task of the UAV, including determining the optimization target, defining the state space and action space, and designing the reward function; the optimization target, state space, action space and reward function are used as inputs of the improved TD3 model to solve the optimal path of the UAV.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by the processor, it implements a UAV path planning method combining a visualization model and improved TD3 as described in any one of claims 1 to 8.

Citation Information

Cited By

  • Automatic simulation test method for modeling through test requirements

    CN120104480A

  • Unmanned aerial vehicle autonomous task path planning method based on LCAEG-TD3 algorithm

    CN120890469A

  • Autonomous Mission Path Planning Method for Unmanned Aerial Vehicles Based on LCAEG-TD3 Algorithm

    CN120890469B