A multi-functional BCI system for exigency assistance and environment control based on ML and IoT. (19th June 2020)