HomeRehabilitation & Sports MedicineWalking Gait Analysis

🏃 Walking Gait Analysis

Model normal and pathological human walking gait using the double-pendulum inverted model. Visualise joint angles, ground reaction forces, and energy efficiency. Compare healthy gait with Parkinson's, stroke, and prosthetic limb patterns.

Rehabilitation & Sports Medicine3DEasy60 FPS
walking-gait ↗ Open standalone

About this simulation

This interactive simulator animates human walking as an inverted pendulum, where the body vaults over the stance leg while hip, knee and ankle joints follow characteristic angle profiles across the gait cycle. It plots those joint-angle curves alongside a double-humped ground reaction force trace, and lets you compare a healthy pattern against Parkinson's, stroke and prosthetic gait. The model captures why walking is energetically efficient: most kinetic and potential energy is exchanged passively, much like a swinging pendulum.

🔬 What it shows

A stick-figure walker driven by sinusoidal hip, knee and ankle angle functions over the normalised gait cycle (0 to 1), with right and left legs offset by half a cycle. The pendulum period T = 2π√(L/g) sets natural cadence, and a Gaussian double-hump approximates ground reaction force, peaking near 1.2× body weight at heel strike.

🎮 How to use

Pick a gait mode (Normal, Parkinson's, Stroke or Prosthetic) to load that pattern's preset. Then adjust the three sliders — walking speed (0.3–2.5 m/s), step length (0.2–1.2 m) and cadence (40–180 steps/min). The stats panel updates stride length, energy cost, symmetry index and the live stance/swing phase.

💡 Did you know?

In healthy walking the stance phase occupies roughly 60% of the gait cycle and swing the remaining 40%, with a brief double-support period when both feet touch the ground. Running eliminates double support entirely, which is one biomechanical definition separating a walk from a run.

Frequently asked questions

What is gait analysis?

Gait analysis is the systematic study of human walking, measuring how the legs, joints and body move through each step. Clinically it quantifies parameters such as joint angles, step length, cadence, ground reaction forces and symmetry to diagnose movement disorders and plan rehabilitation. This simulation presents a simplified, visual version of those measurements.

How does the inverted pendulum model work?

During the stance phase the supporting leg behaves like a rigid strut, so the body's centre of mass arcs over the planted foot like an inverted pendulum. Potential energy peaks at mid-stance and converts back to kinetic energy as the body falls forward, recovering up to about 65% of the mechanical energy passively. The natural swing period scales as T = 2π√(L/g), where L is leg length and g is gravity.

What do the controls and modes change?

The mode buttons load presets for healthy and pathological gait: Parkinson's gives short, shuffling, variable steps; stroke produces an asymmetric pattern with stiff-knee and foot-drop on the affected side; prosthetic shows reduced knee flexion. The sliders independently set walking speed, step length and cadence, which together determine stride length, energy cost and the animation's cycle period.

Is the simulation biomechanically accurate?

It is a teaching approximation rather than a clinical-grade model. The joint-angle curves, double-hump ground reaction force and the roughly 60/40 stance-to-swing split reflect real walking patterns, and the preset values for speed, cadence and symmetry are realistic. However the joints are driven by simple sinusoids rather than solved from full musculoskeletal dynamics, so fine timing and forces are illustrative only.

Why does the ground reaction force have two peaks?

The double-humped vertical force is a hallmark of normal walking. The first peak occurs just after heel strike as the body weight loads onto the limb and decelerates the downward motion of the centre of mass; the trough at mid-stance happens as the body rises over the leg; the second peak comes at push-off when the ankle propels the body forward. Loss of one peak often signals a gait abnormality.

⚙ Under the hood

Gait analysis biomechanics with inverted pendulum model and ground reaction forces for rehabilitation.

gait analysisbiomechanicsrehabilitationinverted pendulumGRF

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)