Optimization of brain-computer interfaces door