A Generic Framework for Adaptive BCI Chapter in a Brain-Computer Interfaces Handbook: Technological and Theoretical Advances!! Accepted!!