Table 4. Confusion matrix from the execution with the best score (ANN, SNV+D, D2W5 and parameter set 10) with an overall correctly classified value of 87.25% (20 leaves per variety).
Classified as | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Ve | M | V | A | T | G | WG | WT | PX | Vi | CF | Gr | CS | C | S | Te | PN | Ca | Ma | TN | % | |
Ve | 10 | 1 | 3 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 50 |
M | 0 | 14 | 5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 70 |
V | 1 | 3 | 15 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 75 |
A | 0 | 0 | 0 | 19 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 95 |
T | 0 | 0 | 0 | 0 | 19 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 95 |
G | 0 | 0 | 0 | 0 | 0 | 18 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 90 |
WG | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 0 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 80 |
WT | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 17 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 85 |
PX | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 18 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 90 |
Vi | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 19 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 95 |
CF | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 100 |
Gr | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 19 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 95 |
CS | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 100 |
C | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 19 | 0 | 0 | 0 | 0 | 0 | 0 | 95 |
S | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 18 | 0 | 0 | 0 | 0 | 0 | 90 |
Te | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 17 | 1 | 0 | 0 | 0 | 85 |
PN | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 18 | 0 | 1 | 0 | 90 |
Ca | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 19 | 0 | 0 | 95 |
Ma | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 2 | 0 | 14 | 0 | 70 |
TN | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 20 | 100 |
Each row represents the actual variety and in which one was classified. Bolded values (diagonal of the matrix) are the number of samples properly classified. The last column shows the correctly classified percentage for each variety.
ANN: Artificial Neural Network; SNV+D: Standard Normal Variate followed by De-trending; D2W5: Second-degree derivative and window size 5 Savitzky-Golay filter.
Ve: Verdejo; M: Malvasia; V: Viura; A: Albariño; T: Treixadura; G: Godello; WG: White Grenache; WT: White Tempranillo; PX: Pedro Ximénez; Vi: Viognier; CF: Cabernet Franc; Gr: Grenache; CS: Cabernet Sauvignon; C: Carmenere; S: Syrah; Te: Tempranillo; PN: Pinot Noir; Ca: Caladoc; Ma: Marselan; TN: Touriga Nacional.