Confusion matrix of the final results in database of 4500 remaining patients for different values of L. The performance obtained can be seen in shades of gray. FS 1: FFS-SVM with penalty error in minority class. FS 2: FFS-SVM with artificial balance. FS 3: variable selection with RF. Waking and sleeping states are labeled as W and S.