A method for generating simulation models for rotorcraft UAV maneuvers based on domain adaptation transfer learning
Through the method based on domain adaptive transfer learning, the multi-rotor UAV model is decomposed into sub-models and transferred learning is performed, which solves the problem of insufficient data samples and builds a high-precision multi-rotor UAV maneuver simulation model, especially in six High-precision model construction is achieved when the rotary-wing UAV has less data.
Patent Information
- Application Number
- CN202410992757.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-24
AI Technical Summary
Existing multi-rotor UAV maneuver model modeling methods are difficult to build high-precision models when there is little data, especially the traditional method cannot effectively handle the problem of insufficient data samples.
Using a method based on domain adaptive transfer learning, the multi-rotor UAV model is decomposed into four sub-models, and the flight data of the source domain and target domain are used for transfer learning. A high-precision construction is constructed through the cascade neural network model and integrated calibration method. maneuver simulation model.
In the case where there is little flight data for hex-rotor UAVs, a large amount of flight data and co-occurrence data sets of quad-rotor UAVs are used to construct a highly accurate hexa-rotor UAV maneuvering model, which reduces the cumulative error of the network and effectively A high-precision multi-rotor UAV simulation model was constructed.
Smart Images

Figure CN118520599B
Abstract
Description
Technical Field
[0001] The present application relates to the field of robot simulation technology, and in particular to a method for generating a rotorcraft UAV maneuver simulation model based on domain adaptation transfer learning. Background Art
[0002] A multi-rotor UAV is an aircraft that generates lift by rotating its rotors through motors. The number and layout of its rotors determine the stability and maneuverability of the UAV. The flight attitude and flight position can be controlled by changing the speed of the rotors. Multi-rotor UAVs are the most widely used among UAVs due to their advantages such as vertical take-off and landing capability, hovering stability, maneuverability, simple control, high load capacity and safety. They usually include four or more rotors, and the most common ones are quad-rotor UAVs and hexacopter UAVs. More and more researchers are conducting research on multi-rotor UAV flight control algorithms, mission planning algorithms, and reconnaissance and recognition algorithms based on unmanned system simulation platforms. Therefore, building an accurate and stable simulation model for multi-rotor UAVs is crucial to ensure the effectiveness, robustness and credibility of simulation experiments.
[0003] The maneuver model is the foundation and core of the multi-rotor simulation model. By modeling the maneuverability function of the multi-rotor UAV and using it for simulation, it can effectively support the training of various UAV airborne intelligent algorithms. The traditional multi-rotor UAV maneuver model modeling method constructs a maneuver mathematical model through mathematical physics analysis, which requires rich professional knowledge and is difficult to generalize. With the development of artificial intelligence, more and more researchers use deep learning methods to construct multi-rotor UAV maneuver models, and use a large amount of real flight data or simulated flight data to train neural network models to obtain UAV maneuver models. Compared with traditional methods, deep learning methods can simplify the modeling process, can well fit nonlinear maneuver equations that are difficult or impossible to represent with traditional methods, and have stronger adaptability and generalization capabilities. Deep learning methods can effectively construct high-precision UAV maneuver simulation models when data is sufficient. However, the data obtained in actual scenarios is limited, and the current intelligent construction methods do not take into account the situation of fewer data samples. Summary of the invention
[0004] Based on this, it is necessary to provide a method for generating a rotorcraft UAV maneuver simulation model based on domain adaptation transfer learning to address the above technical problems.
[0005] A method for generating a maneuver simulation model of a rotary-wing UAV based on domain adaptive transfer learning, wherein the rotary-wing UAV is a multi-rotor UAV, and the method comprises:
[0006] According to the maneuvering process of the multi-rotor UAV, the multi-rotor UAV model is decomposed into four sub-models, and the cascade relationship between the four sub-models is obtained; the four sub-models include the motor sub-model, the rotor aerodynamic sub-model, the multi-rotor UAV dynamics sub-model and the multi-rotor UAV kinematics sub-model;
[0007] Acquire and collect various flight data of target type multi-rotor drones and data source type multi-rotor drones to obtain target domain datasets and source domain datasets;
[0008] Number of power sources for multi-rotor drones by data source type , the motor sub-model and the rotor aerodynamic sub-model are decomposed into Motor sub-model and A rotor aerodynamic submodel, is a natural number;
[0009] Using the source domain data set, the motor sub-model, rotor aerodynamic sub-model and multi-rotor UAV kinematic sub-model are modeled and trained to obtain the motor neural network model, rotor aerodynamic neural network model, position kinematic neural network model and attitude kinematic neural network model.
[0010] Using the target domain dataset and the source domain dataset, the domain adaptation transfer learning technology is used to model and train the multi-rotor UAV dynamics sub-model, and the linear velocity dynamics heterogeneous domain adaptation neural network model and the angular velocity dynamics heterogeneous domain adaptation neural network model are obtained;
[0011] The motor neural network model, the rotor aerodynamic neural network model, the linear velocity dynamics heterogeneous domain adaptation neural network model, the angular velocity dynamics heterogeneous domain adaptation neural network model, the position kinematics neural network model and the attitude kinematics neural network model are connected in a cascade relationship to obtain a cascade neural network model of the target type multi-rotor UAV;
[0012] Using the target domain dataset and an integrated calibration method, the parameters of the target type multi-rotor UAV cascade neural network model are calibrated, and finally the target type multi-rotor UAV maneuver simulation model is obtained.
[0013] In one embodiment, the various types of flight data 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 drone.
[0014] In one embodiment, the target type multi-rotor drone and the data source type multi-rotor drone include a quad-rotor drone and a hexacopter drone.
[0015] In one embodiment, the target domain dataset and the source domain dataset are used to model and train the multi-rotor UAV dynamics sub-model using domain adaptation transfer learning technology to obtain a linear velocity dynamics heterogeneous domain adaptation neural network model and an angular velocity dynamics heterogeneous domain adaptation neural network model, including:
[0016] Match the target domain dataset and the source domain dataset to obtain a co-occurrence dataset, a co-trend dataset, a target domain co-occurrence dataset, a source domain co-occurrence dataset, a target domain co-trend dataset, a source domain co-trend dataset, a target domain auxiliary dataset, and a source domain auxiliary dataset;
[0017] Constructing an initial linear velocity dynamics heterogeneous depth domain adaptation network model and an initial angular velocity dynamics heterogeneous domain adaptation neural network model; wherein the initial linear velocity dynamics heterogeneous depth domain adaptation network model and the initial angular velocity dynamics heterogeneous domain adaptation neural network model both include four modules, namely, a source domain dataset feature conversion module SN, a target domain dataset feature conversion module TN, a feature subspace conversion label module CN1, and a feature subspace conversion auxiliary data label module CN2;
[0018] The objective function is designed to update the initial linear velocity dynamics heterogeneous depth domain adaptation network model and the initial angular velocity dynamics heterogeneous domain adaptation neural network model respectively, so as to obtain the final linear velocity dynamics heterogeneous domain adaptation neural network model and the final angular velocity dynamics heterogeneous domain adaptation neural network model.
[0019] In one embodiment, the design objective function updates the initial linear velocity dynamics heterogeneous depth domain adaptation network and the initial angular velocity dynamics heterogeneous domain adaptation neural network model respectively to obtain the final linear velocity dynamics heterogeneous domain adaptation neural network model and the final angular velocity dynamics heterogeneous domain adaptation neural network model, including:
[0020] According to the co-occurrence dataset, the co-trend dataset, the target domain co-occurrence dataset, the source domain co-occurrence dataset, the target domain co-trend dataset, the source domain co-trend dataset, the target domain auxiliary dataset and the source domain auxiliary dataset, the target domain linear speed co-occurrence dataset, the source domain linear speed co-occurrence dataset, the target domain linear speed co-trend dataset, the source domain linear speed co-trend dataset, the target domain linear speed auxiliary dataset and the source domain linear speed auxiliary dataset are obtained;
[0021] According to the co-occurrence dataset, the co-trend dataset, the target domain co-occurrence dataset, the source domain co-occurrence dataset, the target domain co-trend dataset, the source domain co-trend dataset, the target domain auxiliary dataset and the source domain auxiliary dataset, the target domain angular velocity co-occurrence dataset, the source domain angular velocity co-occurrence dataset, the target domain angular velocity co-trend dataset, the source domain angular velocity co-trend dataset, the target domain angular velocity auxiliary dataset and the source domain angular velocity auxiliary dataset are obtained;
[0022] Using the target domain linear velocity co-occurrence dataset, source domain linear velocity co-occurrence dataset, target domain linear velocity co-trend dataset, source domain linear velocity co-trend dataset, target domain linear velocity auxiliary dataset, source domain linear velocity auxiliary dataset, As the objective function, the network parameters of the initial linear velocity dynamics heterogeneous depth domain adaptation network model are updated to obtain the final linear velocity dynamics heterogeneous domain adaptation neural network model; represents the parameter value at which a function takes its minimum value in its domain. is the total objective loss function, is the feature subspace objective loss function, is the label target loss function; using the target domain angular velocity co-occurrence dataset, the source domain angular velocity co-occurrence dataset, the target domain angular velocity co-trend dataset, the source domain angular velocity co-trend dataset, the target domain angular velocity auxiliary dataset, and the source domain angular velocity auxiliary dataset, the same objective function as formula (1) is set to update the network parameters of the initial angular velocity dynamics heterogeneous deep domain adaptation network model, and the final angular velocity dynamics heterogeneous domain adaptation neural network model is obtained.
[0023] Using the target domain angular velocity co-occurrence dataset, the source domain angular velocity co-occurrence dataset, the target domain angular velocity co-trend dataset, the source domain angular velocity co-trend dataset, the target domain angular velocity auxiliary dataset, and the source domain angular velocity auxiliary dataset, the same objective function as formula (1) is set to update the network parameters of the initial angular velocity dynamics heterogeneous deep domain adaptation network model and obtain the final angular velocity dynamics heterogeneous domain adaptation neural network model.
[0024] In one embodiment, the feature subspace objective loss function is obtained according to the following process:
[0025] The target domain linear speed co-occurrence dataset, the source domain linear speed co-occurrence dataset, the target domain linear speed co-trend dataset and the source domain linear speed co-trend dataset are subjected to feature transformation to obtain feature representations in the same feature subspace, which correspond to the target domain linear speed co-occurrence dataset feature representation, the source domain linear speed co-occurrence dataset feature representation, the target domain linear speed co-trend dataset feature representation and the source domain linear speed co-trend dataset feature representation;
[0026] The feature subspace objective function is obtained by calculating the mean square error of the linear speed co-occurrence dataset subspace and the mean square error of the linear speed co-trend data subspace respectively using the feature representation of the target domain linear speed co-occurrence dataset, the feature representation of the source domain linear speed co-occurrence dataset, the feature representation of the target domain linear speed co-trend dataset and the feature representation of the source domain linear speed co-trend dataset.
[0027] In one embodiment, the target domain data set is used to calibrate the parameters of the target type multi-rotor UAV cascade neural network model using an integrated calibration method, and finally the target type multi-rotor UAV maneuver simulation model is obtained, including:
[0028] Generate a model calibration dataset using the target domain dataset and the target type multi-rotor drone cascade neural network model;
[0029] Design objective loss function for integrated calibration method of multi-rotor UAV;
[0030] Using the designed target loss function of the integrated calibration method for multi-rotor UAVs, the mean square error between the predicted values and the true values of the motor neural network model, rotor aerodynamics neural network model, linear velocity dynamics heterogeneous domain adaptation neural network model, angular velocity dynamics heterogeneous domain adaptation neural network model, position kinematics neural network model and attitude kinematics neural network model are calculated, as well as the model fine-tuning items to calibrate the parameters of the target type multi-rotor UAV cascade neural network model and obtain the target type multi-rotor UAV maneuver simulation model.
[0031] In one embodiment, the model calibration data set includes the throttle command of the motor, the predicted rotation speed of the rotor, the thrust generated by the rotor, the torque generated by the rotor, the linear speed of the multi-rotor UAV, the attitude angle of the multi-rotor UAV, the angular velocity of the multi-rotor UAV, the predicted output of the linear speed and angular velocity of the multi-rotor UAV, and the predicted output of the position and attitude angle of the multi-rotor UAV.
[0032] The above-mentioned method for generating a rotor UAV maneuver simulation model based on domain adaptation transfer learning analyzes the maneuver process of a multi-rotor UAV and models the maneuver models of the multi-rotor UAV separately. When there is less flight data of a six-rotor UAV, a large amount of flight data of a quad-rotor UAV and co-occurrence data sets are used to construct a high-precision maneuver model of a six-rotor UAV. The maneuver simulation model of the six-rotor UAV is calibrated using an integrated model calibration method, which can reduce the network cumulative error and effectively construct a high-precision multi-rotor UAV simulation model. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of a flow chart of a method for generating a rotorcraft UAV maneuver simulation model based on domain adaptation transfer learning in one embodiment;
[0034] Figure 2 A diagram of a modeling process for a multi-rotor drone maneuvering simulation model in an adjacent domain in one embodiment;
[0035] Figure 3 A transfer learning framework for a multi-rotor drone maneuvering simulation model in an adjacent domain in one embodiment;
[0036] Figure 4 A schematic diagram of co-occurrence data in an embodiment;
[0037] Figure 5 A schematic diagram of a common trend data in one embodiment;
[0038] Figure 6 A heterogeneous deep domain adaptation network in one embodiment. DETAILED DESCRIPTION
[0039] 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.
[0040] As a branch of machine learning technology, transfer learning can better complete the current task by transferring knowledge from previous tasks to the target task when high-quality training samples are scarce. Domain adaptation is an important research direction in transfer learning. Its characteristics are that the source domain and the target domain are different, but the tasks are the same. Traditional domain adaptation methods are usually implemented based on kernel transformation. These methods have at most one layer of feature transformation and limited representation ability, which is called shallow domain adaptation method. In recent years, with the rapid development of deep learning, transfer learning and deep learning technology have been continuously integrated and developed, and more and more deep domain adaptation methods have emerged. Deep neural networks are composed of multiple layers of neurons, and nonlinear activation functions are added to them. They can automatically learn more advanced and abstract feature representations. Therefore, deep domain adaptation methods generally perform better than shallow domain adaptation methods. At the same time, domain adaptation can be subdivided into homogeneous domain adaptation methods and heterogeneous domain adaptation methods according to the similarities and differences in the feature spaces between the two domains.
[0041] In real life, most multi-rotor drones have similar structures and their maneuverability characteristics are also similar to a certain extent. Therefore, if there is a large amount of flight data or simulation model of a certain type of multi-rotor drone, the physical structure similarity between it and the multi-rotor drone to be built can be used for transfer learning. Even with less data, a high-precision drone maneuverability simulation model in an adjacent field can be built.
[0042] In one embodiment, a method for generating a simulation model of a rotorcraft UAV based on domain adaptation transfer learning is described. The rotorcraft UAV is a multi-rotor UAV. The process is described in detail in the following. Figure 1 , the method comprising:
[0043] According to the maneuvering process of the multi-rotor UAV, the multi-rotor UAV model is decomposed into four sub-models, and the cascade relationship between the four sub-models is obtained; the four sub-models include the motor sub-model, the rotor aerodynamic sub-model, the multi-rotor UAV dynamics sub-model and the multi-rotor UAV kinematics sub-model;
[0044] Specifically, the multi-rotor drone controls the motor rotation by obtaining the throttle command, thereby driving the rotor rotation. The interaction between the rotor and the air generates thrust and torque. The thrust and torque generated by multiple rotors act together on the drone body, causing the drone's linear speed and angular velocity to change, ultimately driving the change of the drone's position and attitude. Therefore, the multi-rotor drone maneuver model can be based on Figure 2 It is divided into four sub-models, namely the motor model, rotor aerodynamic model, multi-rotor UAV dynamics model and multi-rotor UAV kinematic model. This application assumes that the motors and rotors of the quad-rotor UAV and the hexacopter UAV are of the same model. Therefore, the motor model and rotor aerodynamic model of the quad-rotor UAV and the hexacopter UAV have very similar representation methods, and migration can be completed through fine-tuning. The dynamics model is the essential difference between the maneuvering simulation model of the quad-rotor UAV and the hexacopter UAV.
[0045] Acquire and collect various flight data of target type multi-rotor drones and data source type multi-rotor drones to obtain target domain datasets and source domain datasets;
[0046] Specifically, the source domain and target domain flight data used in this application are generated by quadcopter and hexacopter drones in the Airsim simulation platform developed by Microsoft, with Pixhawk as the control module, QGroundControl as the drone ground station to configure the drone, and Unreal Engine 4 as the drone simulation environment. To ensure that the data is accurate and noise-free, this experiment obtains various types of drone flight data from the C++ source code of Airsim, and the data sampling frequency is 60 Hz. Each piece of data collected includes the throttle command obtained by each motor, the speed of each rotor, the pull and torque generated by each rotor, the linear speed, angular velocity, position and attitude angle of the multi-rotor drone.
[0047] A total of 400,000 pieces of flight data of quad-rotor drones and 20,000 pieces of flight data of six-rotor drones were collected.
[0048] Number of power sources for multi-rotor drones by data source type , the motor sub-model and the rotor aerodynamic sub-model are decomposed into Motor sub-model and A rotor aerodynamic submodel, is a natural number; specifically, the motor model and the rotor aerodynamic model are (Number of power sources for multi-rotor drones) Input Output, the input and output dimensions of drones with different rotors are different, which is not convenient for model migration. This application splits the motor model and the rotor aerodynamic model into Sub-models, each with the same representation. The transfer learning framework for multi-rotor UAV maneuver simulation model in adjacent domains is as follows: Figure 3 shown.
[0049] Among them, NN1 is the motor neural network model corresponding to a single motor, NN2 is the rotor aerodynamic neural network model corresponding to a single rotor, NN3 is the linear velocity dynamics heterogeneous domain adaptation neural network model, NN4 is the angular velocity dynamics heterogeneous domain adaptation neural network model, NN5 is the position kinematics neural network model, and NN6 is the attitude kinematics neural network model. NN1, NN2, NN5 and NN6 can be directly obtained by fine-tuning the source domain model.
[0050] Using the source domain data set, the motor sub-model, rotor aerodynamic sub-model and multi-rotor UAV kinematic sub-model are modeled and trained to obtain the motor neural network model, rotor aerodynamic neural network model, position kinematic neural network model and attitude kinematic neural network model.
[0051] Using the target domain dataset and the source domain dataset, the domain adaptation transfer learning technology is used to model and train the multi-rotor UAV dynamics sub-model, and the linear velocity dynamics heterogeneous domain adaptation neural network model and the angular velocity dynamics heterogeneous domain adaptation neural network model are obtained;
[0052] Specifically, the co-occurrence data and co-trend data generation technology focuses on providing a new solution for the research of heterogeneous deep domain adaptation in regression tasks. For regression problems, samples with the same or similar labels have almost the same sample features in the source domain and the target domain in a certain feature subspace. This application uses this feature in regression tasks to generate co-occurrence data through samples with the same or similar labels, such as Figure 4 As shown in the figure, a deep neural network is trained to learn the feature transformation from the source domain and the target domain to the feature subspace, thereby completing domain adaptation from the source domain to the target domain. The blue line is the source domain data, the red line is the target domain data, the horizontal axis is the feature, and the vertical axis is the label. Points with the same or similar labels are co-occurrence data.
[0053] This application believes that there is a same feature subspace, and after nonlinear feature transformation of different neural network layers, labels and label trends can be obtained respectively. Therefore, this application uses the label difference of the previous and next samples as auxiliary data to improve the model performance. Similarly, samples with the same or similar label trends are used to generate common trend samples, such as Figure 5 As shown in the figure, the data with the same difference between the labels of the previous and next samples (the same derivative) are common trend data, which assists in learning the feature transformation of the source domain and the target domain to the feature subspace.
[0054] The motor neural network model, the rotor aerodynamic neural network model, the linear velocity dynamics heterogeneous domain adaptation neural network model, the angular velocity dynamics heterogeneous domain adaptation neural network model, the position kinematics neural network model and the attitude kinematics neural network model are connected in a cascade relationship to obtain a cascade neural network model of the target type multi-rotor UAV;
[0055] Using the target domain dataset and an integrated calibration method, the parameters of the target type multi-rotor UAV cascade neural network model are calibrated, and finally the target type multi-rotor UAV maneuver simulation model is obtained.
[0056] In one embodiment, the various types of flight data 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 drone.
[0057] In one embodiment, the target type multi-rotor drone and the data source type multi-rotor drone include a quad-rotor drone and a hexacopter drone.
[0058] In one embodiment, the target domain dataset and the source domain dataset are used to model and train the multi-rotor UAV dynamics sub-model using domain adaptation transfer learning technology to obtain a linear velocity dynamics heterogeneous domain adaptation neural network model and an angular velocity dynamics heterogeneous domain adaptation neural network model, including:
[0059] Match the target domain dataset and the source domain dataset to obtain a co-occurrence dataset, a co-trend dataset, a target domain co-occurrence dataset, a source domain co-occurrence dataset, a target domain co-trend dataset, a source domain co-trend dataset, a target domain auxiliary dataset, and a source domain auxiliary dataset;
[0060] Constructing an initial linear velocity dynamics heterogeneous depth domain adaptation network model and an initial angular velocity dynamics heterogeneous domain adaptation neural network model; wherein the initial linear velocity dynamics heterogeneous depth domain adaptation network model and the initial angular velocity dynamics heterogeneous domain adaptation neural network model both include four modules, namely, a source domain dataset feature conversion module SN, a target domain dataset feature conversion module TN, a feature subspace conversion label module CN1, and a feature subspace conversion auxiliary data label module CN2;
[0061] Specifically, the heterogeneous deep domain adaptation network Figure 6 shown.
[0062] The objective function is designed to update the initial linear velocity dynamics heterogeneous depth domain adaptation network model and the initial angular velocity dynamics heterogeneous domain adaptation neural network model respectively, so as to obtain the final linear velocity dynamics heterogeneous domain adaptation neural network model and the final angular velocity dynamics heterogeneous domain adaptation neural network model.
[0063] In one embodiment, the design objective function updates the initial linear velocity dynamics heterogeneous depth domain adaptation network and the initial angular velocity dynamics heterogeneous domain adaptation neural network model respectively to obtain the final linear velocity dynamics heterogeneous domain adaptation neural network model and the final angular velocity dynamics heterogeneous domain adaptation neural network model, including:
[0064] According to the co-occurrence dataset, the co-trend dataset, the target domain co-occurrence dataset, the source domain co-occurrence dataset, the target domain co-trend dataset, the source domain co-trend dataset, the target domain auxiliary dataset and the source domain auxiliary dataset, the target domain linear speed co-occurrence dataset, the source domain linear speed co-occurrence dataset, the target domain linear speed co-trend dataset, the source domain linear speed co-trend dataset, the target domain linear speed auxiliary dataset and the source domain linear speed auxiliary dataset are obtained;
[0065] According to the co-occurrence dataset, the co-trend dataset, the target domain co-occurrence dataset, the source domain co-occurrence dataset, the target domain co-trend dataset, the source domain co-trend dataset, the target domain auxiliary dataset and the source domain auxiliary dataset, the target domain angular velocity co-occurrence dataset, the source domain angular velocity co-occurrence dataset, the target domain angular velocity co-trend dataset, the source domain angular velocity co-trend dataset, the target domain angular velocity auxiliary dataset and the source domain angular velocity auxiliary dataset are obtained;
[0066] Using the target domain linear velocity co-occurrence dataset, source domain linear velocity co-occurrence dataset, target domain linear velocity co-trend dataset, source domain linear velocity co-trend dataset, target domain linear velocity auxiliary dataset, source domain linear velocity auxiliary dataset, As the objective function, the network parameters of the initial linear velocity dynamics heterogeneous depth domain adaptation network model are updated to obtain the final linear velocity dynamics heterogeneous domain adaptation neural network model; represents the parameter value at which a function takes its minimum value in its domain. is the total objective loss function, is the feature subspace objective loss function, is the label target loss function; specifically, the heterogeneous deep domain adaptation network consists of four modules, among which SN and TN have the same number of nodes in the last layer, respectively converting the source domain and target domain features into the same feature subspace, CN1 completes the conversion of the feature subspace to the label, and CN2 completes the conversion of the feature subspace to the auxiliary data label. The training data set of the network includes:
[0067] Source domain dataset ,
[0068] Target domain dataset ,
[0069] Source Domain Co-occurrence Dataset ,
[0070] Target Domain Co-occurrence Dataset ,
[0071] Source domain auxiliary dataset ,
[0072] Target domain auxiliary dataset ,
[0073] Source domain common trend dataset ,
[0074] Target domain common trend dataset .
[0075] in, Represents the input of a piece of data in the source domain dataset, Represents the expected output of a piece of data in the source domain dataset; Represents the input of a piece of data in the target domain dataset, Represents the expected output of a piece of data in the target domain dataset; Represents the input of a piece of data in the source domain co-occurrence dataset, Represents the expected output of a piece of data in the source domain co-occurrence dataset; Represents the input of a piece of data in the target domain co-occurrence dataset, Represents the expected output of a piece of data in the target domain co-occurrence dataset; Represents the input of a piece of data in the source domain auxiliary dataset, Represents the expected output of a piece of data in the source domain auxiliary dataset; Represents the input of a piece of data in the auxiliary dataset of the target domain, Represents the expected output of a piece of data in the auxiliary dataset of the target domain; Represents the input of a piece of data in the source domain common trend dataset, Represents the expected output of a piece of data in the source domain common trend dataset; Represents the input of a piece of data in the target domain common trend dataset, It represents the expected output of a piece of data in the target domain common trend dataset. The objective function of the heterogeneous deep domain adaptation network optimization is shown in formula (1).
[0076] The objective function consists of two parts. The first part is the feature subspace objective loss function, which transforms the features in the co-occurrence dataset and the co-trend dataset through the SN and TN modules respectively to obtain the corresponding feature representation in the same subspace:
[0077] ;
[0078] ;
[0079] ;
[0080] ;
[0081] in is the representation of the source domain co-occurrence data in the feature subspace,
[0082] is the representation of the target domain co-occurrence data in the feature subspace,
[0083] is the representation of the common trend data in the source domain in the feature subspace,
[0084] is the representation of the target domain co-trend data in the feature subspace, and then the mean square error (MSE) of the co-occurrence data and co-trend data subspace is calculated and added:
[0085] ;
[0086] The first part of the objective function aims to align the features of the source domain and the target domain in the feature subspace, so that SN and TN can learn the transformation of the source domain and the target domain to the feature subspace. The second part is the label target loss function, which requires all data to calculate the error together, that is:
[0087] ;
[0088] ;
[0089] ;
[0090] ;
[0091] ;
[0092] ;
[0093] ;
[0094] ;
[0095] Then calculate the MSE errors of the labels separately and add them together:
[0096] ;
[0097] The label target loss function has two purposes: on the one hand, it enables CN1 to learn the mapping from the feature subspace to the final label, and on the other hand, it enables CN2 to learn the mapping from the feature subspace to the final auxiliary dataset label, ensuring that the feature representation ability of the auxiliary data in the feature subspace does not disappear.
[0098] Using the source domain angular velocity co-occurrence dataset, the source domain angular velocity co-trend dataset, the target domain angular velocity co-occurrence dataset, and the target domain angular velocity co-trend dataset, and taking formula (1) as the objective function, the network parameters of the initial angular velocity dynamics heterogeneous deep domain adaptation network model are updated to obtain the final angular velocity dynamics heterogeneous domain adaptation neural network model.
[0099] In one embodiment, the feature subspace objective loss function includes:
[0100] Perform feature conversion on the target domain angular velocity co-occurrence dataset, the source domain angular velocity co-occurrence dataset, the target domain angular velocity co-trend dataset, and the source domain angular velocity co-trend dataset to obtain feature representations under the same feature subspace, which correspond to the target domain angular velocity co-occurrence dataset feature representation, the source domain angular velocity co-occurrence dataset feature representation, the target domain angular velocity co-trend dataset feature representation, and the source domain angular velocity co-trend dataset feature representation;
[0101] The target domain angular velocity co-occurrence dataset feature representation, the source domain angular velocity co-occurrence dataset feature representation, the target domain angular velocity co-trend dataset feature representation and the source domain angular velocity co-trend dataset feature representation are used to calculate the angular velocity co-occurrence dataset subspace mean square error and the angular velocity co-trend data subspace mean square error respectively and add them to obtain a feature subspace objective function.
[0102] In one embodiment, it is characterized in that the target domain data set is used to use an integrated calibration method to perform parameter calibration on the target type multi-rotor UAV cascade neural network model, and finally the target type multi-rotor UAV maneuver simulation model is obtained, which includes:
[0103] Generate a model calibration data set using the target domain data set and the target type multi-rotor UAV cascade neural network model;
[0104] Specifically, the model calibration dataset is represented as follows:
[0105] ;
[0106] in, yes The throttle command received by the motor at that moment, yes The rotor speed at that moment, yes The pull generated by the rotor at any moment, yes The torque generated by the rotor 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, yes The position of the multi-rotor drone in the world coordinate system at this moment, yes The attitude angle of the multi-rotor drone in the world coordinate 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, yes The position of the multi-rotor drone in the world coordinate system at this moment, yes The attitude angle of the multi-rotor drone in the world coordinate system at this moment.
[0107] During the model calibration process, the networks are connected according to the actual flight data flow, and the predicted output of the previous network is used as the input of the next network.
[0108] The motor model consists of multiple source domain multi-rotor UAV NN1 networks, which are respectively fed with real inputs of throttle commands and obtain corresponding speed prediction outputs.
[0109] ;
[0110] The NN1 input For the Motors Time throttle command, output For the Rotor The rotor aerodynamic model consists of multiple source domain multi-rotor UAV NN2 networks, which input the motor model prediction output respectively to obtain the prediction output of the force and torque generated by the corresponding rotor.
[0111] ;
[0112] The input of NN2 is , output For the first Rotor The pulling force generated at any time, For the Rotor The torque generated at any moment.
[0113] The multi-rotor UAV dynamics model is a heterogeneous deep domain adaptation network, which takes as input all the predicted outputs of the rotor aerodynamic model and the true values of the linear velocity and attitude angle of the UAV at the current moment. The predicted outputs of the linear velocity and angular velocity of the UAV at the next moment are obtained.
[0114] ;
[0115] ;
[0116] in for The linear speed of the drone at the moment, for The attitude angle of the drone at this moment. for The angular velocity of the drone at time .
[0117] The kinematic model of the multi-rotor UAV is a source domain multi-rotor UAV kinematic model. The input is the predicted output of the multi-rotor UAV dynamics model, and the predicted output of the UAV position and attitude angle at the next moment is obtained.
[0118] ;
[0119] ;
[0120] in for The position of the drone at the moment.
[0121] Design objective loss function for integrated calibration method of multi-rotor UAV;
[0122] Specifically, the objective loss function of the multi-rotor UAV integrated calibration method is designed as follows:
[0123] ;
[0124] in, Indicates The purpose of this calculation is to reduce the cumulative error after the network is connected.
[0125] ;
[0126] Part 2 It is a model fine-tuning item, the purpose of which is to make the calibrated module not much different from the network before calibration, and to ensure the independence of each sub-network.
[0127] ;
[0128] in is the weight of the fine-tuning item, For the The weights after model calibration, For the The bias after model calibration, For the The initial weights of the model, For the The initial bias of the model.
[0129] Using the designed target loss function of the integrated calibration method for multi-rotor UAVs, the mean square error between the predicted values and the true values of the motor neural network model, rotor aerodynamics neural network model, linear velocity dynamics heterogeneous domain adaptation neural network model, angular velocity dynamics heterogeneous domain adaptation neural network model, position kinematics neural network model and attitude kinematics neural network model are calculated, as well as the model fine-tuning items to calibrate the parameters of the target type multi-rotor UAV cascade neural network model and obtain the target type multi-rotor UAV maneuver simulation model.
[0130] In one embodiment, the model calibration data set includes the throttle command of the motor, the predicted rotation speed of the rotor, the thrust generated by the rotor, the torque generated by the rotor, the linear speed of the multi-rotor UAV, the attitude angle of the multi-rotor UAV, the angular velocity of the multi-rotor UAV, the predicted output of the linear speed and angular velocity of the multi-rotor UAV, and the predicted output of the position and attitude angle of the multi-rotor UAV.
[0131] The above-mentioned method for generating a rotor UAV maneuver simulation model based on domain adaptation transfer learning analyzes the maneuver process of a multi-rotor UAV and models the maneuver models of the multi-rotor UAV separately. When there is less flight data of a six-rotor UAV, a large amount of flight data of a quad-rotor UAV and co-occurrence data sets are used to construct a high-precision maneuver model of a six-rotor UAV. The maneuver simulation model of the six-rotor UAV is calibrated using an integrated model calibration method, which can reduce the network cumulative error and effectively construct a high-precision multi-rotor UAV simulation model.
[0132] 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.
[0133] 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 rotorcraft UAV maneuver simulation model based on domain adaptation transfer learning, 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 four sub-models, and the cascade relationship between the four sub-models is obtained; the four sub-models include the motor sub-model, the rotor aerodynamic sub-model, the multi-rotor UAV dynamics sub-model and the multi-rotor UAV kinematics sub-model; Acquire and collect various flight data of target type multi-rotor drones and data source type multi-rotor drones to obtain target domain datasets and source domain datasets; According to the data source type, the number of power sources of multi-rotor drones, n, the motor sub-model and the rotor aerodynamic sub-model are decomposed into n motor sub-models and n rotor aerodynamic sub-models, respectively, where n is a natural number; Using the source domain data set, the motor sub-model, rotor aerodynamic sub-model and multi-rotor UAV kinematic sub-model are modeled and trained to obtain the motor neural network model, rotor aerodynamic neural network model, position kinematic neural network model and attitude kinematic neural network model. Using the target domain dataset and the source domain dataset, the domain adaptation transfer learning technology is used to model and train the multi-rotor UAV dynamics sub-model, and the linear velocity dynamics heterogeneous domain adaptation neural network model and the angular velocity dynamics heterogeneous domain adaptation neural network model are obtained, which include: Match the target domain dataset and the source domain dataset to obtain a co-occurrence dataset, a co-trend dataset, a target domain co-occurrence dataset, a source domain co-occurrence dataset, a target domain co-trend dataset, a source domain co-trend dataset, a target domain auxiliary dataset, and a source domain auxiliary dataset; Constructing an initial linear velocity dynamics heterogeneous depth domain adaptation network model and an initial angular velocity dynamics heterogeneous domain adaptation neural network model; wherein the initial linear velocity dynamics heterogeneous depth domain adaptation network model and the initial angular velocity dynamics heterogeneous domain adaptation neural network model both include four modules, namely, a source domain dataset feature conversion module SN, a target domain dataset feature conversion module TN, a feature subspace conversion label module CN1, and a feature subspace conversion auxiliary data label module CN2; The objective function is designed to update the initial linear velocity dynamics heterogeneous depth domain adaptation network model and the initial angular velocity dynamics heterogeneous domain adaptation neural network model respectively, and the final linear velocity dynamics heterogeneous domain adaptation neural network model and the final angular velocity dynamics heterogeneous domain adaptation neural network model are obtained, specifically including: According to the co-occurrence dataset, the co-trend dataset, the target domain co-occurrence dataset, the source domain co-occurrence dataset, the target domain co-trend dataset, the source domain co-trend dataset, the target domain auxiliary dataset and the source domain auxiliary dataset, the target domain linear speed co-occurrence dataset, the source domain linear speed co-occurrence dataset, the target domain linear speed co-trend dataset, the source domain linear speed co-trend dataset, the target domain linear speed auxiliary dataset and the source domain linear speed auxiliary dataset are obtained; According to the co-occurrence dataset, the co-trend dataset, the target domain co-occurrence dataset, the source domain co-occurrence dataset, the target domain co-trend dataset, the source domain co-trend dataset, the target domain auxiliary dataset and the source domain auxiliary dataset, the target domain angular velocity co-occurrence dataset, the source domain angular velocity co-occurrence dataset, the target domain angular velocity co-trend dataset, the source domain angular velocity co-trend dataset, the target domain angular velocity auxiliary dataset and the source domain angular velocity auxiliary dataset are obtained; Using the target domain linear velocity co-occurrence dataset, source domain linear velocity co-occurrence dataset, target domain linear velocity co-trend dataset, source domain linear velocity co-trend dataset, target domain linear velocity auxiliary dataset, source domain linear velocity auxiliary dataset, argminL=loss sub +loss label (1) As the objective function, the network parameters of the initial linear velocity dynamics heterogeneous depth domain adaptation network model are updated to obtain the final linear velocity dynamics heterogeneous domain adaptation neural network model; where argmin represents the parameter value of a function that obtains the minimum value in its domain, L is the total objective loss function, and loss sub is the feature subspace objective loss function, loss label is the label target loss function; Using the target domain angular velocity co-occurrence dataset, the source domain angular velocity co-occurrence dataset, the target domain angular velocity co-trend dataset, the source domain angular velocity co-trend dataset, the target domain angular velocity auxiliary dataset, and the source domain angular velocity auxiliary dataset, the same objective function as formula (1) is set to update the network parameters of the initial angular velocity dynamics heterogeneous deep domain adaptation network model, and obtain the final angular velocity dynamics heterogeneous domain adaptation neural network model; The motor neural network model, the rotor aerodynamic neural network model, the linear velocity dynamics heterogeneous domain adaptation neural network model, the angular velocity dynamics heterogeneous domain adaptation neural network model, the position kinematics neural network model and the attitude kinematics neural network model are connected in a cascade relationship to obtain a cascade neural network model of the target type multi-rotor UAV; Using the target domain dataset and an integrated calibration method, the parameters of the target type multi-rotor UAV cascade neural network model are calibrated, and finally the target type multi-rotor UAV maneuver simulation model is obtained.
2. The method according to claim 1, characterized in that: The various types of flight data 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 drone.
3. The method according to claim 2, characterized in that The target type multi-rotor drone and the data source type multi-rotor drone include quad-rotor drones and hexacopter drones.
4. The method according to claim 3, characterized in that The feature subspace objective loss function is obtained according to the following process: The target domain linear speed co-occurrence dataset, the source domain linear speed co-occurrence dataset, the target domain linear speed co-trend dataset and the source domain linear speed co-trend dataset are subjected to feature transformation to obtain feature representations in the same feature subspace, which correspond to the target domain linear speed co-occurrence dataset feature representation, the source domain linear speed co-occurrence dataset feature representation, the target domain linear speed co-trend dataset feature representation and the source domain linear speed co-trend dataset feature representation; The mean square error of the linear speed co-occurrence dataset subspace and the mean square error of the linear speed co-trend data subspace are calculated and added by using the feature representation of the target domain linear speed co-occurrence dataset, the feature representation of the source domain linear speed co-occurrence dataset, the feature representation of the target domain linear speed co-trend dataset and the feature representation of the source domain linear speed co-trend dataset. Get the characteristic subspace objective function.
5. The method according to claim 4, characterized in that The target domain data set is used to calibrate the parameters of the target type multi-rotor UAV cascade neural network model using an integrated calibration method, and the target type multi-rotor UAV maneuver simulation model is finally obtained, including: Generate a model calibration dataset using the target domain dataset and the target type multi-rotor drone cascade neural network model; Design objective loss function for integrated calibration method of multi-rotor UAV; Using the designed target loss function of the integrated calibration method for multi-rotor UAVs, the mean square error between the predicted values and the true values of the motor neural network model, rotor aerodynamics neural network model, linear velocity dynamics heterogeneous domain adaptation neural network model, angular velocity dynamics heterogeneous domain adaptation neural network model, position kinematics neural network model and attitude kinematics neural network model are calculated, as well as the model fine-tuning items to calibrate the parameters of the target type multi-rotor UAV cascade neural network model and obtain the target type multi-rotor UAV maneuver simulation model.
6. The method according to claim 5, characterized in that The model calibration data set includes the throttle command of the motor, the predicted rotation speed of the rotor, the thrust generated by the rotor, the torque generated by the rotor, the linear speed of the multi-rotor UAV, the attitude angle of the multi-rotor UAV, the angular velocity of the multi-rotor UAV, the predicted output of the linear speed and angular velocity of the multi-rotor UAV, and the predicted output of the position and attitude angle of the multi-rotor UAV.
