ML AI Project Log¶
DATE: October 18th, 2026¶
Project: Replace the current Kalman Filter used to process signals and create predictions with a custom ML fine-tuned to handle the specific noisy data from the rocket. Work with the Firmware team to understand the current system, how data is being collected and how signals are being sent. What sort of processing is currently being done on signals and how can ML improve it? Also be mentored on using C.
- Predicts state of system in the presence of noise
- Uses a dynamic model which describes the behavior of the system
- Noise is introduced as measurement noise and process noise which comes from the dynamic model
- Kalman Gain determines how much weight is given to the measurement verses the prediction to minimize the uncertainty of the new estimate
DATE: October 25th, 2026¶
Kalman Filter's with ML¶
Hybrid framework combining KF with RNN. Calculation of Kalman gain delegated to RNN. Best for non-linear systems where the state space is not fully known.
Kalman filters face two main problems: system model and noise model parameter identification. Machine learning can be used to determine these parameters. Hybrid ML and Kalman filters show results in higher accuracy and reliability.
Machine learning can be used to determine the state equations of the system based on experimental data when the dynamics of a system are hard to describe.
Machine learning can be used to estimate the parameters of a Kalman filter, such as determining the noise model parameters.
Use gated recurrent unit (GRN), a type of recurrent neural network (RNN), because it is light weight. Best used for predicting error.
Used a GRU-aided ESKF (error-state Kalman filter) for visual inertial odometry in this paper. Showed significant error reduction of up to 78% compared to filter that did not utilize ML. The GRU was used to predict error position error.
More info on ESKF. Good for nonlinear applications to accurately estimate error. Used in tandem with EKF (extended Kalman filter).
Using a small model it could be possible to run the ML-aided KF on a single M7 core with under 1MB of RAM and less than 250 kB of flash memory. Might be worth just adding a another board to the stack as it would provide significantly more compute and allow for a larger ML model.
DATE: November 1st, 2026¶
Kalman Filter's with ML (cont)¶
Use ML to model complex dynamics system. Uses gradient-based online optimization MPC to run large models with real-time results.Reduced positional tracking error by up to 82%.
Start with a lightweight dynamics model for the model to build off of, and have the model predict only residuals so a smaller model can be used. Use native machine learning batch differentiation (built into PyTorch or TensorFlow) to compute derivatives in parallel. Locally linearize the network graph at each timestep.
Hybrid framework, integrating GRUs with the KF to eliminate the need for Kalman Gain computations and explicit noise modelling and instead have the GRU model the noise. Works well for application where noise is colored and varies with time.
CKFNet uses 151k parameters, enabling real-time deployment. More efficient than KalmanNet.
DATE: November 15th, 2026¶
Project Switch: Focus is now to use ML for predictive trajectory control. Model will run on the ground instead of on the rocket. Goal is to provide a predicted trajectory in real-time to send to the drone instead of a static hardcoded location. Space is no longer a primary constraint, so the model can be larger. The main focus is speed so it can provide real-time predictions.
Language Choice¶
Python is a viable choice for prototyping and model training as it is easy for prototyping and R&D. The final deployment will need to be in C/C++ for real-time updates as Python is too slow.
Resources¶
Learning-Based Model Predictive Control
Sampling for Model Predictive Trajectory
Neural Network-Based Model Predictive Trajectory Tracking Control
DATE: November 22nd, 2026¶
Output Rate¶
Examined typical output rates for LB-MPC for drone trajectory control. Aim for 100 Hz output rate, but minimum should be 50 Hz.
LB-MPC for Quadrotors Tiny LB-MPC
A proposed architecture is to use a Long Short-Term Memory (LSTM) network as a prediction model for the MPC. Works best for non-linear systems. Could also use GRU which would provide faster output rate.