Available at: https://digitalcommons.calpoly.edu/theses/3454
Date of Award
11-2026
Degree Name
MS in Computer Science
Department/Program
Computer Science
College
College of Engineering
Advisor
Jonathan Ventura
Advisor Department
Computer Science
Advisor College
College of Engineering
Abstract
Daily step count is a simple, widely used measure of physical activity, yet validating a device still requires trained annotators to watch hours of video and mark every heel strike by hand. Automating this would make real-world validation far cheaper, but video gait analysis has been largely developed in the laboratory, with fixed cameras, clear views, and people walking in straight lines. We study three-hour videos of adults going about their daily lives, filmed by a camera operator, as they sit, shuffle, and walk, often occluded, distant, or in a crowd. We extract 2D pose with AlphaPose and image features with DINOv2, train temporal models to find each heel strike, and evaluate them on 116,074 hand-annotated steps from 40 sessions with participant-grouped cross-validation. Controlled experiments test how the problem is best represented and modeled, and what makes it so challenging.
Most missed steps, and a disproportionate share of false steps, occur while the person is standing and moving, where steps are brief and irregular. Gating our predictions on the person’s learned activity state helps less than expected, because most remaining errors happen while the person is active. Our highest-scoring single model is a spatio-temporal transformer in which lower-body pose queries the image features. Several models perform similarly, and averaging four beats every single model, mostly by canceling each run’s unique errors. The ensemble finds steps with an F1 of 0.8584 within ±0.3 s (0.8291 within ±0.2 s) and a mean absolute error of 3.06 steps per minute, at almost no extra cost. The ensemble matches a thigh-worn activPAL in per-minute error, and over whole sessions it is closer to the coded counts (MAPE 11.4% against 15.1%) and, unlike the activPAL, statistically equivalent to them within ±10%, a zone used to judge activity monitors, including step counters. Finally, we show how the choice of metrics and aggregation shapes these conclusions.