Next Article in Journal
Study on Electrical Performance of a U-Type Microfluidic Acceleration Switch Using Salt Solution as the Sensitive Electrode
Next Article in Special Issue
Driving Behavior Analysis of City Buses Based on Real-Time GNSS Traces and Road Information
Previous Article in Journal
An Electrochemical Approach for the Selective Detection of Cancer Metabolic Creatine Biomarker with Porous Nano-Formulated CMNO Materials Decorated Glassy Carbon Electrode
Previous Article in Special Issue
A Modified Residual-Based RAIM Algorithm for Multiple Outliers Based on a Robust MM Estimation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Real-Time Trajectory Prediction Method of Small-Scale Quadrotors Based on GPS Data and Neural Network

National Key Laboratory of Air Traffic Flow Management, College of Civil Aviation, Nanjing University of Aeronautics and Astronautics, Nanjing 210016, China
*
Author to whom correspondence should be addressed.
Sensors 2020, 20(24), 7061; https://doi.org/10.3390/s20247061
Submission received: 1 November 2020 / Revised: 2 December 2020 / Accepted: 7 December 2020 / Published: 10 December 2020

Abstract

:
This paper proposes a real-time trajectory prediction method for quadrotors based on a bidirectional gated recurrent unit model. Historical trajectory data of ten types of quadrotors were obtained. The bidirectional gated recurrent units were constructed and utilized to learn the historic data. The prediction results were compared with the traditional gated recurrent unit method to test its prediction performance. The efficiency of the proposed algorithm was investigated by comparing the training loss and training time. The results over the testing datasets showed that the proposed model produced better prediction results than the baseline models for all scenarios of the testing datasets. It was also found that the proposed model can converge to a stable state faster than the traditional gated recurrent unit model. Moreover, various types of training samples were applied and compared. With the same randomly selected test datasets, the performance of the prediction model can be improved by selecting the historical trajectory samples of the quadrotors close to the weight or volume of the target quadrotor for training. In addition, the performance of stable trajectory samples is significantly better than that with unstable trajectory segments with a frequent change of speed and direction with large angles.

1. Introduction

In the recent years, unmanned quadrotors are being widely used in various fields due to its small size, easy manipulation, low cost and high flexibility. The flight of quadrotors may operate with various degrees of autonomy, either under remote control by a human operator or autonomously by onboard computers. With the increasing demand of quadrotors, new requirements are put forward for the current air traffic management system to ensure that numerous unmanned aerial vehicles (UAVs) can operate safely, orderly, and efficiently, especially in the low-attitude airspace of congested urban areas. Among the most important urgent tasks of quadrotor operational management is the real-time prediction of quadrotor trajectory. The accurate trajectory prediction of quadrotors is an important prerequisite in air traffic control automation, as it can provide decision support for UAV conflict detection, the early warning of abnormal behaviors and scientific assessment of airspace condition.
With the development of data mining technology, the trajectory prediction of UAVs has become an increasingly hot research topic. The core function is to predict the short-term flight path of the UAVs in the target airspace through trajectory synthesizer models. As compared with large-scale UAVs, the movement patterns of small-size quadrotors are quite different in terms of the frequent direction change and hovering behaviors, which are more difficult to capture. To this end, this paper aims to: (a) propose a real-time trajectory prediction method for small-size quadrotors based on machining learning techniques; (b) test the performance of the proposed method based on the selection of various training samples; and (c) identify the impact of the frequent change of speed and direction with large angles in prediction accuracy.
The major contributions of this paper can be summarized in three aspects. First, bidirectional gated recurrent unit models were constructed and utilized to learn the historic data, which explicitly consider the information obtained from time-series data with different time intervals. Second, various types of training samples were applied and compared, considering the distribution of performance parameters of quadrotors. Therefore, the impact of selection of training samples on the performance of the proposed model was identified. Third, the influence of unstable trajectory segments with a frequent change of speed and direction with large angles on the performance of the proposed model is examined. The prediction results are compared with those of benchmark methods. The results confirm the superiority of the proposed method in terms of both the prediction accuracy and convergence time.
The rest of the paper is organized as follows. Section 2 presents the related work through a literature review. Section 3 describes the data preparation process. Section 4 discusses the selected methods for real-time trajectory prediction. Section 5 presents the data analysis results and comparison of the predictive performances between the proposed approach and the benchmark models. Section 6 summarizes the conclusions and indicates future research directions.

2. Related Work

Previously, some research has been conducted with regard to aircraft trajectory prediction. The methods can generally be categorized into two groups, aircraft performance models based on aerodynamics and data-driven methods. The concept of aircraft performance models is to establish aircraft dynamic and kinematic equations so as to explain the movement pattern [1]. Together with the current state of the aircraft, the subsequent position can be predicted using the established motion equations [2,3,4,5]. The aircraft dynamic and kinematic models used in trajectory prediction are usually based on certain assumptions in order to simplify the mathematical models of aircraft motion. This, in turn, has an impact on the prediction accuracy. As a matter of fact, the factors that affect the aircraft trajectory are very complex, including the computation model, aircraft intent, environmental conditions and performance parameters [6,7,8], etc. While most of relevant parameters are difficult to measure accurately, the usage of aircraft performance models is limited to some ideal conditions due to inaccuracy and instability in real data testing.
In contrast to the aircraft dynamic and kinematic models, the data-driven predicting methods take the trajectory as time series data and consider that the influencing mechanism of various factors on the prediction of aircraft trajectory is implicit in the change of time series data, thus avoiding the requirement for the complete information of various factors, as well as complex motion equations. Machine learning techniques can be used to predict aircraft trajectory, as long as historic information is available, which can be obtained from GPS data [9]. In recent years, an increasing number of studies have been conducted with regard to the implementation of machine learning techniques in predicting the trajectory of moving objects [10,11,12]. By using data mining techniques to extract the active locations, the mobility patterns can be predicted by Markov models [13,14], Kalman filtering [15], Gaussian mixture models [16], support vector machines [17], neural networks [18,19,20,21,22], etc. It has been proved that the prediction results of machine learning techniques are more accurate, reliable and robust in most cases, as compared with traditional methods [23,24].
Although an increasing number of studies are being conducted regarding aircraft trajectory prediction, until recently, however, there has been limited research on the trajectory prediction of unmanned quadrotors. As compared with commercial or fixed wing aircrafts, quadrotors have relatively small sizes, low weights, slow operating speeds, and flexible movement patterns. In some cases, the quadrotors may suddenly change directions or change the dynamics of their motions from flying to hovering. In addition, their operations are at low altitudes, where wind patterns are harder to characterize [25,26]. These factors contribute to the complexity of intent recognition and trajectory prediction. However, most of present literature concentrate on the dynamic modeling and control of unmanned quadrotors [27,28,29]. As a result of these sudden changes in the quadrotor trajectories, the dynamical motion models will have difficulties in maintaining a consistent prediction over long horizons. Research is still needed to be conducted to improve the techniques for quadrotor trajectory prediction for its safe and efficient operation in low altitude airspace.
Recently, the recurrent neural networks (RNN) have been widely recognized as a powerful machine learning tool for the prediction of time-series datasets. Unlike feedforward neural networks, RNNs have feedback loops with recurrent connections between the nodes of the network making them capable of modeling sequences. Noteworthy, long short-term memory (LSTM) and gated recurrent unit (GRU), as variations of RNNs, are designed to capture data dependencies for modeling time series data, which shows a great potential and promise in quadrotor trajectory prediction. It has been recognized that both the LSTM and GRU methods may provide satisfactory results, while the GRU method can outperform LSTM units both in terms of convergence in CPU time and in terms of parameter updates and generalization [30].
Considering the requirement of the real-time prediction of quadrotor location, the prediction accuracy and computation time should be both highlighted and balanced. In this paper, a procedure based on the bidirectional gated recurrent unit (D-GRU) method has been proposed for intention recognition and the short-term trajectory prediction of quadrotors. Historical flight trajectory data of various types of quadrotors are obtained. The D-GRU neural network algorithm is constructed and utilized to learn the historical trajectory data. The prediction results are compared with the traditional GRU method to testify its prediction performance.

3. Data Preparation

To meet the research objective, historic trajectory data for various quadrotors were collected. Relevant information was recorded by using airborne GPS sensors, and the trajectory dataset used in the research is collected at intervals of 5 s. The dataset covers 10 kinds of quadrotors, some performance parameters of which are shown in Table 1.
In this table, the second column “Weight” represents the net weight of the quadrotor including rotors. The third column “Max Speed” represents the maximum horizontal speed of the quadrotor in calm wind. The fourth column “Max WS” refers to the maximum wind speed allowed when the quadrotor keeps flying. The last two columns “Max CR” and “Max DR” are the maximum climb rate and descent rate of the quadrotors, respectively.
A total of 924 trajectories were collected, including 61,029 trajectory records. Each record of data includes the coordinated universal time (UTC) time stamp, quadrotor ID, latitude, longitude, altitude, horizontal speed, etc. The numbers of trajectories for each type of quadrotor are shown in the “Trajectory” column in Table 2.
Figure 1 shows a three-dimensional view and two side views of a typical quadrotor trajectory. The figure depicts the frequent and fast changes in the behaviors of the randomly selected quadrotor, such as large-angle direction change, flexible vertical upward and downward movements.
According to the time sequence, the length ts required by the trajectory prediction task, each quadrotor trajectory (e.g., the trajectory in Figure 1) is divided into several segments with length T. In order to meet the length that is needed for the trajectory prediction, ts and T satisfy the following relationship, which is also shown in Figure 2:
T t s + 1 × 2 1 + 1 = t s + 1 × 2
where (ts + 1) is the length of input and output for the trajectory prediction based on every one tracing point; [(ts + 1) × 2 − 1] is the length of difference series that is required for trajectory prediction based on every two tracing points as shown in Figure 2; [(ts + 1) × 2 − 1] + 1 is the segment length that is required for the computation of the different value of displacement. The number of segments generated by each kind of quadrotor is shown in the “Sample 1” column of Table 2.
According to the performance parameters of the selected quadrotors in Table 1, each segment in Sample 1 is checked, and the segments that meet the maximum performance constraints of the corresponding quadrotor are selected. Since the quadrotors can perform hovering operations, there is no limitation for the maximum turning angular velocity. Therefore, the screening process mainly refers to the limitation in the maximum ground speed GS of the quadrotor. The normalization of GS can be expressed as
G S = V calm 2 + W S 2 + 2 V calm W S cos θ
where Vcalm is the speed of the quadrotor in the calm wind; WS is the wind speed; θ is the angle between Vcalm and WS. The maximum GS of the quadrotor is generated when Vcalm is in the same direction as WS, and both reach the maximum critical values, as shown in the “Max Speed” and “Max WS” columns in Table 1. Thus, the maximum displacement of the quadrotor with the maximum GS can be determined at a unit of time. The segments with displacement per unit of time that exceed the displacement interval in Sample 1 are deleted. The number of segments obtained after screening are shown in “Sample 2” column of Table 2.
In order to further demonstrate the distribution of the trajectory data, the variance (Var) of the size change of GS in each segment is calculated, and the frequency (Freq) of the direction change of GS in [0°, 45°], [45°, 90°], [90°, 135°] and [135°, 180°] is counted. The explanation of the size and direction change of GS is shown in Figure 3, where GS1 and GS2 are the ground speed of the track points p1 and p2, respectively. The direction change of GS is calculated as the change in displacement direction between the sample point and the previous tracking point.
The distribution of Var and Freq for each type of quadrotor is illustrated in Figure 4 and Figure 5.
According to Figure 4, the distribution of Var is quite different for the different types of quadrotors. In Figure 5, the mean value of the Freq index generally decreases as the value of the angle interval increases, while the large-angle heading changes still frequently exist during the [135°, 180°] interval, indicating the high flexibility of quadrotors, especially the light quadrotors. Furthermore, the samples of the trajectory segments, which are lower than Varmax and Freqmax for each type of quadrotor, are selected, as shown in the “Sample 3” column of Table 2. Varmax and Freqmax are defined as follows:
V a r m a x = m a x p e r 75 V a r i j
F r e q m a x , k = m a x p e r 75 F r e q i , k j , k = 1 , 2 , 3 , 4
where Vari represents the Var of the trajectory segment i, and per75(Vari)j represents the upper quartile of the Var of the jth type of quadrotor. Freqi, k represents the Freq of segment i in interval k; and per75(Freqi,k)j represents the upper quartile of Freq of the jth type of quadrotor in interval k.
The last column of Table 2 represents the reduction ratio of the number of segments from Sample 2 to Sample 3. It is found that except for the inspire2 quadrotor, the reduction ratio for the other types of quadrotors is over 50%, with 70.03% for Mavic 2 as the highest. The estimated reduction ratios are generally consistent with the variance distribution of changes in ground speed and direction.

4. Methodology

In this section, a real-time trajectory prediction method for the quadrotors is constructed based on bidirectional gated recurrent unit (D-GRU) model. The procedure is presented as follows.

4.1. The D-GRU Network

Gated recurrent unit (GRU) is an improved recurrent neural network (RNN) proposed by Chung et al. [30]. Similar to long short-term memory (LSTM), GRU is also used to solve the long-term memory problem existing in RNN and the gradient problem in backpropagation. However, in contrast to the structure of the forgetting gate, the input gate and cell gate in LSTM, the GRU network has a reset gate and update gate. The function of the update gate is similar with the combination of the forgotten gate and the input gate in the LSTM, which is responsible for processing the memory and the current input information. In addition, the GRU model has fewer parameters than the LSTM model and requires fewer samples to implement generalization. In the process of the real-time trajectory prediction of quadrotors, historical trajectory samples change rapidly, and the reliable and accurate position prediction by training samples in a short time is of vital importance. Therefore, this paper uses the GRU model to realize the real-time trajectory prediction of small and slow quadrotors. The principle of a GRU unit is shown in Figure 6.
As shown in Figure 6, F1, F2, and F3 represent the change in latitude, longitude, and altitude, respectively. F4 is a change in the size of the ground speed. The change in direction can be reflected as the change of latitude and longitude. F5 is the change in vertical speed. The procedure of the GRU cell is listed as follows.
First, use the sigmoid activation function σ to activate the input information of the reset gate so as to obtain the current state rt of the reset gate. The formula is:
r t = σ W r t · h t 1 , U r t · x t
where xt is the input information at the current moment; ht−1 is the hidden state passed at the previous moment; Wrt and Urt are the weights corresponding to xt and ht−1, which are updated continuously in training. Similarly, the current state zt of the update gate can be calculated by the following formula:
z t = σ W z t · h t 1 , U z t · x t
where Wzt and Uzt are the weights corresponding to xt and ht−1 in the update gate, respectively.
Second, the reset gate state rt, the hidden state ht−1, and the input xt are combined to calculate the memory information ht′ at the current moment. The formula is:
h t = φ W t · ( r t h t 1 ) , U t · x t
where φ indicates the tanh activation function; Wt and Ut are the weights corresponding to xt and reset ht−1, respectively. When rt is 0, the memory information at the current time is determined only by the input xt.
Third, the update gate state zt is applied to forget and retain the information contained in ht−1 and ht′, respectively. The formula is:
h t = z t h t 1 + 1 z t h t
where ht is the output of neurons at the current moment and is also the hidden state passed to the next moment.
In Formulas (5) to (8), the symbol ’·’ means inner product; ‘⊙’ means Hadamard product; σ and φ are the activation functions for non-linearization. The expressions of them are shown in Formulas (9) and (10), respectively, and the functional curves are shown in Figure 7:
σ ( x ) = 1 1 + e x
φ ( x ) = e x e x e x + e x
Figure 8 illustrates the structure of the D-GRU model. The location data from different timestamps are used to calculate the change in latitude, longitude and altitude, respectively, during this period. The subsequent change in location is predicted according to the historic movement data. The change in position is calculated for two different intervals, as the left-side of Figure 8 is based on the change in location for two adjacent points, i.e., the historical position data xn−1 and xn−2 in time n − 1 and n − 2, respectively, are used to predict the change in location tn−1 during time period n − 2 to n − 1, while the right-side of Figure 8 is based on the change in location at intervals of two points, i.e., the historical position data xn−1 and xn−3 in time n − 1 and n − 3 are used to predict the change of location dn−1 during the time period from n − 3 to n − 1. Then, the two outputs, denoted as tn′ and dn′, are input into the fully connected layer of the neural network structure. The following steps are provided for the construction of the proposed model.
Step 1:
Obtain each segment through data processing, where xn represents the data at time n.
Step 2:
According to the requirement of input data length ts in the neural network, two different types of time series data are generated, with one- and two-time intervals, respectively.
Step 3:
Input the two different types of time series data in the neural network.
Step 4:
Generate the neural network layers composed of GRU cells.
Step 5:
Obtain the outputs of the fully connected layers. In Figure 8, htn−1 and hdn−1 represent the hidden states of the GRU layers; tn′ and dn′ represent the outputs of the fully connected layers; and tn is the output of the model.
Step 6:
Obtain the predicted value. xn′ represents the predicted value of the location.

4.2. Loss Gunction

In order to suppress the over-fitting of the neural network during training, the L2 regularization method is applied as the loss function on the mean square error for the regression model [31,32], which is a commonly used normalization method in previous research. Based on the L2 normalization method, the optimal value is unique when calculating the gradient, while the L1 normalization method may provide multiple optimal values [33]. The formula is shown as follows:
L o s s = 1 n i = 1 n y i y i 2 + λ k = 1 K w k 2
where yi and yi′ are the actual and predicted values of sample i, respectively; λ is the proportion of regularization in the total loss; and w is the trainable weights of the regression model.

4.3. Evaluation Metrics

To evaluate the performance of the proposed model, the mean absolute error (MAE), root mean squared error (RMSE) and mean absolute percentage error (MAPE) were calculated for each method, respectively. The equations are shown as follows:
M A E = 1 n i = 1 n y i y i 2
R M S E = 1 n i = 1 n y i y i 2
M A P E = 1 n i = 1 n y i y i y i
where yi and yi′ are the actual and predicted categories of the test sample i, respectively, and n is the test sample size.

5. Test and Results

To testify the impact of training samples on the performance of the proposed algorithm, different subsets selected from the original training samples were applied and the results compared. Taking the Mavic 2 quadrotor as an example, for the objective of the trajectory prediction of this type of quadrotor, the following three subsets of Sample 2 were selected as training samples, and the results are summarized in Table 3:
  • Training Sample 2-1: the segments of all types of quadrotors in Sample 2;
  • Training Sample 2-2: the segments of Mavic Air, Mavic 2, Mavic Pro and Spark in Sample 2, with weights of less than 1000 g;
  • Training Sample 2-3: only the segments of Mavic 2 in Sample 2;
  • Training Sample 2-4: half of the sample randomly selected from Sample 2-1.
The four subsets, including Samples 2-1, 2-2, 2-3 and 2-4, were applied as training datasets. Then, the collected historic data for Mavic 2 were input into the trained models to obtain the predicting results.
Similarly, in order to investigate the influence of the unstable trajectory segments, such as a frequent large-angle change in direction and speed, on the performance of the prediction model, the following three subsets of Sample 3 were selected as training samples, and the results are summarized in Table 4:
  • Training Sample 3-1: the segments of all types of quadrotors in Sample 3;
  • Training Sample 3-2: the segments of Mavic Air, Mavic 2, Mavic Pro and Spark in Sample 3, with weights of less than 1000 g;
  • Training Sample 3-3: only the segments of Mavic 2 in Sample 3;
  • Training Sample 3-4: half of the sample randomly selected from Sample 3-1.
As shown in Table 3 and Table 4, the following findings can be obtained:
The proposed D-GRU model produces better prediction results than the GRU model in terms of all the three evaluation indicators. The MAEs of latitude, longitude, and altitude are reduced by at least 11.85, 6.35, and 5.66% in Sample 2, as well as 17.55 9.18, and 4.26% in Sample 3, respectively. Compared with the single-interval sequence GRU model, the D-GRU model can extract more information from the trajectory segment of inherent length T, which will try to restrain the irregularity of the transmission pattern learned from the information of single-interval data based on the information of double intervals.
The prediction accuracies from Samples “2-1” and “3-1” were better than those from Samples “2-4” and “3-4”, indicating that a larger sample dataset for training may help to improve the model performance. The prediction results from Sample “2-2”, Sample “2-3” and Sample “3-2”, Sample “3-3” were significantly better than the prediction results from Sample “2-1” and Sample “3-1”. The MAEs of the optimal prediction results from Sample “2-2” and Sample “2-3” for latitude, longitude, and altitude were reduced by 17.29, 15.25, and 23.86% as compared with Sample “2-1”, and 18.64, 16.44, and 21.97% from Sample “3-2” and Sample “3-3” as compared with Sample “3-1”, respectively. Selecting the historical trajectory samples of the quadrotors close to the weight or volume of the target quadrotor can improve the performance of the prediction model, indicating that the weights and biases learned from the training samples close to the target are more appropriate for trajectory prediction.
As compared with Sample 2, the prediction results from Sample 3 tends to be much better. Specifically, the MAEs of latitude, longitude, and altitude of the optimal predictions from Sample 3 were reduced by 29.56, 29.21, and 10.00% compared with Sample 2, respectively. This is due to the reason that by introducing the constrains of the Var and Freq of the trajectory segment, the training trajectory segments in Sample 3 are more stable as compared with Sample 2 in latitude and longitude. By removing unstable trajectory samples such as noise, just like the training sample filtering process, the performance of the trajectory prediction model can be further improved.
For the objective of real-time prediction, the predicted consecutive trajectory points for the Mavic 2 samples are recorded using the proposed D-GRU models and then compared with the actual location. The traditional particle filtering (PF) model was constructed for comparison as a benchmark method, which was commonly used for trajectory prediction in previous research [34,35,36,37]. The results were summarized in Figure 9 and Table 5. The horizontal axis of Figure 9 represents 50 consecutive points. For the “D-GRU” and “PF” lines, the vertical axis represents the distance from the original longitude, latitude and altitude to the predicted location; and for the target line, the vertical axis represents the distance from the original longitude, latitude and altitude to the actual location.
According to Figure 9 and Table 5, it can be observed that, in general, the prediction accuracy of the proposed D-GRU model is higher than that of the traditional PF model for latitude, longitude and altitude. The D-GRU model especially presents the higher prediction accuracy during the turning points, as depicted in the red circles in Figure 9, while the PF model presents satisfactory prediction results for the stable flight states, as depicted in the violet circle in Figure 9. However, as the PF model is based on kinematic equations, the advantage of the PF model lies in that real-time prediction can be conducted just based on the previous location and speed, while the neural network model requires a historic time-series dataset for training and prediction.
In some cases, the lack of historic trajectories as training samples for the D-GRU model tends to be a potential difficult task. For example, for the case of the invasion of the quadrotor to protected airspace around the airports for the first time, it might be difficult to collect massive datasets for the target quadrotor during a short time period. A solution is that the models can be trained based on the historic trajectory datasets with similar types, weights, or sizes. Then, the real-time surveillance data can be input into the trained models to make prediction. It has been proved above that the prediction accuracy can be improved through the training sample selection.
Otherwise, if large samples of historic trajectory records can be obtained, it is crucial to finish the training and prediction process during a short time period. As the prediction process only takes a very short time, which is only a few milliseconds in our study, most of the prediction time is spent on data training. To further investigate the efficiency of the proposed algorithm, the training loss and training time of the D-GRU and GRU models are recorded and compared, as shown in Figure 10. The CPU type applied in this study is R5-3600, with the frequency of 4.00 GHz and batch size of 100. It can be seen that the training loss of the D-GRU model can converge to a stable state faster than the GRU model from the left sub-picture of Figure 10. The convergence procedure in the first 300 training steps is enlarged in the right of Figure 10. Considering the application of the algorithm in real-time trajectory prediction, the data collection interval is 5 s in this study. The training loss of the D-GRU model is lower than that of the GRU model before the first 5 s according to the right sub-picture of Figure 10, while the training loss of the two models are generally comparable after longer training in the left of Figure 10. The reason for the faster convergence of the D-GRU model is that the GRU model is more prone to overfitting. In order to decrease the training loss steadily, a smaller learning rate should be used. Nevertheless, according to the GRU training loss convergence curve, it is found that there is still a slight overfitting phenomenon.
In addition, it can also be seen from the right side of Figure 10 that although the training convergence speed of the D-GRU model is faster than that of GRU model, it still takes about 3 s to converge to the stable state. It will be difficult to complete the training and prediction process with the current equipment if the required prediction interval is less than 3 s. In order to shorten the training time, the CPU with better computing power may be needed, while this efficiency improvement based on equipment performance often has an upper limit. Therefore, in order to solve the problem of insufficient target historic samples and meet the real-time requirements at the same time, the process of the training sample selection and model pre-training according to the quadrotor type, weight and other characteristics can help to accomplish the real-time prediction task.

6. Conclusions

This paper proposed a real-time trajectory prediction algorithm for quadrotors based on D-GRU neural networks. The traditional GRU method is improved by integrating two different prediction frameworks, including the prediction based on the change of location for two adjacent points, as well as the prediction based on the change of location at intervals of two points. The prediction results are compared with the traditional GRU model as the benchmark method. Taking the type of MAVIC2 quadrotor as a case study, the mean position error is 3.10 m for latitude, 3.66 m for longitude and 1.35 m for altitude, respectively. The proposed algorithm improves both the accuracy and efficiency for the short-term trajectory prediction of quadrotors.
Even though the proposed D-GRU approach has exhibited great potential for short-term trajectory prediction, several limitations are still needed to be addressed in future studies. First, this study is focused on the short-term trajectory prediction based on historic location data. As a matter of fact, the real time location is affected by a series of factors such as meteorological parameters such as wind. Future research is still needed to identify the impacts of other significant variables. Second, the paper used the data from several commonly used types of quadrotors as inputs. Data from other types of UAVs can also be applied to further investigate the robustness and applicability of the proposed model, especially those with a different performance of flexibility parameters. The authors recommend that future studies focus on these issues.

Author Contributions

Conceptualization, Z.Y. and R.T.; methodology, Z.Y. and R.T.; software, J.B.; validation, J.L. and Z.Z.; formal analysis, R.T.; investigation, R.T. and J.L.; resources, J.L.; data curation, J.B.; writing—original draft preparation, J.B.; writing—review and editing, R.T.; visualization, R.T.; supervision, Z.Y. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Fundamental Research Funds for the Central Universities of China, grant number NS2020046; National Natural Science Foundation of China, grant number 51608268.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Nuic, A.; Poles, D.; Mouillet, V. BADA: An advanced aircraft performance model for present and future ATM systems. Int. J. Adapt. Control Signal Process. 2010, 24, 850–866. [Google Scholar] [CrossRef]
  2. Porretta, M.; Dupuy, M.-D.; Schuster, W.; Majumdar, A.; Ochieng, W. Performance Evaluation of a Novel 4D Trajectory Prediction Model for Civil Aircraft. J. Navig. 2008, 61, 393–420. [Google Scholar] [CrossRef]
  3. Benavides, J.V.; Kaneshige, J.; Sharma, S.; Panda, R.; Steglinski, M. Implementation of a Trajectory Prediction Function for Trajectory Based Operations. In Proceedings of the AIAA Atmospheric Flight Mechanics Conference, Atlanta, GA, USA, 16–20 June 2014. [Google Scholar]
  4. Zhou, Z.; Chen, J.; Shen, B.; Xiong, Z.; Shen, H.; Guo, F. A trajectory prediction method based on aircraft motion model and grey theory. In Proceedings of the 2016 IEEE Advanced Information Management Communicates, Electronic and Automation Control Conference (IMCEC), Xi’an, China, 3–5 October 2016; pp. 1523–1527. [Google Scholar]
  5. Ille, M.; Namerikawa, T. Collision avoidance between multi-UAV-systems considering formation control using MPC. In Proceedings of the 2017 IEEE International Conference on Advanced Intelligent Mechatronics (AIM), Munich, Germany, 3–7 July 2017; pp. 651–656. [Google Scholar]
  6. Legrand, K.; Rabut, C.; Delahaye, D. Wind networking applied to aircraft trajectory prediction. In Proceedings of the 2015 IEEE/AIAA 34th Digital Avionics Systems Conference (DASC), Prague, Czech Republic, 13–17 September 2015; pp. 1A4-1–1A4-10. [Google Scholar]
  7. De Souza, E.C.; Fattori, C.C.; Silva, S. Improved Trajectory Prediction and Simplification Analysis for ATM System Modernization. IFAC-PapersOnLine 2017, 50, 15627–15632. [Google Scholar] [CrossRef]
  8. Zhang, J.; Liu, J.; Hu, R.; Zhu, H. Online four dimensional trajectory prediction method based on aircraft intent updating. Aerosp. Sci. Technol. 2018, 77, 774–787. [Google Scholar] [CrossRef]
  9. Sun, R.; Wang, G.; Zhang, W.; Hsu, L.-T.; Ochieng, W.Y. A gradient boosting decision tree based GPS signal reception classification algorithm. Appl. Soft Comput. 2020, 86, 105942. [Google Scholar] [CrossRef]
  10. Alligier, R.; Gianazza, D.; Durand, N. Machine Learning Applied to Airspeed Prediction during Climb. In Proceedings of the ATM seminar 2015, 11th USA/EUROPE Air Traffic Management R&D Seminar, FAA& Eurocontrol, Lisboa, Portugal, 23–26 June 2015. [Google Scholar]
  11. Alligier, R.; Gianazza, D. Learning aircraft operational factors to improve aircraft climb prediction: A large scale multi-airport study. Transp. Res. Part C Emerg. Technol. 2018, 96, 72–95. [Google Scholar] [CrossRef] [Green Version]
  12. Verdonk Gallego, C.E.; Gómez Comendador, V.F.; Sáez Nieto, F.J.; Orenga Imaz, G.; Arnaldo Valdés, R.M. Analysis of air traffic control operational impact on aircraft vertical profiles supported by machine learning. Transp. Res. Part C Emerg. Technol. 2018, 95, 883–903. [Google Scholar] [CrossRef]
  13. Song, Y.; He, G.; Yu, D. Modified Bayesian Inference for Trajectory Prediction of Network Virtual Identity Based on Spark. In Proceedings of the 2016 8th International Conference on Intelligent Human-Machine Systems and Cybernetics (IHMSC), Hangzhou, China, 27–28 August 2016; Volume 2, pp. 25–29. [Google Scholar]
  14. Farooq, H.; Imran, A. Spatiotemporal Mobility Prediction in Proactive Self-Organizing Cellular Networks. IEEE Commun. Lett. 2017, 21, 370–373. [Google Scholar] [CrossRef]
  15. Carvalho, A.; Gao, Y.; Lefevre, S.; Borrelli, F. Stochastic predictive control of autonomous vehicles in uncertain environments. In Proceedings of the 12th International Symposium on Advanced Vehicle Control, Tokyo, Japan, 22–26 September 2014. [Google Scholar]
  16. Wiest, J.; Höffken, M.; Kreßel, U.; Dietmayer, K. Probabilistic trajectory prediction with Gaussian mixture models. In Proceedings of the 2012 IEEE Intelligent Vehicles Symposium, Alcala de Henares, Spain, 3–7 June 2012; pp. 141–146. [Google Scholar]
  17. Chen, X.; Mériaux, F.; Valentin, S. Predicting a user’s next cell with supervised learning based on channel states. In Proceedings of the 2013 IEEE 14th Workshop on Signal Processing Advances in Wireless Communications (SPAWC), Darmstadt, Germany, 16–19 June 2013; pp. 36–40. [Google Scholar]
  18. Altché, F.; de La Fortelle, A. An LSTM network for highway trajectory prediction. In Proceedings of the 2017 IEEE 20th International Conference on Intelligent Transportation Systems (ITSC), Yokohama, Japan, 16–19 October 2017; pp. 353–359. [Google Scholar]
  19. Sarkar, A.; Czarnecki, K.; Angus, M.; Li, C.; Waslander, S. Trajectory prediction of traffic agents at urban intersections through learned interactions. In Proceedings of the 2017 IEEE 20th International Conference on Intelligent Transportation Systems (ITSC), Yokohama, Japan, 16–19 October 2017; pp. 1–8. [Google Scholar]
  20. Saleh, K.; Hossny, M.; Nahavandi, S. Intent prediction of vulnerable road users from motion trajectories using stacked LSTM network. In Proceedings of the 2017 IEEE 20th International Conference on Intelligent Transportation Systems (ITSC), Yokohama, Japan, 16–19 October 2017; pp. 327–332. [Google Scholar]
  21. Saleh, K.; Hossny, M.; Nahavandi, S. Intent Prediction of Pedestrians via Motion Trajectories Using Stacked Recurrent Neural Networks. IEEE Trans. Intell. Veh. 2018, 3, 414–424. [Google Scholar] [CrossRef]
  22. Xue, M. UAV Trajectory Modeling Using Neural Networks. In Proceedings of the 17th AIAA Aviation Technology, Integration, and Operations Conference, Denver, CO, USA, 5–9 June 2017. [Google Scholar]
  23. Tastambekov, K.; Puechmorel, S.; Delahaye, D.; Rabut, C. Aircraft trajectory forecasting using local functional regression in Sobolev space. Transp. Res. Part C Emerg. Technol. 2014, 39, 1–22. [Google Scholar] [CrossRef] [Green Version]
  24. Hrastovec, M.; Solina, F. Prediction of aircraft performances based on data collected by air traffic control centers. Transp. Res. Part C Emerg. Technol. 2016, 73, 167–182. [Google Scholar] [CrossRef]
  25. Ghazbi, S.N.; Aghli, Y.; Alimohammadi, M.; Akbari, A.A. Uadrotors Unmanned Aerial Vehicles: A Review. Int. J. Smart Sens. Intell. Syst. 2016, 9, 309–333. [Google Scholar] [CrossRef]
  26. Castillo-Effen, M.; Ren, L.; Yu, H.; Ippolito, C.A. Off-nominal trajectory computation applied to unmanned aircraft system traffic management. In Proceedings of the 2017 IEEE/AIAA 36th Digital Avionics Systems Conference (DASC), St. Petersburg, FL, USA, 17–21 September 2017; pp. 1–8. [Google Scholar]
  27. Fernando, H.C.T.E.; Silva, A.T.A.D.; Zoysa, M.D.C.D.; Dilshan, K.A.D.C.; Munasinghe, S.R. Modelling, simulation and implementation of a quadrotor UAV. In Proceedings of the 2013 IEEE 8th International Conference on Industrial and Information Systems, Kandy, Sri Lanka, 17–20 December 2013; pp. 207–212. [Google Scholar]
  28. Alexis, K.; Nikolakopoulos, G.; Tzes, A. On Trajectory Tracking Model Predictive Control of an Unmanned Quadrotor Helicopter Subject to Aerodynamic Disturbances. Asian J. Control. 2014, 16, 209–224. [Google Scholar] [CrossRef]
  29. Huang, K.; Shao, K.; Zhen, S.; Sun, H.; Yu, R. A novel approach for trajectory tracking control of an under-actuated quad-rotor UAV. IEEE/CAA J. Autom. Sin. 2016, 1–10. [Google Scholar] [CrossRef]
  30. Chung, J.; Gulcehre, C.; Cho, K.; Bengio, Y. Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling. arXiv 2014, arXiv:1412.3555. [Google Scholar]
  31. Wang, Y.; Zhang, J.; Zhu, H.; Long, M.; Wang, J.; Yu, P.S. Memory in Memory: A Predictive Neural Network for Learning Higher-Order Non-Stationarity from Spatiotemporal Dynamics. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 16–20 June 2019; pp. 9154–9162. [Google Scholar]
  32. Yu, B.; Yin, H.; Zhu, Z. Spatio-Temporal Graph Convolutional Networks: A Deep Learning Framework for Traffic Forecasting. In Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, Stockholm, Sweden, 13–19 July 2018; pp. 3634–3640. [Google Scholar] [CrossRef] [Green Version]
  33. Cortes, C.; Mohri, M.; Rostamizadeh, A. L2 Regularization for Learning Kernels. arXiv 2012, arXiv:1205.2653. [Google Scholar]
  34. Belokon’, S.A.; Zolotukhin, Y.N.; Kotov, K.Y.; Mal’tsev, A.S.; Nesterov, A.A.; Pivkin, V.Y.; Sobolev, M.A.; Filippov, M.N.; Yan, A.P. Using the Kalman filter in the quadrotor vehicle trajectory tracking system. Optoelectron. Instrument. Proc. 2013, 49, 536–545. [Google Scholar] [CrossRef]
  35. Xie, W.; Wang, L.; Bai, B.; Peng, B.; Feng, Z. An Improved Algorithm Based on Particle Filter for 3D UAV Target Tracking. In Proceedings of the ICC 2019–2019 IEEE International Conference on Communications (ICC), Shanghai, China, 20–24 May 2019; pp. 1–6. [Google Scholar]
  36. Zhang, X.; Fan, C.; Fang, J.; Xu, S.; Du, J. Tracking prediction to avoid obstacle path of agricultural unmanned aerial vehicle based on particle filter. Proc. Inst. Mech. Eng. Part I J. Syst. Control Eng. 2018, 232, 408–416. [Google Scholar] [CrossRef]
  37. Jiang, C.; Fang, Y.; Zhao, P.; Panneerselvam, J. Intelligent UAV Identity Authentication and Safety Supervision Based on Behavior Modeling and Prediction. IEEE Trans. Ind. Inform. 2020, 16, 6652–6662. [Google Scholar] [CrossRef]
Figure 1. (a) The three-dimensional view; (b,c) the side views of a quadrotor trajectory.
Figure 1. (a) The three-dimensional view; (b,c) the side views of a quadrotor trajectory.
Sensors 20 07061 g001
Figure 2. The minimum length of T for each segment.
Figure 2. The minimum length of T for each segment.
Sensors 20 07061 g002
Figure 3. The change in ground speed (GS) from the top view.
Figure 3. The change in ground speed (GS) from the top view.
Sensors 20 07061 g003
Figure 4. Distribution of the change of GS for each type of quadrotor.
Figure 4. Distribution of the change of GS for each type of quadrotor.
Sensors 20 07061 g004
Figure 5. The frequency of the directional change of GS in the four intervals.
Figure 5. The frequency of the directional change of GS in the four intervals.
Sensors 20 07061 g005aSensors 20 07061 g005b
Figure 6. The structure of a single gated recurrent unit (GRU) cell.
Figure 6. The structure of a single gated recurrent unit (GRU) cell.
Sensors 20 07061 g006
Figure 7. (a) The functional curve of the activation function σ; and (b) the functional curve of activation function φ.
Figure 7. (a) The functional curve of the activation function σ; and (b) the functional curve of activation function φ.
Sensors 20 07061 g007
Figure 8. The bidirectional gated recurrent unit (D-GRU) model.
Figure 8. The bidirectional gated recurrent unit (D-GRU) model.
Sensors 20 07061 g008
Figure 9. The real-time prediction results using D-GRU and particle filtering (PF) models.
Figure 9. The real-time prediction results using D-GRU and particle filtering (PF) models.
Sensors 20 07061 g009
Figure 10. Training loss and training time with respect to the training step.
Figure 10. Training loss and training time with respect to the training step.
Sensors 20 07061 g010
Table 1. Performance parameters of the selected quadrotors.
Table 1. Performance parameters of the selected quadrotors.
Drone TypeWeight (g)Max Speed (m/s)Max WS a (m/s)Max CR b (m/s)Max DR c (m/s)
Mavic Air43019.010.73.02.0
Mavic 290520.010.75.03.0
Mavic Pro74318.010.75.03.0
Spark30013.98.03.03.0
Phantom 3121616.010.75.03.0
Phantom 4138020.010.76.04.0
Phantom 4 Ad136820.010.76.04.0
Phantom 4 Pro138820.010.76.04.0
Inspire 1306020.010.75.04.0
Inspire 2329026.010.76.04.0
a WS represents wind speed; b CR represents climb rate; c DR represents descent rate
Table 2. Number of trajectories for each kind of quadrotor.
Table 2. Number of trajectories for each kind of quadrotor.
Type of QuadrotorsTrajectorySample 1Sample 2Sample 3Percent
Mavic Air14055175513265751.80%
Mavic 230014,43714,384431170.03%a
Mavic Pro18577257581347154.21%
Spark512075206987857.56%
Phantom 3641966179280455.13%
Phantom 4652683248099959.72%
Phantom 4 Ad181241117251955.72%
Phantom4 Pro6341463681163255.66%
Inspire 12683882482457.89%
Inspire 21248440327432.01%
a The bold number represents the maximum one.
Table 3. Comparison of the prediction accuracy with different training samples for Mavic 2 quadrotors.
Table 3. Comparison of the prediction accuracy with different training samples for Mavic 2 quadrotors.
TargetSubsetMAE (m) aRMSE (m) bMAPE (%) c
D-GRUGRUD-GRUGRUD-GRUGRU
LatitudeSample 2-15.205.328.7610.2511.1315.33
Sample 2-24.40d4.987.498.909.6410.21
Sample 2-34.554.747.377.818.4511.28
Sample 2-45.375.459.7610.9811.1615.42
LongitudeSample 2-16.106.8810.8612.2010.7517.59
Sample 2-25.756.1510.7210.988.9510.71
Sample 2-35.175.529.029.269.4810.86
Sample 2-46.157.2411.7812.7911.3418.26
AltitudeSample 2-11.972.463.273.7318.0925.74
Sample 2-21.591.592.803.0713.5414.03
Sample 2-31.501.592.772.779.5210.17
Sample 2-42.032.493.334.0118.5526.74
a MAE is mean absolute error; b RMSE is root mean squared error; c MAPE is mean absolute percent error; d The bold number represents the best prediction result from sample 2-1 to sample 2-4.
Table 4. Comparison of the prediction accuracy with different training samples for Mavic 2 quadrotors.
Table 4. Comparison of the prediction accuracy with different training samples for Mavic 2 quadrotors.
TargetSubsetMAE (m)RMSE (m)MAPE (%)
D-GRUGRUD-GRUGRUD-GRUGRU
LatitudeSample 3-13.814.086.766.808.7610.21
Sample 3-23.594.046.887.007.159.83
Sample 3-33.10a3.765.886.705.819.48
Sample 3-44.034.407.017.379.6812.59
LongitudeSample 3-14.384.348.538.257.577.99
Sample 3-23.874.527.908.805.897.30
Sample 3-33.664.037.358.275.706.31
Sample 3-44.574.739.019.248.198.31
AltitudeSample 3-11.731.863.133.4112.1612.89
Sample 3-21.461.702.863.398.228.95
Sample 3-31.351.412.672.878.118.26
Sample 3-41.911.973.443.3814.2413.07
a The bold number represents the best prediction result from sample 3-1 to sample 3-4.
Table 5. Comparison of the prediction accuracy between the D-GRU and PF models for Mavic 2 quadrotors.
Table 5. Comparison of the prediction accuracy between the D-GRU and PF models for Mavic 2 quadrotors.
TargetMAE (m)RMSE (m)MAPE (%)
D-GRUPFD-GRUPFD-GRUPF
Altitude1.35a1.782.673.998.1110.32
Latitude3.105.265.889.625.8110.07
Longitude3.665.357.3510.145.708.61
a The bold number represents the better prediction result between D-GRU and PF methods.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Yang, Z.; Tang, R.; Bao, J.; Lu, J.; Zhang, Z. A Real-Time Trajectory Prediction Method of Small-Scale Quadrotors Based on GPS Data and Neural Network. Sensors 2020, 20, 7061. https://doi.org/10.3390/s20247061

AMA Style

Yang Z, Tang R, Bao J, Lu J, Zhang Z. A Real-Time Trajectory Prediction Method of Small-Scale Quadrotors Based on GPS Data and Neural Network. Sensors. 2020; 20(24):7061. https://doi.org/10.3390/s20247061

Chicago/Turabian Style

Yang, Zhao, Rong Tang, Jie Bao, Jiahuan Lu, and Zhijie Zhang. 2020. "A Real-Time Trajectory Prediction Method of Small-Scale Quadrotors Based on GPS Data and Neural Network" Sensors 20, no. 24: 7061. https://doi.org/10.3390/s20247061

APA Style

Yang, Z., Tang, R., Bao, J., Lu, J., & Zhang, Z. (2020). A Real-Time Trajectory Prediction Method of Small-Scale Quadrotors Based on GPS Data and Neural Network. Sensors, 20(24), 7061. https://doi.org/10.3390/s20247061

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop