Four-rotor unmanned aerial vehicle pose estimation method based on Re-LSTM network
By processing multi-sensor data through the optimized Re-LSTM network structure, the problem of low accuracy of pose estimation of UAVs in complex environments is solved, achieving more accurate and stable pose estimation, and improving the autonomous navigation capabilities of UAVs. .
Patent Information
- Application Number
- CN202410817316.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-24
AI Technical Summary
Existing methods for UAV pose estimation based on deep learning have low accuracy in complex environments, leading to misjudgments in UAV remote control and affecting the accuracy and safety of task completion.
Using the optimized Re-LSTM network structure, the Re-LSTM network model is constructed by collecting and preprocessing multi-sensor data, using feature extraction, forgetting and updating modules to process pose features, constructing a loss function and training the network to achieve real-time and accurate Pose estimation.
It improves the accuracy and robustness of UAV pose estimation, reduces computational pressure, enhances adaptability to dynamic environments and utilization of sensor data, and improves the success rate of autonomous navigation and obstacle avoidance.
Smart Images

Figure CN118608749A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of multi-sensor fusion and deep learning, and more specifically, is a quad-rotor unmanned aerial vehicle posture estimation method based on a Re-LSTM network. Background Art
[0002] Drones have been widely used in various fields around the world, especially in agriculture, such as crop planting and drug spraying; industry, such as equipment maintenance and inspection in dangerous scenes, and military, such as site reconnaissance. However, the current deep learning-based drone pose estimation methods often need to integrate data from multiple sensors. How to effectively integrate heterogeneous data has always been a pain point. In complex environments, such as dense scenes such as cities and forests, and in conditions of changing lighting, sensor data may lack sufficient accuracy and robustness. Therefore, after data fusion, better algorithms and data support are still needed to improve the accuracy and stability of pose estimation. Therefore, how to improve the accuracy of drone pose estimation after integrating multi-source data is a challenge.
[0003] However, the neural network model that the existing pose estimation method relies on has low accuracy in estimating the pose of quadrotor drones in outdoor scenes, causing the remote control room to misjudge the current flight status of the drone and issue inappropriate commands, causing damage to the drone body. Summary of the invention
[0004] In order to solve the shortcomings of the above-mentioned prior art, the present invention proposes a quadrotor UAV posture estimation method based on a Re-LSTM network, in order to optimize the LSTM network structure and train the network to obtain a more accurate model for the quadrotor UAV posture estimation result, so as to output the current posture of the quadrotor UAV in real time and accurately, so that the remote workstation can judge the posture of the quadrotor UAV in real time and accurately and issue instructions in time, so as to assist the UAV to complete the task efficiently.
[0005] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme:
[0006] The present invention provides a method for estimating the posture of a quadrotor drone based on a Re-LSTM network, which comprises the following steps:
[0007] Step 1: Collect the data of the quadrotor drone at the current time t and preprocess it to obtain the posture feature E of the quadrotor drone at the current time t t_cur ;
[0008] Step 2: Establish a Re-LSTM network and perform t_cur Processing is performed to obtain the predicted pose feature pose at the current time t output by the rth output unit r,t_pred ;
[0009] Step 3: Construct loss function Loss t_pose And train the Re-LSTM network to obtain a trained quadrotor drone pose estimation model, which is used to estimate the current pose of the quadrotor drone in real time.
[0010] The method for estimating the pose of a quadrotor drone based on a Re-LSTM network described in the present invention is also characterized in that step 1 comprises the following steps:
[0011] Step 1.1: Collect the posture of the quadrotor drone at the current time t [q 0_t ,q 1_t ,q 2_t ,q 3_t ] T and position coordinates [x 1_t ,y 1_t ,z 1_t ] T And the depth image of the object observed by the quadrotor drone at the current time t [dep 0_t ,img 0_t ] T ; Where T represents transpose, dep 0_t Represents the depth pixel value of the object's depth image at the current time t, img 0_t Represents the color pixel value of the object depth image at the current time t;
[0012] Step 1.2: Use formula (1-1) to calculate [q 0_t ,q 1_t ,q 2_t ,q 3_t ] T Perform data preprocessing to obtain the preprocessed posture of the quadrotor drone at the current time t [q 0_t_pro ,q 1_t_pro ,q 2_t_pro ,q 3_t_pro ] T
[0013]
[0014] In formula (1-1): α1, β1, γ1 are the yaw angle, pitch angle, and roll angle of the quadrotor drone at the current time t, △t represents the time difference, and △t∈[0,1];
[0015] Step 1.3: Use formula (1-2) to calculate [dep 0_t ,img 0_t ] T Perform data preprocessing to obtain the object depth image [dep 0_t_pro,img 0_t_pro ] T :
[0016]
[0017] In formula (1-2): f represents the focal length of the depth camera, is the depth image resolution of the depth camera along the x-axis, is the depth image resolution of the depth camera along the y-axis direction, C1 and C2 are unequal constants and both are not zero;
[0018] Step 1.4: Use formula (1-3) to obtain the pose feature E of the quadrotor drone at the current time t t_cur :
[0019]
[0020] In formula (1-3), ε is the zero bias error of the observation process, τ is the observation noise, G is the state transfer matrix, and:
[0021]
[0022] The Re-LSTM network in step 2 includes, in sequence: an input module Input, a feature extraction module Exact, a forgetting module Forget, an updating module Update, a hidden layer module Hidden, and an output module Output;
[0023] Step 2.1, the input module Input is composed of P basic units connected in parallel;
[0024] The pose feature E t_cur Input each basic unit of the input module Input for processing, and obtain the basic posture feature set E at the current time t t_pre ={E p,t_pre |p=1,2,..P}, where E p,t_pre Represents the basic posture feature at the current time t output by the p-th basic unit;
[0025] Step 2.2, the feature extraction module Exact is composed of U extraction units in parallel, where any u-th extraction unit is composed of k1 convolutional layers Conv and k2 pooling layers Pool in sequence;
[0026] E t_pre The input feature extraction module Exact is first processed by the k1 convolutional layers Conv of the U extraction units to obtain the coarse pose feature set E at the current time t. t_Exact ={E u,t_Exact |u=1,2,..U}, where Eu,t_Exact represents the coarse pose feature at the current time t output by the u-th extraction unit;
[0027] E t_Exact Then, the standard pose feature set E at the current time t is obtained by processing the k2 pooling layers of u extraction units. t_Exact ={E u,t_Pool |u=1,2,..U}, where E u,t_Pool Represents the standard posture feature at the current time t output by the u-th extraction unit;
[0028] Step 2.3, the forget module Forget is composed of k3 feature compensation branches in parallel;
[0029] E u,t_pool Input into the k3 feature compensation branches, and use formula (2-1) to generate the u-th compensation pose feature E at the current time t u,t_Fus , thus obtaining the compensation pose feature set E at the current time t t_Fus ={E u,t_Fus |u=1,2,..U}:
[0030]
[0031] In formula (2-1), E u,i,t_Fus represents the u-th compensated pose feature at the current time t output by the i-th feature compensation branch, W i is the weight of the i-th feature compensation branch, b i is the bias of the i-th feature compensation branch, and W i , b i All are not 0; k represents the number of the characteristic compensation branch, and k3 represents the total number of characteristic compensation branches;
[0032] Step 2.4, the update module Update is composed of O update units connected in parallel, wherein any oth update unit is composed of g3 upsampling layers in sequence;
[0033] E t_Fus They are respectively input into the O update units in the update module Update for upsampling, and the precise pose feature set E at the current time t is obtained. t_Pci ={E o,t_Pci |o=1,2..O}, where E o,t_Pci Represents the precise pose feature at the current time t output by the oth update unit;
[0034] Step 2.5, the hidden layer module Hidden is composed of O hidden units connected in parallel, wherein any oth hidden unit is composed of an activation layer;
[0035] E t_Pci They are input into the O hidden units in the hidden layer module Hidden for processing, and the activation posture feature set E at the current time t is obtained using formula (2-2): t_Act ={E o,t_Act |o=1,2..O}:
[0036]
[0037] In formula (2-2), E o,t_Act Represents the activation pose feature at the current time t output by the oth hidden unit;
[0038] Step 2.6, the output module Output is composed of R output units connected in parallel, where any r-th output unit is composed of g4 upsampling layers and 1 fully connected layer in sequence;
[0039] E t_Act After being input into the R output units in the output module Output for processing, the predicted pose feature set pose at the current time t is obtained. t_pred ={pose r,t_pred |r=1,2..R}, where pose r,t_pred Represents the predicted pose feature at the current time t output by the rth output unit.
[0040] The step 3 comprises the following steps:
[0041] Step 3.1: Use formula (3-1) to construct the pose prediction loss function Loss of the quadrotor drone at the current time t t_pose :
[0042]
[0043] In formula (3-1): Represents the depth pixel value dep of the preprocessed object depth image at the current time t 0_t_pro The standard deviation of Represents the color pixel value img of the preprocessed object depth image at the current time t 0_t_pro The standard deviation, σ dep0_t_pro Represents the depth pixel value dep of the preprocessed object depth image at the current time t 0_t_pro The variance, σ img0_t_pro Represents the depth pixel value img of the preprocessed object depth image at the current time t 0_t_pro The variance of , |||| is the binary norm; d1 and d2 respectively represent the measurement noise contained in the depth pixels in the preprocessed object depth image at the current time t, and the measurement noise contained in the color pixels in the preprocessed object depth image at the current time t.
[0044] Step 3.2: Iteratively train the Re-LSTM network using the SGD optimizer and calculate the total loss function Loss t_pose To adjust the network parameters until the total loss function Loss t_pose Until convergence, a trained quadrotor UAV pose estimation model is obtained, which is used to estimate the current pose of the quadrotor UAV in real time.
[0045] An electronic device of the present invention includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the quadrotor drone posture estimation method, and the processor is configured to execute the program stored in the memory.
[0046] The present invention provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program, which is characterized in that when the computer program is run by a processor, the steps of the quad-rotor unmanned aerial vehicle posture estimation method are executed.
[0047] Compared with the prior art, the present invention has the following beneficial effects:
[0048] 1. The feature extraction module Exact in the Re-LSTM network of the present invention is composed of U basic units in parallel, wherein any u-th basic unit is composed of k1 convolutional layers Conv and k2 pooling layers Pool in sequence, which overcomes the defect of insufficient feature extraction by the input gate in the LSTM network, reduces the computational pressure of the forgetting module Forget when performing feature screening, and improves the operation efficiency of the entire network. In actual scenarios, drones may face various dynamic environments, such as wind speed changes, airflow disturbances, etc. The feature extraction module Exact can extract features that adapt to dynamic environments by learning the change pattern of historical posture data, thereby improving the robustness of posture estimation.
[0049] 2. The forgetting module Forget in the Re-LSTM network of the present invention is composed of g3 parallel feature compensation branches. The module can dynamically decide which branch's features to combine or ablate, prevent interference from too much old information, reduce the burden of data calculation, overcome the defects of the original LSTM network that only eliminates features without combining features and consumes too much algorithm, avoids the loss of important features, and thus can focus more on extracting sensor data that is beneficial to estimating the drone's posture, thereby improving the accuracy of drone posture estimation.
[0050] 3. The hidden layer module Hidden in the Re-LSTM network of the present invention is composed of O activation layers in parallel. The module can flexibly select the features contained in the sensor data sequence with timestamps, and overcome the influence of various dynamic environments, such as airflow, wind speed changes, sensor noise, etc., capture the timing relationship between different sensors, discard unimportant features or retain and strengthen the extraction of related features, so as to better understand the posture changes of the drone and more accurately predict the future posture characteristics of the drone, thereby improving the success rate of the drone's autonomous navigation and autonomous obstacle avoidance. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is an architecture diagram of a quadrotor drone pose estimation method based on a Re-LSTM network in the present invention;
[0052] Figure 2 It is a flow chart of the pose estimation method of a quadrotor drone based on a Re-LSTM network in the present invention;
[0053] Figure 3 This is the Re-LSTM network structure diagram in the present invention. DETAILED DESCRIPTION
[0054] In this embodiment, a quadrotor drone pose estimation method based on Re-LSTM network is described. Figure 1 and Figure 2 , specifically including the following steps:
[0055] Step 1: The data processing module collects and processes the quadrotor drone’s posture data:
[0056] Step 1.1: Collect the posture of the quadrotor drone at the current time t [q 0_t ,q 1_t ,q 2_t ,q 3_t ] T and position coordinates [x 1_t ,y 1_t ,z 1_t ] T And the depth image of the object observed by the quadrotor drone at the current time t [dep 0_t ,img 0_t ] T ; Where T represents transpose, dep 0_t Represents the depth pixel value of the object's depth image at the current time t, img 0_t Represents the color pixel value of the object depth image at the current time t;
[0057] In this embodiment, due to the system noise of the inertial measurement unit (IMU) itself and the influence of the magnetic field during the measurement process, errors will occur in the positioning of the drone; the depth image of the object generated by the depth camera will have errors due to unreasonable hardware parameter settings and its own system noise, resulting in positioning errors of the drone; GPS will cause deviations in the drone due to signal instability. Therefore, it is necessary to pre-process the drone posture data collected by the inertial measurement unit (IMU), depth camera, and GPS to improve the quality of the data source and ensure that more accurate and reliable results can be obtained in subsequent drone posture estimation applications.
[0058] Step 1.2: Use formula (1-1) to calculate [q 0_t ,q 1_t ,q 2_t ,q 3_t ] T Perform data preprocessing to obtain the preprocessed posture of the quadrotor drone at the current time t [q 0_t_pro ,q 1_t_pro ,q 2_t_pro ,q 3_t_pro ] T :
[0059]
[0060] In formula (1-1), α1, β1, γ1 are the yaw angle, pitch angle, and roll angle of the quadrotor drone at the current time t, △t represents the time difference, and Δt∈[0,1].
[0061] Step 1.3: Use formula (1-2) to calculate [dep 0_t ,img 0_t ] T Perform data preprocessing to obtain the object depth image [dep 0_t_pro ,img 0_t_pro ] T :
[0062]
[0063] In formula (1-2): f represents the focal length of the depth camera, is the depth image resolution of the depth camera along the x-axis, is the depth image resolution of the depth camera along the y-axis direction, C1 and C2 are unequal constants and both are not zero.
[0064] Step 1.4: Use formula (1-3) to obtain the pose feature E of the quadrotor drone at the current time t t_cur :
[0065]
[0066] In formula (1-3): ε is the zero bias error of the observation process, τ is the observation noise, G is the state transfer matrix, and:
[0067]
[0068] Step 2: Figure 3 As shown, a Re-LSTM network is established, which includes: input module Input, feature extraction module Exact, forgetting module Forget, updating module Update, hidden layer module Hidden, and output module Output;
[0069] Step 2.1, the input module Input is composed of P basic units connected in parallel;
[0070] The pose feature E t_cur Input each basic unit of the input module Input for processing, and obtain the basic posture feature set E at the current time t t_pre ={E p,t_pre |p=1,2,..P}, where E p,t_pre Represents the basic posture feature at the current time t output by the p-th basic unit;
[0071] Step 2.2, the feature extraction module Exact is composed of U extraction units in parallel, where any u-th extraction unit is composed of k1 convolutional layers Conv and k2 pooling layers Pool in sequence; in this embodiment, u is 4, k1 is 2, k2 is 2, and the current pose E of the roughly estimated quadrotor drone is t_cur After entering the convolutional layer, it is first decomposed into several posture features, so that the input feature E can be initially extracted t_cur The posture features in .
[0072] E t_pre The input feature extraction module Exact is first processed by the k1 convolutional layers Conv of the U extraction units to obtain the coarse pose feature set E at the current time t. t_Exact ={E u,t_Exact |u=1,2,..U}, where E u,t_Exact represents the coarse pose feature at the current time t output by the u-th extraction unit;
[0073] In this embodiment, any convolutional layer Conv is composed of T n filters, each filter size is 3*3, each filter contains 3*L n convolution kernels, and the stride of each convolution kernel is 1.
[0074] Et_Exact Then, the standard pose feature set E at the current time t is obtained by processing the k2 pooling layers of u extraction units. t_Exact ={E u,t_Pool |u=1,2,..U}, where E u,t_Pool Represents the standard posture feature at the current time t output by the u-th extraction unit; in this embodiment, k2 is 2, and any pooling layer downsamples the input coarse feature set in turn, thereby transforming the dimension of the posture feature to be processed, reducing the computational complexity for the subsequent network layer.
[0075] Step 2.3, the forget module Forget is composed of k3 feature compensation branches in parallel;
[0076] E u,t_pool Input into the k3 feature compensation branches, and use formula (2-1) to generate the u-th compensation pose feature E at the current time t u,t_Fus , thus obtaining the compensation pose feature set E at the current time t t_Fus ={E u,t_Fus |u=1,2,..U}:
[0077]
[0078] In formula (2-1), E u,i,t_Fus represents the u-th compensated pose feature at the current time t output by the i-th feature compensation branch, W i is the weight of the i-th feature compensation branch, b i is the bias of the i-th feature compensation branch, and W i , b i All are not 0; k represents the number of the characteristic compensation branch, and the numbers of the k3 characteristic compensation branches are 1, 2, 3…k, k+1, k3 respectively.
[0079] In this embodiment, k3 is 4, so that the forgetting module Forget effectively captures or discards the standard posture features of the drone at the current time t and fuses them, thereby enhancing the extraction of effective posture features.
[0080] Step 2.4, the update module Update is composed of O update units in parallel, wherein any oth update unit is composed of g3 upsampling layers in sequence; in this embodiment, O is 8 and g3 is 2, so that the posture features delivered by the forgetting module can be integrated more quickly and efficiently.
[0081] E t_Fus They are respectively input into the O update units in the update module Update for upsampling, and the precise pose feature set E at the current time t is obtained. t_Pci ={Eo,t_Pci |o=1,2..O}, where E o,t_Pci Represents the precise pose feature at the current time t output by the oth update unit;
[0082] Step 2.5, the hidden layer module Hidden is composed of O basic units in parallel. Among them, any o-th basic unit is composed of an activation layer; in this embodiment, O is 8, so that more unextracted or ignored information can be added to the compensation feature, thereby improving the accuracy of the compensation feature in predicting the position and posture of the drone at the current time t.
[0083] E t_Pci They are input into the O hidden units in the hidden layer module Hidden for processing, and the activation posture feature set E at the current time t is obtained using formula (2-2): t_Act ={E o,t_Act |o=1,2..O}:
[0084]
[0085] In formula (2-2), E o,t_Act Represents the activation pose feature at the current time t output by the oth hidden unit.
[0086] Step 2.6, the output module Output is composed of R output units in parallel, wherein any r-th output unit is composed of g4 upsampling layers and 1 fully connected layer in sequence; in this embodiment, R is 6 and g4 is 3.
[0087] E t_Act After being input into the R output units in the output module Output for processing, the predicted pose feature set pose at the current time t is obtained. t_pred ={pose r,t_pred |r=1,2..R}, where pose r,t_pred Represents the predicted posture feature at the current time t output by the rth output unit;
[0088] The size of any fully connected layer in the output module Output is 3*3*L n In this way, the posture information hidden in each activated feature can be fully extracted and utilized to assist in predicting the posture of the drone at the current time t.
[0089] Step 3: Construct loss function Loss t_pose And train the Re-LSTM network;
[0090] Step 3.1: Use formula (3-1) to construct the pose prediction loss function Loss of the quadrotor drone at the current time t t_pose :
[0091]
[0092] In formula (3-1): Represents the depth pixel value dep of the preprocessed object depth image at the current time t 0_t_pro The standard deviation of Represents the color pixel value img of the preprocessed object depth image at the current time t 0_t_pro The standard deviation of Represents the depth pixel value dep of the preprocessed object depth image at the current time t 0_t_pro The variance of Represents the depth pixel value img of the preprocessed object depth image at the current time t 0_t_pro The variance of , |||| is the binary norm; d1 and d2 respectively represent the measurement noise contained in the depth pixels in the preprocessed object depth image at the current time t, and the measurement noise contained in the color pixels in the preprocessed object depth image at the current time t.
[0093] Step 3.2: Iteratively train the Re-LSTM network through the SGD optimizer so that the parameter update is not affected by the gradient transformation, so that the loss function Loss can be calculated efficiently. t_pose And adjust the network parameters until the total loss function Loss t_pose Until convergence, the trained quadrotor drone pose estimation model is finally obtained, which is used to estimate the current pose of the quadrotor drone in real time;
[0094] In this embodiment, the SGD optimizer uses randomness quality to update the parameters of the Re-LSTM network to avoid falling into a local optimal solution, and randomly selecting features at each iteration can enable the SGD optimizer to quickly find the optimal solution.
[0095] In this embodiment, an electronic device includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the above method, and the processor is configured to execute the program stored in the memory.
[0096] In this embodiment, a computer-readable storage medium stores a computer program on the computer-readable storage medium, and the computer program executes the steps of the above method when executed by a processor.
Claims
1. A quadrotor drone pose estimation method based on Re-LSTM network, characterized in that: The steps include: Step 1: Collect the data of the quadrotor drone at the current time t and preprocess it to obtain the posture feature E of the quadrotor drone at the current time t t_cur ; Step 2: Establish a Re-LSTM network and perform t_cur Processing is performed to obtain the predicted pose feature pose at the current time t output by the rth output unit r,t_pred ; Step 3: Construct loss function Loss t_pose And train the Re-LSTM network to obtain a trained quadrotor drone pose estimation model, which is used to estimate the current pose of the quadrotor drone in real time.
2. According to a method for estimating the position and posture of a quadrotor drone based on a Re-LSTM network according to claim 1, it is characterized in that: The step 1 comprises the following steps: Step 1.1: Collect the posture of the quadrotor drone at the current time t [q 0_t ,q 1_t ,q 2_t ,q 3_t ] T and position coordinates [x 1_t ,y 1_t ,z 1_t ] T And the depth image of the object observed by the quadrotor drone at the current time t [dep 0_t ,img 0_t ] T ; Where T represents transpose, dep 0_t Represents the depth pixel value of the object's depth image at the current time t, img 0_t Represents the color pixel value of the object depth image at the current time t; Step 1.2: Use formula (1-1) to calculate [q 0_t ,q 1_t ,q 2_t ,q 3_t ] T Perform data preprocessing to obtain the preprocessed posture of the quadrotor drone at the current time t [q 0_t_pro ,q 1_t_pro ,q 2_t_pro ,q 3_t_pro ] T In formula (1-1): α1, β1, γ1 are the yaw angle, pitch angle, and roll angle of the quadrotor drone at the current time t, △t represents the time difference, and △t∈[0,1]; Step 1.3: Use formula (1-2) to calculate [dep 0_t ,img 0_t ] T Perform data preprocessing to obtain the object depth image [dep 0_t_pro ,img 0_t_pro ] T : In formula (1-2): f represents the focal length of the depth camera, is the depth image resolution of the depth camera along the x-axis, is the depth image resolution of the depth camera along the y-axis direction, C1 and C2 are unequal constants and both are not zero; Step 1.4: Use formula (1-3) to obtain the pose feature E of the quadrotor drone at the current time t t_cur : In formula (1-3): ε is the zero bias error of the observation process, τ is the observation noise, G is the state transfer matrix, and:
3. According to claim 2, a method for estimating the pose of a quadrotor drone based on a Re-LSTM network is characterized in that: The Re-LSTM network in step 2 includes, in sequence: an input module Input, a feature extraction module Exact, a forgetting module Forget, an updating module Update, a hidden layer module Hidden, and an output module Output; Step 2.1, the input module Input is composed of P basic units connected in parallel; The pose feature E t_cur Input each basic unit of the input module Input for processing, and obtain the basic posture feature set E at the current time t t_pre ={E p,t_pre |p=1,2,..P}, where E p,t_pre Represents the basic posture feature at the current time t output by the p-th basic unit; Step 2.2, the feature extraction module Exact is composed of U extraction units in parallel, where any u-th extraction unit is composed of k1 convolutional layers Conv and k2 pooling layers Pool in sequence; E t_pre The input feature extraction module Exact is first processed by the k1 convolutional layers Conv of the U extraction units to obtain the coarse pose feature set E at the current time t. t_Exact ={E u,t_Exact |u=1,2,..U}, where E u,t_Exact represents the coarse pose feature at the current time t output by the u-th extraction unit; E t_Exact Then, the standard pose feature set E at the current time t is obtained by processing the k2 pooling layers of u extraction units. t_Exact ={E u,t_Pool |u=1,2,..U}, where E u,t_Pool Represents the standard posture feature at the current time t output by the u-th extraction unit; Step 2.3, the forget module Forget is composed of k3 feature compensation branches in parallel; E u,t_pool Input into the k3 feature compensation branches, and use formula (2-1) to generate the u-th compensation pose feature E at the current time t u,t_Fus , thus obtaining the compensation pose feature set E at the current time t t_Fus ={E u,t_Fus |u=1,2,..U}: In formula (2-1), E u,i,t_Fus represents the u-th compensated pose feature at the current time t output by the i-th feature compensation branch, W i is the weight of the i-th feature compensation branch, b i is the bias of the i-th feature compensation branch, and W i , b i All are not 0; k represents the number of the characteristic compensation branch, and k3 represents the total number of characteristic compensation branches; Step 2.4, the update module Update is composed of O update units connected in parallel, wherein any oth update unit is composed of g3 upsampling layers in sequence; E t_Fus They are respectively input into the O update units in the update module Update for upsampling, and the precise pose feature set E at the current time t is obtained. t_Pci ={E o,t_Pci |o=1,2..O}, where E o,t_Pci Represents the precise pose feature at the current time t output by the oth update unit; Step 2.5, the hidden layer module Hidden is composed of O hidden units connected in parallel, wherein any oth hidden unit is composed of an activation layer; E t_Pci They are input into the O hidden units in the hidden layer module Hidden for processing, and the activation posture feature set E at the current time t is obtained using formula (2-2): t_Act ={E o,t_Act |o=1,2..O}: In formula (2-2), E o,t_Act Represents the activation pose feature at the current time t output by the oth hidden unit; Step 2.6, the output module Output is composed of R output units connected in parallel, where any r-th output unit is composed of g4 upsampling layers and 1 fully connected layer in sequence; E t_Act After being input into the R output units in the output module Output for processing, the predicted pose feature set pose at the current time t is obtained. t_pred ={pose r,t_pred |r=1,2..R}, where pose r,t_pred Represents the predicted pose feature at the current time t output by the rth output unit.
4. According to claim 3, a method for estimating the pose of a quadrotor drone based on a Re-LSTM network is characterized in that: The step 3 comprises the following steps: Step 3.1: Use formula (3-1) to construct the pose prediction loss function Loss of the quadrotor drone at the current time t t_pose : In formula (3-1): Represents the depth pixel value dep of the preprocessed object depth image at the current time t 0_t_pro The standard deviation of Represents the color pixel value img of the preprocessed object depth image at the current time t 0_t_pro The standard deviation of Represents the depth pixel value dep of the preprocessed object depth image at the current time t 0_t_pro The variance of Represents the depth pixel value img of the preprocessed object depth image at the current time t 0_t_pro The variance of , |||| is the binary norm; d1 and d2 respectively represent the measurement noise contained in the depth pixels in the preprocessed object depth image at the current time t, and the measurement noise contained in the color pixels in the preprocessed object depth image at the current time t. Step 3.2: Iteratively train the Re-LSTM network using the SGD optimizer and calculate the total loss function Loss t_pose To adjust the network parameters until the total loss function Loss t_pose Until convergence, a trained quadrotor UAV pose estimation model is obtained, which is used to estimate the current pose of the quadrotor UAV in real time.
5. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store a program that supports the processor to execute the quadrotor drone pose estimation method described in any one of claims 1-4, and the processor is configured to execute the program stored in the memory.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for estimating the pose of a quadrotor drone described in any one of claims 1 to 4 are executed.
Citation Information
Patent Citations
Online public opinion early warning method based on LSTM model
CN111831895A
End-to-end estimation method for landing space position and attitude of unmanned aerial vehicle
CN112268564A
Feasibility evaluation method for digital twinning of unmanned aerial vehicle based on Vicon motion capture system
CN112286214A
Four-rotor unmanned aerial vehicle positioning method based on multi-sensor fusion
CN113465596A
Unmanned aerial vehicle pose estimation method based on self-attention mechanism and LSTM
CN116630418A
Cited By
Unmanned ship control system integrating various communication links and interfaces
CN119536104A
