Table 5. Confusion matrix for the test dataset.
Prediction by AI | Performance index | |||||||
Class 1; Migraine | Class 2; Non-migraine headache | Total | Sensitivity (Recall) | Precision | Specificity | F-value | ||
Ground truth based on ICHD-3 | Class 1; Migraine | 63 | 8 | 71 | 88.7% | 90.0% | 96.5% | 89.4% |
Class 2; Non-migraine headache | 7 | 195 | 202 | 96.5% | 96.1% | 88.7% | 96.3% | |
Total | 70 | 203 | 273 |