An Experimental Performance Evaluation of Innovations Sequence-based INS Monitor against GNSS Spoofing
Full text
An Experimental Performance Evaluation of Innovations Sequence-based INS Monitor against GNSS Spoofing Martinez Jimenez, Pau and Tanil, C¸a˘gatay Navigation Laboratory, Illinois Institute of Technology ETSEIB, Polytechnic University of Catalonia Aug 2018 1
Contents 1 Introduction 5 1.1 NavigationSystems.......................... 6 1.2 Dangers ................................ 6 1.3 Spoofing................................ 7 2 Objectives 8 3 Background 9 3.1 Stochastic Processes . . . . . . . . . . . . . . . . . . . . . . . . . 9 3.1.1 Gaussian white noise . . . . . . . . . . . . . . . . . . . . . 10 3.2 Linear Systems with random noise inputs . . . . . . . . . . . . . 11 3.2.1 RandomWalk ........................ 11 3.2.2 First Order Gauss-Markov Process . . . . . . . . . . . . . 12 3.3 IMU.................................. 12 3.3.1 Accelerometer......................... 13 3.3.2 Gyroscope........................... 14 3.4 GPS .................................. 15 3.4.1 Atmospheric errors . . . . . . . . . . . . . . . . . . . . . . 17 3.4.2 Ionosphere .......................... 17 3.4.3 Troposphere.......................... 18 3.4.4 GPS Stochastic Delays . . . . . . . . . . . . . . . . . . . . 18 3.4.5 Simplified model . . . . . . . . . . . . . . . . . . . . . . . 19 3.4.6 Satellite position . . . . . . . . . . . . . . . . . . . . . . . 20 3.5 Observers ............................... 21 3.6 KalmanFilter............................. 21 4 Implementation 23 4.1 Mechanization equations . . . . . . . . . . . . . . . . . . . . . . . 23 4.1.1 Measurement model . . . . . . . . . . . . . . . . . . . . . 27 4.1.2 Covariance of the System . . . . . . . . . . . . . . . . . . 31 4.2 Monitor ................................ 33 4.2.1 Monitor statistics . . . . . . . . . . . . . . . . . . . . . . . 34 4.3 DataAnalysis............................. 34 4.3.1 IMUstatistics......................... 34 4.3.2 GPSStatistics ........................ 37 4.4 Initialization ............................. 39 4.5 INS Only Performance . . . . . . . . . . . . . . . . . . . . . . . . 41 4.6 INS/GPS Integration Performance . . . . . . . . . . . . . . . . . 42 5 Spoofing Scenario 45 5.1 Anti-Spoofing Performance . . . . . . . . . . . . . . . . . . . . . 46 5.1.1 Steepfault .......................... 46 5.2 Performance Evaluation . . . . . . . . . . . . . . . . . . . . . . . 48 5.2.1 Sensitivity to spoofing time . . . . . . . . . . . . . . . . . 49 2
5.2.2 Pre-monitoring performance . . . . . . . . . . . . . . . . . 50 5.2.3 Spoofing sensitivity to measurement errors . . . . . . . . 51 5.2.4 Worst Case fault . . . . . . . . . . . . . . . . . . . . . . . 51 6 Conclusions 56 6.1 FutureWork ............................. 57 3
List of Figures 1 Oscilloscope example signal . . . . . . . . . . . . . . . . . . . . . 9 2 Basic model of an accelerometer . . . . . . . . . . . . . . . . . . 13 3 Typical normalized initial bias drift from STIM300 data-sheet . . 14 4 Schematic of the mechanization system . . . . . . . . . . . . . . . 24 5 Ephemeris parameters from the IS-GPS-200 . . . . . . . . . . . . 30 6 Position estimate of the Open Loop Propagation . . . . . . . . . 42 7 Velocity estimate of the Open Loop Propagation . . . . . . . . . 43 8 Attitude estimate of the Open Loop Propagation . . . . . . . . . 43 9 Position Estimates INS/GPS of Un-spoofed data . . . . . . . . . 44 10 Position estimates for Spoofed 10m in 30s . . . . . . . . . . . . . 47 11 Monitor statistics for a 30m in 10s fault, in green the threshold . 47 12 Comparison between carrier innovations for spoofed and un-spoofed experiments. ............................. 48 13 Sensitivity to spoofing time . . . . . . . . . . . . . . . . . . . . . 49 14 Pairs of Threshold and qkto evaluate pre-monitoring performance 50 15 Effect of additive white noise in the spoofer estimation . . . . . . 52 16 Worst Case Fault (red) against No fault (blue) . . . . . . . . . . 54 17 Worst Case fault with tracking noise vs ideal fault . . . . . . . . 55 18 Estimations of the WCF spoofed estimator. . . . . . . . . . . . . 56 4
1 Introduction The human being is known for their thirst of knowledge, seeking answers to unanswered problems and figuring out better solutions for problems that have already been solved. This powerful sense of self improvement has brought civilization to invent agriculture, livestock, construction and transportation methods, among others. With each new improvement, new tools were devised and new necessities arose that needed solution. When designing new methods of transportation, for example, at the beginning the use of rudimentary maps was the only option for navigation. With the help of some basic tools and knowledge of the constellations, one could find its approximate latitude fairly easily. The astrolabe, a tool devised for exactly this purpose dates the ancient Greeks. Longitude, however, was an unsolved problem until the 18th Century, almost 2000 years later. Until then, it was common for sailors to navigate to the destiny’s latitude and from there, sail East or West until reaching destination.It wasn’t until the maritime chronometer became available that the possibility of knowing your position around Earth became possible. But how come a clock can be used to estimate longitude? Knowing the time of a given location allows you to reproduce the state of the sky in that location, In particular, the position of the sun in the sky. The Marine chronometer allowed the ship’s captain to keep track precisely of the time at the departure harbor, therefore knowing the sun’s position. Comparing that position to the position of the sun seen by the ship allows to measure the distance between the two locations and therefore the latitude. This was the first precise way to measure the longitude for vehicles like ships, where the use of pendulum clocks or similar is impossible. All navigation methods stayed practically the same until the 20th Century, 200 years later, when the localization problem was improved substantially once again. The installation of the GPS system around Earth became a reality, providing extremely accurate estimations of position and velocity, cheaply and effortlessly to a wide range of users around the world. The GPS system is in essence, very similar to the Marine Chronometer method used by sailors. Instead of the sun, it is based in the localization of several satellites in orbit, with known positions, acting as a constellation that everyone can reference from. In order to know your position, you only need to know the distance to the satellites in view. This is achieved by measuring the time of travel of a radio message sent by the space vehicles. Since radio waves travel at the speed of light, computing the distance is fairly simple, and with a few trigonometric calculations, the position of the user is found quickly. This orbital lighthouses have revolutionized the way we live substantially. Nowadays, even our phones can quickly estimate our position to a few meters easily, contributing to a whole new set of applications, from the use in autonomous navigation to the study of tectonic plates or even space weather. 5
1.1 Navigation Systems In this report we will focus the attention to the use of GPS for navigation purposes. In navigation, the common problem is to solve for the precise location of a given vehicle. The position is critical in application like piloting, path planning or autopilot, in the latter, the vehicle operates autonomously without pilot intervention, relying only on its sensors and thus the requirements precision and robustness are very strict. It is common however to not only require the knowledge of position. Usually, the demand for the whole state of the vehicle is to be estimated. This includes not only position but also velocity and, in vehicles like planes and ships, attitude (yaw, pitch and roll). In cars for example, position, velocity and heading is usually sufficient. This application dependency requires the tailoring of the particular algorithm to a precise application for improved accuracy over conventional estimation methods. For common ground applications, where the pilot is constantly on the wheel, the estimation is achieved fairly easily, the pilot itself is the sensing unit in charge of measuring the car’s position and direction. the velocity is measured through a tachometer and displayed in the driver’s dashboard for their more precise knowledge. This is the most basic navigation system but is also really effective. In aerial and marine application however, where the background is uniform and repetitive, it is not trivial for a pilot to know their position without any reference point to estimate distances from. It’s in this environment when the use of more advanced sensors for navigation is not only desired but necessary. In the present days, there is a massive reliance on GNSS (GPS and other constellations) as an extra sensors for navigation. They allow for the computation of the position of the receiver cheaply and precisely, with a sensor of usually small footprint, ideal for applications where weight is critical. A GPS receiver installed unaided is a simple and effective way to obtain a fairly precise position cheaply. In that sense, the invention of GPS has posed a dependence in satellite navigation that some malicious subjects are able to take advantage from. 1.2 Dangers A plane flying near an airport, beginning its approach for landing is being piloted with the aid of GPS with ground augmentation systems. This is the use of a reference ground station to measure precisely biases and drifts in GPS signal. This setup is known for achieving sub meter precision in their estimations. With this system, the pilot is able to know the height of the plane precisely, to perform the approach safely. However, when approaching the landing track, the navigation system tells the pilot to descend slightly to correct their approach trajectory. If that correction was caused by a malicious subject hijacking the GPS signals, this could pose a massive security threat to everyone involved, the airport, the passengers and the pilot. 6
Whenever a system is designed and it’s failure could generate a clear danger to someone, it is necessary to develop countermeasures and safety features to protect against it. In the case of GPS, a malicious subject could broadcast a GPS signal from a portable ground station more powerful than that of the satellites. In that case the GPS receiver would interpret that signal as genuine and bias the estimation of the position of the victim vehicle. This kind of fault is called Signal Spoofing, and may be used for creating dangerous situations. For autonomous vehicles, a spoofed signal could be easily used to steal the vehicle by forcing it to follow a fake trajectory. 1.3 Spoofing GPS spoofing is a serious threat with real implications. As such, it needs practical solutions, easy to implement so that nobody has an excuse to not use them. Even though spoofing seems like a complex process, it can be achieved easier than expected. With the use of a GPS simulator, commonly used in laboratories around the world to test hardware and algorithms, it is possible to generate the same signals that a genuine satellite would generate and broadcast them to nearby devices. This form of spoofing would classify as open loop spoofing, where the spoofed does not measure the position of the victim vehicle. If they use devices like laser ranging or radar or similar and feed that information to generate a spoofed signal that adapts to what the victim is doing, the spoofing is classified as a closed loop spoofing. As expected, the latter is harder to detect and thus more dangerous. In this report we will define the Worst Case Fault, a particular spoofing signal that maximizes the risk for the vehicle while also minimizing the detection capability of the detector proposed. The detector will be examined against this particular fault along with different more common types of fault to evaluate it’s performance. 7
2 Objectives The main objective of this research is to develop an algorithm capable of detecting GPS spoofing and evaluating its performance against different kind of faults. This will be done with the use of real data measured in site with off-the- shelf sensors and components to prove it’s applicability in a real navigation environment. The faults tested will include different ramp faults with different accelerations profiles as well as the worst case fault for this particular algorithm. Some robustness tests will be conducted to test the performance to the different spoofing scenarios including early and late monitoring. This will be achieved incrementally through the development of basic subalgorithms that can be easily tested for errors and inconsistencies. This subalgorithms will then be incorporated together in the final detection algorithm and its performance will be tested. This report also aims to give a comprehensive review of the basic working principles that this algorithm is based on. This will include stochastic processes, GPS and INS, estimation theory and Kalman filtering. Then the inner workings of the algorithm will be explained as well as the specific parameters used and recommendations on how to design for accurate performance. Lastly, the monitor’s performance will be tested against several faults and a final evaluation will be extracted. This evaluation will include the performance against early and late attacks to different fault profiles to prove the algorithm’s potential. 8
Figure 1: Oscilloscope example signal 3 Background The background section will focus primarily on all the necessary skills and theory needed to follow the subsequent chapters based on the research needed to develop such algorithm. Some background in controls, statistics and state space modeling is assumed and this report will work over that baseline to explain the necessary terms. 3.1 Stochastic Processes Processes and signals when modeled conventionally in physics, mechanics or control are usually assumed to be smooth and continuously varying, an ideal signal. This signals exhibit well defined properties of its integrals and derivatives and are very useful for studying the behaviour of systems from a theoretical point of view. However, when the modeling is done for implementation into a real world device or application, signals differ from their theoretical counterparts. Signals are different when measured, even the same signal measured through different devices or at different times will not look exactly the same. This variability may be due to unmodeled effects, like electromagnetic radiation, or thermal effects, even ambient noise or pressure fluctuations. Reasons may vary depending on the specific application but the effect is the same, noisy signals. 9
With the measurement of the time of emission of the signal and comparing it to the time of reception, the distance to the satellite can be estimated. But since pseudoranges, use a digital signal to measure the time of travel, the error is quantized and thus its precision is low comparatively. This signal however, is easy to measure and to process, which aids in the speed for computing more accurate estimates. The receiver can also track the phase of the incoming carrier signal, this information can be used to estimate the position of the receiver to a cm level but it has a significant drawback. Since the signal wave is sinusoidal, the position is well know but it has periodic solutions, one each wavelength (around 20cm). This ambiguity prevents the knowledge of the absolute position but the information provided can be useful if the satellite is monitored continuously maintaining the ambiguity constant. Carrier measurements can be used to smooth the code or be used along the as extra measurements that will reduce the uncertainty in the position. A good mathematical model will include these effects as well as several clock delays and some environmental perturbations. A common measurement model for GPS signals: ρ=l(k) i+cτi−cτ(k)+I(k)+T(k)+m(k) ρ+ν(k) ρ λΦ = l(k) i+cτi−cτ(k)+I(k)+T(k)+m(k) λΦ+ν(k) λΦ+λN(k)(15) This set of equations represents both code ρand carrier λΦ, where l(k) iis the geometric distance between the satellite at the time of signal transmission and the user at the time of reception. The perturbations can subdivided in 3 sections, clock delays, atmospheric perturbations, and stochastic processes. In this formulation, the subindex irepresents a user parameter and the superindex (k) represents a satellite. The range estimation is based in the measure of the time of travel of a radio signal divided by the speed of light. It is obvious to see that if the clocks in both receiver τiand satellite τ(k)are not aligned to the GPS reference time, there will be a measurement error. Satellite clocks are usually cesium or rubidium clocks. This clocks are very stable but drift over time. To account for this delay, the delay is measured at a ground station and fit to a polynomial curve. The coefficients of this parameters are sent to the satellites to be broadcasted down to all receivers in the navigation message. Since the satellite clock delay can be estimated empirically, is fairly straightforward to compensate it. User clock bias on the other hand, cannot be directly measured. Receivers are manufactured to be affordable and their clocks are usually based in quartz oscillators, much less stable than the satellite’s. This and the fact that there is not a reference to compare against, makes the user clock bias a more complex estimation than previously expected. The method for accounting for the clock bias will be discussed in the following section. 16
3.4.1 Atmospheric errors GPS signals are emitted by the satellite in space and travel down to earth crossing all the atmosphere in the process. It is well known that light travel at lower speeds in mediums different from vacuum. Travelling from a satellite to a receiver only around 5% of the journey can be considered as the vacuum of space [2]. A photon emitted from a satellite must travel two sections of the atmosphere that affect travel time significantly. This sections are the Ionosphere and the Troposphere. Signals travelling through these mediums are altered and the travel time varies significantly to the point that needs to be accounted for navigation purposes. 3.4.2 Ionosphere The Ionosphere is the upper region of the atmosphere, exposed to the activity of the sun directly where most of the ultraviolet radiation is stopped. When the radiation from the sun reaches the molecules of the Ionosphere (Mostly H2,He, N2and O2) the high energy photons excite their electrons and detach from the nucleus. This generates free electrons and positive ions, which cause the GPS signals to altered. This alterations are proportional to the amount of free electrons along the path of the signal. The measure of the amount of electrons in the path of the signal is measured as the Total Electron Count (TEC). This quantity measures the density of electrons in a tube of 1m2of section in the path of the signal. The path of the signal will change as the satellite travels through the sky which affects the TEC, being minimum when the satellite is at the zenith and increases as the satellite sets. Since the amount of electrons depend on the radiation of the sun, the TEC will strongly depend on the time of the day. The sun’s activity on a particular region of the Ionosphere is minimal at night but increases as the sun raises and is maximum around 2pm. Other alterations in the sun activity like solar storms also affect the Ionosphere strongly, most significantly at the magnetic equator and the poles. For GPS signals in the L band, the Ionosphere can be classified as dispersive, which means the refractive index depends on the frequency of the signal. The most significant effect of this factor is that carrier and code will be altered differently, causing what is known as code −carrier divergence. An amplitude modulated signal is composed of 2 signals, the message signal with a significantly lower frequency that the carrier signal. In a dispersive medium like the Ionosphere, this two signals will be shifted differently. In particular for code and carrier in the GPS L band, This effect delays the modulated signal (code) but advances the carrier. This divergence is equal in magnitude but opposite in sign and the compensation is not trivial. 3 common approaches to compensating Ionospheric delays: Some receivers are equipped with double frequency measurements, which allow them to measure the 2 GPS signals broadcasted by the Space Vehicles thus 17
providing enough redundancy to solve for the filtered signal. This signal however will be noisier than the uncorrected signal by a factor of 3 approximately. Another approach would be to use a Ground Based Augmentation System (GBAS) to compensate for all combined delays of the signal. Planes approaching an airport usually have a GBAS at their disposal. This is a reference station with a known position that allows to measure the state of the sky around the antenna. This allows the plane to have a cm level position when executing critical maneuvers like approaches and landings. GBAS however require an expensive and well calibrated setup and their range is limited. The last approach commonly used in standalone receivers is the use of Ionosphere Delay models that coarsely represent the delays and compensate for them. Nowadays, there isn’t a model that precisely predicts the Ionosphere behaviour so the precision of the model is limited. This is however an easy and affordable approach when extreme precision is not necessary. The most common model is the Klobuchar model, whose parameters are broadcasted in the navigation message and updated frequently. Choosing an approach will depend on the particular application and the requirements of precision. For this demonstration, where the objective is to show a spoofing detection algorithm, we will choose to use simulated data to which the Ionospheric delays can be switched off to not distract from the bigger picture. 3.4.3 Troposphere Another significant source of error in GPS transit time is the effect of the Troposphere. The troposphere is the lower part of the Atmosphere where living beings reside. This part of the atmosphere is mainly composed of dry gases and water vapor. The Troposphere, contrary to the Ionosphere, is non dispersive, with a refractive index slightly higher than 1 (n≃1.003) and it delays all signals equally, as if satellites where found from 2.5 to 25m further than their actual position. An equal delay on all signals cannot be compensated through algebraic operations on the signals and it needs to be compensated via models or with reference stations. Several models have been proposed that use meteorological data to estimate the Tropospheric delay but is not possible to compensate simply like the Ionospheric delay with dual frequency measurements. As mentioned before, in this research the use of simulated data is used and the Tropospheric effects on the signal can be ignored. 3.4.4 GPS Stochastic Delays The last terms in GPS model includes 3 different terms, integer ambiguity, multipath and noise. Integer ambiguity, which has been mentioned previously, is the uncertainty on the solution of the carrier phase measurements. This ambiguity can be 18
modeled with an stochastic model to account for its uncertainty. The ambiguity is a constant offset in the carrier measurement that does not change over time as long as the satellites are tracked continuously. If there is a loss of lock, the value will change but will remain constant afterwards. To model this behaviour we will make use of the Random constant model. A Random constant is a value that remains constant over time but it’s initialized with an unknown value but known distribution. The system does not have dynamic properties but it introduces uncertainty to the model. This model perfectly describes the behaviour of the integer ambiguity and will be used to model the carrier phase. The second kind of perturbation is multipath. This is the effects of the reflection of the radio signal on reflective surfaces, walls, the ground, or even mountains. This reflection perturbates the radio signal, adding a variation that is related to the geography of the localization of the receiver. Multipath is an issue that can be attenuated with good design but it is impossible to eliminate completely. Adding an antenna with a gain pattern that rejects ground reflections will reduce that effect. Some other solutions include adding the antenna to the roof of the vehicle, like a plane, so all reflected signals from below are shielded from the receiver by the metallic fuselage of the plane. But given a fixed design, multipath will still contaminate the signal depending on the environment of navigation, which results in a very intensive modeling effort if all the buildings and geometry are to be reproduced. When examined from a stochastic point of view, it commonly presents the properties of a First order Gauss-Markov process, in the same way as the IMU sensor, it will have however, a shorter correlation time, whose value generally depends on the particular geometry. The last stochastic process that affects the GPS signal in a significant way is a white noise around all the signals due to the signal reception and processing, usually referred to a Thermal Noise, it is not only caused by the random photons generated hot bodies, it is an aggregate of all similar noises that affect the system that does not have an obvious structure. 3.4.5 Simplified model With all the deterministic delays being accounted for, the model can be reduced to: ρIF =l(k) i+cτi+m(k) ρ+ν(k) ρ λΦIF =l(k) i+cτi+m(k) λΦ+ν(k) λΦ+λN(k)(16) This model only accounts for unknown drifts and stochastic processes and further simplification is complex. It is however possible to account for the user clock delay with a small trade of. If the number of measurements can be reduced by 1, it is possible to eliminate clock bias from the measurement model. Choosing a satellite (r) as a reference satellite, allows to measure differences between ranges, which are not affected by the user clock bias: 19
ρ(k) IF −ρ(r) IF =l(k) i−l(r) i+m(k) ρ−m(r) ρ+ν(k) ρ−ν(r) ρ λΦ(k) IF −λΦ(r) IF =l(k) i−l(r) i+m(k) λΦ−m(r) λΦ+ν(k) λΦ−ν(r) λΦ+λN(k)−λN(r) (17) This operation comes with the lost of a measurement equation, and an increase in noise in the measurement equation. Note that variances are always additive and taking the difference of 2 stochastic processes will add the variance of each one. This is the reason why this operation is usually performed with the satellite with the highest elevation in the sky. The highest satellite has the smallest multipath due to the fact that the signal has less possibility of reflecting against surfaces. 3.4.6 Satellite position The computation of position is impossible without a reference to compute it from. In the GPS system, this reference are the satellites themselves, acting as radio signal lighthouses with known positions. The position of a satellite is broadcasted in what is referred to as the Ephemeris. The Ephemeris is a set of 16 constants that are broadcasted along with the measurements. The constants are used in a mathematical model to estimate the position of the satellite at any time of need. This allows the user to compute the satellite position whenever is possible and not needing to wait for the satellite to broadcast the position with each measurement. The Ephemeris is updated every few hours to ensure the precision of the measurements to a certain specification. The parameters of the Ephemeris follow a Keplerian model with time varying parameters. This means the orbits of the satellites are measured as general ellipses whose parameters are allowed to change slightly over time. This model, despite not being the most precise, it was chosen as a compromise between amount of parameters transmitted in the navigation message and precision. In the years when GPS was designed, computers and electronics had limited capabilities and the standard has been kept since then. The existence of GPS has allowed for precise positioning anywhere on the globe that is easily automated. A navigation system wouldn’t be possible without the use of GPS for tracking the position of the vehicle directly without any signal integration. GPS however, measures the position with a significantly lower frequency of around 1Hz compared to the several hundred Hz of inertial sensors, which complicates its use for control purposes or to estimate other states, like velocities. Proceeding with this measurement model forward, the navigation system will be developed to use this information to estimate the position of the receiver with the best precision possible. 20
3.5 Observers Implementing a navigation system is possible through the use of several algorithms, like least squares estimators or the Kalman filter that we will be using. A Kalman filter is nothing more than a special Observer model that is capable of estimating the states of the system precisely. This estimation is done possible through a feedback loop, which corrects the estimations of the primary sensors with the information of aiding sensors. The mathematical description of the observers is the following: An estimation system, defined by the state space equations below, is used to accept a sensor input uand compute the solution of the state x. This approach is widely used in control and robotics and can be extrapolated to the GPS use. ˙x=Fx +Guu(18) If in this configuration, if an extra measurement of an aiding sensor is available y, and this measurement can be modeled as: y=Hx (19) Then it is possible to compare the value obtained by the sensor eyto what we expect our system to measure y. If that difference is then added as a correction to the propagation through a gain matrix L, we are able to correct the estimation of the system with aiding sensors ˙x=Fx +Guu+L(ey−y) (20) It can be proved that as long as the eigenvalues of F−LH are stable and the system has the mathematical condition of being observable, the system will converge to its true value even if the system has noise [1]. This is a remarkable result and is left to the engineer to choose their desired gain matrix Lto make the convergence faster or slower. 3.6 Kalman Filter Choosing a particular gain matrix Lbased on pole placement is an straightforward approach that is commonly used so the estimated states converge to the real value faster than the dynamics of the real system. But in general choosing the gain matrix can be done by selecting any criteria. If that criteria is minimizing the covariance of the next state estimation, a general observer becomes a Kalman filter. This filter minimizes the covariance matrix of the next state estimation by selecting a gain matrix calculated with information of all the signals’ noise. The derivation of the Kalman filter is based on the idea of minimizing the covariance of the state vector just after the observer’s correction. Writing the correction with the following notation: x+ k=x− k+L(ex−Hx− k) (21) 21
Where x− kis the state estimation prior to being corrected and x+ kafter the correction, The covariance of this expression under the Kalman filter assumptions [3] will be: P+ k= (I−LH)P− k(I−LH)t+LRL (22) Here P+ kand P− kare the covariance matrices of the a priory and post correction, I is the Identity matrix and R is the covariance matrix of the measurements. The key to the Kalman filter derivation is to minimize the trace of the covariance of the previous expression to obtain: L=P− kHt(HP− kHt+R)−1(23) As can bee seen this expression uses noise data to compute the gain matrix of the filter which implies that it will change at each computation step, which makes the Kalman filter a time varying system. The standard procedure for a Kalman filter implementation, which combines all the necessary operations to compute the necessary matrices is the following: •Initialization: It is necessary to choose the best estimation possible for the initial state and its covariance x− 0and P− 0. •Measurement Update: Then, when a measurement is available, the algorithm proceeds to update and correct the states estimations through the following set of equations: Lk=P− kHt(HP− kHt+R)−1(24) zk=ey−y(25) x+ k=x− k+Lzk(26) P+ k= (I−LH)P− k(27) This update will correct the value of the states to account for the new information coming from the measurement. Note: the difference between the measured eyand the predicted yis also called the innovation γk •Time propagation Next step is to compute the future state through the use of the model of the system, this can be done through any means available, from exact integration to numerically propagating the matrices. An example of propagation would be to use the discrete model equations as follows: x− k+1 = Φx+ k+ Γuu(28) P− k+1 = ΦP+ kΦt+Qd(29) 22
Here greek letters have been chosen to represent the discrete versions of the continuous time matrices F(Φ) and Gu(Γu). Qd is the covariance matrix of the primary sensor measurements and the driving noise of the aiding states. This algorithm minimizes the noise in the state vector an therefore the state estimation is as precise as possible. It is important to note that since the convergence velocity cannot be set to any specific value, the convergence time will depend on the model chosen. The longer the system’s time constant, slower the convergence. This section concludes the necessary material for the implementation of the navigation system. The following sections will review the design and implementation of the particular navigation system used to monitor the spoofing attacks. 4 Implementation With all the necessary knowledge for the implementation, this section aims to explain the design, inner workings and performance of the navigation system The Navigation algorithm consists in a Kalman integration between GPS and INS to predict the position, velocity and attitude as well as all the aiding states of a vehicle. This system is based on the theoretical development of Professor Cagatay Tanil Thesis [4]. The system will use the single difference method to estimate GPS ranges, for a single frequency standalone receiver with pseudoranges and carrier phases. A tightly coupled integration to a the IMU mechanization equations will allow it to acquire estimations of all the states of the vehicle at a high rate, correcting for noise integration at each measurement epoch. The mechanization equations will be discussed and later, the details on the particular implementation will be explained. Performance for different scenarios will follow and spoofing detection capabilities will be measured and quantified. 4.1 Mechanization equations The mechanization equations is the set of kinematic equations that allow to compute the position of a vehicle in 3D space through the integration of acceleration and angular rates. This equations are used to compute the actual position of the vehicle from the accelerometer and gyroscope sensor outputs. The mechanization equations will compute the position in North-East-Down (NED) frame, centered around a given initial position fixed in Earth frame. The algorithm accounts for 3 different frames. Navigation frame N is fixed to the ground following Earth’s rotation. Earth frame E is an inertial frame of reference located on Earth’s center but non-rotating. The last frame of relevance is the Body frame B , fixed to the vehicle and the center of which we want to know the position. This frame has the axis aligned withe the axis of the vehicle and to the sensor’s axis. For a visual representation, refer to Figure 4. 23
Figure 4: Schematic of the mechanization system We define the position ~r as the position of the IMU in reference to a frame fixed to the ground N . The first equation defines the velocity as the time derivative of ~r with respect to an inertial frame and written in the N frame of reference. To shorten notation we define Id(·) dt ,˙ (·). ~r =~rIMU (N)(30) ~v = Id~r dt =˙ ~r (31) The second mechanization equation, computes the variation of the velocity through the acceleration. However, as stated before, the acceleration is measured in the body frame B and thus a frame rotation is needed. Defining IRB as the rotation matrix that transforms vectors in B to vectors in N we can write: ˙ ~v =NRB~a(B)(32) For this implementation we will make use of the North-East-Down frame definition (NED). As the name implies, frame N will have its first vector pointing North, the second pointing to the local East, and the third point down towards the Earth. For the body frame B a similar definition is followed. Its first axis will be pointing at whichever direction forward is, the third will be pointing down fixed to the vehicle and the second axis will be perpendicular to the other 2. Note that if the vehicle is at the origin of the N frame, flat on the ground and pointing North, the axis of both frames coincide. This definition will allow for a simpler interpretation of the Euler angles. 24
In order to describe the attitude of the vehicle, and thus the NRBmatrix, several approaches can be used. Here it has been chosen the use of Euler angles description. Despite their singularities at certain orientations, their implementation is simple and their interpretation is straightforward. Three consecutive Euler angles are needed to define the orientation of a rigid body in 3D space. We will use Yaw, Pitch and Roll as the rotations of choice. This approach is similar to the one used when studying aerial vehicles. Starting with the axis of both frames coinciding, the first Euler rotation will be Yaw (ψ), defined as a rotation around the third axis of the N frame. ψ will rotate the vehicle and set it in a course in the 1-2 plane. The second Euler angle, Pitch θis defined as the nose inclination of the vehicle with respect to the previous 1-2 plane. This angle defines the rate of climb or descent of the vehicle. The third and last rotation is Roll φ, defined as the rotation about the axis of the vehicle pointing forward. With this 3 rotations defined, the Rotation matrix can be written as: NRB= c(ψ)c(θ)c(ψ)s(φ)s(θ)−c(φ)s(ψ)s(φ)s(ψ) + c(φ)c(ψ)s(θ) c(θ)s(ψ)cos(φ)s(ψ) + s(ψ)s(θ)s(φ)c(φ)s(ψ)s(θ)−c(ψ)s(φ) −s(θ)c(θ)s(ψ)c(φ)c(θ) (33) The last kinematic equation involves the evolution of this Euler angles over time. We will write that evolution in terms of the angular velocity of the vehicle, because it can be measured through the IMU’s gyroscope. The last equation can be written from the fact that the sum of all three Euler rotations (After being expressed in the correct frames of reference) must be equal to the angular velocity of the body itself. ~ω =BRN~ ψ+BRA~ θ+~ φ(34) Where the frame of reference A is the Body frame after being subject to the first and second rotations. This expression can be simplified by substituting the rotation matrices by their expressions and computing the products. After some algebraic arrangements, the expression can be written as: ~ω =BQE˙ ~ E(35) Where BQEis the matrix projection of the Euler angle vector into the body frame. In this representation: ~ E, φ θ ψ (36) As can be seen, the equation relates the body rates as a function of the Euler angles but we are interested in the inverse. The inverse representation can be written as: 25
Cov(w) = E(w·wt) (78) Where E(·) is the Expected value operator, i.e. the mean. To apply this expression, wneeds to be a process with 0 mean, meaning that to compute the covariance of the system dynamics we will substract the mean value. Noting the difference to the mean as (w−¯w) = δw, the measurement model, reduces to: δz =Hδxa+ν(79) The covariance of z is (Note that xaand νare uncorrelated): Cov(z) = E((Hδxa+ν)·(Hδxa+ν)t) = E(Hδxa·δxt aHt) + E(ν·νt) (80) Cov(z) = HPHt+R(81) In which Pis defined as the covariance of the state error δxaand Rthe covariance of the measurement. If we follow a similar procedure for the mechanization equations, we will be able to obtain: Pk+1 = ΦPkΦ + Qd(82) For details on the demonstration of this particular expression please refer to [3]. In this expression all the Qdterms have been grouped into a single expression because it can be computed with a simple numerical algorithm in matrix form. The Van Loan Method allows for the computation of the discrete Power Spectral Density of the inputs Qdgiven it’s continuous counterpart Q. This method was developed to compute the discrete equivalent model from a given continuous LTI and is of great use due to its formulation simplicity and number of steps This method consists of 2 steps. Firstly, Creating the matrix A: A=−F GQG 0Ft∆T(83) Secondly, computing the exponential of the Amatrix will result in the following matrix: eA=s1Φ−1Qd s2Φt(84) From which Φ and Qdare easily obtained. s1and s2are of no concern for our application. As a consequence, in order to characterize the uncertainty of the system we need to compute the initial covariance of the state xa,P0; the power spectral density of the input noise Qand the covariance of the white noise of the measurement vector R. 32
With this quantities determined, we will be able to propagate all other noise estimates needed for the computation of the Kalman Gains. Section 4.3 will focus on the measurement of this quantities for all the different processes involved in the formulation. 4.2 Monitor Lastly, the detector itself will be explained. Detecting Spoofed GPS signals, which are indistinguishable from signals broadcasted by satellites, is a complex problem that focus of huge amount of research. This detection is usually accomplished through the use of extra auxiliary sensors to provide redundancy. This monitor however, uses the standard INS and GPS sensors, widely used in all vehicle applications in the whole industry to detect this perturbations. Comparing the IMU estimates to the GPS estimates it is possible to assess the veracity of the signals. To measure this discrepancy, the monitor implemented uses the Kalman innovations as the metric. An innovation based monitor with a tightly coupled GPS scheme will provide enough information to detect certain kinds of faults. A smart spoofer might use his knowledge of estimation systems to introduce a fault that is small at the beginning, with the aim of corrupting the INS states, increasing up the velocity as the estimation of the vehicle loses quality. This type of fault is much more dangerous that any instantaneous fault that doesn’t corrupt the states over time. In this report a detector for the harmful cumulative faults will be developed. To account for this type of faults, the monitor used in this implementation will accumulate the normalized innovations γi, which are the residuals of the Kalman filter estimates. The test statistic used will have the form: qk= k X i=0 γT iS−1 iγi(85) In this formulation, Sis the covariance matrix of the innovations computed in the Kalman filter algorithm. qkis therefore a normalized innovations test statistic with a known distribution. Sk=HkPkHT k+R(86) It is important to note that the Kalman innovations are independent (E(γiγT j) = 0 from a measurement epoch to the other [4] for both loosely and tightly coupled schemes. The statistic is then compared to a predefined threshold Tand a detection alarm is set any time the test statistic is greater that the threshold qk> T. qk≶T(87) 33
4.2.1 Monitor statistics Under fault free conditions, the innovation vector γifollows a Gaussian distribution N(0, Si). The test statistic, qkwill therefore follow a chi-square distribution of nk degrees of freedom for the tightly coupled implementation (n being the length of the innovation vector). For a given false alarm, the test statistic follows a non-centrally chi-square distribution with a noncentrality parameter of: λ2 k= k X i=0 E[γT i]S−1 iE[γi] (88) To find the detection threshold Tthe inverse chi-square distribution is used and a probability of false detection needs to be defined. The smaller the false detection probability the less sensitive the filter will be. Similar to all the statistical detectors, a trade of situation needs to be resolved. In this report, we will choose a risk criteria of 10−2for all the experiments 4.3 Data Analysis Once all the models have been described and the general procedure of estimation is outlined, a quantitative analysis of the sensors and data is needed. This analysis will consist of the statistical characterization of all the stochastic processes and models and will include comparisons to the manufacturers data-sheets and expected performance. The data analyzed in this section will be used in the model’s covariance matrix for the use in the Kalman Filter estimation. Firstly we will discuss the computation of the Qand Rmatrix, and later the initial covariance P Since Qcontains the white noise from the IMU as well as the driving noises for the time varying biases, the IMU statistics will be discussed first. Its important to note that the precision of this estimates will determine the performance of the detector. Overestimating the noise estimations will result in degraded performance since we would be purposely introducing modelling errors in the algorithm. To avoid such degradation, careful modeling is needed and measuring the actual data to be analyzed is highly recommended. 4.3.1 IMU statistics The market for IMU sensors distinguishes different grades of sensors, each grade with a different performance and price. This performance is measured in how small the noises in the signals are. The different grades that can be purchased range from the lowest performance at Automotive grade, to Industrial, Tactical and Navigation, with the highest performance. The cost of each IMU also depends on its grade,a Navigation grade IMU can cost well over $100000. This cost can go down to a few dollars per chip for simple low quality IMU sensors that are not needed for high precision tasks. In this report’s implementation, The IMU of choice is the STIM300 from Sensonor. This model, characterized as a low Tactical grade IMU, is a MEMS 34
sensor containing and accelerometer, gyro and inclinometer in the same low profile package. For the implementation only the accelerometer and gyro will be used and characterized. The values usually reported in the IMU datasheet usually measure the characteristics of the integrated signal. It is common for a manufacturer to report the Random Walk parameter of the gyro or the accelerometer (Angular Random Walk or Velocity Random walk respectively). The Angular Random Walk (ARW) of the STIM300 given by the manufacturer is 0.15 deg /√hr. This value is an indication of how fast the angle measured from the IMU’s gyro integration will drift over time. In particular it is a measure directly related to the standard deviation of the signal. If the gyro signal is integrated to measure position, the expected variance of the angle estimation is expected to grow following a Random Walk model. Written in discrete form, the standard deviation of the angle will be: σθ=σw√∆t√t(89) Here, σwis the standard deviation of the gyro signal and ∆tis the sampling time. Grouping together these 2 terms into 1 and we obtain the Random Walk parameter. ARW =σw√∆t(90) if the standard deviation of the signal is known, the RW parameter can be easily computed, which in turn can be used to characterize the noise performance of the estimator. The same procedure is done for the accelerometer standard deviation, this time measuring the velocity instead of the angular orientation. The Random Walk parameter of the accelerometer is called Velocity of Random Walk by analogy to the gyro. For this particular IMU, the expected values for the ARW and VRW measured from their standard deviation are the following. Sensor Standard deviation Random Walk Accelerometer 0.019044m/s21.703 ·10−3m/s/√s Gyro 0.001323 deg /s 1.183 ·10−4deg /√s Table 1: Random walk estimation from manufacturer’s data These values can be measured by sampling the sensor for short periods of time each run, to avoid variations in the slow time depending First Order Gauss Markov process of the bias. Since the correlation time of the process is big, close to an hour, measuring shorts periods of time allows to consider the process locally constant and subtracted by averaging the signal. This parameters then can be used to compute the Power Spectral Density of the noise, which in case of the Random White Noise is simply: 35
Sensor Bias Instability PSD Accelerometer 4.9033 ·10−44.8085 ·10−12 Gyroscope 2.4241 ·10−61.1752 ·10−16 Table 2: PSD values for the driving noises for the sensors’ biases PSDgyro =ARW2(91) PSDaccel =V RW 2(92) From this expression we obtain the first 6 terms of the PSD matrix Q, 3 for the 3 axis of the accelerometer and 3 for the gyroscope. We assume that the noise is uncorrelated between axis. The next step is to model compute the PSD of the driving noises governing the bias drift of the sensors. The bias are modeled as First order Gauss-Markov processes, which is known to have a closed form for the dynamics of its covariance. This dynamics are described with a time varying Lyapunov equation as: ˙ P=−1 τbP+P−1 τbt +Q(93) For a one dimensional Gauss-Markov process in steady state, 0 = −2 τbσ2 b+q(94) q=2 τbσ2 b(95) This expression allows to compute the driving noise if the covariance of the steady state process is measured. To estimate this value, the specification sheet of the STIM300 is needed. The steady state standard deviation of the bias covariance is given by the datasheet entry ”Bias Instability” which corresponds to the minimum value of the Allan variance curve for that sensor. For this calculation, the unknown correlation time of the Gauss Markov process is needed. This value is usually measured through the Allan Variance plot as well. The time at which the minimum of the Allan variance curve occurs is usually a good estimate of the correlation time of the Gauss-Markov process. In the case of the STIM300 is approximately 105sfor both gyro and accelerometer. This defines the known components of Qcorresponding to the IMU noise processes which are then to be converted to their discrete version through the Van Loan Method. The rest of components of Qare related to the processes of the GPS measurements and will be discussed in the following section. 36
4.3.2 GPS Statistics As discussed in the previous GPS sections, the noise in GPS signals will be modeled as three different stochastic processes. The First Order Gauss-Markov, random constants and random white noise. First we will focus on First Order and Random Constants to completely characterize the Qmatrix and then the White noise will be studied to measure the Rmatrix. In this GPS implementation, modeling the noises is not as straightforward as in the case of the IMU. First we will study the multipath. Each satellite has a perturbation related the the amount of reflection of the signal received from the satellite. This amount of reflection changes with the environment, It is not expected to have the same multipath characteristics driving along an urban canyon as in flying through the air in a plane, where there are basically no obstacles for the signal to reflect on. Therefore, the model of the multipath will be different depending on the environment. In order to keep the generality of the modelling, in the estimation algorithm, a multipath model will be introduced in the modeling but the first experiments and tests in this report will be conducted with signals from a GPS simulator, without multipath and atmospheric delays. It is left for future experimentation the effects of multipath, tropospheric and ionospheric models in the detection performance. For this reason, the model is set up analogously to the IMU’s time varying biases, but the time constants and standard deviations would be selected accordingly to the geography and environment. In this report, a nonzero time constant of 100sis selected with a Standard deviation close to 0, to ignore the effects of multipath. There is a subtlety in the computation of the covariance due to the specific model that we selected. This effect is worth mentioning since it also applies to the Integer Ambiguity states. The measurement model selects a satellite as a reference from which to measure the differences, which will correlate all the noises in the process. This implies that the PSD sub-matrix for multipath and Integer ambiguity is not diagonal as in the IMU. To compute the actual PSD matrix, we begin computing a PSD matrix with the values of each different satellite in the diagonal and 0 elsewhere. This matrix Q0 iwill be different for the code and carrier signals but always diagonal. Now to account for the correlation between signals of the actual model, we define the Single Difference matrix. This matrix takes a raw set of measurements of code or carrier and outputs the Single Difference model with one of the satellites as the reference. As an example, if the number of satellites was 5 and the 2nd is selected as the reference satellite, the transformation would have the form: 37
TSD = 1−1000 0−1100 0−1010 0−1001 (96) This matrix computes the following transformation. zSD =TSD ·zraw (97) Therefore it can be showed that for the PSD matrices, if the Raw Measurement covariance is known, the Single Difference can be computed simply by the following equation. QSD =TSD ·Q0 i·Tt SD (98) Using the precomputed matrices of the multipath driving noise covariance, the PSD of the Single Difference can be computed easily. This approach can also be applied to the Integer Ambiguity states. This uncertainty is modeled as a Random constant, which generally has no noise input since the model is simply: λ˙ N= 0 (99) This approach however is not recommended when implementing a Kalman filter. The mathematical properties of random constants are not favorable for the set of matrix operations that need to be done in the Kalman Filter. The consequences of ignoring process noise might cause the filter to be unstable, which is unacceptable. Another reason to add process noise in the states is the following. With no noise input, the covariance of the ambiguities will decrease at each measurement epoch without any bound. This might seem positive but when working with real data, with the models only approximating the complex reality, it might mean that the state converges to a biased estimate due to the uncertainty in the initial conditions and lead to a biased filter overall. To account for the effect, a process noise is added to the state that will make the uncertainty grow in the propagation, allowing the filter to adjust the value according to the new data. The procedure to define the sub-matrix QNis the same as for the multipath, here selecting a driving noise of 0.005mand assigning it to each of the satellites, to then transform it to the Single Difference Model. Summarizing he PSD matrix Qwill have the form: 38
Noise Standard deviation Code 0.05 m Carrier 0.002 m Table 3: Thermal noise of the simulated GPS data Q= PSDarw 0 0 0 0 0 0 0PSDvrw 0 0 0 0 0 0 0 PSDba 0 0 0 0 0 0 0 PSDbw 0 0 0 0 0 0 0 PSD(code) SDmp 0 0 0 0 0 0 0 PSD(carr) SDmp 0 0 0 0 0 0 0 PSD(λN) SD (100) Where the matrices PSDarw,PSDvrw,PSDba,PSDbw are 3 ×3 diagonal matrices and PSD(code) SDmp,PSD(carr) SDmp,PSD(λN) SD depend on the total amount of satellites in the observation, if nsat is the number of satellites, this matrices will have size (nsat −1) ×(nsat −1). The next step to characterize the statistics of the data is to estimate the measurement matrix R, the white noise process noise of the measurement model. In this case, being a Single Difference model, the white noise is internally correlated as described before, which makes the characterization similar to the previous signals. GPS white noise is usually referred as thermal noise, since a great part of the noise is due to the thermal photons radiated from all bodies due to their temperature. In the case of our simulated data, measuring the thermal noise is straightforward, since the data does not have multipath and atmospheric delays. In this report the values for thermal noise in the GPS data are shown in Table 3 Since data in the measurement equation does not need to be converted to PSD, there is no further processing needed in the data and the Rmatrix can be written as: R=TSDΣ2 codeth Tt SD 0 0TSDΣ2 carrth Tt SD(101) Here, Σ2 ith is the diagonal variance matrix of the given signal ithermal noise. 4.4 Initialization Once the system is defined and it is ready to test, the first step will be initializing the IMU with plausible states and find the initial covariance of the state vector. The process of Initialization is critical for the performance, especially if the mechanization is computed without GPS aiding. In submarines, for example, 39
GPS signals do not reach far below water, which makes impossible the use of GPS. It is only when they resurface that the calibration is possible and the actual position of the ship can be found. During the underwater journey, they integrate the IMU signals with help of some other aiding sensors like magnetometers. As a consequence, submarines need the highest grade IMU’s. In order to acquire good estimates for the initial values of the state and covariance matrix, the next procedure is followed at start-up. •Bias Estimation: The first step for bias estimation is the computation of the IMU initial biases. This is achieved by averaging several seconds of data received from the IMU. This provides an estimate for the biases that prevent the signals from diverging initially. After a few seconds, the biases will drift and feedback will be needed to keep the divergence stable. •Initial Attitude: Next, the average accelerometer output can be used to estimate an initial attitude assuming that the IMU is static during the averaging period. φ0= arctan2(uE, uD); (102) θ0= arctan2(−uN,qu2 E+u2 D) (103) Following the expressions, the initial pitch and roll of the IMU can be found. All except yaw, which is unobservable unless an aiding sensor like a magnetometer is used. (Note that the 4 quadrant arctan function is used to compute the inclination and the sign without uncertainty). •Initial position: Find an approximate solution of the initial position, a simple Least Squares estimator for position is executed until convergence. The position will be used as the initial estimate of for the position in the Kalman filter estimator. This estimation is precise to a several meters and thus it is useful as an initial value even though the precision is low. •Initial Covariance: Lastly, it is possible to estimate the initial covariance of the states. The states whose covariance needs to be set are: position, velocity, biases, multipath and integer ambiguity. The position’s covariance can be set to (5m)2value as a conservative estimation of the precision of the Least Squares estimator. Since the initialization period needs the IMU to be at rest in order to average, the error in velocity can be set low initially, in the order of (0.05m/s)2. The covariance for the Euler angles can be computed exactly thanks to the algorithm we used for their estimation. The algorithm in question is called ”Gyrocompassing” and it is well known that the covariance of the attitude error will be related to the accelerometer bias. This is caused because the estimation of the measured gravity is the same as the estimation of the initial bias of the accelerometer. 40
The mixed covariance of the attitude vector and the bias states will be: PEba=HgPbaHt g−HgPba −PbaHt gPba(104) Where: Pba=σ2 InRun +P SDvrw Tinit (105) Hg= 01 uD(u2 E/u2 D+1) −uE u2 D(u2 E/u2 D+1) −√(u2 E+u2 D) (u2 N/(u2 E+u2 D)+1) uNuE(u2 E+u2 D)3/2 (u2 N/(u2 E+u2 D)+1 uN∗uD(u2 E+u2 D)3/2 (u2 N/(u2 E+u2 D)+1 0 0 0 (106) Note that the In Run Variance is a measure of the variance between different start-ups given by the manufacturer in the specification sheet. For the code and carrier multipath signals, we choose the steady state variance used to compute the driving noise. Lastly, for the Integer Ambiguity we will choose an initial variance of (2m)2for the reason discussed previously in Section 4.3 Initialization ends with the generation of the system matrices from the values computed previously. 4.5 INS Only Performance With all the necessary information prepared, we can begin the experimentation. To evaluate the modeling of the mechanization, IMU and noise parameters, the first experiment will consist of an static scenario with no actual acceleration. In this experiment, we will not use the Kalman filter update to correct the IMU signals, which will allow the assessment of the design choices and the noise covariance models. Since the nominal trajectory of the IMU is known (Static), a Linearized Kalman filter has been chosen for the propagation. In a more general environment where the nominal trajectory is not know, a more general approach would be to update the matrices based on the data from the estimation, thus using an Extended Kalman filter. The experiment consist en 10 runs of 20min each, to observe the statistical performance of the estimator. Since the estimation is being performed without GPS corrections, the performance is not expected to be great. This results will be used as a comparison to the INS/GPS integration and to evaluate the statistics of the given noise inputs compared to the theoretical propagation of the covariance. Beginning with the position estimates (Figure 6) In this results, the red line represents the 1-Sigma envelope given by the covariance estimates. Each run is represented with a different color. As can be seen the precision at 20min is close to 500m, which is obviously intolerable for any kind of navigation purpose. 41
(a) Spoofed carrier innovations. (b) Un-spoofed carrier innovations. Figure 12: Comparison between carrier innovations for spoofed and un-spoofed experiments. innovations directly in Figure 12. This figure shows the comparison between spoofed and un-spoofed innovations and the effects of the fault are clear. The shifts are then added to the statistic (which squares the innovations, equation (85)) until it surpasses the threshold. The velocity at which detection is achieved will mainly depend on how steep the fault is and therefore, slow and small faults carry more risk than short and large ones. 5.2 Performance Evaluation Now that all the internal behaviour is clear for both unspoofed and spoofed data, we will proceed to the evaluation of the performance to different fault scenarios. 48
Figure 13: Sensitivity to spoofing time 5.2.1 Sensitivity to spoofing time First of all we will evaluate how the allowable time to spoof the estimator affects the monitor. Intuitively, the more time the spoofer has to inject a given fault the more dangerous it is for the estimator due to state contamination. State contamination is the process by which slowly injecting a fault changes the values of the state estimates of the vehicle without triggering detection. The spoofer will want to have as much time as possible to inject the fault and do it the slower the better. This will ensure that the spoofing is not detected and the fault is introduced optimally. However the spoofing time will be limited due to the particular scenario or the duration of the precision maneuver. But how much time would he need to actually inject the fault without being detected? To find an answer, a spoofing scenario consisting of a 10m fault was devised. From a resting steady state position, an East drift was injected into the estimator GPS. The 10 meter fault has been introduced at different rates ranging from 1 to 2 minutes. Figure 13 showcases the results. As can be seen any fault injected in less than a minute will have a detection rate of 100%. Is not until the spoofing time reaches 99sthat the detection rate drops below total detection. After that point, as expected, a slow fault would be undetectable. This however shows that with this estimator and under a fault like the explained, a vehicle would be protected 1.5 minutes from spoofing with a 100% detection rate. 49
Figure 14: Pairs of Threshold and qkto evaluate pre-monitoring performance In this time, the vehicle could perform a critical maneuver like a landing or an approach comfortably and still be protected from attackers. This experiment proves the spoofing time hypothesis by confirming that the spoofing risk increases with time. However, the time necessary to lower the detection rate would be enough to perform precision maneuvers thus ensuring the safety of the vehicle to the given specification. 5.2.2 Pre-monitoring performance Pre-monitoring is the difference between the time at which the monitor is turned on and the time that the actual fault begins. Studying the effects that this difference may cause in the detector’s performance sheds light into how useful the detector is when the time at which the signals will be spoofed is not known. Since this is the most common case of spoofing, a monitor highly sensitive to this discrepancies is not reliable. Using a monitor with high sensitivity might lead to a quick degradation of the detection rate and the safety of the maneuver. In the case of the tightly integrated innovations based monitor, this sensitivity is low compared to the sensitivity in attack time. In Figure 14, the results of next experiment are represented. With a constant fault of 10min 1min, different pre-monitoring times have been tested. Starting from a concurrent fault with with a blue line, and retarding the monitoring time 3 minutes per set of data (Color). For this particular fault, it can be seen that no performance is lost until in 50
the first 6 minutes, but it’s at 9 minutes of pre-monitoring when the monitor looses detection capabilities. With a Safe Time of more than 6 minutes, this monitor can be used to safely detect faults that would otherwise pose a serious threat to the integrity of the vehicle. 5.2.3 Spoofing sensitivity to measurement errors All the previous section showed results for the ideal case that the spoofer has perfect knowledge of the position of the vehicle. This case however is usually unrealistic, error and noise in the measurement of the vehicle position is always expected. This error might arise from the use of sensor to measure the position, like laser ranging sensors or optical sensors. This estimating error hinders the spoofer’s capabilities which in turn increases the confidence in the estimator. Theoretically [4], a noise in the order of a few millimeters is enough to increase the detection substantially. In this research, a noise of 3mm has been introduced to the GPS spoofed signals and compared to the same ideal case. This simple addition of such a small noise in GPS terms, produces detectable faults that were previously undetectable. As an example, a 10m in 2 minutes fault, which was undetectable until now, when contaminated with 3mm white noise, the detection rates reaches 90% (Figure 15) The Figure reflects the difference between the ideal and the contaminated signals. They are practically indistinguishable from each other. On the other side, this detector is able to distinguish between the two signals clearly and increase the detection rate in even the hardest faults. Measuring the position of the vehicle to millimeter accuracy would be troublesome for the spoofer without using advanced measurement techniques, which protects the vehicle from a wide range of spoofing setups. 5.2.4 Worst Case fault The last case that will be analyzed in this report is the behaviour of the monitor to the Worst Case Fault. This fault is the result of the following hypothetical scenario. We assume there exists a spoofer with knowledge on the whole setup of the vehicle. The spoofer knows all the sensors, it’s characteristics and even the estimation algorithm and the type of monitor that we use. With this setup he/she is capable of reproducing all the parameters of the navigation system, including position estimates and the monitor’s behaviour. With all this information, it is possible to generate a fault that maximizes the following metric, integrity risk. Ir=Pr(|k|> l, qk< T) (110) The integrity risk is defined as the probability of a given fault exceeding a threshold value (|k|> l) while not triggering a monitor alert (qk< T ). 51
Figure 15: Effect of additive white noise in the spoofer estimation 52
Maximizing this metric using the data of our particular estimator is therefore generating the fault that has the maximum likelihood of not being detected while achieving a given deflection. To generate the worst case fault we follow the derivation on [4], which provides the applicable fault vector fto be introduced in the GPS generator. The generator will then provide the generated signals to be introduced in the estimator. Maximizing the Integrity Risk is equivalent to maximizing the failure mode slope ρ2 k, defined as: argmax f1:k ρ2 k= argmax f1:k E(k) λ2 k (111) Writing this quantities in function of the fault profile f1:kallows for the computation of the worst case fault direction, written analytically as: f1:k∝¯ B−1 1:kS1:k¯ B−T 1:kAT 1:kTT (112) In this expressions, the matrices A1:kand ¯ B1:kare aggregate functions of the system matrices. Each element of the A matrix can be written as: Aik =((I−LkHk)Φ(I−Lk−1Hk−1)Φ...(I−LiHi)Φ if i <k (I−LkHk)Φ if i=k (113) Similarly, the elements of matrix ¯ B1:kcan be written as: ¯ Bi=−HkΦA1:k−1I0n×n(k−i)(114) Computing the optimum fault magnitude reduces then to a one-dimensional search to maximize the Integrity Risk in function of the magnitude of the fault αthrough the generation of several samples of the measurement noise ˜xs i. Ir(α) = 1 m m X i=1 Pr(|k|> l, qk< T |˜xs i) (115) A spoofer capable of generating this type of fault requires a huge amount of information and background from the vehicle and only the most advanced of users could implement this faults. This is the reason why designing an algorithm that can detect even the worst of the faults available would prove itself to be a useful addition to the navigation scene. The first fault to be tested will demonstrate the effect of the Worst Case Fault compared to unspoofed results. As can be seen in Figure 16, the difference between scenarios is minimal, the unspoofed results closely resemble the unspoofed data except at the beginning. As expected, a spoofer with great knowledge of the system behaviour is capable of generating faults with very high integrity risk, posing a threat to the vehicle that cannot be allowed. 53
Figure 16: Worst Case Fault (red) against No fault (blue) 54
Figure 17: Worst Case fault with tracking noise vs ideal fault However, we assumed that the spoofer is capable of tracking the position of the vehicle exactly, with absolutely no noise, which is unreasonable in a real time implementation. Since the spoofer would need some kind of positioning sensors to measure the position of the vehicle, those would add a white noise to the position measurements which would propagate to the worst case fault calculation. To be in the conservative side, we would assume a high end spoofing setup with quality sensors that only output a signal with a small white noise with 3mm of standard deviation. Adding the white noise to the spoofer setup will generate a fault that is naturally noisy, creating a difference between the GPS expected noise and the actual signal. This increases the detection capabilities of the detection algorithm. As can be seen in Figure 17, the simple addition of 3mm in the GPS estimations, allow the previously undetectable fault to be easily detected by the algorithm. The innovations based estimators are noticeably sensible to tracking noise and even a noise which is smaller than the actual standard deviation of the position states will trigger detection easily. The Worst Case Fault, shown in 18, instead of increasing in velocity, it decreases it slowly over time. This can be attributed to the fact that a constant velocity fault is undetectable by a sensor that measures acceleration directly. 55
(a) Position estimates. (b) Velocity estimates. Figure 18: Estimations of the WCF spoofed estimator. Only the changes in velocity can be detected, which the WCF optimizes to be the minimum possible. As a result, the position estimates approach a straight line profile with minimum acceleration. This will minimize the faults in the innovations, promoting a more efficient fault. Even though the Worst Case Fault is capable of reducing the detection rate of the algorithm significantly, any practical implementation of the spoofing algorithm, will prove highly troublesome if not impossible. The noise introduced due through the tracking will degrade the spoofing capabilities and will allow the detection of the fault. 6 Conclusions The study conducted above analyses the performance of the Kalman filter estimation algorithm and the detection capabilities of the innovations sequence based INS monitor against GPS spoofing. The algorithm was implemented in MATLAB successfully through the creation and testing of sub-programs easily testable to ensure a coherent functionality. This algorithm was tested independently as an INS only propagation to examine the behaviour and the coherence between measured noise data and the numerical propagation. It was observed a high sensitivity to the initial noise parameters which led to a careful measurement of the data parameters instead of relying on manufacturer’s data in the white noise estimates. 56
Then, the study of INS/GPS integration was evaluated. A tightly coupled scheme was selected to achieve high precision despite its disadvantages in spoofing. The precision and performance of the INS/GPS estimation algorithm improved upon only INS propagation. This grade of IMU is not high enough for an only INS integration and needs to be aided with GPS. The following sections analyzed successfully the effects of spoofing in this system’s performance to a variety of cases an faults. First the effects of an easily detectable fault were described to gain insight on the detection mechanism. The performance under more complex faults and performance limits were then calculated. First, the effects of different spoofing periods in detection performance allowed to measure some time limitations of the algorithm. This limitations however were proved to be of low impact. Following the spoofing time analyses, the study of pre-monitoring was conducted. The same fault was introduced on the system and it was proved that the protection obtained from the algorithm was significant for the applications, despite the assumed lack of knowledge in the spoofing starting time. A more realistic scenario was then conducted, comparing the effects of the natural noise that a spoofer measuring system would introduce. It was proved that previously undetected signals were detectable only by the addition of a 3mm white noise to the spoofer’s measuring system. This study concludes with the computation of the worst case fault and the testing of the algorithm performance to the worst case of spoofing. An implementation of the worst case fault generation is outlined and implemented successfully to show its effects in the monitor. This fault is then compared to the original unspoofed scenario to confirm the small differences between runs which confirms that the fault profile is significantly more harmful than the previous fault. The last experiment of the report consists in the introduction of white noise to the spoofer tracking system, which degrades the quality of his spoofing and increases detection performance. Even if the spoofer accounts for the existence of white noise in his data, the algorithm is highly sensible to the noise and detection is increased significantly. This results show some scenarios with possible application of the algorithm to detect spoofing faults with several variations. This algorithm however will have it’s limitations and the performance is limited by the IMU precision and grade. This first practical implementation used a Low tactical grade IMU and if upgraded, detection would increase. The first implementation of the algorithm will set the base for further investigation on the variations of the algorithm to different scenarios so the detection quality can be assessed and characterized not only through theory but through experimentation. 6.1 Future Work Even after this experiments, the work could be expanded to a more extensive report against spoofing testing the performance of the algorithm to variations 57