Machine-learning techniques for EEG data