True internal state Self-model estimate
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Predictive Homeostasis — A Self-Modeling Organism

A biological system that "knows itself completely" is a myth — what real organisms have instead is a continuously-updated internal model that predicts their own next state and corrects it using noisy feedback from the environment. This simulation renders that loop directly: a synthetic organism senses a noisy signal about its own internal state, runs a live scalar Kalman filter to form a belief, and feeds a corrective action back into its body to stay near a homeostatic setpoint. Tune the environmental disturbance, the sensor noise and the controller gain to see the classic trade-offs of predictive control — trusting the model over the sensor, overshoot from an over-aggressive controller, and the health cost of drifting outside survivable limits — play out on a 3D self-regulating body.