Jaehyeon Kim
04/19/2026, 10:48 AMCoProcessFunction and Flink's managed state to buffer and align the delayed streams safely.
• Once the streams are joined, the operator runs a prequential train/test loop to update an Online ML model (using the Massive Online Analysis framework) on the fly, adapting to physical concept drift.
• It also implements a stateful Shadow Mode router to constantly evaluate the AI's residual error against a deterministic physics baseline in real-time.
The whole stack is containerized so you can easily spin it up, trigger a mechanical shock via a UI, and watch how Flink joins the streams and reroutes the fallback logic.
• Blog Post: https://jaehyeon.me/blog/2026-04-21-digital-twin-online-machine-learning/
• GitHub: https://github.com/jaehyeon-kim/oml-digital-twin-hotrolling