🧒 Pediatric Rehabilitation: Standing Balance, Neural Delay and Ankle Orthosis

2D interactive simulation · educational model, not medical advice
The science

The model. Standing still is an unstable balancing act: the body behaves like an inverted pendulum pivoting at the ankles, θ̈ = (g/l) sinθ without control — gravity tries to tip it over with rate ω0² = g/l, where the centre-of-mass height is taken as l ≈ 0.58 × body height (a typical anthropometric ratio). A shorter child has a larger ω0: the body tips faster and needs quicker corrections.

Control with delay. The nervous system measures lean angle and angular velocity and commands an ankle torque, but only after the transport and processing delay τ (about 0.1-0.15 s in adults, often longer in young children or with neurological conditions). In normalised form: θ̈ = ω0² [ sinθ − koθ − Kpθ(t−τ) − Kdθ̇(t−τ) + ξ(t) ]. Kp is in units of m g l, Kd in seconds, ko is a passive ankle-foot orthosis stiffness (no delay), and ξ is noise (an Ornstein-Uhlenbeck process, 0.1 s correlation). Falls (lean > 20°) are caught by a harness and reset, as in clinical training devices.

Stability. Linearising gives the characteristic equation s² − ω0²(1 − ko) + ω0²(Kp + Kds)e−sτ = 0. The page solves it with Newton's method in the complex plane; the dominant root's real part is the growth rate (negative = stable). The map on the right classifies a grid of (delay, Kp) combinations by simulation. Checks: (1) with τ = 0 the oscillation period equals 2π/ωd; (2) with a 180 ms delay the simulated decay of the sway envelope matches the dominant root; (3) a sign check on an undamped case. Delay turns more gain into less stability — why an orthosis, which provides stiffness with no delay, can help.

Honest simplifications. One rigid segment, a point-mass body, ankle strategy only (no hip strategy, vision or vestibular detail, no foot/ankle compliance or muscle dynamics). The height-to-COM ratio, gains, delays and noise levels are illustrative round numbers, not patient measurements; real children vary widely and balance develops with age. This is a teaching model, not clinical guidance.