Skip to main content

Table 2 Confusion matrices for Binary Decision Tree, Random Forest, and Support Vector Machine classifiers trained on wrist data

From: Machine learning algorithms for activity recognition in ambulant children and adolescents with cerebral palsy

Activity Class

Binary Decision Tree

Observed

Prediction

SED

SUM

CW

BW

 1. SED

1294 [0.95]

70 [0.05]

0 [0.00]

0 [0.00]

 2. SUM

47 [0.03]

1009 [0.74]

124 [0.09]

184 [0.13]

 3. CW

7 [0.01]

90 [0.12]

370 [0.48]

310 [0.40]

 4. BW

18 [0.01]

197 [0.13]

163 [0.10]

1176 [0.76]

Random Forest

 1. SED

1311 [0.96]

47 [0.03]

0 [0.00]

6 [0.00]

 2. SUM

30 [0.02]

1267 [0.93]

16 [0.01]

51 [0.04]

 3. CW

7 [0.01]

75 [0.10]

442 [0.57]

253 [0.33]

 4. BW

20 [0.01]

135 [0.09]

242 [0.16]

1157 [0.74]

Support Vector Machine

 1. SED

1327 [0.97]

37 [0.03]

0 [0.00]

0 [0.00]

 2. SUM

51 [0.04]

1242 [0.91]

28 [0.02]

43 [0.03]

 3. CW

9 [0.01]

112 [0.14]

467 [0.60]

189 [0.24]

 4. BW

17 [0.01]

170 [0.11]

256 [0.16]

1111 [0.71]

  1. Numbers represent observation counts. Percentage of observations for a given class reported in brackets. Values in bold face indicate number and proportion of observations within each class correctly classified
  2. SED sedentary, SUM standing utilitarian movements, CW comfortable walk, BW brisk walk