The root problem of drift detection and correction is predicting sensor measurements. This can usually be accomplished in two ways: This usually requires one or more time series of data and an algorithm which consumes these time series and produces a prediction for the value a sensor should measure next.