State-of-the-Art on Brain-Computer Interface Technology

This paper provides a comprehensive overview of the state-of-the-art in brain–computer interfaces (BCI). It begins by providing an introduction to BCIs, describing their main operation principles and most widely used platforms. The paper then examines the various components of a BCI system, such as hardware, software, and signal processing algorithms. Finally, it looks at current trends in research related to BCI use for medical, educational, and other purposes, as well as potential future applications of this technology. The paper concludes by highlighting some key challenges that still need to be addressed before widespread adoption can occur. By presenting an up-to-date assessment of the state-of-the-art in BCI technology, this paper will provide valuable insight into where this field is heading in terms of progress and innovation.


Introduction
Brain-computer interfaces (BCIs) are a rapidly evolving technology that has the potential to revolutionize how humans interact with computers [1][2][3][4]. BCIs measure brain activity and translate it into commands for a computer or other device, allowing users to control machines and devices using only their thoughts. Neurogadgets, ranging from moving robotic spiders and balls to more practical applications, are increasingly being used for entertainment purposes. However, what is more important is that neurogadgets are also being developed to assist people with disabilities, such as those with paralysis of the limbs [5][6][7][8][9][10].
BCIs are typically divided into unidirectional and bidirectional categories based on the direction of their action. Unidirectional BCIs either receive signals from the brain or send them to it, while bidirectional BCIs allow for information exchange in both directions, enabling control of external devices by the brain.
Research into feedback methods is ongoing, with the aim of developing technologies that can transform external commands into electrical signals transmitted via the nervous system. For instance, it could be used to enable electrical stimulation of leg muscles in people with spinal cord injuries, allowing them to regain mobility by controlling their movements through a tablet device [11].
The utilization of neural networks and other learning algorithms in signal processing is commonplace, as brain activity varies between individuals. Consequently, these systems require lengthy training sessions to enable the BCI to accurately interpret commands from a particular user. The duration of the training depends on the number of commands received by BCI.
While this technology is still in its early stages of development, recent advances have shown great promise for applications ranging from medical rehabilitation to gaming and entertainment. This paper will provide an overview of the current state-of-the-art in BCI According to the degree of invasiveness, neural interfaces are divided into three categories: invasive, non-invasive, and semi-invasive. Invasive neural interfaces require direct implantation of intracortical microelectrodes (IM) into the human brain, providing the highest efficacy but posing a greater risk. Non-invasive neural interfaces analyze brain activity from the surface of the head by using electroencephalography (EEG), magnetoencephalography (MEG), or functional magnetic resonance imaging without implanting electrodes. Semi-invasive BCIs have electrodes located under the skull bone on the surface of the brain, such as electrocorticography (ECoG) (Figure 2). According to the degree of invasiveness, neural interfaces are divided into three categories: invasive, non-invasive, and semi-invasive. Invasive neural interfaces require direct implantation of intracortical microelectrodes (IM) into the human brain, providing the highest efficacy but posing a greater risk. Non-invasive neural interfaces analyze brain activity from the surface of the head by using electroencephalography (EEG), magnetoencephalography (MEG), or functional magnetic resonance imaging without implanting electrodes. Semi-invasive BCIs have electrodes located under the skull bone on the surface of the brain, such as electrocorticography (ECoG) (Figure 2).
At present, invasive and semi-invasive neurointerfaces are mainly utilized in medical contexts to enhance the wellbeing of individuals with disabilities. Additionally, these devices are also being used to correct and prevent a variety of diseases. On the other hand, non-invasive neural interfaces have been gaining traction in the gaming industry [16][17][18][19]. As more types of neurogadgets become available, it is possible that this sector will experience a revolution. It is envisaged that smartphones may be able to record human thoughts in the foreseeable future; research into this area has been ongoing [20,21]. At present, invasive and semi-invasive neurointerfaces are mainly utilized in me contexts to enhance the wellbeing of individuals with disabilities. Additionally, the vices are also being used to correct and prevent a variety of diseases. On the other non-invasive neural interfaces have been gaining traction in the gaming industry [1 As more types of neurogadgets become available, it is possible that this sector will rience a revolution. It is envisaged that smartphones may be able to record h thoughts in the foreseeable future; research into this area has been ongoing [20,21].
The most common platform used for BCI research is electroencephalography [2 EEG measures electrical signals produced by neurons within the brain through elect placed on the scalp, providing researchers with detailed information about neural ac associated with different cognitive functions. Other platforms commonly used in functional near-infrared spectroscopy (fNIRS) [27][28][29][30][31][32][33], magnetoencephalography [3 and electrocorticography [37][38][39]. These methods measure different types of neura nals than EEG but can still be useful in developing effective BCI systems due to higher temporal resolution or ability to detect deeper sources of brain activity.
All these platforms have their own pros and cons, which are analyzed below.

EEG Platform
The electroencephalogram is a widely used tool for monitoring electrical activ the brain. EEG signals, which are a visual representation of the frequency activity human brain [40,41], are commonly used as inputs for BCI systems. It has been us diagnose and treat neurological diseases, monitor sleep patterns, and study cognitiv cesses such as attention and memory. In recent years, advances in technology have bled the development of EEG sensors that are smaller, more accurate, and easier t than ever before. Due to its non-invasive data collection principle and relatively s signal interpretation, this platform is one of the most commonly used BCI techniques adays.
EEG sensors measure electrical activity produced by neurons in the brain using trodes placed on the scalp or other parts of the body. By monitoring this activity over clinicians can detect changes associated with different mental states, such as sleep or ness. Additionally, certain types of abnormal brain activity can be detected through readings; these may include seizures or evidence of stroke-related damage. The The most common platform used for BCI research is electroencephalography [22][23][24][25][26]. EEG measures electrical signals produced by neurons within the brain through electrodes placed on the scalp, providing researchers with detailed information about neural activity associated with different cognitive functions. Other platforms commonly used include functional near-infrared spectroscopy (fNIRS) [27][28][29][30][31][32][33], magnetoencephalography [34][35][36], and electrocorticography [37][38][39]. These methods measure different types of neural signals than EEG but can still be useful in developing effective BCI systems due to their higher temporal resolution or ability to detect deeper sources of brain activity.
All these platforms have their own pros and cons, which are analyzed below.

EEG Platform
The electroencephalogram is a widely used tool for monitoring electrical activity in the brain. EEG signals, which are a visual representation of the frequency activity of the human brain [40,41], are commonly used as inputs for BCI systems. It has been used to diagnose and treat neurological diseases, monitor sleep patterns, and study cognitive processes such as attention and memory. In recent years, advances in technology have enabled the development of EEG sensors that are smaller, more accurate, and easier to use than ever before. Due to its non-invasive data collection principle and relatively simple signal interpretation, this platform is one of the most commonly used BCI techniques nowadays.
EEG sensors measure electrical activity produced by neurons in the brain using electrodes placed on the scalp or other parts of the body. By monitoring this activity over time, clinicians can detect changes associated with different mental states, such as sleep or alertness. Additionally, certain types of abnormal brain activity can be detected through EEG readings; these may include seizures or evidence of stroke-related damage. The data collected from EEG recordings can also be analyzed to assess cognitive abilities such as attention span or memory recall speed. Figure 3 illustrates that there are four distinct "rhythms" of the human brain, which can be categorized based on their frequency: δ delta (0.1-4 Hz), θ theta (4-7.5 Hz), α alpha (7.5-12 Hz), β beta (12)(13)(14)(15)(16)(17)(18)(19)(20)(21)(22)(23)(24)(25)(26)(27)(28)(29)(30), and γ gamma (over 30 Hz). It is important to note that these rhythms differ in amplitude as well as frequency.
Recent advances in EEG sensor technology have made them smaller, lighter, and cheaper than ever before while still providing high levels of accuracy and reliability when compared to traditional systems [25,26,42]. Moreover, newer systems often make use of dry electrode designs, which eliminate the need for conductive gels that were previously required for proper functioning [43][44][45][46][47]. Furthermore, many new portable devices exist now that allow users to easily record their own EEG signals without having to visit a clinic [9,[48][49][50][51]. These devices typically employ Bluetooth connectivity so that they can transmit their data wirelessly directly to computers for analysis. Recent advancements have also led to improvements in signal processing algorithms, which enable better detection and analysis techniques [52][53][54]. For example, it is now possible to detect subtle changes within short periods of time, leading to improved diagnosis capabilities. Additionally, some algorithms are able to identify distinct features within each individual's recordings, allowing personalized treatment approaches [55,56]. Finally, artificial intelligence techniques are being explored that could help automate certain aspects of processing raw data, resulting in faster diagnostic times [57][58][59][60]. collected from EEG recordings can also be analyzed to assess cognitive abilities such as attention span or memory recall speed. Figure 3 illustrates that there are four distinct "rhythms" of the human brain, which can be categorized based on their frequency: δ delta (0.1-4 Hz), θ theta (4-7.5 Hz), α alpha (7.5-12 Hz), β beta (12)(13)(14)(15)(16)(17)(18)(19)(20)(21)(22)(23)(24)(25)(26)(27)(28)(29)(30), and γ gamma (over 30 Hz). It is important to note that these rhythms differ in amplitude as well as frequency.  Recent advances in EEG sensor technology have made them smaller, lighter, and cheaper than ever before while still providing high levels of accuracy and reliability when compared to traditional systems [25,26,42]. Moreover, newer systems often make use of dry electrode designs, which eliminate the need for conductive gels that were previously required for proper functioning [43][44][45][46][47]. Furthermore, many new portable devices exist now that allow users to easily record their own EEG signals without having to visit a clinic [9,[48][49][50][51]. These devices typically employ Bluetooth connectivity so that they can transmit their data wirelessly directly to computers for analysis. Recent advancements have also led to improvements in signal processing algorithms, which enable better detection and analysis techniques [52][53][54]. For example, it is now possible to detect subtle changes within short periods of time, leading to improved diagnosis capabilities. Additionally, some algorithms are able to identify distinct features within each individual's recordings, allowing personalized treatment approaches [55,56]. Finally, artificial intelligence techniques are being explored that could help automate certain aspects of processing raw data, resulting in faster diagnostic times [57][58][59][60].
The overall quality of an EEG signal is affected by both the quantity and placement of electrodes. Increasing the electrode count can improve spatial resolution, allowing for more detailed analysis. Additionally, a greater number of electrodes allows for better noise reduction techniques such as averaging or interpolation. However, increasing electrode count also increases the cost and complexity associated with recording equipment; thus, it is important to consider tradeoffs between benefits in accuracy versus the burden imposed by additional hardware requirements when choosing an optimal sensor configuration.
In addition to overall quantity, positioning plays a critical role in determining signal quality during EEG recordings. Different positions provide varying levels of information The overall quality of an EEG signal is affected by both the quantity and placement of electrodes. Increasing the electrode count can improve spatial resolution, allowing for more detailed analysis. Additionally, a greater number of electrodes allows for better noise reduction techniques such as averaging or interpolation. However, increasing electrode count also increases the cost and complexity associated with recording equipment; thus, it is important to consider tradeoffs between benefits in accuracy versus the burden imposed by additional hardware requirements when choosing an optimal sensor configuration.
In addition to overall quantity, positioning plays a critical role in determining signal quality during EEG recordings. Different positions provide varying levels of information about different parts of the brain; therefore, careful consideration must be taken when selecting which sites should be used for data acquisition. Furthermore, differences in skull thickness across individuals may require adjustments from standard placements due to potential changes in impedance at various locations relative to one another. It is also important that all channels are placed symmetrically with respect to each other so that any artifacts generated from movement will cancel out. Finally, proper reference placement is necessary since it serves as a "ground" against which all other signals can be compared. The effectiveness of an EEG system relies heavily on the selection, number, and arrangement/placement of the sensors being used. Careful consideration must be given to these factors so that optimal results can be achieved while minimizing costs associated with hardware requirements. With advances in technology continuing apace, it will become increasingly possible to optimize sensor configurations, further improving BCI performance capabilities over time.

Other Platforms
Functional near-infrared spectroscopy is a non-invasive brain imaging technique that uses light to measure changes in the concentration of oxygenated and deoxygenated hemoglobin in the brain [28,30,31,33,61]. fNIRS can be used to measure both regional and global activity in the cortex, allowing for real-time monitoring of neural activity. The technology has been applied to BCI applications such as motor imagery, language processing, affective state recognition, and EEG/ERP source localization. As with EEG, the number and arrangement of sensors are important considerations. If too few sensors are used, then not enough information may be collected to accurately assess brain activity; conversely, if too many sensors are employed, they may interfere with each other or saturate certain areas due to excessive light intensity. The placement and orientation of each sensor must be carefully considered so that it is able to detect meaningful signals from its target area without being overly influenced by nearby sources. Placing one sensor too close to another could lead to interference between them or cause one sensor's signal strength to dominate over another's. Furthermore, depending on the type of task being performed during an experiment, there may be different requirements regarding how many channels should be monitored at once as well as where those channels should be located relative to each other. Therefore, careful consideration must go into deciding how many channels should be included in any given experiment and where they should be best placed in order to ensure accurate data collection while avoiding unnecessary noise or saturation effects.
Magnetoencephalography is a non-invasive brain imaging technique that measures magnetic fields generated by electrical currents inside neurons [12,35,36,62,63]. It provides high temporal resolution with excellent spatial accuracy and can be used to track changes in neural activity related to cognitive processes such as attention or memory formation over time. MEG has been used for auditory BCI research but also shows potential for visual BCIs as well as multimodal approaches combining MEG with other modalities such as EEG or fMRI. One of the important factors affecting signal resolution is sensor density: more sensors mean more accurate localization of neural activity within the brain, allowing better control over output devices such as robotic limbs or computer cursors. Increasing sensor density above 30-50 sensors per cm 3 can significantly improve spatial resolution and accuracy when compared to lower densities. However, this must be balanced against increased costs associated with higher numbers of sensors as well as any potential interference between closely spaced elements due to mutual inductance. In addition to sensor density, placement also plays an important role in determining signal fidelity. Ideally, each individual's head should be modeled before placing electrodes so that they are optimally positioned based on their unique anatomy. Furthermore, optimal placement may vary depending on what type of information one wants to extract from recorded data. For example, if one wishes to study motor cortex activation, it would make sense to place electrodes near primary motor areas, while studying visual cortex activation might require different locations. Using multiple layers of overlapping grids can help reduce noise levels caused by external sources such as power lines or electronic equipment, although further research into this area is still needed before definitive conclusions can be drawn about its efficacy.
Electrocorticography is an invasive brain imaging technique that records electrical signals from the surface of the cerebral cortex directly through implanted electrodes placed on top of the cortical surface [38,39,64,65]. ECoG offers high temporal resolution (~milliseconds), excellent signal quality, very low noise levels, and direct access to underlying neuronal sources, which makes it particularly suitable for decoding complex mental states such as speech production or intention decoding from motor areas. However, due to its invasive nature, this method requires surgery, which limits its widespread use outside clinical settings. As well as with previously described platforms, increasing the total number of ECoG electrodes generally improves the overall accuracy rate across all task types, regardless of whether they are placed at random locations or at regular intervals around the cortex. However, accuracy rates do not improve significantly when more than Sensors 2023, 23, 6001 6 of 28 eight regularly distributed electrodes are used. Furthermore, even though traditional EEG systems have higher overall accuracy rates than any individual ECoG setup due to their greater electrode coverage area, they are still outperformed by some smaller-scale ECoG setups under certain conditions-particularly when dealing with multi-task classifications involving complex patterns such as visual stimuli recognition.

BCI Platforms Comparison
Based on the provided analysis, we can draw the following conclusions. EEG is a non-invasive technique that measures electrical activity in the brain via electrodes placed on the scalp. It has good temporal resolution, allowing it to detect changes in neural activity within milliseconds. EEG is relatively inexpensive and portable, making it well suited for use in BCI systems. EEG's key issues are the following: -Signal quality: EEG signals are highly sensitive to noise and artifacts, so it is important to ensure that the signal quality is optimal for BCI applications; -Feature extraction: the ability to accurately extract meaningful information from raw EEG data is a key issue in BCI research as this determines how effective the system will be at recognizing user intentions and commands; -Classification accuracy: designing efficient algorithms for classifying EEG signals into different categories (e.g., left vs. right hand movement) is an important issue in BCI research as it determines how well the system can recognize user commands or intentions. -User interface design: designing user interfaces that are intuitive and easy to use is an important issue in EEG-based BCIs as it can determine how easily users can interact with the system; -Adaptability: developing algorithms that can adapt to individual users' brain activity and recognize subtle changes in EEG patterns is an important research topic for creating robust BCI systems; -System reliability: ensuring reliable performance of a BCI system over long periods of time with minimal calibration or setup requirements is an important challenge in EEG-based BCIs due to the dynamic nature of brain activity and its variability across users and sessions.
fNIRS uses light to measure changes in oxygenated hemoglobin levels associated with neural activity. fNIRS offers excellent spatial resolution and can be used to monitor multiple areas of the brain simultaneously, but its temporal resolution is limited compared to other techniques such as EEG. The key issues of the fNIRS platform are the following: -Signal quality: fNIRS signals are relatively weak and affected by noise, making it difficult to accurately detect changes in brain activity; -Spatial resolution: the spatial resolution of fNIRS is limited due to the limited number of sources and detectors, which may lead to incorrect interpretations of the data; -Temporal resolution: fNIRS has a relatively slow response time compared with other BCI modalities such as EEG or MEG, meaning that more complex cognitive tasks may not be suitable for this technology; -Cost: while fNIRS systems are becoming increasingly affordable, they remain significantly more expensive than EEG or MEG systems and require specialized training in their use and interpretation of results; -Safety: fNIRS systems operate by sending light into the head, which could potentially lead to eye damage if not used correctly.
MEG is an imaging technique that records magnetic fields produced by electrical activity inside the brain using superconducting sensors placed outside of the head. MEG provides very high temporal resolution and an excellent signal-to-noise ratio, making it useful for detecting subtle changes in neuronal firing patterns associated with BCI tasks. However, MEG systems are expensive and require specialized hardware not usually found outside research laboratories or hospitals. MEG's key issues are described below: Good signal-to-noise ratio: MEG signals are relatively strong and easy to detect reliably, making them beneficial for BCI applications; -High cost of equipment: the cost of equipment necessary for MEG is high, limiting its practicality in many settings; -Limited spatial resolution: the spatial resolution of MEG is limited compared to other imaging technologies such as EEG, making it difficult to accurately map brain activity patterns with a single scan; -Long acquisition times: the data acquisition times for MEG can be quite long, making it difficult to measure dynamic processes such as those involved in motor control tasks used in BCI systems; -Head motion artifacts: head motion artifacts can significantly interfere with the accuracy of the recorded signal and lead to false positives or negatives, which could confuse the user's experience with the system or even cause harm if medical decisions were made based on incorrect information from an artifactually contaminated signal.
ECoG involves placing electrodes directly onto the surface of the cortex during neurosurgery procedures such as epilepsy treatment or tumor removal operations. ECoG has excellent temporal and spatial resolutions due to its direct contact with cortical neurons; however, this comes at a cost-invasive surgery carries risks such as infection or bleeding, which may outweigh any potential benefits from using ECoG for BCI applications. Key issues with the ECoG platform are listed below: -Signal acquisition: ECoG signals have relatively low amplitudes and might contain a certain degree of noise; therefore, reliable signal acquisition is essential for successful BCI applications; -Data interpretation: properly interpreting the data collected from ECoG recordings can be challenging due to the complexity of neural activity as well as the need to distinguish between different types of brain activity (e.g., motor vs. non-motor); -Safety concerns: since ECoG involves implanting electrodes directly onto the surface of the brain, there are potential safety risks that must be taken into consideration when designing an ECoG-based BCI system; -Ethical considerations: the ethical implications associated with using invasive technology such as ECoG must also be considered when developing a BCI system for clinical use or research purposes.
Pros and cons for each technology are presented in Table 1.
The choice of a platform depends on several factors, such as the research goals, cost of equipment, patient comfort level, etc. EEG is widely used due to its low cost and portability. It has good temporal resolution but lacks spatial resolution, making it less suitable for some applications. fNIRS offers a non-invasive option with higher spatial resolution than EEG but lower temporal resolution. MEG offers excellent temporal and spatial resolutions with high accuracy; however, it comes at a much higher cost compared to other platforms. ECoG provides very high temporal and spatial resolutions but requires invasive surgery for the implantation of electrodes, which limits its use to certain clinical scenarios.
EEG is the most commonly used BCI platform in practice because of its relatively low cost, easy setup, and portability compared to the other mentioned platforms. Additionally, EEG provides excellent temporal resolution and can detect brain signals with millisecond accuracy. This makes it an ideal choice for real-time feedback systems such as those used in motor imagery or P300 speller implementations. In addition, this technique does not require any invasive procedures or radiation exposure, so it can be safely used on a wide variety of users, including children or elderly people who may have difficulty tolerating more intrusive monitoring methods.
The choice of BCI platform should be based on the research goals and other considerations such as cost of equipment or patient comfort level, rather than assuming one platform is better than another in general terms.

Classical Paradigms in BCI Systems
The most common types of BCIs are based on classical paradigms such as P300, steady-state visual evoked potentials (SSVEP), and motor imagery (MI).
The P300 paradigm uses EEG recordings from the scalp electrodes to measure eventrelated potentials generated when a user recognizes an important stimulus in a series of stimuli presented on a computer screen. It is one of the oldest BCI paradigms, developed in the 1980s [66]. It uses electrical signals from the brain to detect when a user is focusing on a particular stimulus or event. When this happens, an EEG signal called the P300 wave appears around 300 milliseconds after the event occurs. This wave can be used to measure how interested or involved someone is in what they are seeing or experiencing, and it can be used as input for BCIs. When presented with multiple stimuli on a computer screen, users typically respond more quickly when they recognize one particular target stimulus among them. This reaction time difference generates an EEG signal known as the P300 waveform, which can then be detected using scalp electrodes placed over different regions of the head. By monitoring this signal over time, it is possible to detect which stimuli were recognized by the user and thus infer their intentions. The P300 paradigm has a wide range of applications, ranging from medical rehabilitation, helping disabled patients regain movement through robotic prosthetics, to assistive communication, helping those who cannot speak communicate via text messages, security authentication, verifying identity without needing passwords, gaming, enhancing interactive experiences through mental commands, and cognitive assessment, evaluating patients mental states such as attention span and fatigue levels.
Steady-state visual evoked potentials (SSVEPs) utilize flicker frequencies, which present monitors generate periodic EEG patterns that correlate directly with the user's gaze direction towards specific target screens [67]. By presenting rapidly changing colored squares in various locations of the display monitor, participants were instructed to focus their gaze onto each square in order to elicit a unique neural signature corresponding to the frequency of light being emitted from the object, thus allowing researchers to accurately track their eye movements around the environment without the need for any additional hardware equipment, such as cameras, or tracking their head movements manually. Furthermore, because flickering lights tend to remain visible longer than typical flashes, human eyes become accustomed to their frequency, easily reducing the possibility of errors arising from distractions outside the scope of the experimenter's control while also increasing the maximum allowable response speed significantly compared to alternative methods such as P300. SSVEPs prove highly useful in a diverse range of fields, particularly ones involving virtual reality simulations, industrial robotics, advanced gaming technologies, artificial intelligence research, automated surveillance, biological engineering, etc. All benefiting greatly from improved response times, increased bandwidth, and offered protocols, along with the robustness factor brought to the table thanks to the simple yet reliable design structure operating behind the scenes. Other areas include, but are not limited to, medical diagnostics, psychological analysis, military operations, environmental monitoring, etc.
Motor imagery (MI) is a BCI paradigm where users are asked to imagine themselves performing certain movements without actually moving any body parts [68]. This type of system relies on EEG recordings from the scalp electrodes to measure changes in electrical activity within the brain that occur when a user imagines making specific motor actions. These changes can then be used to infer the intentions of the user and allow them to control external systems with just their thoughts. MI has been used for applications such as controlling wheelchairs, robotic arms, or other prosthetic devices, but it has also been applied in more novel ways, such as allowing people to play computer games using only their mind and even allowing paralyzed individuals to communicate by spelling out words letter-by-letter using mental commands alone. MI still has a wide range of uses today, including medical rehabilitation, helping patients regain lost limb functions through artificial prosthetics, gaming, enhancing interactive experiences through thought-controlled commands, communication aiding those who cannot speak via text messages, security authentication verifying identity without passwords, cognitive assessment evaluating patients mental states such as attention span fatigue levels, and finally, robotics, providing new ways to control machines remotely utilizing only brain power.
Advantages and disadvantages of these classical paradigms are summarized in Table 2.

Paradigm Pros Cons
SSVEP -Simplicity of a setup process, not needing anything beyond a traditional PC monitor to create an effective interface, along with the general robustness protocol itself capable of detecting small variations in input; -Thanks to much faster response speeds than many alternatives, SSVEPS offer higher bandwidth transmission values, meaning larger amounts of data can be sent between machine operators in a short period of time, which is important in real-time applications.
-Inability to account for any sudden changes in inputs under circumstances occurring outside the experimenter's expectation of a result; -Lack of flexibility and adaptability, demanding certain predetermined conditions be met to ensure the proper functioning of the device; -Problem regarding the portability aspect since the calibration process requires considerable effort in order to setup the the system in the first place before actual testing begins while also taking quite a bit power to run continuously and maintain accuracy throughout the duration of the session, causing major hindrances in mobile implementations where size and weight matter most.
MI -Flexibility, since no physical movement is required; it allows users with disabilities or limited mobility greater freedom in terms of how they interact with computers and other electronic devices. -Since EEG signals generated by MI are relatively easy to detect compared to other BCI paradigms such as SSVEP or P300, there is less need for complex signal processing algorithms, which makes implementation easier and faster overall; -Due its non-invasive nature, this method does not require costly hardware setups or any special training, thus keeping setup costs low while increasing accessibility for anyone wanting to use technology.
-Difficulty in distinguishing between actual and imagined motor tasks under the same conditions, leading to significant confusion errors; -Accuracy rate drops heavily depending on task complexity and the number of decisions needed to be made during a single session, meaning some applications may not be suitable given current limitations despite the potential advantages offered by the protocol itself; -Due reliance purely on internal processes such as imagination, fatigue becomes a major problem, especially for longer sessions, causing a drop performance over time and the need for additional breaks to recover properly before continuing operation, further reducing the effectiveness of the system as a whole.

BCI Signal Processing Techniques
A variety of signal processing techniques are employed when constructing a BCI system, including feature extraction algorithms such as independent component analysis (ICA), wavelet transformations, and autoregressive modeling; classification algorithms such as support vector machines (SVM); pattern recognition approaches such as hidden Markov models; machine learning models such as artificial neural networks; and optimization methods such as genetic algorithms or particle swarm optimization.
A key component of BCI's signal processing is synchronization and asynchronization, which are methods used to establish a connection between the user's brain signals and the computer system. Synchronization involves establishing an exact match between two signals, while asynchronization involves allowing for some variation in timing.
Synchronization is typically used when there is an exact time relationship required between two events or signals; this ensures that all data collected by one device is accurately transferred to another device at exactly the same moment it was acquired from its source. This type of synchronization requires precise timing control over both devices so that they remain synchronized throughout the duration of the data transfer. To achieve this level of accuracy, certain hardware components, such as clocks, must be employed to ensure accuracy over long periods of time without drift occurring due to environmental factors such as temperature changes or electrical interference from nearby devices. Synchronized data acquisition has been shown to improve signal detection accuracy compared to non-synchronized techniques since any temporal differences between acquisitions can be accounted for during analysis [69]. Additionally, synchronizing multiple channels allows EEG measures such as coherence values or event-related potentials (ERPs) to be measured across different electrode sites within each channel.
Asynchronous operations involve allowing some degree of variation in timing. Different from synchronized operations, where two events must happen simultaneously, asynchronous operations do not require absolute precision but rather permit some leeway when it comes to timing discrepancies [70,71]. This type of operation may also include elements such as buffering, which helps reduce latency issues associated with transmitting large amounts of data quickly across networks. Asynchronous methods have been shown to be effective for reducing false alarm rates in BCI applications since they allow more flexibility when dealing with erroneous inputs caused by noise contamination. They also provide better scalability than synchronous approaches since they do not need additional hardware components such as clocks, which can increase cost and complexity. However, asynchronous methods tend not to perform well in situations where real-time responses are essential, thus limiting their usage mainly to offline applications only.
Both synchronous and asynchronous techniques have been successfully applied to various types of BCIs, including motor imagery-based systems, P300 spellers, hybrid systems combining both EEG and EMG features, etc.
Each BCI signal processing technique has its own advantages depending on the application's specific requirements, but all aim to accurately interpret user input from raw sensory data collected by sensors attached directly to the user's head or body.

ICA Use in BCI Systems
Independent component analysis (ICA) is a powerful statistical technique used to identify and separate independent sources of information from data streams. It can be used in brain-computer interface (BCI) systems to improve the accuracy of EEG signal processing by separating useful signals from noise or artifacts. ICA helps extract meaningful information, such as event-related potentials, which are then further processed for better understanding brain activity patterns during tasks. Additionally, ICA can be used for artifact removal purposes, allowing BCI applications to reduce false-positive detections caused by movement artifacts or other interference signals.
Independent Component Analysis (ICA) has been employed to decompose multichannel datasets into independent components based on certain assumptions [72]: - The number of independent components must not exceed the number of electrodes used in recording EEG signals; -Neuronal and artifact sources are considered to be linearly mixed yet independent from each other; -A negligible signal propagation delay is assumed between brain sources and electrodes.
The objective of ICA is to identify a linear projection that maximizes mutual independence, which can be mathematically expressed as: x(k) = As(k), k = 1, 2, 3, . . . , N, where: x(k) ∈ M×1 are recorded EEG signals, s(k) ∈ M×1 are corresponding independent components, A(k) ∈ M×M is unknown M full rank mixing matrix, k-discrete time, and M is the number of electrodes. Independent components can be represented as where i is the electrode ordinal number (i = 1, 2, 3, . . . , M), w i is the column vector.
After evaluating each w i , the independent components can be calculated [73] as: The ICA models utilized by algorithms such as Infomax, JADE, FastICA, and RAD-ICAL assume that the sources of independent components are either non-Gaussian or a single source is Gaussian. These approaches do not consider the temporal structure of the signal or extract components with a Gaussian distribution. To address this limitation, time series-based ICA models implemented in TDSEP/SOBI, and AMUSE can select independent components with a Gaussian distribution [74]. Extended-Infomax ICA has the capacity to remove both super-gaussian artifacts (eye blinks) and sub-gaussian signals (power noise interference), whereas regular Infomax ICA is limited to the removal of super-gaussian artifacts only.
ICA algorithms have been found to have numerous drawbacks, including ambiguity regarding the origin of sources, uncertainty with regards to component dispersion, and dependence on data set size; in particular, ICA algorithms are characterized by inadequate performance when operating on small data sets [75].

Wavelet Transformations and Autoregressive Modeling in BCI
Wavelet transformations and autoregressive modeling are used in BCI systems to identify patterns in brain signals. The wavelet transform can be used to decompose the EEG data into its frequency components, allowing for an analysis of different frequencies associated with cognitive tasks. Autoregressive modeling uses a linear regression model to estimate the current value of a signal based on past values, which can then be used in conjunction with classification algorithms such as support vector machines or neural networks to detect subtle changes in EEG signals that may indicate certain mental states. Together, these two methods provide powerful tools for understanding how our brains interact with technology and allow us to develop better BCI systems that respond more accurately and effectively to user inputs.
The wavelet transform (WT) is a one-dimensional technique that decomposes an electroencephalographic signal into a set of coefficients representing its similarity with the waveform of a parent wavelet at certain scales. This transformation can be expressed mathematically as selecting a subset of scales (j) and time shifts (k) of the parent wavelet (t): where j and k are integers. The Discrete Wavelet Transform (DWT) is a method for calculating the scaling and detail components of a waveform by low-and high-frequency filtering, where the waveform is discretely sampled in time.
The use of DWT for artifact removal is often achieved through thresholding the decomposed coefficients and reconstructing the remaining signal components, channel by channel [76]. A disadvantage of DWT is that it cannot completely remove artifacts when the spectral properties of the signal being studied overlap with those of the artifacts.
The temporal dispersion, which is the main DWT disadvantage, is eliminated in the stationary wavelet transform (SWT) algorithm, which does not involve downsampling. SWT has been shown to enable the tracing of changes in the harmonic components of EEG signals over time [77].
Regression analysis has been demonstrated to be relatively straightforward to use; however, specific assumptions must be adhered to in order for accurate results [78]. (1) The native EEG signal is a combination of genuine neuronal activity and extraneous activity (an artifact); (2) true neuronal activity and extraneous activity of the EEG signal are uncorrelated; (3) artifacts should not contain components related to brain activity; otherwise, they may be lost during artifact removal.
Regression algorithms necessitate exogenous reference channels (e.g., EOG, ECG) for artifact detection; however, it is challenging to identify the most suitable reference signal for myographic and other non-biological artifacts, hence constricting the use of regression methods for artifact removal.
The use of temporal auto-tuning for EEG signal activity has proven to be an effective method for detecting artifacts among evoked brain activity, yet it does not account for background activity. Regression methods can identify oculographic artifacts but are limited in their ability to reduce bilateral contamination between EEG and EOG [79]. To address this issue, low-pass filtering before applying Bayesian adaptive regression splines has been proposed as a solution [80], as the high-frequency content of the recorded EOG typically refers to neural activity, which can be filtered out to significantly reduce bidirectional pollution effects.
The literature overview showed a lack of consensus on the best low-pass filtering of EOG signals. In contrast, some researchers have suggested that all frequency bands in the EOG signal are associated with neuronal activity [81].
Despite their shortcomings, regression methods are regarded as the "gold standard" for evaluating the effectiveness of new artifact detection algorithms.

SVM in BCI Systems
SVMs are used in BCI systems for classification tasks, such as recognizing patterns in EEG signals. SVMs can be used to identify features from the raw EEG data and classify them into different categories or classes. For example, an SVM may be used to distinguish between different brain states, such as sleep states or mental workload levels. Additionally, SVMs can be trained on specific tasks, such as imagined hand movement recognition and motor imagery-based BCI control. The high accuracy of SVM algorithms makes them well suited for use in BCI applications where accurate classification is essential. SVM, proposed by V. Vapnik and A. Chervonenkis [82], is a method of linear classification that divides the sample into classes using an optimal separating hyperplane with the following general equation form: where ω = ∑ N i=1 λ i y i ϕ i (x i ), and the coefficients λ i depend on the vector of labels y i , and on the scalar products ϕ i (x i ). To find the decision function, knowledge of these scalar products is necessary. Data transformations are determined by a kernel function: In 1992, a non-linear Support Vector Machine (SVM) classification method was proposed by utilizing a non-linear kernel function [82,83]. This approach enables the search for the optimal separating hyperplane in the transformed feature space. The radial Gaussian basis function can be used as a kernel function: The classifier is divided into two stages: training and testing. The data are first split into a training set with assigned class labels and a test set without them. During the first stage, the classifier builds a model based on the training sample and divides it into given classes. In the second stage, the constructed model is tested by feeding in the test sample (without class labels) to determine if EEG patterns belong to possible classes. The classification accuracy (the ratio of correctly determined samples over the total number of samples expressed as a percentage) then measures how effective the classifier was.

HMM's for BCI
Hidden Markov models (HMMs) are used in BCI systems to recognize user intentions based on their brain signals. HMMs can be trained to detect patterns in EEG signals, such as movement intent or mental arithmetic tasks, and classify them into different classes.
The model is then able to predict the user's intention from the observed data and use it to control a computer system or robotic device. In addition, HMMs can be used for decoding motor imagery activities, which allow users with severe disabilities to interact with computers using only their minds.
The HMM method, based on the Bayesian posterior probability maximization approach, has been successfully employed to classify time series, with states at any given time t being affected by states at the previous time (t − 1). This technique has shown its utility in resolving speech recognition problems and is widely used for signal analysis, classification, modeling, and control purposes [84].
The solution of three fundamental problems is required to construct a Hidden Markov Model (HMM) for the given sequence of observed states: 1.
The evaluation problem can be stated as follows: Given an HMM with transition probabilities a ij and b jk , determine the probability that a particular sequence of visible states (VT) was generated by this model. 2.
Decoding problem. Given an HMM and a set of observations (V T ), we need to determine the most probable sequence of hidden states ω T that result in these observations. 3.
The learning problem. Given an enlarged structure of the model with a specified number of states and visible states but without knowledge of transition probabilities a ij and b jk , learning can be performed by determining the most plausible model from a training sample of visible states.
Problems 1 and 2 are solved at the decoding stage using forward procedures or Viterbi algorithms [84]. Problem 3 is tackled in the learning process by employing an iterative procedure for finding a local maximum, such as the Baum-Welch algorithm [84], or utilizing global optimization algorithms, e.g., simulated annealing [85].
HMMs can be utilized in BCIs as probabilistic automata that calculate the likelihood of a given sequence of feature vectors. Each state of the automaton models the probability distribution for observing a particular feature vector, with Gaussian models being commonly used in BCI applications [83].
The use of HMMs for classifying time series has been demonstrated to be effective due to their inherent nature. As the EEG contains distinct features that can be distinguished in the temporal domain, the HMM method was utilized for EEG classification in BCI [86][87][88]. However, HMMs have not seen widespread application in BCI development yet, despite the relatively high success rates reported by known studies. One major obstacle is the necessity of identifying an invariable set of observable states related to an event, which may prove difficult when analyzing EEG signals; for example, while studying induced desynchronization as reported in [80] across different channels. If signals associated with close localized events and similar dynamics are being analyzed, it becomes hard to identify stable observable states; requiring instead the identification of process attractors related only to classified events without including background nervous system activity. A further exploration into EEG signals and neurophysiological brain functioning fundamentals could possibly provide such an opportunity, thus increasing the relevance of using HMMs significantly.

Neural Network Algorithms for BCI Systems
Machine learning models such as artificial neural networks (ANNs) are used in BCI systems to help interpret and classify the brain signals that they receive [89][90][91]. By utilizing ANNs, a BCI system can be trained to recognize patterns in EEG data, which can then be used to detect changes in states of consciousness or other types of mental activities. This allows BCI systems to respond more accurately and quickly than traditional methods would allow. Additionally, by using ANNs for pattern recognition tasks, it is possible for a BCI system to adapt over time as new patterns emerge from the EEG data. This ability makes them especially useful for applications involving long-term monitoring of patients with neurological disorders such as epilepsy or dementia.
Convolutional neural networks (CNN) are most commonly used for this task. CNNs have been proposed by LeCun [92] as a type of artificial neural network architecture for efficient pattern recognition in images. CNNs are composed of convolutional layers and pooling layers, which enable the extraction of features from input data while reducing the amount of processed information and preserving task-specific information.
When working with EEG signals, convolutional networks can be used to reduce the problem of image classification by feeding spectrograms into their inputs. Alternatively, one may use an adaptation of the FBCSP method as an input architecture; for example, ShallowNet is described in [93] and illustrated in Figure 4. The layers composing this architecture and their respective functions are detailed as follows: A 1 × 25 time convolution is implemented to highlight characteristic peaks in the signal, followed by a spatial filtering of all electrodes similar to that of the FBCSP algorithm. Subsequently, an element-wise squaring is performed on the matrix values before proceeding with a 1 × 75 windowed time pooling operation, wherein the average value of each window element is taken. A natural logarithm transformation then follows for each element, which is equivalent to calculating the logarithm of signal dispersion as seen in FBCSP. Finally, these features are classified by combining fully connected and softmax layers.
ing ANNs, a BCI system can be trained to recognize patterns in EEG data, which can then be used to detect changes in states of consciousness or other types of mental activities. This allows BCI systems to respond more accurately and quickly than traditional methods would allow. Additionally, by using ANNs for pattern recognition tasks, it is possible for a BCI system to adapt over time as new patterns emerge from the EEG data. This ability makes them especially useful for applications involving long-term monitoring of patients with neurological disorders such as epilepsy or dementia.
Convolutional neural networks (CNN) are most commonly used for this task. CNNs have been proposed by LeCun [92] as a type of artificial neural network architecture for efficient pattern recognition in images. CNNs are composed of convolutional layers and pooling layers, which enable the extraction of features from input data while reducing the amount of processed information and preserving task-specific information.
When working with EEG signals, convolutional networks can be used to reduce the problem of image classification by feeding spectrograms into their inputs. Alternatively, one may use an adaptation of the FBCSP method as an input architecture; for example, ShallowNet is described in [93] and illustrated in Figure 4. The layers composing this architecture and their respective functions are detailed as follows: A 1 × 25 time convolution is implemented to highlight characteristic peaks in the signal, followed by a spatial filtering of all electrodes similar to that of the FBCSP algorithm. Subsequently, an element-wise squaring is performed on the matrix values before proceeding with a 1 × 75 windowed time pooling operation, wherein the average value of each window element is taken. A natural logarithm transformation then follows for each element, which is equivalent to calculating the logarithm of signal dispersion as seen in FBCSP. Finally, these features are classified by combining fully connected and softmax layers.   Deep learning methods are reliant on the amount of data available; as more data is used, better generalization occurs. To counter this issue, augmentation methods have been utilized.

Genetic Algorithms and Particle Swarm Optimization in BCI
Genetic algorithms (GA) and particle swarm optimization (PSO) are optimization methods that can be used to optimize or tune the parameters of a BCI system. GA is an evolutionary algorithm that uses concepts such as mutation, crossover, and selection to find optimal solutions. PSO is an iterative algorithm inspired by social behavior in which particles move around in search space with velocities that are influenced by their own best position and the global best position found so far. Both algorithms can be used to automatically adjust model parameters within a BCI system, thereby improving its performance. For example, they could be used to optimize feature extraction techniques for EEG signals or adaptively select appropriate stimuli for brain-computer interfaces based on user feedback.
GAs use the principles of natural selection and genetics to find solutions to complex optimization problems. They are used for tasks such as finding the optimal parameters for a machine learning model or finding the shortest route from one point to another in a network. GAs have been increasingly used in BCI systems as they offer an effective way to optimize BCI performance by automatically searching through a large space of potential parameter values and selecting those that yield better results [94][95][96][97][98]. As advantages of Gas could be mentioned, their robustness. Gas are able to handle noise, nonlinearities, and outliers without much difficulty. This makes them particularly well suited for BCIs, where there is often considerable uncertainty due to biological variability between users or individuals with different levels of expertise using the system. Another advantage is their efficiency. Gas can be implemented quickly and easily compared to other optimization techniques such as gradient descent or simulated annealing, making them ideal for realtime applications such as online control systems where speed is essential. Finally, due to their flexibility, GAs can be applied to many different types of problems, including classification, regression, clustering, etc., making them applicable across many different domains within BCI research.
On the other hand, these methods are known for their computational complexity. While GAs provide efficient solutions compared to other methods, they require more computational resources than some alternative approaches such as grid search or random search, which may limit their applicability on certain platforms with limited memory or computing power available, e.g., embedded devices used in mobile applications. In addition, they are limited in their interpretability. Due to their nature as black box models, it can be difficult to interpret why certain decisions were made by the algorithm, which could lead to issues when trying to debug any errors during the development stages or if unexpected behavior occurs while using the system live.
PSO in BCI has been used for feature selection, parameter tuning, and model selection. Its strong sides are [99][100][101][102]: -PSO is simpler than other optimizers since it does not require costly derivatives or linear algebra operations; -PSO can be used with any type of problem formulation, such as discrete, continuous, constrained, or unconstrained optimization problems; -PSO can find solutions faster compared to traditional algorithms because it uses parallel computing techniques that allow multiple particles to explore the search space simultaneously and cooperatively; - The algorithm is easy to implement due to its simple structure and few parameters to adjust during its execution process. -It does not require an initial guess from the user and thus can be useful in cases where one may not know what kind of solution they are looking for.
On the other hand, PSO's downsides are the following: -The results obtained by using this method depend on the choice of parameters such as inertia weight, cognition factor, social factor, etc., so if these values are set too high or too low, then the result will also suffer accordingly. -It may take more time than other methods since many iterations need to be done until a good solution is found; -Some features may remain unexplored due to a lack of exploration strategies implemented in some versions of PSO algorithms, resulting in sub-optimal solutions being returned instead of optimal ones.

BCI Datasets and Benchmarking
In order to assess the performance and accuracy of different BCI techniques and methods for designing these interfaces, BCI datasets are typically used. These datasets are collections of data gathered from individuals using BCI systems and provided either by research organizations, BCI manufacturers, or individual researchers. Commonly used BCI datasets include NeuroSky Mindwave [103], Emotiv EPOC+ [104,105], OpenBCI Ganglion [106], Graz University EEG Motor Imagery Database [107], PhysioNet EEG Motor Movement/Imagery Dataset [108], etc. These datasets provide a variety of recordings, including raw EEG data as well as preprocessed information such as event-related potentials (ERPs).
The NeuroSky Mindwave dataset consists of recordings made during various cognitive tasks such as mental arithmetic and memory recall, while the Emotiv EPOC+ dataset contains recordings taken during emotional recognition tasks. The OpenBCI Ganglion dataset includes both resting state and motor imagery recordings, while the Graz University EEG motor imagery database provides detailed information on motor imagery-related activities performed by subjects in an experimental setting. Finally, PhysioNet's EEG motor movement/imagery dataset offers multiple types of motor imagery tasks along with corresponding scores indicating how accurately each task was performed by participants.
Another widely used BCI benchmark dataset is described in [109][110][111]. These datasets were initially used in BCI research competitions in the early 2000s, and could now be used to assess the performance and accuracy of novel BCI techniques and methods. These datasets typically consist of EEG signals recorded by participants as they perform various tasks. The most commonly used BCI benchmark datasets include [109][110][111] The OpenMIIR Dataset [112]: This dataset includes EEG recordings from 20 healthy volunteers who were asked to imagine either moving their hands, feet, tongue, or eyes in order to control a virtual avatar on screen by using their thoughts alone; - The High-Gamma Dataset (HGD) [113,114]: This dataset is composed of high-gammapower EEG signals that can be used for studying the neural correlates associated with visual perception and memory encoding processes in humans using machine learning algorithms.
Thus, existing BCI datasets allow one to assess novel BCI techniques and algorithms, helping to improve their performance and accuracy.

Noise and Environmental Disturbances Impact on BCI Systems
As with any form of communication, noise and environmental disturbances can greatly reduce the efficiency of BCI systems. The most common type of external disturbance encountered by BCI systems is acoustic noise. This includes any sound produced by people or machines in close proximity to a BCI system user, such as conversations, typing noises, etc., that may interfere with accurate EEG signal acquisition or processing. Studies have shown that even low levels of background noise can significantly reduce accuracy when trying to distinguish different mental states (e.g., attention vs. relaxation). Furthermore, some studies also suggest that certain frequencies can be more disruptive than others depending on their similarity to those present in EEG signals; therefore, it is important to identify these frequencies prior to using a BCI system in order to minimize interference from external sources [115].
In addition to acoustic sources of interference, there are also numerous types of electromagnetic fields present in everyday life that may interfere with the proper functioning of a BCI system due to its reliance on electrical signals generated by neurons within the brain [116]. Common sources include power lines, radio waves emitted from cell phones or Wi-Fi routers, etc., all of which could potentially disrupt neural activity recorded via EEG electrodes, thus reducing overall accuracy when detecting specific mental states or commands given by users [117]. Therefore, it is essential that adequate shielding measures are taken during the design and implementation stages so as not to compromise performance due to unwanted outside influences [118].
Noise and environmental disturbances can severely affect the efficacy of BCI systems if left unchecked; however, appropriate measures taken during the development stages concerning both acoustic/mechanical interferences as well as electromagnetic ones should help ensure maximum efficiency when using such technologies going forward into future applications involving human-machine interactions.

Applications
BCIs have been proposed for use in many fields, including medicine, neuroscience research, education/training environments, human-computer interaction, and even gaming/entertainment applications where users can control virtual objects using only their thoughts without any physical movement required. In addition to these more traditional uses, there is also ongoing work exploring new areas such as thought-controlled wheelchairs, which allow disabled people greater freedom of mobility without relying on manual controls; prosthetic devices enabling amputees to have better manipulation capabilities than ever before; communication aids designed specifically for people suffering from severe speech impairments; remote monitoring systems that track vital signs while allowing patients greater independence at home rather than having them stay confined in hospitals; and even mind-controlled drones. The possibilities seem endless when considering what could be achieved if we were able to understand our brains better, so let us take a look at some examples where this technology has already made an impact.

Neuroprosthetics
BCIs are being used to create neuroprosthetic devices, which allow people with physical disabilities to control external devices such as wheelchairs and robotic arms using their own brain signals. For example, the BrainGate neural interface system is a device that can be implanted in the brain to record electrical activity from neurons and translate it into commands for controlling external devices.
The use of BCIs in neuroprosthetics is a rapidly growing field, with potential applications ranging from restoring communication to those who have lost it due to injury or illness to providing enhanced control of prosthetic limbs. BCI technology has been used for decades in the medical sector but only recently began being applied to the development of neuroprostheses [9,12,119,120].
One example of BCI technology being used in neuroprosthetics is brain-controlled robotic arms and hands [121][122][123][124][125]. These are designed to allow users with spinal cord injuries or amputations to move their prosthetic limb by simply thinking about it, rather than having to manually control it using switches or joysticks. This type of device can also be used as an assistive tool for people with limited motor skills, such as stroke victims or those suffering from degenerative diseases such as ALS (amyotrophic lateral sclerosis). By interpreting electrical signals produced by neurons in the user's brain, these devices can accurately predict what action they should take when given input from the user, allowing them greater independence and mobility.
Another application for BCI technology within neuroprosthetics is its use in restoring communication capabilities for those unable to speak due to paralysis caused by conditions such as ALS, stroke, or traumatic brain injury [126,127]. In this case, electrodes placed on the scalp detect electrical activity produced by neurons that would normally be associated with speech production and then translate this into words spoken through a computerized voice synthesizer. This allows individuals who cannot physically produce sound themselves to still communicate their thoughts and feelings without relying solely on writing them down or typing out messages using eye-tracking software programs-enabling them much more freedom than before.
Finally, neural implants are another form of BCI technology currently being explored within the realm of neuroprosthetics research-particularly as part of "neurohybrid" systems combining both biological components (such as nerves) and artificial ones (such as microprocessors) [121,128,129]. Neural implants involve surgically implanting electrodes directly into areas responsible for controlling movement so that they can receive direct commands from neuronal activity generated there instead-potentially resulting in even faster response times than traditional forms of BCIs, which rely on detecting signals transmitted through scalp electrodes alone.
Overall, BCI technology is an exciting new field with a wide range of potential applications within the realm of neuroprosthetics-from restoring communication capabilities to providing enhanced control over prosthetic limbs and beyond. As research continues to progress in this area, it can be expected that further advancements will be made that will allow individuals with disabilities greater independence and mobility than ever before.

Communication
BCI technology is also being used to develop new ways of communicating for people who have lost the ability to speak or write due to paralysis or other conditions. For example, BCI systems can be used to detect intentions from users' brain signals and then convert them into text messages or even speech output through computer algorithms [14,130].
BCIs have become increasingly popular in recent years as a way to enable communication between humans and machines. BCIs are devices that measure brain activity, such as electrical signals from the brain, and then use this information to control external objects or systems. BCIs can be used for a variety of applications, including controlling prosthetics, medical diagnosis, rehabilitation therapy, gaming, robotics control, and even communication.
This type of research is promising as it could be used to help people with disabilities who cannot communicate verbally or physically due to paralysis or other conditions.
Other studies have looked into how BCI technology can be used for more complex forms of communication, such as typing on a computer keyboard or giving speech commands via voice recognition software [131][132][133][134][135][136]. These types of applications could prove useful for helping individuals with severe motor impairments regain some level of independence when communicating with others. Additionally, there have also been attempts at developing interfaces that allow users to generate language through thought alone using EEG recordings. While these technologies are still relatively new and require further development before they can be widely adopted, they represent an exciting potential future application for augmenting human-machine interaction via BCI technology.
Overall, BCI technology has the potential to revolutionize communication as we know it. While there is still a lot of research and development needed before this technology can be widely adopted, the potential for enabling individuals with disabilities to communicate more effectively or even generate language through thought alone is an exciting prospect.

Gaming
BCIs are increasingly being used in gaming applications where players can interact with virtual environments using only their thoughts instead of traditional controllers such as keyboards and joysticks [137][138][139][140][141][142].
One example of a game that utilizes BCI is MindRDR, developed by the Londonbased startup This Place [143]. The game uses EEG sensors to measure players' emotional responses while playing. Players use their mental focus or concentration levels to control the direction and speed of an avatar on screen. As players become more emotionally engaged with the game, their avatar will move faster and farther across the screen than if they were not as focused or engaged with it.
Another example of a BCI-enabled video game is Brain Wars from NeuroSky Inc., which allows players to compete against each other using EEG headsets to measure brainwaves associated with concentration levels during gameplay [144,145]. Players must concentrate hard enough so that their brain waves reach certain thresholds in order to be able to progress through different levels in the game.
In addition, there are several research projects underway exploring how BCIs can be used for virtual reality gaming experiences [146,147].
Overall, BCIs offer great potential when it comes to enhancing gameplay experiences by providing gamers with new ways of experiencing games beyond just pressing buttons on controllers or keyboards-allowing them instead to tap into emotions and thought processes unique to themselves! With further advancements in technology, BCIs could become a major part of the gaming industry in the future.

Education
BCIs are being used to enhance the learning experience by providing real-time feedback about students' cognitive states and helping them focus better on their studies. This technology has been used in various ways for educational purposes, ranging from helping students with special needs learn how to control their movements and communicate effectively to providing more immersive learning experiences for all learners [148][149][150][151].
Research on the use of BCI in education has shown positive results when it comes to improving student engagement and motivation. For example, one study found that using BCI-based games improved cognitive skills among students who had difficulty paying attention during traditional classroom activities. Additionally, research suggests that BCI can be used as an effective tool for teaching abstract concepts such as mathematics or foreign languages by allowing users to directly experience the material instead of relying solely on verbal instruction.
Furthermore, studies have demonstrated that the use of BCIs can reduce stress levels among students by providing them with a more natural way of interacting with computers than conventional input devices such as keyboards or mice. Finally, research indicates that BCIs may provide new opportunities for personalized learning since they allow teachers to tailor lesson plans according to individual students strengths and weaknesses based on real-time feedback from brain activity data.
Overall, research suggests that BCI technology has the potential to revolutionize education by providing more engaging and immersive learning experiences for students of all ages.

Mental Health
BCI technology is also being explored as a potential treatment for mental health conditions such as depression, anxiety, and addiction by allowing clinicians to monitor patients' brain activity in real time and provide targeted interventions when required [152][153][154][155]. In mental health care, BCI can be used to assess cognitive processes such as attention and memory; detect changes in emotional states; monitor progress in therapy; measure levels of stress or relaxation; provide feedback during biofeedback exercises; diagnose neurological disorders such as Alzheimer's disease or Parkinson's disease; improve motor skills after stroke or traumatic brain injury (TBI); help people suffering from depression manage their symptoms through self-regulation techniques; reduce anxiety associated with public speaking; and more. In addition, BCIs have been shown to be effective tools for helping patients develop better coping skills when dealing with difficult emotions such as anger or fear.
Research suggests that BCI could potentially revolutionize how we approach mental healthcare by allowing us to quickly identify psychological problems at an early stage and intervene before they become serious issues. For example, some research has suggested that EEG-based BCIs may be able to detect subtle signs of distress related to depression that would not normally be picked up by traditional methods of assessment such as questionnaires or interviews alone. Other research has demonstrated how portable EEG systems can be used in real-time settings outside of a clinical environment, providing clinicians with valuable information about the patient's condition without having the patient physically present in front of them.

Sleep Medicine
Recently, there has been an increasing interest in BCI's potential application for sleep medicine applications, such as improving sleep quality and diagnosing different psychiatric and neurodegenerative diseases by analyzing sleeping stages [156][157][158][159][160][161][162]. The use of BCIs could help individuals track their sleeping patterns more accurately than traditional methods.
One way this technology can be utilized is through EEG-based BCI systems, which measure electrical activity in the brain during different stages of sleep. These devices are able to detect changes in neural oscillations associated with rapid eye movement (REM) and non-REM sleep cycles, allowing accurate tracking of the user's progress throughout the night.
Another promising application for sleep BCIs is treating various types of insomnia by providing targeted neurostimulation therapies such as transcranial alternating current stimulation (tACS). tACS uses low-intensity electric currents delivered directly into specific areas of the brain believed to regulate wakefulness/sleep cycles, thus helping reset abnormal rhythms associated with poor sleeping habits or disruptions caused by stressors such as jet lag or shift work schedules.
Furthermore, research suggests that combining tACS with cognitive behavioral therapy might produce better results compared to either treatment alone when it comes to managing chronic sleeplessness conditions such as primary insomnia disorder or obstructive sleep apnea syndrome (OSAS). Sleep brain computer interfaces offer great potential for improving our understanding of how we process information during restful states while also enabling more effective treatments for common problems related to the lack/disruption of adequate shut-eyefrom mild cases involving occasional difficulty falling asleep all the way up to severe clinical disorders such as OSAS. As these technologies continue to advance over time, we should see further improvements both in terms of accuracy when monitoring physiological parameters related to slumber and in terms of efficacy when delivering personalized interventions meant to optimize one's overall wellbeing.
Overall, there is still much work needed before we can fully understand the potential benefits offered by this exciting new technology, but initial findings suggest it could dramatically improve our understanding of mental illness while offering patients access to more personalized treatments tailored specifically for their individual needs.

Conclusions
The paper presented the current state-of-the-art in brain-computer interface technologies. Main platforms used for BCI data collection, such as EEG, fNIRS, MEG, and ECoG, were reviewed, and their pros and cons were singled out. It was concluded that the choice of a platform depends on the research goals, cost of equipment, patient comfort level, etc., while it is not correct to say that one of the platforms is better than others in general.
The most widely used BCI signal processing techniques, such as ICA, wavelet transformation, SVM, hidden Makrov models, machine learning, and genetic algorithms, were reviewed. Brief principles of their operation and main application areas are highlighted.
Finally, the main BCI system application areas, such as neuroprosthetics, communication, gaming, education, and mental health care, were reviewed.
It was highlighted that BCI offers tremendous potential opportunities across multiple domains-both existing ones, such as medical treatment and monitoring, and entirely novel concepts, such as controlling drones via thought alone. There is still much progress needed, however, before these ideas become realities-further technological developments must continue alongside increased understanding about how our brains actually function so that reliable interactions between humans and machines can be established and maintained over time safely and effectively.