1. Introduction
Brain-Computer Interfaces (BCIs) assess brain signals and provide commands to output devices to carry out certain tasks. Brain-computer interfaces do not use neuromuscular output pathways [
1].
The primary objective of BCI is to substitute or reinstate functionality for those afflicted with neuromuscular conditions such as ALS, cerebral palsy, etc . Scientists have used electroencephalography, intracortical, electrocorticographic, and other brain signals to manipulate cursors, robotic legs, robotic arms, prosthetics, wheelchairs, TV remote control and several other devices since the first demonstrations of spelling and controlling individual neurons. BCIs have the potential to assist in the rehabilitation of individuals affected by stroke and other diseases. They have the potential to enhance the performance of surgeons and other medical professionals [
4] since more than one billion people (about 15% of the global population) are disabled, and half of that group lacks the financial means to get adequate medical treatment, according to the World Health Organization (WHO) [
5].
The rapid growth of a research and development enterprise in BCI technology generates enthusiasm among scientists, engineers, clinicians, and the public. Also, BCIs need signal-acquisition technology that is both portable and dependable, ensuring safety and reliability in any situation. Additionally, it is crucial to develop practical and viable approaches for the widespread implementation of these technologies. BCI performance must provide consistent reliability on a daily and moment-to-moment basis to align with the normal functioning of muscles. The concept of incorporating sensors and intelligence into physical objects was first introduced in the 1980s by students from Carnegie Mellon University who modified a juice vending machine so that they could remotely monitor the contents of the machine [
6].
In the last decade, EEG-based BCI has been successfully used with Convolutional Neural Networking (CNN) to detect diseases like epilepsy [
7]. EEG-based BCI technology has been also used to control a prosthetic lower limb [
8], [
9] or a prosthetic upper limb [
10], As expected in future, BCI will be widely spread in our lives, improving our way of living especially for disabled people, who may do different activities by speech imagery only [
11].
A network of physical objects, autos, appliances, and other things that are fitted with sensors, software, and network connections is referred to as the Internet of Things (IoT) [
12]. Because of this, they are able to collect and share information. Electronic devices, which are sometimes referred to as “smart objects”, refer to a wide range of technologies. These gadgets include simple smart home devices including smart thermostats, wearable devices like as smartwatches and apparel with Radio Frequency Identification (RFID) technology, as well as complex industrial gear and transportation systems .
The Internet of Things (IoT) technology enables communication between internet-connected gadgets, as well as other devices such as smartphones and gateways. This leads to the formation of a vast interconnected system of devices that can autonomously exchange data and perform a diverse array of tasks. This includes a diverse array of applications, such as monitoring environmental conditions, improving traffic flow - by use of intelligent cars and other sophisticated automotive equipment, and tracking inventory and shipments in storage facilities, among others. For people with severe motor disabilities, having a smart home represents a necessity nowadays, they can manage not only daily used devices from home, but also, be able to manage the security of the home [
15].
During the past years, many approaches have been made to control a smart object or a software application by using EEG-based BCI signals. The following paragraphs present several related works that discuss the issue of BCI home automation and security.
In 2018, Qiang Gao et al. [
16], have proposed a safe and cost-effective online smart home system based on BCI to provide elder and paralyzed people with a new supportive way to control home appliances. They used the Emotiv EPOC EEG headset to detect EEG signals where these signals are denoised, processed and converted into commands. The system has the ability to identify several instructions for controlling four smart devices, including a web camera, a lamp, intelligent blinds, and guardianship telephone. Additionally, they used Power over Ethernet (PoE) technology to provide both power and connectivity to these devices. The experimental results elucidated that their proposed system obtained 86.88 ± 5.30% accuracy rate of average classification.
In 2020, K. Babu and P. Vardhini [
17], have implemented a system to control a software application, which can be used further in home automation. They used a NeuroSky headset, an Arduino, an ATMEGA328P, and a laptop. Neuro software application is used to create three virtual objects represented by three icons and to control them by blinking using the headset user. Three ports from Arduino were dedicated to the three objects from the Neuro application to simulate controlling a fan, a motor, and to manage the switch between the fan and motor. Home appliance status is changed by running a MATLAB code.
Other experiments reveal an implemented prototype to control some home appliances like a LED and a fan, as the implemented system presented by Lanka et al. [
18]. They used a dedicated neural headset, a laptop, an ESP32 microcontroller, a LED, and a fan. Using Bluetooth technology, they connected the headset to the laptop and this one connected with the microcontroller. The fan and LED have been wired and connected to the microcontroller. In this way, they developed a system to control a fan and a LED by a healthy, disabled, or paralysed user electric mind wave.
Eyhab Al-Masri et al. [
19] published an article in 2022, where they specified the development of a BCI framework that targeted people with motor disabilities to control Philips Hue smart lights and Kasa Smart Plug using a dedicated neural headset. They used an EEG EMOTIV headset, Raspberry Pi, Kasa smart plug and Philips Hue smart lights as hardware. Bluetooth technology is used to connect the headset to the Raspberry Pi. The commands are configured and transformed from Raspberry Pi to Kasa Smart Plug and Philips Hue smart lights using Node-RED. The experimental results showed the efficacy and practicability of using EEG signals to operate IoT devices with a precision rate of 95%.
In 2023, Danish Ahmed et al. [
20] have successfully used BCI technology to control light and a fan via a dedicated neural headset. The implemented system consists of an EMOTIV EPOC headset, a PC laptop, an Arduino platform, and a box that contains a light and a fan. The headset is connected to the PC via Bluetooth, the laptop uses a WebSocket server and the JSON-RPC protocol to connect to Arduino, and Arduino is wired to the light and fan. The user trained the headset to control the prototype by his/her thoughts.
A new challenge has been overcome in home automation, which is controlling a TV using brainwaves. Several papers have discussed this issue. One of the systems was presented in 2023 by Haider Abdullah et al. [
21] where they successfully implemented and tested this system on 20 participants. The proposed system includes the following components: EMOTIV Insight headset, laptop - connected via Bluetooth with the headset, Raspberry Pi 4 – connected through SSH to the laptop, and TV remote control circuit - connected with wires to the Raspberry Pi. Three different brands of TVs were used in the system testing: SONY®, SHOWINC® and SAMIX®. Four controlling commands were included in this EEG-based TV remote control: open/close of the TV, volume changing and channels changing. The test showed a promising result where the system's accuracy was almost 74.9%.
The use of BCI technology for controlling different devices represents the new direction of advancement in both hardware and software development. In this context, this paper presents the design and implementation of a proposed real-time BCI-IoT system used to assure home security using a dedicated neuronal headset to control door locking and light using speech imagery. The proposed system enables disabled and paralysed people to lock or unlock a door and to turn ON/OFF an LED with the ability to receive status notifications. The proposed system has been tested on one participant. The proposed system has been simulated using a unity engine as well as the hardware implementation using Raspberry PI and other hardware components as will be discussed in the following sections.