🧪 Omnipotent Medical Infinite Medical Simulation
Interactive 3D simulation of a closed-loop artificial pancreas: a tireless PID controller reads blood glucose off a Bergman minimal-model bloodstream and doses insulin automatically, forever, to hold glucose in range through meals.
An "omnipotent" medical system is, in practice, a tireless one: a controller that reads a patient's blood glucose thousands of times a day and doses insulin automatically, without ever needing sleep, food, or a break. This simulation builds that loop for real. Blood glucose, remote insulin action and plasma insulin evolve under Bergman's minimal model — the same three-state equations used to design and validate actual artificial-pancreas hardware — while a PID controller watches the glucose trace and adjusts insulin infusion every simulated minute to hold it near 100 mg/dL. Trigger a carbohydrate meal and watch glucose rise as the gut empties, the pump respond, and the system settle back into range; toggle the closed loop off to see the same meal handled by nothing but the body's own (impaired) insulin response, and tune patient sensitivity or controller aggressiveness to see how each reshapes the correction.
This interactive 2D simulation demonstrates the potential of an 'infinite' medical simulation powered by an 'omnipotent' system, highlighting its capacity for complex modeling and analysis.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install