Brain-computer interface (BCI) is a collaboration between a brain and a device that enables signals from the brain to direct…