Pioreactor / pioreactor

Hardware and software for accessible, extensible, and scalable bioreactors. Built on Raspberry Pi.
https://pioreactor.com
MIT License
92 stars 9 forks source link

How does noise scale with turbidity? #74

Open CamDavidsonPilon opened 3 years ago

CamDavidsonPilon commented 3 years ago

Our Kalman Filter is non stationary, and so we should feel okay scaling our matrices as the experiment progresses. One important parameter is the observation noise covariance. For example, at low turbidity (with zero growth in the process, i.e. a sterile media), there is some noise due to whatever. When the turbidity increases, the noise increases as well - but by how much? This is the factor we should be scaling the observation noise covariance by.

Quick tests show that scaling the matrix by the OD states works somewhat well.

But it may also make sense to scale with the growth rate - high gr => more noise?

CamDavidsonPilon commented 3 years ago

variance seems to rise near the peak of growth and immediately after

Screen Shot 2021-03-19 at 2 05 31 PM

Below is log-scale of rolling OD-mean vs OD-variance

Screen Shot 2021-03-19 at 2 15 48 PM

Scatter plot of the relationship is pretty strong, which suggests the variance should scale linearly with OD:

Screen Shot 2021-03-19 at 2 20 26 PM
CamDavidsonPilon commented 2 years ago

Another one:

Screen Shot 2022-02-16 at 12 48 44 PM Screen Shot 2022-02-16 at 12 49 12 PM