Skip to main content

Table 4 The confusion-matrix and accuracy scores per mode, expressed as percentages, compared with the STAMP-2 study

From: An open-source tool to identify active travel from hip-worn accelerometer, GPS and GIS data

  Observed mode Mode Positive predictive valuea Sensitivityb F1 scorec
Cycle Walk Train Vehicle Stationary
Predicted mode Cycle 1381 290 0 109 182 Cycle 70.4 67.9 69.1
Walk 17 7729 0 1 202 Walk 97.2 73.6 83.8
Train 1 39 716 0 320 Train 66.5 89.8 76.5
Vehicle 602 329 0 14,242 2840 Vehicle 79.1 98.1 87.5
Stationary 33 2112 81 171 179,539 Stationary 98.7 98.1 98.4
  1. aPositive predictive value (PPV) or Precision, the ratio of true positives to the sum of true and false positives
  2. bSensitivity or Recall/ True positive rate/Detection rate, the ratio of true positive to true positives and false negatives
  3. cF1 score, the harmonic mean of PPV and sensitivity