Skip to content

MATLAB/Simulink implementation of Kalman filters and its non-linear variants

License

Notifications You must be signed in to change notification settings

AkuG18O2/kalman-filter

Repository files navigation

Kalman Filters

MATLAB/Simulink implementation of Kalman filters and its non-linear variants

Linear Kalman Filter

  • Kalman Filter is an optimal state observer
  • Also called Linear Quadratic Estimation (LQE)
  • Works for linear systems
  • Takes into account statistical noise
  • Combines estimated and measured readings from different sources using joint probability distribution to estimate an optimal reading

Process noise (wk): Noise due to inexact nature of modelled physical equations, such as deviations due to air pressure. Needs to be tuned. Measurement noise (vk): Noise characteristic to the sensor's working. Needs to be obtained from sensor calibration.

  • Both wk and vk can be assumed to be mutually uncorrelated white Gaussian noise processes.

  • The state-space equations of the system are:

image

  • In control theory, a state observer or state estimator is a system that provides an estimate of the internal state of a given real system, from measurements of the input and output of the real system.

image

image

  • In essence, Kalman filter has two steps: Predict and Update

image

image

image

image

Non-linear systems

image

image image

Sigma points

image image

Modelling

Linear model image

Non-linear model image

Kalman filter image

Extended kalman filter image

Unscented kalman filter image

Demo

image

Follow up

  • Tuning of kalman filter parameters and initial state assumptions
  • Normalized error visualization
  • Implementation of particle filter for non-gaussian system
  • Model a real system and compare results with actual hardware testing

Applications in electronics

  • Battery pack state of charge estimation using ESC cell model
  • Sensorless motor drive control and state estimation
  • Automotive navigation systems and sensor fusion
  • Image processing and noise removal

References

About

MATLAB/Simulink implementation of Kalman filters and its non-linear variants

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published