Neural network assisted Kalman filter for INS/UWB integrated seamless quadrotor localization
- Published
- Accepted
- Received
- Academic Editor
- Pengcheng Liu
- Subject Areas
- Adaptive and Self-Organizing Systems, Data Science, Robotics
- Keywords
- Neural network assisted Kalman filter, INS/UWB, Quadrotor, Localization
- Copyright
- © 2021 Bi et al.
- Licence
- This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, reproduction and adaptation in any medium and for any purpose provided that it is properly attributed. For attribution, the original author(s), title, publication source (PeerJ Computer Science) and either DOI or URL of the article must be cited.
- Cite this article
- 2021. Neural network assisted Kalman filter for INS/UWB integrated seamless quadrotor localization. PeerJ Computer Science 7:e630 https://doi.org/10.7717/peerj-cs.630
Abstract
Due to some harsh indoor environments, the signal of the ultra wide band (UWB) may be lost, which makes the data fusion filter can not work. For overcoming this problem, the neural network (NN) assisted Kalman filter (KF) for fusing the UWB and the inertial navigation system (INS) data seamlessly is present in this work. In this approach, when the UWB data is available, both the UWB and the INS are able to provide the position information of the quadrotor, and thus, the KF is used to provide the localization information by the fusion of position difference between the INS and the UWB, meanwhile, the KF can provide the estimation of the INS position error, which is able to assist the NN to build the mapping between the state vector and the measurement vector off-line. The NN can estimate the KF’s measurement when the UWB data is unavailable. For confirming the effectiveness of the proposed method, one real test has been done. The test’s results demonstrate that the proposed NN assisted KF is effective to the fusion of INS and UWB data seamlessly, which shows obvious improvement of localization accuracy. Compared with the LS-SVM assisted KF, the proposed NN assisted KF is able to reduce the localization error by about 54.34%.
Introduction
Nowadays, the quadrotor has been widely used in many fields (Xu et al., 2020a; Nguyen & Hong, 2019; Kou et al., 2018). Consequently, many approaches have been proposed for the quadrotor (Liang et al., 2019). In order to make the quadrotor have better performance, the accurate localization scheme, which is the key technology of the quadrotor to accomplish other tasks, should be investigated (Camci & Kayacan, 2019).
To the localization technologies for the quadrotor, there are many approaches have been proposed. For instance, a smart quadcopter aircraft navigation system using the global positioning system (GPS) was designed, which can achieve autonomous flight control with smooth and stable maneuvering, see Bonny & Abdelsalam (2019). Global navigation satellite systems (GNSS) intigrating light detection and ranging (LiDAR) scheme was investigated to achieve the autonomous navigation in forests (Chiella et al., 2019). The indoor quadrotor localization integrated by inertial navigation system (INS) and ultra wide band (UWB) was proposed by Xu et al. (2020b). A high-speed autonomous quadrotor navigation through visual and inertial paths was proposed (Do, Carrillo-Arce & Roumeliotis, 2019). Autonomous vision-based micro air vehicle for indoor and outdoor navigation was investigated in Schmid et al. (2014). It should be emphasized that the basic idea of the approaches mentioned above is to replace the unavailable positioning technology with a available one.
In aggregate, the data fusion filter has played an important role in integrated navigation system (Zhao & Huang, 2020; Wang et al., 2018; Li et al., 2019; Liu, Yu & Shuang, 2019). Moreover, the Kalman filter (KF) with its improving filters have been proposed for the data fusion (Liu et al., 2020). For example, the fading cubature Kalman filter (CKF) was designed to the initial alignment of strapdown inertial navigation system (SINS) (Guo et al., 2020). The quadrotor state estimation based on CKF was proposed (Benzerrouk, Nebylov & Salhi, 2016). An improving CKF method was investigated for the the attitude determination system of missile (Liu et al., 2019). The CKF is used for the GNSS/INS under GNSS-challenged environment (Cui et al., 2019). An improved square root unscented Kalman filter was proposed for the localization of the coaxial Quadrotor (Gośliński et al., 2019). A Kalman filter/expectation maximization (EM) integrated frame was proposed in Qin et al. (2020). A new approach for enhancing the indoor navigation of unmanned aerial vehicles (UAVs) with velocity update applied to an extended Kalman filter (EKF) was investigated by Zahran et al. (2019). It should be pointed out that the outage of the data fusion filter’s measurement are not considered by the approaches mentioned above. Meanwhile, in order to ensure that the data fusion filter works, some artificial intelligence (AI)-based methods have been proposed, which have been used used in other fields (Zhang et al., 2021, 2020).
In this paper, we propose a neural network (NN) assisted KF, which is able to deal with the missing data in case of UWB data outage. Neural network is used to build the mapping between states and observations. The performance is verified with real data. Comparison shows that the proposed approach outperforms LS-SVM algorithm significantly in accuracy improvement.
The contributions of this work are listed in the following:
-
A new NN assisted KF for fusing the UWB and INS data seamlessly is presented in this work, which employs the NN to build mapping between states and observations offline and predict the observations when the UWB is outage.
-
Real tests have been done for demonstrating the effectiveness of the proposed approach.
The remainder structure of this article is sketched as follows. The description of INS/UWB integrated seamless quadrotor localization scheme is given in “INS/UWB Integrated Seamless Quadrotor Localization Scheme”. “Kalman Flilter” and “The Scheme of the NN” investigated the KF and the NN method for the localization scheme of INS/UWB integrated seamless quadrotor. The test is done in the “Test” section. Finally, conclusions are drawn in the “Conclusion” section.
INS/UWB Integrated Seamless Quadrotor Localization Scheme
In this section, the INS/UWB integrated seamless quadrotor localization scheme will be designed in two cases. The integrated seamless scheme proposed in this work are listed in the following:
-
When the UWB measurements are available, the data fusion scheme is shown in Fig. 1. In this situation, the INS and UWB localization technologies measure the target quadrotor’s position Po(I) and Po(U) respectively. Then, the Kalman filter (KF) estimates the position Po by fusing the Po(I) and Po(U).
-
Using the outputs and the measurements of the KF when the UWB measurements are available, the NN works in the training stage, it builds the mapping between the KF’s measurement δPot, t ∈ [1, +∞) and the data filter’s state vector after normal flight of the quadrotor. Here, the t is the time index. It should be pointed out that both the δPot, t ∈ [1, ∞) and the are collected when the KF works normally, and the building process of the mapping is off-line.
-
When the UWB measurements are not available, the data fusion scheme can be designed as Fig. 2. In this situation, the UWB is unable to provide the Po(U) due to the outage of the UWB. Thus, the KF is unable to work. In this situation, the NN is employed to rebuild the measurement of the KF. It works in prediction stage, which is utilized to provide the estimated position error δPo by using the mapping built in the above stage and the . Then, the δPo is used as the measurement of the KF, which makes the KF can work when the UWB measurement is outage.
Kalman Filter
Based on the seamless integrated scheme, the KF used in this work will be introduced in this section. The state equation of KF used in this work is listed in Eq. (1).
(1)
where the time index is denoted as t, δt means the sample time, means the position error vector at the time index t, here, the means the position error in the east, north, and up direction respectively, means the velocity error vector at the time index t, here, the means the velocity error in the east, north, and up direction respectively, ωt−1 ∼ N(0, Q) is the system noise and Q is its covariance.
The measurement equation of KF used in this work is listed in Eq. (2).
(2)
where is the INS-measured position Po(I) in east, north, and the upside direction, respectively, is the UWB-measured position Po(U) in east, north, and the up direction respectively, υt ∼ N(0, R) is the measurement noise and R is its covariance. The KF filtering algorithm based on the model (1) and (2) is listed in Algorithm 1.
Data: Yt, Q, R |
Result: , |
1 begin |
2 for t = 1: ∞ do |
3 ; |
4 ; |
5 ; |
6 ; |
7 ; |
8 end for |
9 end |
The Scheme of the Neural Network (NN)
In case of outage in complex indoor environment, due to the lack of UWB measurements, the observation vector in Kalman filter become unavailable. To provide the observation vector for the data fusion filter, the Neural Network (NN) is employed in this work.
However, it should be noticed that it is hard to model mathematically the relation between the measurements of the data fusion filter Yt and the state vector . For overcoming this issue, the NN is trained to build the mapping between them using the KF’s measurement Yt, t ∈ [1, +∞) and the collected after normal flight of the quadrotor. The input and target of the NN model are chosen as and Yt respectively. In this work, we select the simple BP neural network structure without hidden layer. Build the mapping between and Yt using the δPot, t∈ [1,∞) and the via NN.
The NN method is summarised in Algorithms 2 and 3. In the Algorithm 2, the KF provides the and the normally. Then, the NN is used to build the mapping between and Yt using the δPot, t ∈ [1,∞) and the on off-line model.
Data: Yt, Q, R |
Result: , the mapping between |t −1 and Yt |
1 begin |
2 for `t = 1:∞ do |
3 ; |
4 ; |
5 ; |
6 ; |
7 ; |
8 end for |
9 Build the mapping between and Yt using the δPot, t ∈ [1,∞) and the via NN; |
10 end |
Data: Yt, Q, R, the mapping between and Yt |
Result: , |
1 begin |
2 for t = 1:∞ do |
3 ; |
4 ; |
5 if Po(U) is available then |
6 ; |
7 else |
8 Estimate Yt using and previously built the mapping between and Yt via NN; |
9 end if |
10 ; |
11 ; |
12 ; |
13 end for |
14 end |
In the Algorithm 3, the KF works normally when the Po(U) is available. Here, the KF is used to provide the estimation of the δPo using the observation vector . Once the Po(U) is unavailable, the proposed NN assisted Kalman filtering algorithm estimate Yt using and previously built mapping via NN.
Test
In order to demonstrate the effectiveness of the proposed method, the real test will be investigated in this section.
Experimental settings
In this section, the real test will be considered to show the validity of the proposed method. The real test is done in the No. 1 building, University of Jinan, China, the test environment is displayed in Fig. 3. The quadrotor used in this work is shown in Fig. 4. Here, we employ the quadrotor to carry UWB blind node (BN) and the inertial measurement unit (IMU). The UWB BN fixed on the target quadrotor is able to collect the distances di,i ∈ [1, 6] between the target quadrotor and the UWB reference node (RN). Here, the i has the same number as the UWB RN. Then, the UWB position Po(U) can be computed via the the di,i ∈ [1, 6]. And the INS position Po(I) is provided by the IMU. The difference δPo between the Po(I) and Po(U) is used as the measurement of the KF. In the test, the quadrotor runs following the reference path, which is shown in Fig. 5. In this work, the sample time is set to 0.02s. In order to indicate the effect of the proposed method, four UWB outage areas (#1, #2, #3, and #4) are simulated as shown in Fig. 5.
Localization errors
In this subsection, the performance of the proposed NN assisted KF will be investigated. Here, we compare the NN assisted KF’s performance with the least squares support vector machine (LS-SVM) assisted KF. In this work, we employ the mean square error (MSE) at each time index, which is calculated by the follows:
(3)
where means the MSE of the position at time index t, is the estimated position in x, y, and z directions at the time index t, is the reference position in x, y, and z directions at the time index t.
Figure 6 shows the trajectories estimated by the LS-SVM and the NN in outage areas #1, #2, #3, and #4. From the figures, one can see easily that in the outages areas #1, #2, #3, and #4, when UWB measurements are unavailable, the NN can still make decisions that are close to the reference path, while the LS-SVM algorithm gives a large accumulated error.
The MSEs estimated by NN (green line) and LS-SVM (blue line) in the outages areas #1, #2, #3, and #4 are shown in Fig. 7. From the figures, one can see that the MSE of the LS-SVM algorithm has a larger accumulated error compared with the NN. The average MSEs Produced by NN and LS-SVM in the outages areas #1, #2, #3, and #4 are listed in Table 1. It can be infered from the table that the average MSEs of the NN are smaller than the LS-SVM in the outages areas #1, #2, #3, and #4. Compared with the LS-SVM, the proposed NN reduced the localization error by about 54.34%. Thus, we can conclude that the proposed NN-based method can effectively reduce the localization error.
Method | MSE (m2) | ||||
---|---|---|---|---|---|
#1 | #2 | #3 | #4 | Mean | |
LS-SVM | 2.7445 | 0.1453 | 2.7147 | 16.6635 | 5.5670 |
NN | 0.0190 | 0.0524 | 0.0422 | 0.0537 | 2.5418 |
Conclusion
In this work, in order to make the data fusion filter work properly under the condition that the UWB data is unavailable due to some harsh indoor environments, the NN assisted KF for fusing the UWB and the INS data seamlessly has be investigated. The contributions of this work are summarized as following:
-
An NN assisted KF scheme has been designed for fusing the INS and UWB measurement.
-
The model of the KF for the integrated scheme has been investigated.
-
The NN assisted KF for fusing the UWB and the INS data seamlessly has been investigated. In the proposed approach, the KF provides the localization information when the UWB data is available. Meanwhile, the KF is used to assist the NN to build the mapping between the and Yt off-line. The NN can estimate the measurement vector of the KF when the UWB data is unavailable.
-
Real tests have been done to show better performance of the proposed approach.
Based on the results presented in this work, we are now working on further developments of the proposed algorithms to build the mapping with the deep learning and plan to report the results in the near future.