Skip to main content

Table 2 The confusion-matrix and accuracy scores per mode, expressed as percentages, for the cross-validated model

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 8062 33 5 328 20 Cycle 95.4 96.2 95.8
Walk 10 9171 21 32 357 Walk 95.6 92.3 93.9
Train 3 18 12,296 95 18 Train 98.9 97.5 98.2
Vehicle 260 6 139 20,911 159 Vehicle 97.4 96.9 97.1
Stationary 47 710 155 214 45,317 Stationary 97.6 98.8 98.2
  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