Table 2.
Summary of overall results obtained using kNN classifier with tenfold cross-validation
| Metric | AD | Brain tumor 1 | Brain tumor 2 | Merged dataset | 
|---|---|---|---|---|
| Accuracy (%) | 100 | 94.67 | 98.19 | 97.80 | 
| Precision (%) | 100 | 94.41 | 98.18 | 98.20 | 
| Recall (%) | 100 | 93.84 | 98.19 | 98.15 | 
| F1-score (%) | 100 | 94.10 | 98.19 | 98.16 | 
Moreover, the obtained confusion matrices for four datasets are given in Fig. 7