Measurement anomaly detection using Kalman filtering applied to navigation
The 'global inconsistency' indicator with partial derivatives addresses inefficiencies in detecting measurement anomalies in Kalman filters, enabling effective and resource-efficient detection of various anomalies in navigation systems.
Patent Information
- Application Number
- FR2022000189
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-01-11
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-01-11
AI Technical Summary
Existing methods for detecting measurement anomalies in Kalman filters, particularly in navigation systems, are inefficient in identifying gradual and progressive drifts or punctual but average-intensity anomalies, requiring significant computing power and time, which is not feasible for on-board systems.
A method and device using the calculation of a 'global inconsistency' indicator with partial derivatives to detect measurement anomalies, leveraging existing Kalman filter calculations, allowing for efficient detection of various anomalies with modest computing resources.
The method and device effectively identify measurement anomalies, including gradual and periodic deviations, with reduced computational and storage demands, enhancing anomaly detection performance in navigation systems.
Smart Images

Figure 00000027_0000 
Figure 00000027_0001 
Figure 00000028_0000
Abstract
Description
Title of the invention: Detection of measurement anomalies using a Kalman filter applied to navigation
[0001] Background of the invention
[0002] The invention relates to the general field of measurements, carried out using sensors, of measurements such as, for example, the position of a vehicle.
[0003] It relates more particularly to the detection of anomalies affecting a measurement delivered to a Kalman filter used to estimate the state of a target entity in a physical system (e.g. the position, speed, and orientation of a target dynamic object such as a vehicle, a drone, etc.).
[0004] The invention thus has a preferred but not limiting application in the field of navigation systems and surveillance systems.
[0005] As is known, in a navigation or monitoring system, a Kalman filter is frequently used as a state estimator. The Kalman filter evaluates the state xn of the target object recursively, at each time step n, from a mathematical model of the system (in particular a model describing how the different states evolve in relation to each other, and how the measurements depend on the states) which we will call the "model" and from external information collected by sensors, which we will call "measurements".
[0006] For example, in a system that generates an estimate of the position, orientation, and velocity of a target object, the model includes, in particular, kinematic equations governing the trajectory of an object in terms of position, orientation, and velocity. The model may involve certain parameters whose values are known a priori (e.g., the acceleration due to gravity) and / or whose values may vary according to step n.
[0007] In the following, when referring to temporalization n, the expressions "recursion", "step" or "given moment" will be used interchangeably.
[0008] In the field of navigation systems, sensors are often associated with an inertial measurement unit.
[0009] For example, in navigation, it is common to use an inertial measurement unit (IMU) coupled with a GPS receiver to estimate the position and orientation of a vehicle. The IMU, composed of gyroscopes and accelerometers, evaluates the successive changes in orientation and specific forces of the moving vehicle, respectively. Through a simple mathematical integration operation, these measurements allow the vehicle's state to be estimated in terms of position, speed, and orientation. The information provided by the GPS allows the vehicle's position to be calculated. A Kalman filter then merges the data. This information is used to estimate the vehicle's condition. The quality of the fusion depends, among other things, on proper calibration of the filter parameters. Since the models and methods of data fusion are already known, they will not be described further in this patent application.
[0010] The target of the state estimation performed by the Kalman filter, and the use of this estimation, vary depending on the application. For example: - In a vehicle-mounted navigation system, the estimation relates to the vehicle's condition and can be used to update a road map displayed to the vehicle's driver and / or to decide which directions will be given to them to reach their destination. - In a radar system, the estimation relates to the state of the monitored object, and this estimation can serve as an indication of the target's position so that its trajectory can be traced. - in an autonomous vehicle, the estimation relates to the vehicle and can inform the control module that pilots the vehicle, allowing the latter to decide the next maneuver, etc.
[0011] The diagram shown in [Fig. 1] illustrates in a simplified way a state estimation system 1 comprising a Kalman filter 5 associated with a modeling unit 10, within the framework of a known navigation system equipped with a measurement system 15. The example shown in [Fig. 1] concerns a navigation system whose measurement system 15 comprises an Inertial Measurement Unit (IMU) 18 aided by one or more sensors (CAP) 16, in this case a GPS sensor.
[0012] The Kalman filter 5 recursively determines an estimate of the current state of the target object using the previous estimate as well as the input from the modeling unit 10 and the measurements provided by the measurement system 15. This recursive calculation is schematically illustrated in [Fig. 2]. For a given recursion n, the difference between the observation predicted from the estimated state and the model and the observation obtained from the measurements is called the innovation.
[0013] From the example illustrated by [Fig.1], it is clear that even with an appropriate mathematical model (MOD) 14 of the physical system, and related parameters (PAR) 12, the quality of the measurements provided by the sensor(s) 16 has an important influence on the estimation of the states.
[0014] More specifically, according to the example in [Fig. 1], as long as the Kalman filter 5 assumes that the measurements from the GPS are reliable, even a small measurement anomaly will cause the estimate to deviate more or less significantly from the actual situation. In particular, such an anomaly is especially difficult to detect when it grows gradually over time. It is, therefore, important to be able to detect measurements affected by anomalies, whether the anomaly corresponds to a failure of the The anomaly could be due to a sensor malfunction (defect, aging, etc.) or another cause such as an environmental artifact – for example, multipath propagation in GPS, refraction in the ionosphere or troposphere, etc. Generally, the goal is to determine when the anomaly began and which sensor is affected.
[0015] The remainder of this application will describe the prior art and certain embodiments of the invention in the context of a navigation system comprising a UMI associated with a GPS sensor, but the proposed anomaly detector can be used with any sensor including, without limitation, GPS, LiDAR, Accelerometer, gyroscope, any sensor enabling estimation of the state of a mobile carrier, etc.
[0016] In order to appreciate how measurements tainted by anomalies are detected in the prior art, it is necessary first to recall the classical operation of a Kalman filter.
[0017] We will denote x„ the state of the target object at a given step n. In many applications the state is expressed in terms of a plurality of variables and, therefore, xa constitutes a vector.
[0018] The system evolves according to the mathematical model and, therefore, we can consider that the state xa of the target object at a given time n depends on the state x,,, of the previous step n-1 according to equation (1) below:
[0019] xn — F। + Bn Un + wn (1)
[0020] where Fn is a known square matrix, Un is a control input vector (known to the user), i.e., an action applied to the system, Bn is the matrix representing the model that links the state xn to this control input, and wn is a centered Gaussian random variable representing covariance noise Qa
[0021] The measurement or measurements, in particular that delivered by the sensor(s), will be denoted ya and depends on the state xa of the target object according to equation (2) below:
[0022] yn = Hnxn + Vn(2)
[0023] where Hn is a known observation matrix, and Vn a centered Gaussian random variable representing noise with covariance Rn. Again, in many applications there is a plurality of measurements delivered to the Kalman filter at each instant n and, therefore, yn will be a vector.
[0024] During the practical implementation of a Kalman filter, the noise covariance matrices, Qa and Ra, must be chosen. This is often done by first studying how these covariances relate to the data obtained in the domain in question. A typical approach for estimating the covariances consists of applying the ALS algorithm (for "autocovariance least-squares").
[0025] The Kalman filter maintains an estimate of the state xn of the target object at a At a given time n, this estimate will be denoted x^j when it is calculated (predicted) from the measurements ya.i available at time n-1, and x^ when the calculation incorporates the measurements y„ obtained at time n. The Kalman filter also maintains a covariance matrix P„ representing the uncertainty of the estimate of the state xTI, and this matrix will be denoted P^i when it applies to the estimate x,^, and P^ when it applies to the estimate x„|«-
[0026] At each step n, the filter operates in two stages:
[0027] Initially, the Kalman filter predicts the prior state estimate ix^i of the target object, as well as the covariance matrix from the state estimate and the covariance matrix P^fy-i, according to equations (3) and (4) below:
[0028] ^1= + ¢4 0)
[0029] P^i = PnPnU}PT+ Q
[0030] where Fjcst is the transpose of the matrix Fa.
[0031] In a second step, the Kalman filter updates the prior state estimate of the target object using the prediction made in the previous step and taking into account the current measurements ya with a certain weighting represented by a coefficient Ka called "the Kalman gain". The update is performed according to equations (5) and (6) below:
[0032] = + (5)
[0033] P,^ =
[0034] where K„ is calculated according to equation (7) below:
[0035] Kn = P^HtS^^
[0036] Sn, which represents the covariance of the measures y„, is calculated according to equation (8) below:
[0037] s„= H^HÏ + R,^
[0038] and zn corresponds to the innovation, that is, the difference between the measurements yn observed at step n and the values that would have been expected based on the estimate from the model and the previous measurements. zn is defined according to equation (9) below:
[0039] z n =y n -H„^(9)
[0040] Of course, in cases where yn corresponds to a vector, the innovation zn also corresponds to a vector.
[0041] If the Kalman filter works correctly - that is, if the model used This corresponds well to reality: if the noise affecting the measurements is white and if the estimates of the noise covariance matrices Qn and Rn are appropriate, then the series of values of the innovation zn, zn+1, zn+2, etc., should vary unpredictably over time but have a smaller amplitude than if the filter were not functioning correctly. The innovation zn, therefore, characterizes the performance of the Kalman filter. In order to evaluate the performance of the Kalman filter (with the aim of improving the quality of state estimation), it is common practice to use the innovation zn at each recursion.
[0042] The Kalman filter outputs the current state estimate and its associated uncertainty Pf^t, this estimate being delivered, depending on the application, to a control system or other.
[0043] Known methods allow the detection of anomalies affecting the measurements provided to the Kalman filter under certain circumstances. For example, in the case of a significant one-off discrepancy between the "reasonably expected" situation and the measurement provided by the sensor, the innovation is likely to suddenly become significant. However, known methods are not very effective when dealing with an anomaly corresponding to a gradual and progressive drift over time or a one-off anomaly of average intensity.
[0044] In a classical manner, when seeking to determine whether an anomaly affects the estimation made by the Kalman filter, the GLR algorithm (for “Generalized Likelihood Ratio” in English) can be used to determine which of several scenarios appears most likely: the scenario Hq in which there was no anomaly or one of several different hypothetical scenarios which each correspond to the existence of an anomaly (called “failure” in the literature) occurring at a respective different stage k.
[0045] According to the GLR algorithm, for each hypothesis, a likelihood ratio is determined between that hypothesis and the hypothesis that there was no anomaly, H0. H0 represents the likelihood of the set of measurements obtained over the considered time range if the hypothesis in question were true. When the highest likelihood ratio exceeds a decision threshold, an anomaly / failure is considered to have occurred. When a failure is detected, the hypothesis selected as the probable source of the anomaly is the most likely hypothesis.
[0046] Since there are various sources of known types of anomalies, navigation systems often include a storage means in which a bank of different fault profiles is stored, the plausibility of which can be tested. However, evaluating the k hypotheses requires significant computing power and time (especially when using the GLR algorithm), which, in practice, limits the number of hypotheses that are tested. More precisely, it is necessary to Run as many sets of Kalman filter estimations as there are hypotheses to test. Furthermore, a device with limited computing and / or storage capacity will not be able to implement the anomaly detection methods proposed by the state of the art. This latter problem is particularly relevant to embedded navigation systems.
[0047] Object and summary of the invention
[0048] The invention proposes a new method for detecting measurement anomalies affecting the measurements used by a Kalman filter when estimating the state of a target, this target being, for example, a specific physical system or a device within such a physical system, for example, a removable object (vehicle, drone, or other). More particularly, according to the invention, the value of a variable called the "global inconsistency" that characterizes this group is calculated in relation to a group of filter recursion times within a defined analysis time window, and the gradient is determined, that is, the set of partial derivatives of the global inconsistency with respect to the measurements or the uncertainty parameters of the sensors in the analysis window. The detection of measurement anomalies is performed using the values of the partial derivatives.
[0049] More specifically, the invention proposes a computer-implemented detection method for detecting measurement anomalies in a Kalman filter state estimation system, the Kalman filter being intended to recursively estimate the state of a target, the target being either in a targeted physical system or constituting the physical system, from a model of the physical system and the values of certain measurements provided by sensors, the method comprising:
[0050] a) at each recursion n of a group of recursions in a determined analysis time window, a step of determining the local inconsistency ln of the measurement values with respect to a prediction of the target state, the local inconsistency ln being calculated according to the following formula: ln = log\S„\ + ^<£^(10);
[0051] b) a step of summing the values of the local inconsistencies on said recursion group, the sum of the values of the local inconsistency on said group being designated as the global inconsistency L relating to this group;
[0052] said detection method being characterized in that it comprises:
[0053] c) a step of determining the gradient of the global inconsistency with respect to the measurements, by calculating the partial derivative of the global inconsistency with respect to each of a plurality of variables, these variables being the measurements or the uncertainty parameters of the sensors given to the Kalman filter, of the analysis window;
[0054] d) a step of detecting a measurement anomaly by evaluating the partial derivatives of the overall inconsistency determined during step c), and
[0055] e) the selective generation of an indicator indicating the existence of a measurement anomaly depending on whether or not an anomaly is detected during the evaluation carried out in step d).
[0056] The inventors discovered that calculating the partial derivatives of the "global inconsistency" indicator is inexpensive in terms of computing power and storage capacity, and that evaluating these partial derivatives allows the detection of various types of anomalies, including some anomalies that are not usually detected by known detection methods. Furthermore, calculating the partial derivatives of the "global inconsistency" indicator utilizes certain values that are already calculated during the operation of a Kalman filter as a state estimator. Therefore, implementing the invention requires only the addition of a few inexpensive means in terms of computing power. According to certain embodiments of the invention, the method allows testing a significant number of hypotheses regarding the existence of a measurement anomaly.
[0057] In the process described above, during step c), the respective partial derivative of the overall inconsistency with respect to the uncertainty measurements / parameters of each of the successive recursions contained in the analysis window can be determined. Using all the successive recursions contained in the analysis window provides the best performance in terms of anomaly detection.
[0058] In the method described above, the detection of a measurement anomaly during step d) can be based on the exceeding of a threshold by the value of the gradient of the overall inconsistency with respect to the variables of interest. In some embodiments, exceeding the threshold indicates the onset of an anomaly affecting at least one of the measurements used by the Kalman filter to determine its estimate of the state of the target object.
[0059] In the process described above, the detection of a measurement anomaly in step d) may involve comparing a group of partial derivatives determined in step c) with each element of a plurality of predetermined candidate failure profiles, each predetermined profile corresponding to a particular known anomaly. The detection of a measurement anomaly in step d) then involves identifying the profile leading to the greatest decrease in overall inconsistency, this decrease being calculated from the group of partial derivatives and the profile. Storing a database of profiles corresponding to hypothetical failures is therefore necessary in this case. It allows for the identification of an anomaly corresponding to a known type of problem.The calculation of this indicator can be done in a simple way, in particular by calculating the scalar product between the candidate anomaly profile and the gradient of the overall inconsistency with respect to the measures, for each recursion n. considered from the analyzed time window, n corresponding to the hypothetical start of the failure profile.
[0060] To ensure the detection of anomalies without excessive analysis time, an appropriate number N of recursions from among the recursions included in the analysis window should be taken into account for the inconsistency calculation. It will be understood that M is the number of times filtered by the Kalman filter over a given time window (i.e., the maximum bound of AO), this number M being calibrated according to the application's needs, for example, navigation. The number of time steps Æ is selected based on several criteria, including, for example, one or more of the following criteria: the desired fault profile, the computing and storage capacities of the equipment performing the calculations, the sensor's recording frequency, the operator's experience with the equipment concerned and the fault being sought, etc.
[0061] In the process described above, during step c), the Fourier transform of the group of partial derivatives of the global inconsistency can be determined with respect to the measurements. This approach makes it possible to determine, through a single operation, the scalar products between the gradient of the global inconsistency and a series of sinusoidal signals, each coefficient of the Fourier transform being one of these scalar products. Each of the sinusoidal signals can be considered to correspond to a respective fault profile.
[0062] The invention also proposes a device for detecting measurement anomalies in a state estimation system using a Kalman filter, the Kalman filter being intended to recursively estimate the state of a target, the target being either in a targeted physical system or constituting the physical system, from a model of the physical system and the values of certain measurements provided by sensors, comprising:
[0063] a means for determining local inconsistency intended to determine, at each recursion n of a group of recursion(s) in a determined analysis time window, the local inconsistency ln of the measurement values with respect to a prediction of the target state, the local inconsistency ln being calculated according to the following formula:
[0064] Z„ = Z^|S„| + zjs^et
[0065] an adder for summing the local inconsistency values for said recursion group, the sum of the local inconsistency values being designated as the global inconsistency L relative to this group;
[0066] The measurement anomaly detection device is characterized in that it comprises:
[0067] a means of determining the gradient of the overall inconsistency with respect to the measurements by calculating the partial derivative of the overall inconsistency L with respect to each of a plurality of variables, these variables being the measurements or uncertainty parameters of the sensors given to the Kalman filter, in the analysis window; and
[0068] an evaluation means intended to detect a measurement anomaly, from an evaluation of the partial derivatives of the global inconsistency determined by the gradient determination means, and in the event of detection of a measurement anomaly to produce an indicator indicating the existence of a measurement anomaly.
[0069] The anomaly detection device according to the invention provides advantages similar to those of the method described above. This detection device can be implemented using relatively modest computing resources in terms of processing power and storage capacity, and yet a wide range of measurement anomalies can be detected.
[0070] The gradient determination method can be designed to determine the respective partial derivative of the overall inconsistency with respect to the uncertainty measurements / parameters of each of the successive recursion sets contained within the analysis window. This improves anomaly detection performance.
[0071] The means for evaluating the measurement anomaly detection device can be designed to detect whether the value of a partial derivative of the overall inconsistency exceeds a threshold. This is a simple function which nevertheless makes it possible to identify certain measurement anomalies.
[0072] The means for evaluating the measurement anomaly detection device can be designed to calculate the dot product between the overall inconsistency gradient, produced by the gradient determination means, and each of a plurality of predetermined profiles, each predetermined profile corresponding to a particular known anomaly. The candidate profiles are typically stored in local or remote memory. The evaluation means is then configured to detect a specific anomaly when the dot product between the overall inconsistency gradient and the predetermined profile corresponding to said specific anomaly is the largest of the calculated dot products.
[0073] The invention proposes a system for estimating the state of a target in (or constituting) a targeted physical system, this state estimation system integrating the measurement anomaly detection device as well as a Kalman filter configured to produce, recursively, an estimate of the state of the target.
[0074] The method and device for detecting anomalies according to the invention, as well as the state estimation system, can be used in various applications.
[0075] For example, the invention provides a navigation aid system comprising:
[0076] a computer adapted to perform the calculations of a Kalman filter in order to estimate, from In a recursive manner, the state of a target in (or constituting) a targeted physical system, the state of the target, consisting at least of the target's position; and
[0077] a set of sensors intended to provide the computer with measurements used to estimate the state of the target;
[0078] in which the computer is adapted to perform the functions of the measurement anomaly detection device described above to detect anomalies affecting the measurements supplied to the Kalman filter by the sensor set.
[0079] In such a navigation assistance system, the sensor array may include (but is not limited to) at least one GPS sensor associated with an inertial measurement unit. This is a sensor configuration commonly found on vehicles, drones, or other devices, and whose measurement anomalies are often difficult to detect due to the limited computing / storage capacity of the mobile platform's computer systems. In such a context, the use of the techniques of the invention allows for a significant improvement in performance in terms of anomaly detection.
[0080] It can also be envisaged, in other embodiments, that the method for detecting measurement anomalies, the system for estimating the state of a target and the navigation aid system according to the invention have in combination all or part of the aforementioned characteristics. Brief description of the drawings
[0081] Other features and advantages of the present invention will become apparent from the description below, with reference to the accompanying drawings which illustrate non-limiting examples of embodiments. In the figures: • [Fig.1] schematically represents an example of the classic arrangement of a Kalman filter which is used to estimate the state of a target object in a physical system; • [Fig.2] schematically represents the recursive operation of the Kalman filter of [Fig.1]; • [Fig.3] represents an example of the functional modules of a measurement anomaly detection device according to an embodiment of the invention associated with a Kalman filter which recursively produces state estimates; • [Fig.4] represents an example of the trajectory of a vehicle; • Figures 5A to 5C illustrate a method for detecting a point-type measurement anomaly affecting the measurement of a vehicle's position, in which: • Figure 5A represents a simple example of an anomaly of this kind, • Figure 5B represents the relationship between the actual state of the vehicle and the state estimate produced by a Kalman filter, in an example where one of the measurements delivered to the Kalman filter is affected by a point anomaly, and • Figure 5C shows the values of a conventional indicator and a new indicator according to an embodiment of the invention when the point measurement anomaly occurs; • Figures 6A to 6C illustrate a method for detecting a ramp-type measurement anomaly (progressive linear drift over time) affecting the measurement of a vehicle's position, in which: • Figure 6A represents a simple example of an anomaly of this kind, • Figure 6B represents the relationship between the actual state of the vehicle and the state estimate produced by a Kalman filter in an example where one of the measurements delivered to the Kalman filter is affected by a ramp-type anomaly, and • Figure 6C shows the values of a conventional indicator and a new indicator according to an embodiment of the invention when the point measurement anomaly occurs; • Figures 7A to 7C illustrate a method for detecting a sinusoidal measurement anomaly affecting the measurement of a vehicle's position, in which: • Figure 7A represents the relationship between the actual state of the vehicle and the state estimate produced by a Kalman filter, in an example where one of the measurements delivered to the Kalman filter is affected by a sinusoidal anomaly. • Figure 7B shows a Fourier transform of a classical indicator during the occurrence of a sinusoidal-type measurement anomaly, • Figure 7C shows a Fourier transform of the group of partial derivatives with respect to measurements taken at each instant according to an embodiment of the invention when the sinusoidal-type measurement anomaly occurs; and • [Fig.8] is a diagram representing an example of a navigation aid system according to one embodiment of the invention.
[0082] Detailed description of certain embodiments
[0083] For the detection of measurement anomalies affecting the inputs of a Kalman filter, preferred embodiments of the invention exploit a new indicator based on the partial derivative of a quantity designated herein as "the global inconsistency".
[0084] The local inconsistency l„ applying to a recursion n is determined according to the following formula (10):
[0085] Z„ = Z^|Sj+ <S^J10)
[0086] recalling that Sn is the covariance of the innovation, and zn is the innovation, that is to say the difference between the values ya of the measures observed at the recursion n and the values, expected according to the model.
[0087] The values of the local inconsistency ln are summed over a group of recursions N contained within a determined analysis time window, to generate the quantity L, called the global inconsistency of the group. According to preferred embodiments of the invention, the global inconsistency is calculated by summing the local inconsistency over all successive recursions in the analysis window, in which case N = M and:
[0088] L =y« ( / |S |+ .TS-1 t U 10a)
[0089] In preferred embodiments of the invention, the local inconsistency is determined with respect to each of the successive recursions in the analysis window, and the global inconsistency is calculated by summing these local inconsistencies. This yields a global inconsistency value that very accurately represents the inconsistency during the analysis window. However, the approach advocated by the invention, and the derived equations below, also apply when using a subset of the recursions in the analysis window. The trade-off is a loss of performance.
[0090] In preferred embodiments of the invention, a measurement anomaly is detected from the partial derivatives of the global inconsistency L with respect to the yn values of the measurements of interest or with respect to the Ra uncertainty parameters of the sensor measurements given to the Kalman filter, in the analysis window.
[0091] The overall inconsistency L characterizes the overall likelihood of obtaining a certain sequence of measurements given the model parameters. Specifically, removing one or more measurements from the model will increase the value of the overall inconsistency. In other words, the inconsistency assesses whether the values of the discrepancy between the measurements and the estimates are in agreement with the uncertainty on these discrepancies, this uncertainty being quantified by the covariance of the innovation Snelle-même calculated from the covariance of the uncertainty of the measurements Rn. A low inconsistency indicates good agreement.
[0092] According to certain preferred embodiments of the invention, the sensitivity of the overall inconsistency to each variation of the measurements is calculated. Intuitively, it is understood that calculating the effect of the variation from a false measurement to a more probable measurement will reduce the overall inconsistency. The effect of this variation is calculated mathematically. The system is defined by the derivative of the overall inconsistency with respect to the measurement being tested. The term "gradient" refers to the set of these derivatives with respect to each of the analyzed measurements. The set of derivatives is calculated recursively, and, as the inventors determined, this is done using simple equations that are not currently available in the scientific literature. The computational cost is therefore low, and the process can be implemented even with equipment of modest computing power and storage capacity.
[0093] Fig. 3 schematically represents the functional elements of a measurement anomaly detection device 100 according to a particular embodiment of the invention, intended to detect anomalies affecting the measurements used by a Kalman filter in a state estimation device 50.
[0094] In the example envisaged in [Fig.3], the state estimation device 50 calculates the innovation zn for each recursion of the Kalman filter operation and the innovation values are acquired by the anomaly detection device 100 of the present embodiment.
[0095] The anomaly detection device 100 includes a unit 120 capable of calculating the overall inconsistency L over a chosen number of successive recursion cycles, constituting the analyzed time window. According to the example in [Fig. 3], this is a group of four recursion cycles from n-2 to n+1, but this example is highly simplified and, in practice, a much larger number of recursion cycles is chosen. This number must be sufficient for the effects of a failure on the overall inconsistency to become apparent.
[0096] It can be considered that there exists a window that defines the number of successive recursion steps that contribute to the calculation of the overall inconsistency. According to some embodiments of the invention, this window is a sliding window of fixed size that moves progressively to select the groups of recursion steps that will be the subject of the respective analyses, and according to the designer's choice, the respective groups overlap or not. According to other embodiments of the invention, the window extends from the start of operation of the anomaly detection device 100 to the present moment, and therefore, the number of recursion steps contributing to the calculation of the overall inconsistency gradually increases.
[0097] The unit 120 for calculating the global inconsistency includes a means 122 for calculating the local inconsistency for each of the recursions considered (i.e., according to this example: / „2, A1-1, h, and) and an adder 124 for calculating the sum of the local inconsistencies of the group. The means 122 for calculating the local inconsistency performs its calculations in accordance with formula (10) above.
[0098] The anomaly detection device 100 also includes a unit 130 for determining partial derivatives of the overall inconsistency L. In the example shown Figure 3 shows the calculation of the partial derivatives of the global inconsistency L with respect to the measurements of each of the recursions of the group using appropriate computing means 132 (i.e., the partial derivatives of L with respect to each of deya.2, yn-ya, etya+1'). An evaluation unit 140 analyzes the partial derivatives of the global inconsistency and detects measurement anomalies based on them. If a measurement anomaly is detected, the evaluation unit 140 generates a signal 150 indicating the existence of the anomaly and, in preferred embodiments of the invention, the signal 150 indicates not only the existence of the anomaly but also indicates the properties of the anomaly (e.g., in terms of the time tk when the anomaly began and / or when the fault profile was identified).
[0099] The derivative of the global inconsistency can be used to detect measurement anomalies of different types, including point anomalies, anomalies consisting of a gradual drift of the value supplied by the sensor with respect to the real value, and anomalies consisting of a periodic amplitude deviation affecting the measurement value (e.g. sinusoidal noise).
[0100] The choice of partial derivatives to be calculated, and the way in which the evaluation unit 140 detects an anomaly from the partial derivatives, varies depending on the application (see below). The gradient of the overall inconsistency with respect to the variables of interest is calculated by backpropagation. In the example in Figure 3, the variables of interest correspond to the measurements ya recorded in the analysis window. However, when the goal is to detect a point anomaly to identify the false measurement, the partial derivative determination unit 130 can calculate the partial derivatives of the overall inconsistency with respect to each of the measurement uncertainty parameters, Rn, or with respect to each of the measurements yn, for each recursion n of the analyzed time window.
[0101] The inventors discovered that the calculation of the partial derivatives of the global inconsistency can be performed using relatively simple equations that exploit several quantities already available in a Kalman filter state estimation device. Embodiments of the invention that use these partial derivatives to detect measurement anomalies therefore make it possible to identify anomalies with equipment of limited capacity and / or to test, within a specified time period, a greater number of hypotheses regarding the characteristics of the anomaly.
[0102] We subsequently present the derivation of the recursive equations which allow us to calculate the gradient of the global inconsistency with respect to the variables of interest y„ or R n-
[0103] The objective quantities to be calculated are therefore the gradients of the overall inconsistency L with respect to the filter inputs yn and Rn. The derivation of the equations relating
[0104]
[0105]
[0106]
[0107]
[0108]
[0109]
[0110] [YES]
[0112]
[0113]
[0114]
[0115]
[0116]
[0117]
[0118]
[0119] The recursive calculation of gradients with respect to ya or / ?n begins with the equations relating to gradients with respect to x„ and Pn. Let n=Q be the first recursion of the estimation of the analyzed window and n=N the last recursion of the window. Recalling that the gradient calculation is done by reverse backpropagation, i.e., from the future to the past, the derivation begins from the gradients below at recursion n=N: dLN _ dLN _ <$1$ (H) where is the derivative of the local inconsistency applicable to the recursion n=N with respect to the uncertainty P at the recursion n=N, the dimension of this partial derivative being equal to the square of the size of the vector defining the state (for example, if the state is expressed in terms of two variables - for example position and velocity - then the dimension of this partial derivative is 2 x 2), and where is the derivative of the local inconsistency with respect to the estimate at the recursion n=N, the dimension of this partial derivative being equal to the size of the vector defining the state. Within the framework of a Kalman filter, the backpropagation of gradients from a state n to the previous state n-1 (and so on to previous states) is done according to the set of equations (12) below: t)L ùL 3L _ FT 3L p ~ n ..JL..... _ FTJL_ (12) 1 In the Kalman filter equations, at each step n the quantities P and x are estimated in two steps, during the propagation step and the update step. ln indicates an output calculated at time n dependent on the quantities calculated by the filter at the propagation stage, i.e. or and ln can also use Q and Rn. The relationships between the gradients (partial derivatives) of the global inconsistency with respect to yn, Rnet Q are defined by the set of equations (13) below: z -T 3L _ vT dL tx 1 ùL ç I 1 Ç- L | ÜL | 3Rn ” « A" 2 Æ- 2 \ 3^ JA« 3L - 3L dQn 3L _ 3L (13)
[0120] The recursion relation with respect to future steps is not immediately apparent for the three quantities (13) but these gradients do depend on gradients, in this case x>^i, and P^-i, which are expressed recursively with respect to future times, cf. formulas (12).
[0121] Recalling that the global inconsistency is the sum of the local inconsistencies defined according to formula (10):
[0122] =
[0123] The inventors have determined that the backpropagation equations in a Kalman filter when the output L is the global inconsistency are the following equations (14):
[0124] zT$lH
[0125]
[0126] . -1 -1 LJ __ Ç- i Ç ç
[0127] ^„9^ (14) 3y„ n^n
[0128] completed by the sets of equations (12) and (13) to obtain the gradient
[0129] JL and / or the JL gradient of the global inconsistency for all n, covering the dyn window analysis, according to equations (15) below:
[0130] 31 _ r 3L 1 vT c)L „7 ç-t 1 Ç-L / 4L] g, ol ç-L 3¾ “ n 2^3^,4^ 2^^3^ / [01311 ^= / ^+25^(15) oy„ n ,l
[0132] It should be noted that the equations given in (12) and (13) provide the expressions for the gradients of a general output l with respect to the filter settings and measurements. In addition, equation (14) provides the expressions for these gradients for the specific case in which the output is incoherence. Thus, to obtain the complete expression for the gradient of global incoherence, the expressions from both calculations are used. Formulations (12) and (13) are therefore generic and can thus be easily used for another specific output (different from incoherence). The expressions for the gradient for the specific output of global incoherence L are used in addition to the expressions for the gradients in (12) and (13) for a general output.
[0133] Calculating the entire gradient of the overall inconsistency with respect to the measurements is quite easy from the point of view of computational load and the storage of quantities during the estimation process, even when dealing with an xn state and a high-dimensional analysis window, since: - Matrix operations are not numerous. - The dimensions remain limited to a two-dimensional tensor, each dimension of maximum magnitude the dimension of xn. - The term (IK„Hest already calculated during the estimations made by the Kalman filter, which reduces the computational load specific to anomaly detection. - The storage requirements during filtering are established for the three quantities a), b) and c) below: has. (LKnHn), Kn and Hn; or Kn and Hn b. Rn or Sn c. zn, Hn and Fn
[0134] We will now consider some examples of different types of anomalies and describe methods according to embodiments of the invention that allow them to be detected. To simplify the presentation, the examples of the different types of anomalies will be presented within the framework of a system in which the state to be estimated consists of the position / speed pair of a vehicle. Figure 4 represents the "actual" trajectory of the vehicle. The measurements provided to the Kalman filter consist of the vehicle's position (measured by a GPS sensor) and the vehicle's acceleration (measured by an accelerometer of an inertial measurement unit, IMU). The measurements and inputs are noisy, which makes the detection of measurement anomalies all the more complicated since it is necessary to avoid interpreting the noise as a measurement anomaly. Detection of a point anomaly
[0135] According to a first example, during the operation of the Kalman filter the GPS sensor delivers a point measurement very far from what is predicted according to the system model.
[0136] A highly simplified representation of this type of anomaly is shown in [Fig. 5A]. The diagram in [Fig. 5A] represents the estimation of a vehicle's position in two dimensions over a sequence of 6 time intervals based on two measurements from an inertial measurement unit and a GPS sensor. It can be seen that the GPS sensor provides a point measurement that is very far from the model at step n=3.
[0137] Let us now consider an example where, during the estimation of the vehicle's state along the trajectory of [Fig. 4], a false point measurement is delivered to the Kalman filter at n=45. The location of the false measurement is indicated in Figures 5B and 5C by a vertical dashed line. [Fig. 5B] indicates the actual position of the vehicle with the solid line pos_true, while the dashed line pos_hat indicates the position estimate produced by the Kalman filter. Similarly, [Fig. 5B] indicates the actual speed of the vehicle with the solid line vel_true, while the dashed line vel_hat indicates the speed estimate produced by the Kalman filter.
[0138] According to the classical method, an anomaly detection system will evaluate the innovation z, or an indicator based on its square, at the different stages of the estimation performed by the Kalman filter. Figure 5C shows in dashed lines how such a classical "innovation" indicator varies during the estimation process. The classical operator will be able to detect the anomaly provided that the point error is sufficiently large compared to the deviations due to noise. Arrow A in Figure 5C shows the ratio between the two highest peaks visible in the classical indicator. Note that this ratio is not very large.
[0139] According to one embodiment of the invention, the variation of the overall inconsistency with respect to each of the measurement uncertainties is calculated, here the partial derivative of the overall inconsistency with respect to / ?„. This new indicator is represented by the solid line in [Fig. 5C]. It should be noted that the new indicator is better able to distinguish the point anomaly from the noise affecting the measurements since the ratio between the two highest peaks (indicated by arrow B in [Fig. 5C]) is significantly greater than in the case of the conventional indicator. Detection of a ramp-type anomaly
[0140] According to a second example, during the operation of the Kalman filter the GPS measurements drift along a ramp: that is to say, it is a progressive drift.
[0141] A very simplified representation of this type of anomaly is illustrated in [Fig. 0A]. The diagram in [Fig. 0A] represents the estimation of a vehicle's position in two dimensions over a sequence of 6 time points, as in the case of [Fig. 5A]. In [Fig. 0A], it can be seen that the difference between the measurement provided by the GPS sensor and the actual position of the vehicle gradually increases.
[0142] Consider another example where, during the estimation of the vehicle's state along the trajectory of [Fig. 4], the measurement provided by the GPS sensor begins to drift, along a ramp with a slope of 0.1, from time n=40 (the start of the drift being indicated in Figures 6B and 6C by a vertical dashed line). [Fig. 4B] indicates the vehicle's actual position with the solid line pos_true, while the dashed line pos_hat indicates the position estimate produced by the Kalman filter. Similarly, [Fig. 4B] indicates the vehicle's actual speed with the solid line vel_true, while the dashed line vel_hat indicates the speed estimate produced by the Kalman filter.
[0143] Figure [C] shows in dotted lines how a classic "innovation" indicator varies during the estimation process in this case. This time the classic indicator does not allow the anomaly to be detected since the majority of the measurements are affected.
[0144] According to one embodiment of the invention, the variation of the overall inconsistency with respect to the measurements is calculated, that is, the partial derivative of the overall inconsistency with respect to yn. In order to detect the beginning of the ramp (drift of the measurement) The approach consists of storing a catalog of candidate anomaly profiles and testing for a hypothetical ramp start at each time step (recursion) of the sequence by calculating the dot product of a ramp starting at that time with the gradient of the inconsistency relative to the series of measurements. In [Fig. 6C], the aforementioned dot product is designated "New Indicator," and it has the same dimension as the gradient, i.e., a dimension equal to the number of recursion steps. This method allows for the detection of the ramp start with high precision (this corresponds to the peak and the shaded area in [Fig. 6C]). Detection of a sinusoidal type anomaly
[0145] According to a third example, during the operation of the Kalman filter the GPS measurements are affected by a sinusoidal error.
[0146] Figure 7A shows the actual position of the vehicle with the solid line pos_true, while the dashed line pos_hat shows the position estimate produced by the Kalman filter. Furthermore, Figure 7A shows a classical operator (zJ^nZ^) based on innovation with the yellow dashed line, and the partial derivative of
[0147] the overall inconsistency with respect to the measurements, 2L. - he
[0148] In order to determine the frequency of a periodic anomaly, one might consider calculating the Fourier transform of the innovation-based classical operator. However, as can be seen in [Fig. 7C], such an approach did not allow the error frequency to be identified in this example.
[0149] On the other hand, according to one embodiment of the invention, the Fourier transform of the group of partial derivatives of the incoherence is calculated
[0150] global with respect to the measurements (çL), which corresponds to the product h.
[0151] scalar of the vector containing all these derivatives with a series of sinusoidal signals, each coefficient of the Fourier transform being one of these scalar products. Each of the sinusoidal signals can be considered to correspond to a respective fault profile. The Fourier transform calculated when this approach is applied to the present example has two significant peaks at frequencies corresponding to the measurement error, as can be seen in [Fig. 7B].
[0152] A priori, the nature of a possible measurement anomaly that might occur at a given time is not known in advance. In a preferred embodiment, therefore, a measurement anomaly detection system according to the invention calculates the partial derivatives only once and then calculates the dot product of the vector containing them with each failure profile of the different types. More particularly, this is similar to the recursive calculations necessary for calculating the partial derivatives of the overall inconsistency. are not expensive, an anomaly detection system according to this embodiment has sufficient time to test a plurality of hypotheses regarding the nature and timing of an anomaly.
[0153] It will be understood that, in an application where only one type of anomaly is likely to occur, the anomaly detection system could be limited to just one of the approaches described in relation to the examples above. For example, if the only anomalies likely to occur are sinusoidal errors, the detection system could be designed solely to calculate the Fourier transform of the gradient of the overall inconsistency with respect to the measurements.
[0154] As indicated above, the method and device for detecting measurement anomalies according to the invention can be applied in different contexts as long as a Kalman filter is working to generate a state estimate from, among other things, one or more measurements from sensors.
[0155] By way of non-limiting example, [Fig.8] represents in a simplified manner a navigation aid system 200 which uses an anomaly detection device according to an embodiment of the invention, in particular a device 100 such as that of [Fig.3].
[0156] According to the example in [Fig. 8], the navigation assistance system 200 is used to pilot an autonomous vehicle. The state estimated by a Kalman filter 50 consists of three elements, namely the orientation, position, and speed of the autonomous vehicle. Based on the state estimate, a computing unit 270 determines which commands should be sent to steer the vehicle along a desired trajectory. In this example, the Kalman filter 50 receives measurements from an inertial measurement unit 218 as well as from certain additional sensors 216. A measurement anomaly detection unit 100 according to an embodiment of the invention monitors the Kalman filter, evaluates partial derivatives of the overall inconsistency, and detects measurement anomalies based on at least one of the partial derivatives.In the event of the detection of an anomaly, the device 100 according to the invention can issue an alert to, for example, the computing unit 270 or another vehicle control unit and / or a human or robotic operator.
[0157] Typically, an anomaly detection device and a navigation assistance system, according to one embodiment of the invention, have the hardware architecture of a computer programmed to implement the methods described in this document. In general, such an architecture comprises a processor, RAM, ROM, non-volatile flash memory, and communication means including one or more communication interfaces.
[0158] The read-only memory of such an architecture constitutes a storage medium, readable by the processor, on which a computer program is stored. comprising instructions for executing the steps of the anomaly detection process according to the invention. This computer program defines functional (and software, in this case) modules of the measurement anomaly detection device. These functional modules are configured to implement the steps of the detection process according to the invention.
[0159] Most often, the Kalman filter is also implemented in software. A common computer program can implement both the Kalman filter and the measurement anomaly detection device according to one embodiment of the invention.
[0160] Alternatively, the various functional modules described above can be implemented using electronic hardware components.
Claims
Claims
1. A computer-implemented method for detecting measurement anomalies in a Kalman filter state estimation system, the Kalman filter being intended to estimate, recursively, the state of a target, the target either being in a targeted physical system or constituting the targeted physical system, from a model of the physical system and the values of certain measurements provided by sensors, the method comprising: a) at each recursion n of a group of recursions (2V) in a given analysis time window, a step of determining the local inconsistency ln of the measurement values with respect to a prediction of the state of the target, the local inconsistency ln being calculated according to the following formula: i„ = iog\sn\+ formula in which zn corresponds to the innovation of the Kalman filter and Sn corresponds to the covariance of said innovation, b) a step of summing the values of the local inconsistencies on said group of recursions (N), the sum of the values of the local inconsistency on said group being designated as the global inconsistency L relating to this group; said detection method being characterized in that it comprises: c) a step of determining the gradient of the global inconsistency by calculating the partial derivative of the global inconsistency with respect to each of a plurality of variables, these variables being the measurements or the uncertainty parameters of the sensors given to the Kalman filter in the analysis window, the partial derivative with respect to the uncertainty parameters of the sensors being calculated according to the following formula: st 1 K + Ç'LvV formula in which Rn corresponds to a covariance matrix of the measurement noise, Kn corresponds to the Kalman gain, is an estimate of the state of the target taking into account the measurements yn of the recursion n, and Pn|n corresponds to a covariance matrix representative of the uncertainty of x„|„, and the partial derivative with respect to the measurements being calculated according to the following formula: dL _ i^T 3L , to-I. °yn « dL _ tt-T 3L I t^T 3L tç-1 ij dL ôR„ n ' 2 ' 2 I d) a step of detecting a measurement anomaly by evaluating the partial derivatives of the overall inconsistency determined during step c), and e) the selective generation of an indicator indicating the existence of a measurement anomaly depending on whether or not an anomaly is detected during the evaluation carried out in step d).
2. The anomaly detection method of claim 1, wherein the gradient of the global inconsistency is determined by backpropagation, the backpropagation equations being given according to the following formulas:
2. _ 9 f_jT ~ O », Z, » « n = S n - S zz}. -S àR„ 11 nnn n formulas in which is an estimate of the state of the target taking into account the measurements yn4 of the recursion n-1, and Pn|n4 corresponds to a covariance matrix representative of the uncertainty of .
3. Method for detecting measurement anomalies according to any one of claims 1 to 2, in which, during step c), the respective partial derivative of the overall inconsistency is determined with respect to the measurements / uncertainty parameters of each of the set (M) of successive recursions contained in the analysis window.
4. A method of detecting measurement anomalies according to any one of claims 1 to 3, wherein detecting a measurement anomaly in step d) comprises determining that the value of a partial derivative of the overall inconsistency exceeds a threshold.
5. A method for detecting measurement anomalies according to any one of claims 1 to 3, wherein detecting a measurement anomaly in step d) comprises calculating the scalar product between the gradient of the overall inconsistency determined in step c) and each of a plurality of predetermined profiles, each predetermined profile corresponding to a particular known anomaly, and detecting a measurement anomaly in step d) comprises identifying an anomaly corresponding to the closest profile.
6. A method for detecting measurement anomalies according to claim 5,
7. in which the predetermined profiles correspond to sinusoidal signals, the calculation of the scalar product being carried out by determining the Fourier transform of the group of partial derivatives of the global inconsistency with respect to the measurements. Device for detecting measurement anomalies in a state estimation system using a Kalman filter, the Kalman filter being intended to estimate, recursively, the state of a target, the target either being in a targeted physical system or constituting the physical system, from a model of the physical system and the values of certain measurements provided by sensors, comprising: a means for determining local inconsistency intended to determine, at each recursion n of a group of recursions in a determined analysis time window, the local inconsistency l„ of the values of the measurements with respect to a prediction of the state of the target, the local inconsistency ln being calculated according to the following formula: 4 = <^^(10); formula in which zn corresponds to the innovation of the Kalman filter and Sn corresponds to the covariance of said innovation; and an adder for summing the values of the local inconsistency for said group of recursions, the sum of the values of the local inconsistency being designated as the global inconsistency L relating to this group; the device for detecting measurement anomalies being characterized in that it comprises: a means for determining the gradient of the global inconsistency by calculating the partial derivative of the global inconsistency L with respect to each of a plurality of variables, these variables being the measurements or the uncertainty parameters of the sensors given to the Kalman filter in the analysis window, the partial derivative with respect to the uncertainty parameters of the sensors being calculated according to the following formula: , x T t)L _ y! 9L y 1 yT 9L yç-1 i | dL [ y ■ ç-1 ç-1 ^yç-1 dRn ~ n 11 ' 2 Zn ' 2 formula in which Rn corresponds to a covariance matrix of the measurement noise, Kn corresponds to the Kalman gain, is an estimate of the target state taking into account the measurements yn of the recursion n, and Pn|n corresponds to a covariance matrix representing the uncertainty of and the partial derivative with respect to the measurements being calculated according to the following formula: âL _ dy„ ,and an evaluation means intended to detect a measurement anomaly, from an evaluation of the partial derivatives of the global inconsistency determined by the gradient determination means, and in the event of detection of a measurement anomaly to produce an indicator indicating the existence of a measurement anomaly.
8. An anomaly detection device according to claim 7, wherein the gradient determining means is configured to determine the gradient of the global inconsistency by backpropagation, the backpropagation equations being given according to the following formulas:
8. _ rjTc~]rj rjT 'ri 3¼.4 " " « Æ 1 4 _ ç-i ç „ _ P dv formulas in which is an estimate of the target state taking into account the measurements yn4 of the recursion n-1, and Pn|n_i corresponds to a covariance matrix representative of the uncertainty of x,^.
9. A measurement anomaly detection device according to any one of claims 7 to 8, wherein the gradient determining means is configured to determine the respective partial derivative of the overall inconsistency with respect to the uncertainty measurements / parameters of each of the set of successive recursions contained in the analysis window.
10. A measurement anomaly detection device according to any one of claims 7 to 9, wherein the evaluation means is for detecting whether the value of a partial derivative of the overall inconsistency exceeds a threshold.
11. A measurement anomaly detection device according to any one of claims 7 to 9, wherein the evaluation means is configured to calculate the scalar product between the gradient of the overall inconsistency, produced by the gradient determining means, and each of a plurality of predetermined profiles, each predetermined profile cor- corresponding to a particular known anomaly, and the evaluation means is configured to detect a specific anomaly when the scalar product has a large amplitude.
12. A measurement anomaly detection device according to claim 11, wherein the predetermined profiles correspond to sinusoidal signals, the evaluation means being configured to calculate the scalar product by determining the Fourier transform of the group of partial derivatives of the overall inconsistency with respect to the measurements.
13. System for estimating the state of a target in a targeted physical system, comprising: a Kalman filter configured to produce, recursively, an estimate of the state of the target from a model of the physical system and the values of certain measurements provided by sensors, and a device for detecting measurement anomalies according to any one of claims 7 to 12.
14. A navigation aid system comprising: a computer adapted to perform the calculations of a Kalman filter in order to estimate, recursively, the state of a target, the target either being in a targeted physical system or consisting of the physical system, the state of the target consisting at least of the position of the target; and a set of sensors intended to provide the computer with measurements used for estimating the state of the target; wherein the computer is adapted to perform the functions of the measurement anomaly detection device of claims 7 to 12 to detect anomalies affecting the measurements provided to the Kalman filter by the set of sensors.
15. Navigation aid system according to claim 14, in which the set of sensors comprises at least one inertial measurement unit.
