A real-time EEG-based BCI system for attention recognition in ubiquitous environment | Synapse