1
00:00:04,140 --> 00:00:09,210
In this video, we're going to look at the measurement innovation calculations and how that applies

2
00:00:09,210 --> 00:00:10,950
for the extended coming Filton.

3
00:00:11,760 --> 00:00:17,370
So the common field of cricks for the state estimation errors by fitting back a weighted term based

4
00:00:17,370 --> 00:00:19,830
on the observation of measurement errors.

5
00:00:20,100 --> 00:00:24,710
So the measurement error is pretty much the difference between the predicted measurement from the process

6
00:00:24,720 --> 00:00:28,480
model and the actual observed measurement from the actual sensor.

7
00:00:29,430 --> 00:00:34,770
So the first step in the update process is to calculate the measurement innovation, which is this measurement

8
00:00:34,770 --> 00:00:35,150
error.

9
00:00:35,370 --> 00:00:38,590
And we also want to work out the measurement error covariance.

10
00:00:38,610 --> 00:00:43,110
So this is going to be how much error we think is inside this innovation measurement.

11
00:00:44,510 --> 00:00:50,030
So we'll start by looking at the measurement innovation, and this is for the state, we can predict

12
00:00:50,030 --> 00:00:51,020
the current measurement.

13
00:00:51,050 --> 00:00:53,480
So this is our said K. estimate.

14
00:00:53,510 --> 00:00:59,300
So this is going to be our predicted measurement four times a week based on the current Empire State,

15
00:00:59,300 --> 00:01:02,130
which is going to be ex hat for the Tompsett.

16
00:01:02,130 --> 00:01:05,870
K. And this is going to be a AIPA because we have the negative.

17
00:01:05,900 --> 00:01:11,240
So this is going to be using all the information up to this time step by not including this timestep.

18
00:01:11,630 --> 00:01:18,230
And we can use the nonlinear measurement function hech so we have our predictive measurement is going

19
00:01:18,230 --> 00:01:25,670
to be the measurement model evaluated at our current best estimate and with zero measurement noise.

20
00:01:27,540 --> 00:01:32,520
We will also define the innovation, make the music to be the difference between the predicted measurement,

21
00:01:32,520 --> 00:01:37,320
al-Said said hat and the true measurement value said, sorry, this is what we're going to be getting

22
00:01:37,320 --> 00:01:38,010
from the sensor.

23
00:01:38,520 --> 00:01:41,780
So the innovation is just going to be simply defined as here.

24
00:01:42,120 --> 00:01:46,890
So the innovation vector is going to be the difference between the true measurement and what our predicted

25
00:01:46,890 --> 00:01:47,640
measurement is.

26
00:01:47,940 --> 00:01:52,260
And again, I'll predict the measurement is just going to take a current based estimate of the state,

27
00:01:52,560 --> 00:01:57,090
put it into our measurement model to calculate a predictive measurement, and we just going to get the

28
00:01:57,090 --> 00:01:58,200
difference between the two.

29
00:02:01,010 --> 00:02:05,870
So you can see already the difference between the linear carbon filter and the extended carbon filter

30
00:02:05,870 --> 00:02:11,660
in the linear algebra, we use the linear model here, while in the extent that we're using the full

31
00:02:11,660 --> 00:02:14,090
nonlinear model here to calculate the innovation.

32
00:02:16,650 --> 00:02:21,600
So the calculation of the measurement innovation for the state is fairly straightforward, so now we

33
00:02:21,600 --> 00:02:25,660
need to work out how we can calculate the covariance of this measurement innovation.

34
00:02:25,950 --> 00:02:29,490
So how do we work out the covariance matrix for the innovation?

35
00:02:32,940 --> 00:02:39,000
So the innovation covariance is the matrix and we've seen is previously defined using this equation

36
00:02:39,000 --> 00:02:39,280
here.

37
00:02:39,300 --> 00:02:46,290
So so the covariance matrix is for the innovation is simply the expectation operator on the innovation

38
00:02:46,290 --> 00:02:46,770
squared.

39
00:02:46,980 --> 00:02:49,580
So this is basically innovation is a measurement error.

40
00:02:49,590 --> 00:02:51,740
So this is the measurement error squared.

41
00:02:51,810 --> 00:02:55,500
So this gives us the covariance matrix for the innovation.

42
00:02:58,260 --> 00:03:03,600
And we can calculate this term by substituting in our equation for our innovation, and this gives us

43
00:03:03,600 --> 00:03:04,680
this equation here.

44
00:03:05,130 --> 00:03:10,990
So this equation is very similar to the linear algebra, is it, of using our measurement model metric

45
00:03:11,020 --> 00:03:14,160
D.H we're now using the Jacobins instead.

46
00:03:15,090 --> 00:03:22,110
So the Jacobin here is a Jacobean of the measurement model with respect to the state and the describing

47
00:03:22,110 --> 00:03:26,160
of here is a Jacobean of the measurement model with respect to the noise.

48
00:03:26,850 --> 00:03:33,420
So this is very similar to the linear algebra set of the matrixes and metric we now use that you Caribbeans

49
00:03:33,420 --> 00:03:37,180
and again these definition of the describing list down here.

50
00:03:37,200 --> 00:03:43,020
So we have the describing or the measurement model with respect to the state vector X, and we're going

51
00:03:43,020 --> 00:03:45,390
to evaluate this at a current best estimate.

52
00:03:45,670 --> 00:03:48,750
And the same thing for our measurement noise Jacobean.

53
00:03:48,750 --> 00:03:54,110
We have the we have the partial derivatives of the measurement model with respect to the noise.

54
00:03:54,120 --> 00:03:57,210
And again, we're evaluating it about a current state estimate.

55
00:04:00,080 --> 00:04:03,980
So we can take a direct comparison between the two different types of the common filters that we've

56
00:04:03,980 --> 00:04:09,410
covered, so for the linnear common filter, we calculate the innovation vector by basically the difference

57
00:04:09,410 --> 00:04:11,840
between the current measurement and the measurement model.

58
00:04:12,890 --> 00:04:17,390
And out of that, we get the innovation now for the extend the current filter instead of just using

59
00:04:17,390 --> 00:04:20,760
the linear model, which we now have access to the nonlinear model.

60
00:04:20,780 --> 00:04:27,140
So we basically subtract off the nonlinear model from our current measurement, so we get our nonlinear

61
00:04:27,500 --> 00:04:28,580
innovation here.

62
00:04:29,090 --> 00:04:34,130
So they're very similar, except now we're using the nonlinear measurement model compared to the linear

63
00:04:34,130 --> 00:04:34,910
measurement model.

64
00:04:36,020 --> 00:04:37,330
So that's for the innovation.

65
00:04:37,670 --> 00:04:40,970
We can also have a look at the calculation of the innovation covariance.

66
00:04:41,360 --> 00:04:46,880
The linear comma here, as we've seen before, just uses the measurement model metrics again to work

67
00:04:46,880 --> 00:04:48,880
out the innovation covariance.

68
00:04:49,250 --> 00:04:57,050
So basically it uses the covariance at the current time step multiplies it using the uncertainty, transformation

69
00:04:57,050 --> 00:05:02,520
for the linear measurement model and adds on the additional noise from the sensor.

70
00:05:02,810 --> 00:05:05,450
And this is where we get our innovation covariance.

71
00:05:06,500 --> 00:05:11,480
The extend coming filter is pretty much exactly the same, except now we're using the linear approximation

72
00:05:11,480 --> 00:05:16,370
by using the Jacobean of the measurement models instead of the matrices here.

73
00:05:16,760 --> 00:05:22,340
And again, we can add on the noise covariance at the end if we just have additive noise.

74
00:05:25,290 --> 00:05:30,270
So you can see comparing the two, they're very similar, we're just using a linear approximation instead

75
00:05:30,270 --> 00:05:35,580
of using the linear model and we have to use a linear approximation because we have a nonlinear model.

76
00:05:36,990 --> 00:05:42,540
So in summary, when we calculate the measurement innovation, we can calculate the nonlinear measurement

77
00:05:42,540 --> 00:05:49,050
innovation by taking the difference between the measurement from the sensor, minus the estimated measurement

78
00:05:49,050 --> 00:05:56,430
from the nonlinear measurement model, we can calculate the covariance inside the innovation, the metrics

79
00:05:56,430 --> 00:06:02,970
by just using the linear approximation, which is the which is just using the Jacobean matrices, which

80
00:06:02,970 --> 00:06:08,310
are the partial derivatives of the measurement model with respect to the state vector or the measurement

81
00:06:08,310 --> 00:06:09,930
model with respect to the noise.

82
00:06:13,280 --> 00:06:18,470
So the calculation of the innovation and the innovation covariance should be fairly straightforward

83
00:06:18,470 --> 00:06:23,810
to what we've already done, it should follow pretty much similar steps as linear common filter is that

84
00:06:23,810 --> 00:06:28,940
now we're going to be using the nonlinear model and we're going to use a linear approximation of the

85
00:06:28,940 --> 00:06:29,810
nonlinear model.
