Journal

Gait Analysis and Fall Risk Prediction: Analysing Elderly Gait with Pressure Mat and Optical Flow

Gait Analysis และ Fall Risk Prediction: วิเคราะห์การเดินผู้สูงอายุด้วย Pressure Mat และ Optical Flow

May 12, 2026 · 1 min read
Gait Analysis and Fall Risk Prediction: Analysing Elderly Gait with Pressure Mat and Optical Flow

Gait Analysis as a Fall Risk Biomarker

Research shows gait speed below 0.8 m/s is a strong fall risk predictor in elderly people. Scientists call walking speed the sixth vital sign because it simultaneously reflects neurological, musculoskeletal, and balance health. Changes in gait can be detected 6–12 months before a fall occurs.

Gait Analysis Technologies for the Home

Pressure Mat Array (Floor Pressure Sensor): lay a pressure-sensitive mat 3–6 metres along the main walking path. Measures foot pressure distribution on every step — capturing step length, step width, cadence, and left-right pressure asymmetry.

VelSi Pressure Mat (commercial): a 16×16 pressure sensor grid priced at 15,000–50,000 THB — detailed data but expensive for consumer use.

DIY Pressure Mat: FSR (Force Sensitive Resistor) array with Arduino/ESP32 reading raw ADC values and publishing via MQTT — cost 2,000–5,000 THB. Zone-level data only, but adequate for detecting step patterns.

Optical Flow Camera (privacy-safe): ceiling-mounted camera looking down. OpenCV optical flow analysis computes the speed of the person’s centre of mass — no face recorded, only velocity vectors. Privacy-preserving.

Depth Camera (Intel RealSense D435): depth map enables 3D joint position tracking (skeleton tracking) for the most detailed gait parameters — cost 8,000–15,000 THB.

Gait Parameters and Thresholds

Gait speed: normal for elderly 0.8–1.2 m/s. Below 0.8 m/s = moderate risk. Below 0.6 m/s = high fall risk — inform a doctor.

Step length: normal 50–70cm (men), 45–60cm (women). Drop >20% from baseline within 1 month → yellow alert.

Cadence (steps/min): normal 100–120. Drop below 80 steps/min may indicate pain or muscle weakness.

Step width (base of support): increase above 30cm indicates balance compensation for worsening stability.

Double support time (both feet on ground simultaneously): increase >30% of gait cycle → high fall risk.

Digital TUG Test (Timed Up and Go)

Standard TUG: sit in chair, stand, walk 3 metres, return and sit. Normal <12 seconds; 12–20 seconds = moderate risk; >20 seconds = high risk.

Digital TUG in Home Assistant: pressure mat or camera detects when the person rises from the chair (chair has a pressure sensor) and stops the timer when they sit again. HA logs the time and tracks a weekly trend. If TUG time increases >20% from baseline, the family is alerted.

Home Assistant Gait Monitoring Automation

A Python script running at 20:00 daily processes that day’s gait data, calculates a Daily Gait Score, and compares it to the 30-day rolling average. If the score falls below threshold, a weekly LINE OA summary is sent: Gait Speed x.x m/s (trend ↑↓), TUG x.x seconds, Fall Risk: 🟢/🟡/🔴.

ROI and Fall-Related Healthcare Cost Reduction

Hip fracture treatment costs for elderly Thai patients: 150,000–500,000 THB. Gait monitoring system cost: 5,000–20,000 THB one-time. Preventing even a single fall returns the investment many times over.

Questions & answers

Is gait speed <0.8 m/s really a fall risk indicator — is there research to support this?
Yes. The Studenski et al. meta-analysis (JAMA 2011, 7,000+ participants) found gait speed to be the most accurate predictor of mortality, hospitalisation, and fall risk in elderly people. Gait speed <0.8 m/s carries 2–3× the fall risk of ≥1.0 m/s.
Is building a DIY pressure mat achievable, and what skills are required?
Yes, for anyone with basic Arduino/electronics knowledge. An FSR array costs 300–500 THB per mat. Connect to Arduino Nano/ESP32, use a CD4051 ADC multiplexer to read multiple sensors with few pins, read ADC values, and publish via MQTT to Home Assistant. No advanced software skills required.
Does an optical flow camera record facial images — is there a privacy concern?
If designed correctly — overhead mounting + OpenCV optical flow — it computes only velocity vectors of moving objects. No video frames are recorded or stored. The elderly person appears as a white blob on background. PDPA compliant.
How does a digital TUG test compare with a clinical test?
The home digital TUG can be measured daily, catching decline trends far faster than a clinic visit every 6 months. The limitation is lower standardisation (different chairs, slightly different distances). It is appropriate for screening, not diagnosis.

Related reading