
An activity-recognition AI model must turn a few seconds of sensor readings into a word such as “walking” or “standing.” Yenra tested a simple classifier on a public smartphone dataset. A row of mistaken stair descents reveals more about this task than the overall accuracy alone.
What did the volunteers actually wear?
Thirty volunteers wore a smartphone at the waist while performing six labeled activities. The archive contains features computed from motion signals in short, overlapping windows. We used the supplied split: 7,352 training windows from 21 people and 2,947 test windows from nine different people. A window is a unit of scoring. The number of independent test participants is nine. UCI Human Activity Recognition Using Smartphones dataset

Where the activity classifier made mistakes
For each training activity, Yenra averaged its 561 supplied feature values. We assigned each held-out window to the closest average by Euclidean distance. The classifier got 2,491 of 2,947 windows right (84.5%). Always guessing the training set’s most frequent activity, lying, got 537 right (18.2%). Neighboring windows share sensor readings, so treating every window as an independent person would overstate the precision of this comparison.

Download the six-activity confusion matrix (CSV). Rows are recorded activities. The six prediction columns contain window counts. Data adapted from the UCI Human Activity Recognition Using Smartphones archive, CC BY 4.0. Creative Commons license.

Which mistake matters for the intended use?
The classifier correctly labeled 261 of 420 downstairs windows. It called 100 level walking and 59 upstairs. For a total walking-time estimate those errors matter less than for a stair-descent counter. A wristwatch, a phone in a bag, or someone using a mobility aid can produce different motion patterns. To use the result in that setting, collect a comparison against observed activity there. How AI Measures Gait From Phone Video

Try it with the evidence
Read the downstairs row
Source notes. Yenra’s held-out test of the UCI smartphone recordings. Of 420 windows recorded as downstairs, 261 were labeled downstairs, 100 level walking and 59 upstairs. Nine people supplied all held-out windows.
Prompt. Calculate recall for downstairs. Which confusion was most frequent? What else would you need to compute precision for a downstairs alert or generalize to wristwatches?
Check your reading
Downstairs recall was 261/420, or 62.1%. Level walking was the most common wrong label. Precision needs all windows predicted downstairs, including other true activities. Generalizing to a wristwatch needs a separate comparison using wrist recordings and reference activities.
Illustrated field notes
Movement signals, feedback and daily activity






