Rotor unmanned aerial vehicle simulation model generation method based on cascaded neural network

Through the cascade neural network and the improved particle swarm algorithm, the multi-rotor UAV model is decomposed into sub-models and a cascade neural network is constructed, which solves the problem of traditional simulation model construction being time-consuming and difficult to generalize, achieving simplification and Performance improvements.

CN118551484AActive Publication Date: 2024-08-27INST OF WAR STUDIES ACAD OF MILITARY SCI OF THE CHINESE PEOPLES LIBERATION ARMY

Patent Information

Application Number
CN202410992758.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-08-27
Estimated Expiration
2044-07-24

AI Technical Summary

Technical Problem

The traditional multi-rotor UAV simulation model construction method requires a wealth of professional knowledge, is time-consuming and difficult to generalize, making it difficult for non-professionals to build a precise and usable maneuver simulation model.

Method used

Using a method based on cascaded neural networks, the multi-rotor UAV model is decomposed into six sub-models. Through the improved particle swarm algorithm and neural network training set, a cascaded neural network model is constructed to meet different control needs and improve the model. performance.

Benefits of technology

It simplifies the simulation model construction process, reduces the requirements for professional knowledge, and improves the performance and generalization ability of the model, allowing non-professionals to build sophisticated multi-rotor UAV maneuver simulation models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551484A
    Figure CN118551484A
Patent Text Reader

Abstract

A rotor unmanned aerial vehicle simulation model generation method based on a cascade neural network comprises the steps that a multi-rotor unmanned aerial vehicle model is decomposed into six to-be-generated sub-models according to the maneuvering process of a multi-rotor unmanned aerial vehicle, and the cascade relation between the sub-models is determined; according to the functions of the six to-be-generated sub-models, obtaining input and output data types of the six to-be-generated sub-models; according to input and output data types of the six to-be-generated sub-models, obtaining and collecting multiple point location data of the multi-rotor unmanned aerial vehicle, and obtaining a training set, a test set and a verification set of the six to-be-generated sub-models; training by using an improved particle swarm algorithm to obtain six newly generated neural network models corresponding to the six to-be-generated sub-models; and according to a cascade relationship among the six to-be-generated sub-models, connecting the six newly generated neural network models to obtain a cascade neural network model of the multi-rotor unmanned aerial vehicle. The method improves the performance of a single model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method for generating a simulation model of a rotary-wing UAV based on a cascade neural network. Background Art

[0002] In recent years, the application of drones has shown a rapid growth trend and has become a research field that has attracted much attention from the academic community. There are many types and designs of drones, which can be roughly divided into two categories: rotary-wing drones and fixed-wing drones. Rotary-wing drones can be divided into single-rotor helicopter drones and multi-rotor drones. Multi-rotor drones are the most widely used due to their vertical take-off and landing capabilities, hovering stability, maneuverability, simple control, high load capacity and safety. In the event that a rotor is damaged or fails, multi-rotor drones can also maintain stable flight, which improves safety. Therefore, more and more researchers are conducting research on multi-rotor drone flight control algorithms, mission planning algorithms, and reconnaissance and recognition algorithms based on unmanned system simulation platforms.

[0003] Building an accurate and generalizable simulation model for multi-rotor drones is crucial to ensure the effectiveness, credibility, and robustness of simulation experiments. Based on this, there are many open-source, sophisticated and easy-to-use simulation platforms, but in the actual development and application of multi-rotor drone simulation models, there are still the following problems: the traditional simulation model construction method requires model developers to have rich professional knowledge, and the construction of an accurate simulation model takes a lot of time and effort. In addition, the internal parameters and dynamic characteristics of each multi-rotor drone model are different. Each type of multi-rotor drone needs to be modeled separately, which is also very time-consuming. For non-professionals, it is very difficult to build a sophisticated and usable multi-rotor drone maneuver simulation model.

[0004] In recent years, with the rapid development of deep learning, data-driven model building methods have exploded. This type of method uses the powerful nonlinear fitting ability and rapid modeling characteristics of neural networks to collect a large amount of high-quality flight data of drone models, and then use neural network training algorithms to model drone maneuver models. This type of method does not require rich professional knowledge and does not need to know the physical relationship between the model input and output, which greatly simplifies the modeling process and greatly reduces the computational complexity of mathematical formulas. Using artificial intelligence technology and deep learning methods to build simulation models, you only need to pay attention to and understand the input and output of the model. The parameters of each simulation model can be obtained through neural network learning and hidden in the parameters of the neural network. In practical applications, multi-rotor drone maneuver simulation models generally require multiple control inputs, such as throttle control, rotor speed control, or force and torque control. Therefore, most researchers currently use integrated networks to build simulation models. The network input and output data types are fixed and have certain limitations. Summary of the invention

[0005] Based on this, it is necessary to provide a method for generating a rotorcraft UAV simulation model based on a cascade neural network to address the above technical problems.

[0006] A method for generating a simulation model of a rotary-wing UAV based on a cascade neural network, wherein the rotary-wing UAV is a multi-rotor UAV, and the method comprises: According to the maneuvering process of the multi-rotor UAV, the multi-rotor UAV model is decomposed into 6 sub-models to be generated, and the cascade relationship between the 6 sub-models to be generated is obtained; According to the functions of the six sub-models to be generated, the input and output data types of the six sub-models to be generated are obtained; According to the types of input and output data of the 6 sub-models to be generated, multiple point data of the multi-rotor UAV are obtained and collected. After processing, 6 training sets, test sets and validation sets of the 6 sub-models to be generated corresponding to the 6 sub-models to be generated are obtained; Using the improved particle swarm algorithm, combined with the position of the sub-model to be generated in the cascade relationship, the sub-model training set, test set and validation set corresponding to the sub-model to be generated, 6 new generated neural network models corresponding to the 6 sub-models to be generated are trained; According to the cascade relationship between the six sub-models to be generated, the six newly generated neural network models are connected to obtain the cascade neural network model of the multi-rotor UAV.

[0007] In one embodiment, the six sub-models to be generated include a motor sub-model, a rotor aerodynamics sub-model, a multi-rotor UAV dynamic linear velocity calculation sub-model, a multi-rotor UAV dynamic angular velocity calculation sub-model, a multi-rotor UAV kinematic position calculation sub-model and a multi-rotor UAV kinematic attitude angle calculation sub-model.

[0008] In one embodiment, the input and output data types of the six sub-models to be generated include: the motor sub-model input is a throttle command between 0 and 1, and the output is the rotor speed; the rotor aerodynamics sub-model input is each rotor speed obtained from the motor sub-model, and the output is the thrust and torque generated by each rotor; the multi-rotor UAV dynamic linear velocity calculation sub-model input is the thrust generated by each rotor obtained from the rotor aerodynamics sub-model, the linear velocity of the multi-rotor UAV in the world coordinate system at the current moment, and the attitude angle of the multi-rotor UAV in the body coordinate system at the current moment, and the output is the linear velocity of the multi-rotor UAV in the world coordinate system at the next moment; the multi-rotor UAV dynamic angular velocity calculation sub-model input is obtained from the rotor aerodynamics sub-model The pull and torque generated by each rotor of the multi-rotor UAV is the angular velocity of the multi-rotor UAV in the world coordinate system at the current moment, and the output is the angular velocity of the multi-rotor UAV in the body coordinate system at the next moment; the multi-rotor UAV kinematic position calculation sub-model input is the linear velocity in the world coordinate system at the current moment and the position in the world coordinate system at the current moment obtained from the multi-rotor UAV dynamics linear velocity calculation sub-model, and the output is the position of the multi-rotor UAV in the world coordinate system at the next moment; the multi-rotor UAV motion attitude angle calculation sub-model input is the angular velocity in the world coordinate system at the current moment and the attitude angle in the world coordinate system at the current moment obtained from the multi-rotor UAV dynamics linear velocity calculation sub-model, and the output is the attitude angle in the world coordinate system of the multi-rotor UAV at the next moment.

[0009] In one embodiment, according to the input and output data types of the 6 sub-models to be generated, multiple point data of the multi-rotor drone are obtained and collected, and after processing, 6 training sets, test sets and verification sets of the 6 sub-models to be generated corresponding to the 6 sub-models to be generated are obtained, including: According to the input and output data types of the six sub-models to be generated, determine the points where data needs to be obtained; The data of these points are simultaneously acquired and collected at a fixed frequency to form an original data set; The original data set is normalized, and according to the input and output data types of the six sub-models to be generated, the data sets corresponding to the six sub-models to be generated are generated respectively; The data set of each sub-model to be generated is divided into a training set, a test set and a validation set, and finally 6 training sets, test sets and validation sets of the sub-models to be generated are obtained.

[0010] In one embodiment, the six sub-model training sets, test sets and verification sets to be generated include a motor sub-model training set, test set and verification set, a rotor aerodynamics sub-model training set, test set and verification set, a multi-rotor UAV dynamic linear velocity calculation sub-model training set, test set and verification set, a multi-rotor UAV dynamic angular velocity calculation sub-model training set, test set and verification set, a multi-rotor UAV kinematic position calculation sub-model training set, test set and verification set, and a multi-rotor UAV kinematic attitude angle calculation sub-model training set, test set and verification set.

[0011] In one embodiment, the improved particle swarm algorithm is used, and in combination with the position of the sub-model to be generated in the cascade relationship, the sub-model training set, test set and validation set to be generated corresponding to the sub-model to be generated are used to train 6 newly generated neural network models corresponding to the 6 sub-models to be generated, including: Step S601: Initialize an arbitrary deep neural network model as the initial model of the sub-model to be generated; Step S602: using the improved particle swarm algorithm and the training set and test set of the sub-model to be generated corresponding to the sub-model to be generated, to optimize the hyperparameters used in the initial model training; Step S603: If the sub-model to be generated has a previous sub-model connected to it in the cascade relationship, the prediction output of the previous sub-model connected to it is used as the training sample feature of the initial model, and the training set, test set and validation set of the sub-model to be generated corresponding to the sub-model to be generated are used to jointly train the network parameters of the initial model; if the sub-model to be generated does not have a previous sub-model connected to it in the cascade relationship, the training set, test set and validation set of the sub-model to be generated corresponding to the sub-model to be generated are directly used to train the network parameters of the initial model; Step S604: setting evaluation indicators, evaluating and obtaining the optimal network parameter values ​​of the initial model under the verification set of the sub-model to be generated; setting the network parameters of the initial model to the optimal network parameter values, and obtaining a newly generated neural network model, that is, a newly generated sub-model; Step S605: Repeat steps S601-S604 six times to obtain six newly generated neural network models corresponding to the six sub-models to be generated.

[0012] In one embodiment, the use of the improved particle swarm algorithm and the training set and test set of the sub-model to be generated corresponding to the sub-model to be generated to optimize the hyper parameters used in the initial model training includes: Step S701: Initialize the particle's position, velocity, learning factor, population size, number of iterations, and inertia factor; Step S702: reading the particle position, and modifying the neural network model structure of the initial model based on the particle position; Step S703: training the initial model using the training set of the sub-model to be generated corresponding to the sub-model to be generated; Step S704: testing the trained initial model through the to-be-generated sub-model test set corresponding to the to-be-generated sub-model to obtain the particle fitness value; Step S705: If the particle fitness value does not meet the requirements, the test fails, and the particle speed, position, individual optimal solution and global optimal solution are updated through the improved particle swarm algorithm, and steps S702-S704 are repeated; if the particle fitness value meets the requirements, step S706 is executed; Step S706: Output the hyperparameters corresponding to the neural network model with the smallest test error as the hyperparameters of the initial model.

[0013] In one embodiment, the six newly generated neural network models include a motor neural network model, a rotor aerodynamics neural network model, a multi-rotor UAV dynamic linear velocity calculation neural network model, a multi-rotor UAV dynamic angular velocity calculation neural network model, a multi-rotor UAV kinematic position calculation neural network model, and a multi-rotor UAV kinematic attitude angle calculation neural network model.

[0014] In one of the embodiments, the particle fitness value includes a mean square error calculated using a test set of the sub-model to be generated corresponding to the sub-model to be generated.

[0015] The above-mentioned rotor UAV simulation model generation method based on cascade neural network proposes a cascade framework according to the physical process of multi-rotor UAV maneuvering, and divides the multi-rotor UAV maneuvering simulation model into multiple sub-models. Different sub-models can be freely connected to meet different control requirements. And the framework uses a large amount of intermediate data, which can improve the performance of the overall model. At the same time, each sub-model is constructed by a neural network respectively. In the context of UAV simulation model construction, the standard particle swarm algorithm is improved through a roundabout foraging strategy to avoid premature particles and fall into a local optimal solution. In this technical solution, the relationship between the number of neural network layers and the dimension of the particle solution is also used to propose a variable-dimensional particle swarm algorithm, which can simultaneously optimize the number of layers of the neural network model and the number of nodes in each hidden layer. By improving the particle swarm algorithm, the hyperparameters of each model are optimized, and the performance of a single model is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of a flow chart of a method for generating a simulation model of a rotary-wing UAV based on a cascade neural network in one embodiment; Figure 2A diagram of a process of modeling a rotorcraft UAV maneuvering model in one embodiment; Figure 3 A cascaded deep neural network framework for a rotary wing drone maneuvering process in one embodiment; Figure 4 A cascaded deep neural network for a rotorcraft UAV maneuvering process in one embodiment; Figure 5 A schematic diagram of one-dimensional optimization of a particle swarm algorithm based on a roundabout foraging strategy in one embodiment; Figure 6 A schematic diagram of a variable-dimensional particle swarm algorithm calculation process in one embodiment; Figure 7 Schematic diagram of key technologies for studying a cascaded multi-rotor UAV maneuvering deep neural network model in one embodiment. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application 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 application and are not used to limit the present application.

[0018] In one embodiment, a method for generating a simulation model of a rotary-wing UAV based on a cascade neural network, wherein the rotary-wing UAV is a multi-rotor UAV, and the process is as follows: Figure 1 As shown, the method includes: According to the maneuvering process of the multi-rotor UAV, the multi-rotor UAV model is decomposed into 6 sub-models to be generated, and the cascade relationship between the 6 sub-models to be generated is obtained; Among them, through a detailed analysis of the maneuvering process of the multi-rotor UAV, the modeling process of the multi-rotor UAV maneuvering model can be obtained as shown in the figure below: Figure 2 shown.

[0019] According to the functions of the six sub-models to be generated, the input and output data types of the six sub-models to be generated are obtained; According to the types of input and output data of the 6 sub-models to be generated, multiple point data of the multi-rotor UAV are obtained and collected. After processing, 6 training sets, test sets and validation sets of the 6 sub-models to be generated corresponding to the 6 sub-models to be generated are obtained; Using the improved particle swarm algorithm, combined with the position of the sub-model to be generated in the cascade relationship, the sub-model training set, test set and validation set corresponding to the sub-model to be generated, 6 new generated neural network models corresponding to the 6 sub-models to be generated are trained; According to the cascade relationship between the six sub-models to be generated, the six newly generated neural network models are connected to obtain the cascade neural network model of the multi-rotor UAV.

[0020] Specifically, according to the maneuvering principle and modeling process of multi-rotor UAV, a cascaded deep neural network framework for the maneuvering process of multi-rotor UAV is proposed. Figure 3 In this framework, D is a delay block, representing the data of the previous moment, and NN1 to NN6 represent the neural networks corresponding to the six sub-models.

[0021] In one embodiment, the six sub-models to be generated include a motor sub-model, a rotor aerodynamics sub-model, a multi-rotor UAV dynamic linear velocity calculation sub-model, a multi-rotor UAV dynamic angular velocity calculation sub-model, a multi-rotor UAV kinematic position calculation sub-model and a multi-rotor UAV kinematic attitude angle calculation sub-model.

[0022] In one embodiment, the input and output data types of the six sub-models to be generated include: the motor sub-model input is a throttle command between 0 and 1, and the output is the rotor speed; the rotor aerodynamics sub-model input is each rotor speed obtained from the motor sub-model, and the output is the thrust and torque generated by each rotor; the multi-rotor UAV dynamic linear velocity calculation sub-model input is the thrust generated by each rotor obtained from the rotor aerodynamics sub-model, the linear velocity of the multi-rotor UAV in the world coordinate system at the current moment, and the attitude angle of the multi-rotor UAV in the body coordinate system at the current moment, and the output is the linear velocity of the multi-rotor UAV in the world coordinate system at the next moment; the multi-rotor UAV dynamic angular velocity calculation sub-model input is obtained from the rotor aerodynamics sub-model The pull and torque generated by each rotor of the multi-rotor UAV is the angular velocity of the multi-rotor UAV in the world coordinate system at the current moment, and the output is the angular velocity of the multi-rotor UAV in the body coordinate system at the next moment; the multi-rotor UAV kinematic position calculation sub-model input is the linear velocity in the world coordinate system at the current moment and the position in the world coordinate system at the current moment obtained from the multi-rotor UAV dynamics linear velocity calculation sub-model, and the output is the position of the multi-rotor UAV in the world coordinate system at the next moment; the multi-rotor UAV motion attitude angle calculation sub-model input is the angular velocity in the world coordinate system at the current moment and the attitude angle in the world coordinate system at the current moment obtained from the multi-rotor UAV dynamics linear velocity calculation sub-model, and the output is the attitude angle in the world coordinate system of the multi-rotor UAV at the next moment.

[0023] The input of the motor model is the throttle command between 0 and 1, and the output is the rotor speed. The input-output relationship is as follows: ; in, , is a natural number, It is The rotation speed of the rotor, It is The throttle command received by each motor, It is the number of rotors of a multi-rotor drone.

[0024] The input of the rotor aerodynamic model is the speed of each rotor obtained from the motor model, and the output includes the thrust and torque generated by each rotor. The input-output relationship is expressed as follows: ; in, It is The thrust generated by the rotor It is The torque generated by the rotor, It is The rotation speed of the rotor.

[0025] The input of the multi-rotor UAV dynamics model is the control quantity at the current moment, that is, the pull and torque generated by each rotor output in the rotor aerodynamic model, the linear velocity of the UAV in the world coordinate system at the current moment and the angular velocity in the body coordinate system, and the attitude angle of the UAV in the body coordinate system at the current moment. The output is the linear velocity of the UAV in the world coordinate system and the angular velocity in the body coordinate system at the next moment. The input-output relationship is expressed as follows: ; ; in, yes The linear velocity of the multi-rotor drone in the world coordinate system at this moment, yes The angular velocity of the multi-rotor drone in the body coordinate system at this moment, It is Rotor The pulling force generated at any time, It is Rotor The torque generated at any moment, yes The attitude angle of the drone in the world coordinate system at this moment, Including roll angle, pitch angle and yaw angle, namely: ; in, is the roll angle of the drone, is the pitch angle of the drone, is the yaw angle of the drone.

[0026] The input of the multi-rotor UAV kinematic model is the linear velocity in the world coordinate system at the current moment, the angular velocity in the body coordinate system at the current moment, the position in the world coordinate system at the current moment, and the attitude angle in the body coordinate system at the current moment obtained from the multi-rotor UAV dynamics model. The input-output relationship is expressed as follows: ; ; in, yes The position of the multi-rotor drone in the world coordinate system at this moment, yes The attitude angle of the drone in the world coordinate system at the moment, yes The position of the multi-rotor drone in the world coordinate system at this moment, yes The linear velocity of the multi-rotor drone in the world coordinate system at this moment, yes The angular velocity of the multi-rotor drone in the body coordinate system at this moment.

[0027] In one embodiment, according to the input and output data types of the 6 sub-models to be generated, multiple point data of the multi-rotor drone are obtained and collected, and after processing, 6 training sets, test sets and verification sets of the 6 sub-models to be generated corresponding to the 6 sub-models to be generated are obtained, including: According to the input and output data types of the six sub-models to be generated, determine the points where data needs to be obtained; Among them, by analyzing the physical process of multi-rotor drone maneuvers, we can get the input and output data types of each component. Then collect this type of data of the drone model and use it as a training sample for the deep neural network to train the model. The input and output data types of each sub-model and the corresponding physical formulas are shown in Table 1.

[0028]

[0029] The data of these points are simultaneously acquired and collected at a fixed frequency to form an original data set; Specifically, data collected at a sampling frequency of 60 Hz include the throttle command obtained by each motor, the rotation speed of each rotor, the thrust and torque generated by each rotor, the linear speed, angular velocity, position and attitude angle of the multi-rotor drone.

[0030] The original data set is normalized, and according to the input and output data types of the six sub-models to be generated, the data sets corresponding to the six sub-models to be generated are generated respectively; The data set of each sub-model to be generated is divided into a training set, a test set and a validation set, and finally 6 training sets, test sets and validation sets of the sub-models to be generated are obtained.

[0031] In one embodiment, the six sub-model training sets, test sets and verification sets to be generated include a motor sub-model training set, test set and verification set, a rotor aerodynamics sub-model training set, test set and verification set, a multi-rotor UAV dynamic linear velocity calculation sub-model training set, test set and verification set, a multi-rotor UAV dynamic angular velocity calculation sub-model training set, test set and verification set, a multi-rotor UAV kinematic position calculation sub-model training set, test set and verification set, and a multi-rotor UAV kinematic attitude angle calculation sub-model training set, test set and verification set.

[0032] In one embodiment, the improved particle swarm algorithm is used, and in combination with the position of the sub-model to be generated in the cascade relationship, the sub-model training set, test set and validation set to be generated corresponding to the sub-model to be generated are used to train 6 newly generated neural network models corresponding to the 6 sub-models to be generated, including: Step S601: Initialize an arbitrary deep neural network model as the initial model of the sub-model to be generated; Step S602: using the improved particle swarm algorithm and the training set and test set of the sub-model to be generated corresponding to the sub-model to be generated, to optimize the hyperparameters used in the initial model training; Among them, the particle swarm optimization algorithm finds the optimal solution by simulating the search and movement process of particles in the solution space.

[0033] (1) In the early stage of search iteration, particles of the standard particle swarm algorithm tend to converge to the vicinity of the current global optimal solution. As the iteration proceeds, the entire swarm quickly lacks particle diversity, making it difficult to jump out of the local optimal solution. To solve this problem, the present invention proposes a particle swarm algorithm based on a roundabout foraging strategy to improve the standard particle swarm algorithm. The expression of the particle swarm optimization algorithm based on the roundabout foraging strategy is as follows: ; ; in, is the current iteration number of the particle swarm, For the next iteration particle In the The speed of the dimension, For the next iteration particle In the The value on the dimension, For the current particle In the The value on the dimension, is the inertia term, and its expression is as follows: ; in is the adjustable inertia weight coefficient, For the current particle In the The speed of the dimension.

[0034] is an individual learning item, and its expression is as follows: ; in is the individual acceleration factor, is a random number between 0 and 1, It is a particle The current optimal solution Dimensional value, social learning term The expression is as follows: ; in For other random particles The best historical solution The value of the dimension, is the total number of iterations set, is the social acceleration factor, is the optimal solution in the entire particle swarm The value of the dimension. The function graph of Figure 4 As shown. The horizontal axis represents the ratio of the current number of iterations to the total number of iterations. At the beginning of the iteration, the random value has a greater probability of selecting the left part, that is, selecting formula (12) to expand the detection space. At the end of the iteration, the random value has a greater probability of selecting the right part, that is, selecting formula (12) to accelerate the particle convergence. The one-dimensional optimization schematic diagram is shown in Figure 5 As shown. is the historical optimal solution of a particle, is the current global optimal solution, is the current position of the particle. Through the roundabout foraging strategy, the position of the particle is optimized. Masayoshi The position is updated in the direction, thereby jumping out of the local optimal solution and finding the global optimal solution.

[0035] (2) When optimizing the network structure by particle swarm algorithm, it is usually necessary to determine the number of hidden layers and then optimize the number of neurons in each hidden layer. The standard particle swarm algorithm cannot optimize the number of hidden layers and the number of neurons in each hidden layer at the same time. To solve this problem, the present invention uses the relationship between the number of hidden layers and the number of dimensions of the solution to propose a variable-dimensional particle swarm algorithm. Divided into two sets, one set is a fixed dimension set , the other group is a variable dimension set , which can be expressed as: ; Fixed Dimension Collection The elements have an initial learning rate , learning rate decay coefficient , learning rate decay period and the number of hidden layers in the network .

[0036] Fixed Dimension Collection It can be expressed as: ; Variable Dimension Collection The elements in are the number of nodes in each hidden layer , variable dimension collection It can be expressed as: ; in A variable-dimensional collection Dimensions, fixed dimension set The number of hidden layers in the network determines the variable dimension set The dimensions are: .

[0037] The calculation process of variable dimension particle swarm algorithm is as follows Figure 6 As shown. represents the solution of the particle that needs to be updated. According to formula (8), the particle solution update includes individual learning terms and social learning terms, so The update needs to learn from the other two sets of solutions, namely , The darker dots represent fixed-dimensional sets. The light-colored dots represent variable-dimensional sets. The elements in .

[0038] The calculation steps of variable-dimensional particle swarm algorithm are as follows: Step 1: Calculate the fixed dimension set of the next iteration of the particle value. , and A fixed dimension set The dimensions are consistent, so the calculations can be done directly.

[0039] Step 2: Align variable dimension collections Through the first step, we can get a fixed dimension set According to formula (16), the variable dimension set for the next iteration is obtained The dimension ( Figure 6 4 is used as an example). Therefore, for the current variable dimension set If the dimension is larger than the dimension of the next iteration, the redundant elements are deleted directly (such as ). The current variable dimension set If the dimension of is smaller than the dimension of the next iteration, it is supplemented by random initialization (such as , ). If they are equal, they remain unchanged.

[0040] Step 3: Calculate the variable dimension set of the next iteration of the particle Through the second step, , and A variable dimension collection The dimensions are aligned so calculations can be done directly.

[0041] Step S603: If the sub-model to be generated has a previous sub-model connected to it in the cascade relationship, the prediction output of the previous sub-model connected to it is used as the training sample feature of the initial model, and the training set, test set and validation set of the sub-model to be generated corresponding to the sub-model to be generated are used to jointly train the network parameters of the initial model; if the sub-model to be generated does not have a previous sub-model connected to it in the cascade relationship, the training set, test set and validation set of the sub-model to be generated corresponding to the sub-model to be generated are directly used to train the network parameters of the initial model; Step S604: setting evaluation indicators, evaluating and obtaining the optimal network parameter values ​​of the initial model under the verification set of the sub-model to be generated; setting the network parameters of the initial model to the optimal network parameter values, and obtaining a newly generated neural network model, that is, a newly generated sub-model; Step S605: Repeat steps S601-S604 six times to obtain six newly generated neural network models corresponding to the six sub-models to be generated.

[0042] In one embodiment, the use of the improved particle swarm algorithm and the training set and test set of the sub-model to be generated corresponding to the sub-model to be generated to optimize the hyper parameters used in the initial model training includes: Step S701: Initialize the particle's position, velocity, learning factor, population size, number of iterations, and inertia factor; Step S702: reading the particle position, and modifying the neural network model structure of the initial model based on the particle position; Step S703: training the initial model using the training set of the sub-model to be generated corresponding to the sub-model to be generated; Step S704: testing the trained initial model through the to-be-generated sub-model test set corresponding to the to-be-generated sub-model to obtain the particle fitness value; Step S705: If the particle fitness value does not meet the requirements, the test fails, and the particle speed, position, individual optimal solution and global optimal solution are updated through the improved particle swarm algorithm, and steps S702-S704 are repeated; if the particle fitness value meets the requirements, step S706 is executed; Step S706: Output the hyperparameters corresponding to the neural network model with the smallest test error as the hyperparameters of the initial model.

[0043] In one embodiment, if Figure 7 As shown, the six newly generated neural network models include a motor neural network model, a rotor aerodynamics neural network model, a multi-rotor UAV dynamic linear velocity calculation neural network model, a multi-rotor UAV dynamic angular velocity calculation neural network model, a multi-rotor UAV kinematic position calculation neural network model, and a multi-rotor UAV kinematic attitude angle calculation neural network model.

[0044] In one of the embodiments, the particle fitness value includes a mean square error calculated using a test set of the sub-model to be generated corresponding to the sub-model to be generated.

[0045] The above-mentioned rotor UAV simulation model generation method based on cascade neural network proposes a cascade framework according to the physical process of multi-rotor UAV maneuvering, and divides the multi-rotor UAV maneuvering simulation model into multiple sub-models. Different sub-models can be freely connected to meet different control requirements. And the framework uses a large amount of intermediate data, which can improve the performance of the overall model. At the same time, each sub-model is constructed by a neural network respectively. In the context of UAV simulation model construction, the standard particle swarm algorithm is improved through a roundabout foraging strategy to avoid premature particles and fall into a local optimal solution. In this technical solution, the relationship between the number of neural network layers and the dimension of the particle solution is also used to propose a variable-dimensional particle swarm algorithm, which can simultaneously optimize the number of layers of the neural network model and the number of nodes in each hidden layer. By improving the particle swarm algorithm, the hyperparameters of each model are optimized, and the performance of a single model is improved.

[0046] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0047] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for generating a simulation model of a rotary-wing UAV based on a cascade neural network, characterized in that: The rotor UAV is a multi-rotor UAV, and the method comprises: According to the maneuvering process of the multi-rotor UAV, the multi-rotor UAV model is decomposed into 6 sub-models to be generated, and the cascade relationship between the 6 sub-models to be generated is obtained; According to the functions of the six sub-models to be generated, the input and output data types of the six sub-models to be generated are obtained; According to the types of input and output data of the 6 sub-models to be generated, multiple point data of the multi-rotor UAV are obtained and collected. After processing, 6 training sets, test sets and validation sets of the 6 sub-models to be generated corresponding to the 6 sub-models to be generated are obtained; Using the improved particle swarm algorithm, combined with the position of the sub-model to be generated in the cascade relationship, the sub-model training set, test set and validation set corresponding to the sub-model to be generated, 6 new generated neural network models corresponding to the 6 sub-models to be generated are trained; According to the cascade relationship between the six sub-models to be generated, the six newly generated neural network models are connected to obtain the cascade neural network model of the multi-rotor UAV.

2. The method according to claim 1, characterized in that The six sub-models to be generated include a motor sub-model, a rotor aerodynamics sub-model, a multi-rotor UAV dynamics linear velocity calculation sub-model, a multi-rotor UAV dynamics angular velocity calculation sub-model, a multi-rotor UAV kinematic position calculation sub-model and a multi-rotor UAV kinematic attitude angle calculation sub-model.

3. The method according to claim 2, characterized in that The input and output data types of the six sub-models to be generated include: the motor sub-model input is a throttle command between 0 and 1, and the output is the rotor speed; the rotor aerodynamics sub-model input is each rotor speed obtained from the motor sub-model, and the output is the thrust and torque generated by each rotor; the multi-rotor UAV dynamic linear velocity calculation sub-model input is the thrust generated by each rotor obtained from the rotor aerodynamics sub-model, the linear velocity of the multi-rotor UAV in the world coordinate system at the current moment, and the attitude angle of the multi-rotor UAV in the body coordinate system at the current moment, and the output is the linear velocity of the multi-rotor UAV in the world coordinate system at the next moment; the multi-rotor UAV dynamic angular velocity calculation sub-model input is each rotor obtained from the rotor aerodynamics sub-model The generated tension and torque, the angular velocity of the multi-rotor UAV in the world coordinate system at the current moment, and the output are the angular velocity of the multi-rotor UAV in the body coordinate system at the next moment; the multi-rotor UAV kinematic position calculation sub-model input is the linear velocity in the world coordinate system at the current moment and the position in the world coordinate system at the current moment obtained from the multi-rotor UAV dynamics linear velocity calculation sub-model, and the output is the position of the multi-rotor UAV in the world coordinate system at the next moment; the multi-rotor UAV motion attitude angle calculation sub-model input is the angular velocity in the world coordinate system at the current moment and the attitude angle in the world coordinate system at the current moment obtained from the multi-rotor UAV dynamics linear velocity calculation sub-model, and the output is the attitude angle of the multi-rotor UAV in the world coordinate system at the next moment.

4. The method according to claim 3, characterized in that: According to the input and output data types of the 6 sub-models to be generated, multiple point data of the multi-rotor drone are obtained and collected. After processing, 6 training sets, test sets and verification sets of the 6 sub-models to be generated corresponding to the 6 sub-models to be generated are obtained, including: According to the input and output data types of the six sub-models to be generated, determine the points where data needs to be obtained; The data of these points are simultaneously acquired and collected at a fixed frequency to form an original data set; The original data set is normalized, and according to the input and output data types of the six sub-models to be generated, the data sets corresponding to the six sub-models to be generated are generated respectively; The data set of each sub-model to be generated is divided into a training set, a test set and a validation set, and finally 6 training sets, test sets and validation sets of the sub-models to be generated are obtained.

5. The method according to claim 4, characterized in that The six sub-model training sets, test sets and validation sets to be generated include a motor sub-model training set, a test set and a validation set, a rotor aerodynamics sub-model training set, a test set and a validation set, a multi-rotor UAV dynamic linear velocity calculation sub-model training set, a test set and a validation set, a multi-rotor UAV dynamic angular velocity calculation sub-model training set, a test set and a validation set, a multi-rotor UAV kinematic position calculation sub-model training set, a test set and a validation set, and a multi-rotor UAV kinematic attitude angle calculation sub-model training set, a test set and a validation set.

6. The method according to claim 5, characterized in that The improved particle swarm algorithm is used, and combined with the position of the sub-model to be generated in the cascade relationship, the sub-model training set, test set and verification set corresponding to the sub-model to be generated, the 6 newly generated neural network models corresponding to the 6 sub-models to be generated are trained, including: Step S601: Initialize an arbitrary deep neural network model as the initial model of the sub-model to be generated; Step S602: using the improved particle swarm algorithm and the training set and test set of the sub-model to be generated corresponding to the sub-model to be generated, to optimize the hyperparameters used in the initial model training; Step S603: If the sub-model to be generated has a previous sub-model connected to it in the cascade relationship, the prediction output of the previous sub-model connected to it is used as the training sample feature of the initial model, and the training set, test set and validation set of the sub-model to be generated corresponding to the sub-model to be generated are used to jointly train the network parameters of the initial model; if the sub-model to be generated does not have a previous sub-model connected to it in the cascade relationship, the training set, test set and validation set of the sub-model to be generated corresponding to the sub-model to be generated are directly used to train the network parameters of the initial model; Step S604: setting evaluation indicators, evaluating and obtaining the optimal network parameter values ​​of the initial model under the verification set of the sub-model to be generated; setting the network parameters of the initial model to the optimal network parameter values, and obtaining a newly generated neural network model, that is, a newly generated sub-model; Step S605: Repeat steps S601-S604 six times to obtain six newly generated neural network models corresponding to the six sub-models to be generated.

7. The method according to claim 6, characterized in that The method of using the improved particle swarm algorithm and the training set and test set of the sub-model to be generated corresponding to the sub-model to be generated to optimize the hyper parameters used in the initial model training includes: Step S701: Initialize the particle's position, velocity, learning factor, population size, number of iterations, and inertia factor; Step S702: reading the particle position, and modifying the neural network model structure of the initial model based on the particle position; Step S703: training the initial model using the training set of the sub-model to be generated corresponding to the sub-model to be generated; Step S704: testing the trained initial model through the to-be-generated sub-model test set corresponding to the to-be-generated sub-model to obtain the particle fitness value; Step S705: If the particle fitness value does not meet the requirements, the test fails, and the particle speed, position, individual optimal solution and global optimal solution are updated through the improved particle swarm algorithm, and steps S702-S704 are repeated; if the particle fitness value meets the requirements, step S706 is executed; Step S706: Output the hyperparameters corresponding to the neural network model with the smallest test error as the hyperparameters of the initial model.

8. The method according to claim 7, characterized in that The six newly generated neural network models include a motor neural network model, a rotor aerodynamics neural network model, a multi-rotor UAV dynamic linear velocity calculation neural network model, a multi-rotor UAV dynamic angular velocity calculation neural network model, a multi-rotor UAV kinematic position calculation neural network model, and a multi-rotor UAV kinematic attitude angle calculation neural network model.

9. The method according to claim 8, characterized in that The particle fitness value includes a mean square error calculated using a test set of the sub-model to be generated corresponding to the sub-model to be generated.

Citation Information

Patent Citations

  • Fractional order control method for under-actuated unmanned aerial vehicle

    CN108762070A

  • Simulated unmanned aerial vehicle flight control method for unreal engine

    CN114063650A

  • Method and system for optimizing arrangement structure of wing-shaped fins of printed circuit board type heat exchanger

    CN114741961A

  • Control method and system of variable sweepback wing unmanned aerial vehicle, unmanned aerial vehicle and storage medium

    CN116700020A

  • Power load prediction method, device and equipment of power station and storage medium

    CN116960989A

Cited By

  • Multi-rotor unmanned aerial vehicle feedforward control method based on dynamic cascade pulse neural network

    CN120010507A