Open Access

BCI inside a virtual reality classroom: a potential training tool for attention

EPJ Nonlinear Biomedical Physics20153:12

DOI: 10.1140/epjnbp/s40366-015-0027-z

Received: 5 October 2015

Accepted: 6 December 2015

Published: 24 December 2015



A growing population is diagnosed with Attention Deficit Hyperactivity Disorder (ADHD) and are currently being treated with psychostimulants. Brain Computer Interface (BCI) is a method of communicating with an external program or device based on measured electrical signals from the brain. A particular brain signal, the P300 potential, can be measured about 300 ms after a voluntary cognitive involvement to external stimuli. By utilizing the P300 potential, we have designed a BCI- assisted exercising tool targeting attention enhancement within an immersive 3D virtual reality (VR) classroom.


Combining a low-cost infrared camera with an “off-axis perspective projection” algorithm to achieve the illusion of 3D, an engaging training environment has been created. The setup also includes a single measurement electrode placed on the scalp above the parietal lobe (Pz). Two sets of experiments have been performed to elicit the P300 potential. One used a system which is a variant of Farwell and Donchin’s famous P300 speller and the other used a system where the user is required to search for a specific letter in a series of changing images. A non-linear optimized support vector machine (SVM) classifier has been used to automatically detect the P300 potential.


Six subjects have participated in the preliminary experiment to test the prototype system, and an average error rate below 0.30 have been achieved, which is noteworthy considering the simplicity of the scheme.


This work has successfully demonstrated a non-intrusive, low-cost, and portable system targeting attention in a motivating and engaging environment.


Attention deficit hyperactivity disorder (ADHD) Brain computer interfaces (BCI) Neurorehabilitation P300 Virtual reality


Attention deficit hyperactivity disorder (ADHD) is a major ailment among children characterized by behavioral problems in the form of inattentiveness, hyperactivity and impulsiveness [1]. Worldwide the childhood prevalence of ADHD is about 5 %, making it one of the most dominant disorders among children [2]. The current first-line treatment option for such disability involves pharmacotherapy by psycho-stimulants which directly affects the central nervous system, and is associated with severe side effects [3]. The demand for an alternative treatment is apparent in the vast majority of ADHD studies. With the recent advances in neurofeedback, an alternative treatment for ADHD utilizing the brain waves has shifted focus from psycho-stimulants to drug-free treatments.

Neurofeedback is a Brain-Computer Interface (BCI) variant where the user is receiving feedback based on the frequency components in the electroencephalogram (EEG) [4]. BCI is an interface between the brain and an external device which enables signals from the brain to control the external device. It can be perceived as a communication scheme in which the user’s intention is converted to an output without involving the usual output pathways of peripheral nerves and muscles [5]. Several researchers have shown that BCI has the potential as an alternative treatment option to train ADHD subjects [612]. Neurofeedback for ADHD treatment are of two different types: one based on the Sensory Motor Rhythms (SMR), and the other based on the α, β and θ waves in the EEG. The latter approach is derived from the “low-arousal hypothesis” that the ADHD subjects are experiencing less sensory stimuli than normal subjects [4]. When comparing ADHD subjects to normal control subjects, an excessive amount of slow waves (θ and α, usually present during shallow sleep or relaxed state) and less amount of high frequency waves (β, usually present during excited and mentally active states) are evident. By providing a positive feedback when the subject manages to display higher frequency, a training tool for attention can be developed.

The highly researched neurofeedback methods are subject to discussion. They are based on brain indices that can be altered simply by closing or opening the eyes, or by performing hard mental tasks. These parameters cannot be linked as a measure of attention to the relative task. In our pilot study, another approach is sought, that ensures attention to the specific task. We propose a first-of-a-kind (to the best of our knowledge) BCI system for attention training that is based on the P300 potential. P300 is a large positive voltage in the recorded EEG, strongest around midline of the parietal lobe, peaking 300 ms after a rare relevant stimuli. It is only present when the subject has to get involved during a specific stimulus or event, and represents voluntary cognitive processing [13, 14]. Therefore, we believe that P300, as a potential only present at cognitive involvement, would be a suitable brain index that contains information on whether the subject is attentive or not. With this idea in mind, our approach has been to develop a prototype that uses numerous feedback systems as attention games. These games require the subject to be fully engaged in locating or acquiring relevant information that is presented rarely or in a short amount of time, amongst the frequent non-relevant information. If the subject can attend the relevant information, a P300 response can be identified in the EEG at that time. A competitive reward system provide points for eliciting the P300 responses as well as for correctly answering questions where attention on the information is necessary. A training environment requires challenges for the subject to be able to improve, just as gravity is a challenge when learning to ride a bike. Therefore, we embedded the proposed system in a 3D virtual reality (VR) classroom, that serves as an environment where real-life distractions can be simulated and controlled.


This section covers the methodology for implementing the prototype of the training tool which could eventually be used for ADHD subjects. It includes the design of the attention games and the VR classroom with the simulated distractions. The experimental protocol on healthy subjects and the machine learning methods to classify a possible attentive state are also explained in detail.

Attention games

Two oddball attention experiments were designed for the BCI setup running inside the VR classroom. These were constructed to challenge the sustained visual attention and visual discrimination. Both experiments require a great deal of conscious effort to concentrate and continue looking as well as quickly shifting attention; tasks that are hard for ADHD subjects [15].

In the first experiment, called the ANISPELL, a variant of the famous Farwell and Donchin’s P300 speller is used [16]. The interface consists of a 4×4 grid of neutral animal pictures in grayscale with black background. In a pseudorandom fashion, a row or column of pictures were flashed-up, by displaying the true colors with a white background (illustrated in Fig. 1). The flash-up was kept for 100 ms and then followed by a 100 ms duration with all pictures returned to grayscale, corresponding to an inter-stimulus interval (ISI) of 200 ms. The sequence was repeated until all rows and columns have had 15 flash-up phases, which was denoted as a trial.
Fig. 1

A close-up of the attention game, ANISPELL. It consist of 16 animal images in a 4×4 grid. An entire row or column is flashed-up in a pseudorandom sequence displaying the true color animal with white background. The subject is asked to pay attention to a specific animal, and will at the end of a trial answer questions related to the animal

The subject was asked to attend a specific animal for the entire trial. They have to locate the most dominant color, a unique color, which could be a small area with manually changed pixel values, and a third attribute that was specified after the trial. Keeping the third question unknown made the subject engaged even after finding the answer to the two first questions. As an example, the third question for the goldfish was: “Was the top of the head darker than the body?”. Twelve trials were conducted for this experiment, with the two first trials used to generate an unbiased template for the feature extraction process elaborated in the Feature Extraction section.

The second experiment, called the T-SEARCH, was designed with inspiration from Frintrop et al. [17]. Twelve different images were shown randomly one at a time with an ISI of 200 ms containing several “X” and “T” in different colors. The images were repeated, pseudorandomly, ten times. Three example images are displayed in Fig. 2 ac.
Fig. 2

ac Illustrates three out of the twelve images presented during the attention game, T-SEARCH. The images are shown one at a time with a frequency of five images each second, repeated several times. The subject is asked to locate any blue colored “T” symbol presented in the images. d Represents the image that is displayed at the end of a trial. The subject had to show (in the order of their appearance), which area a blue colored “T” were present

Four of the twelve images contain a blue “T” and the order of their appearance, in the pseudorandom repetitions, would not change. The subjects were asked to pay attention to the blue colored “T”, remember its location and count the number of red T’s that were present together with the blue “T” images. Five trials were run each with a different set of images. At the end of each trial, the subjects had to identify the location of the blue “T” in a compartmentalized square (shown in Fig. 2 d). The questions, that were answered in the two experiments, were used in a cumulative scoring system to create a competitive game between the subjects.

Virtual reality classroom

VR can be seen as a Human-Computer Interface where it is possible to interact and become immersed in a computer created environment that is sought to be naturalistic and provide a sense of presence [18]. It has the advantages that it provides a “real-life” chaotic and naturalistic environment where the subject forgets the controlled test lab environment. Most importantly, the environment can be fully controlled making it possible to simulate distractions. In our study, a classroom was chosen since it is an environment that children are exposed to almost every day, where attention is especially important in relation to learning and socializing.

The VR classroom was created using the gaming engine UNITY with some of the 3D accessories designed in the 3D modeling software BLENDER. The classroom includes six pupil desks each having two seats, projection screen, posters, a soccer ball, several hula-hoops, a wall-clock, book shelves and a first aid kit. Two windows in the left side of the room are facing out onto a road. The ceiling of the classroom contains a fan, projector and six fluorescent lights. Also is seen a female teacher, her desk as well as a computer on the desk, and a blackboard behind her. Screenshots of the VR classroom are shown in Fig. 3.
Fig. 3

Two screenshots of the VR classroom scene. a A side view of the teacher pointing at the pupil. A large portion of the accessories is visible, and one of the simulated distractions, the car driving by, is visible outside the window. b A view from the back of the VR classroom. Note that the attention game ANISPELL is running on the projection screen


Several distractions have been designed and incorporated inside the VR classroom. They were split into auditory distractions (sound of cars passing outside, and ambient classroom noise of children talking, pencil dropping and chairs moving) and visual distractions (construction worker entering and exiting the classroom, paper planes flying in the classroom, the fan rotating and a car passing outside) inspired by Rizzo et al. [19]. These distractions were not used in our experiments with the prototype system, since the aim of this pilot study was to prove that P300 is indeed a measure of attention. By excluding distractions in our preliminary experiment, we were able to assume attention on all relevant stimuli. These distractions will be included in future training sessions on ADHD subjects.

Microsoft kinect

An idea based on the work by Lee [20] provides an immersive “sense of presence” 3D illusion on a standard monitor. With MICROSOFT Kinect - an infrared camera measuring depth values, it is possible to track a person in front of it. The recorded depth values were sorted into 32 bins covering a depth range of 4096 mm, with each bin representing a depth resolution of 128 mm. The torso of the subject in front of the camera is in general flat and occupies a large area. Therefore, the bin with the largest count of depth values and the two bins next to it were defined to represent the subject. The neighboring bins were used to increase the robustness during bending posture. The depth values placed in the three bins was averaged together and the modulus was calculated with respect to the frame size to find the (x,y,z) position. The position was sent to an “off-axis perspective projection” algorithm [21]. The algorithm was implemented inside UNITY, and updates the 3D view of the entire VR classroom based on the received position. The subject was able to look around, above, below or closer in the VR classroom just by moving respectively left or right, down, up, or closer to the monitor.

Experimental setup

Six healthy young subjects (one female and five males) aged between 24 and 32, participated in this pilot study (the first subject was excluded due to a different procedural method). The EEG recordings were done using four electrodes. The unipolar reference electrode was placed at the left earlobe, a ground electrode at Fpz, an electrooculography (EOG) electrode below the left eye, and a measurement electrode at Pz. These positions were in accordance with the 10-20 international standard of EEG electrode placement. A fifth electrode input was activated as a trigger channel. Each time a stimulus was presented to the user, a trigger was set as a simultaneous time-stamp to the EEG.

The electrodes were all attached to the GTEC bio-amplifier (G.USBamp), which digitized the signal at 256 Hz, and band-pass (0.5−30 Hz) filtered with an 8th-order Butterworth filter. The amplifier was connected with a USB port to a 32-bit Windows XP computer using MATLAB R2008 to run the amplifier. The VR classroom interface was running on a 64-bit Windows 7 with a Xeon processor. A UDP connection was established between the two computers. Figure 4 illustrates the setup with the VR interface that was presented to the user.
Fig. 4

Illustration of the experimental setup. G.USBamp is seen on the table with the attached EEG electrodes. The reference electrode on the left earlobe and the recording electrode from Pz is visible. The Kinect situated below the interface screen is turned on and tracking the subject. The tracked area is visualized in the left screen as the red area, with the ceiling and the person taking a photo is colored gray representing ignored depth value measurements

The subjects reported no discomfort with the experiments or mounting of the electrodes. They reported that the questions and competition element made it motivating to stay engaged during the entire recording session.


We chose a subject specific classifier for the prototype system as per the findings by Thulasidas et al. ([22], Table 1). The collected EEG signals were further low-pass filtered by a 20-sample moving average filter with a corresponding cut-off frequency of 12.8 Hz to minimize possible muscle artifacts, while still preserving the P300 potential [23]. The VR classroom training system gave rise to eye movements from the subjects. An adaptive filter based on the Recursive Least Squares (RLS) algorithm [24] was used to minimize the EOG artifacts, from the EEG signals.

The preprocessed signal was divided into epochs each representing a displayed stimulus from onset till 700 ms after. Five epochs representing identical stimuli (same row/column or same image) were then averaged together. An equal number of P300 epochs and non-P300 epochs was ensured by removing a large portion of non-P300 epochs. The grand average signal from the P300 epochs (solid lines) and the non-P300 epochs (dashed lines) are displayed in Fig. 5.
Fig. 5

The grand average of the P300 epochs for all five subjects are shown with solid lines, while the non-P300 epochs are shown with dashed lines. The epochs have a duration of 700, with t=0 representing the moment where the attended animal is flashed-up

Non-parametric permutation test

Before extracting the features from the preprocessed EEG signal, an interval defining the P300 occurrence has to be located for each subject. By a permutation test using the paired t-test statistics, and corrected for the Multiple Comparisons Problem (MCP) by the t max method [25], it was possible to locate samples that were statistically different. The MCP has to be addressed, since we were testing all sample points within an epoch of length 700 ms with sampling frequency of 256 Hz, it corresponds to 179 samples to test for significance. The probability for Type I error in the 179 tests (α fam ) was set at 0.05 with the null hypothesis that P300 epoch −P300 n o ne p o c h =0 and the alternative hypothesis P300 epoch −P300 n o ne p o c h ≠0.

The procedure was to calculate the paired t-value for all sample values, and then compare it against the non-parametric null-distribution that was generated by permuting the samples between P300 and non-P300 epochs. Each permutation generates 179 new t-values, but only the largest (t max ) was stored for the null-distribution. The positive statistically significant samples were chosen to define the P300 interval.

Feature extraction

The processed epochs constitute a matrix (S) as shown in Eq. (1) with epochs (m=1,2,…M) along the rows and sample number (n=1,2,…N) along the columns.
$$ \textbf{S} = \left(\begin{array}{cccccc} s_{1,1} & s_{1,2} & \ldots & s_{1,n} & \ldots & s_{1,N} \\ s_{2,1} & s_{2,2} & \ldots & s_{2,n} & \ldots & s_{2,N} \\ \vdots & \vdots & \ddots & \vdots & \ddots & \vdots \\ s_{m,1} & s_{m,2} & \ldots & s_{m,n} & \ldots & s_{m,N} \\ \vdots & \vdots & \ddots & \vdots & \ddots & \vdots\\ s_{M,1} & s_{M,2} & \ldots & s_{M,n} & \ldots & s_{M,N} \end{array}\right) $$
The collected data contains M=240 rows (8 (flash targets) × 15 (repetitions)/5(averages) × 10 (trials)), but cut down to (M=120) for reasons mentioned earlier, and N=179 samples. A total of 24 features were extracted from S. We used features targeting the temporal shape of the recorded epochs and (dis)similarity features that were produced by comparing the epochs with a template epoch that was generated during the ANISPELL recordings. The most relevant features are presented below (three temporal features and three template features). (i) Standard fraction: The ratio between the standard deviations in the P300 interval (t p ) and baseline interval (t b ), defined here as the interval from onset till 200 ms after (the intervals are shown in Fig. 6), denoted as \({f_{m}^{3}}\) in Eq. (2):
$$ {f_{m}^{3}} = \frac{\sqrt{\frac{1}{T_{p}} \sum_{n=t_{p}(1)}^{t_{p}(T_{p})} \left(s_{m,n}-\mu_{m}(t_{p})\right)^{2}}}{\sqrt{\frac{1}{T_{b}} \sum_{n=1}^{T_{b}} \left(s_{m,n}-\mu_{m}(t_{b})\right)^{2}}}, $$
Fig. 6

An example epoch from subject 2. The red area illustrates the baseline interval (t b ), and the green area illustrates the P300 interval (t p ) found from the permutation test. Within the green area three points are selected: the maximum value, the minimum to the left and the minimum to the right

where T p and T b are the number of samples respectively in t p and t b , and μ m (·) are the corresponding mean values of epoch m.

(ii)Power fraction: The ratio between the total power in the P300 interval (\(P_{t_{p}}\)) and the baseline interval (\(P_{t_{b}}\)), denoted as \({f_{m}^{5}}\) in Eq. (3):
$$ {f_{m}^{5}} = \frac{P_{t_{p}}}{P_{t_{b}}} = \frac{\sum_{n=t_{p}(1)}^{t_{p}(T_{p})} s_{m,n}^{2}}{\sum_{n=1}^{T_{b}} s_{m,n}^{2}} $$
(iii) Triangle area: The area of a triangle within the P300 interval (as shown in Fig. 6), denoted as \(f_{m}^{23}\) in Eq. (4):
$$ f_{m}^{23} = \frac{1}{2} \left| \begin{array}{ccc} x_{1} & y_{1} & 1 \\ x_{2} & y_{2} & 1 \\ x_{3} & y_{3} & 1 \end{array}\right|, $$
where |·| denotes the determinant. (iv) Cosine similarity: For one of the template specific features, the cosine similarity measure was used, denoted as \({f_{m}^{8}}\) in Eq. (5):
$$ {f_{m}^{8}} = \frac{\vec{s}_{m}^{T} \vec{s}^{*}}{\| \vec{s}_{m} \| \| \vec{s}^{*} \|} \text{;} \vec{s}_{m},\vec{s}^{*} \in \Re^{N}, $$

where \(\vec {s}_{m} = \left [s_{m,1},s_{m,2},\ldots,s_{m,N}\right ]^{T}\), \(\vec {s}^{*}\) is a column vector representing the template epoch and · denotes the Euclidean norm.

(v) Pearson correlation: A measure of the linear relationship between the epoch and the template. It is calculated using Eq. (6) after making the vectors zero-mean and unit variance, and is denoted as \({f_{m}^{9}}\):
$$ {f_{m}^{9}} = \frac{\vec{s}_{m}^{T} \vec{s}^{*}}{N-1} $$
(vi) Weighted Euclidean: A weighted Euclidean distance measure between the epochs and the template, denoted as \(f_{m}^{12}\) in Eq. (7):
$$ f_{m}^{12} = \| \sqrt{\textbf{D}} \cdot (\vec{s}_{m} - \vec{s}^{*}) \| \text{;} \sum_{n=1}^{N} w_{n} = 1, $$

where D=diag(w 1,w 2,…,w N ) is a N×N diagonal matrix with the elements representing the weighting of the sample points (the t p interval was weighted four times as large).

At this stage we had a feature matrix of size 120×24 of the ANISPELL data. From this matrix, 25 % of the data was allocated as a performance-set to evaluate the classifier.

Support vector machine

Support Vector Machine (SVM) is a popular classifier for the binary separating (P300 vs non-P300 epochs) scheme due to its stability, low variance and generalization properties; a regularization term (C) and the maximum margin method [26].

Since SVM includes the dot product of the features, a nonlinear separation can be achieved by the Kernel trick [27]. The Gaussian kernel; the most popular kernel was used in this study and shown in Eq. (8) [26]:
$$ \textbf{K}(\vec{f}_{i},\vec{f}_{j}) = e^{\frac{- \| \vec{f}_{i} - \vec{f}_{j} \|^{2}}{\sigma}} \text{;} \,\sigma > 0 \text{,}\, i\,{,}j = 1,\ldots,120, $$

where \(\vec {f}_{i} = \left [\,f_{i}^{1},{f_{i}^{2}},\ldots,f_{i}^{24}\right ]^{T}\) is the i’th feature vector and σ denotes the smoothing parameter, which models the degree of nonlinearity.

By introducing the nonlinear Gaussian kernel SVM, two parameters were to be tuned: σ and C. Optimization of these parameters was achieved, through a 3-fold cross-validation (CV), by the Pattern Search (PS) algorithm included in the Global Optimization Toolbox in MATLAB. Based on a given starting point, it searches for the maximum performance in the {σ,C} space by a derivative-free direct search approach. Matthews correlation coefficient (ϕ) has been chosen as the performance criterion since it takes into account all four outcomes with a single value [28]. A value of ϕ=1 indicates a perfect prediction, ϕ=0 represents random prediction, and ϕ=−1, a complete mismatch. In each CV fold PS was run with ten different starting points and with one feature at a time, selected through a forward sequential search algorithm. The feature with the highest-averaged CV performance was kept, and a new round with two features was run. This was continued until the performance in the averaged test set did not improve. A pseudo-code for the algorithm is shown in Algorithm 1. The selected features from each subject is shown in Table 1.
Table 1

A complete table with results from the ANISPELL recordings







t p (10−2 s)







[9 16]

[20 24 18 4]

[9 18 13]

[9 12 5]

[1 3 24]

ϕtest set






Def. p. error






Opt. σ






Opt. C






Opt. p. error






ϕ p. set






AUC p. set






SE. p. set






SP. p. set












“p” stands for the performance-set. Total game score (TGS) represents the points the subjects achieved during the experiments

ϕ was assisted with the conventional error rate, a sensitivity (SE), specificity (SP) and the area under the receiver operating characteristic curve (AUC) on the 25 % performance-set.

Results and discussion

The MCP corrected permutation test was used to locate a subject specific P300 interval. The P300 interval area for all five subjects were successfully observed, and visualized in Fig. 7 which illustrates the t-values as a function of time. The significant t-values are colored in the red and blue, while the gray color representing non-significant time instances. P300, being a positive potential, the interesting areas are in the red color-map. Subject 1 had the smallest averaged statistical significant P300 interval (t(1,9)=5.78,p<0.0153), while subject 4 had the largest averaged statistical significant P300 interval (t(1,9)=17.31,p<0.0022). These time instances were used as the P300 interval for the SVM analysis. The result of the analysis is displayed in Table 1.
Fig. 7

The t-values from the permutation test for all five subject through the entire epoch duration (for the ANISPELL recordings). The negative values are colored with a blue color-map. They show negative t-values that are significant. The gray colored pixels are non-significant t-values found from the controlled α fam -level estimate and are on average between 4 and −4 (±0.13). The red color-map represents positive t-values that are all significant

The best performance was found from subject 4 with an error rate of 0.23. The PS algorithm proved effective with subject 1 achieving a drop from 0.47 to 0.37 error rate. The ϕ coefficient for the performance-set displayed a better performance than random guessing. The AUC value, being above 0.5, indicated a separation between the two classes of epochs.

The developed non-intrusive VR BCI system achieved an average error rate below 0.30. The performance is comparable to the literature but suffers from the children friendly setup. The setup was based on four electrodes and only one electrode for classification. A single recording electrode to capture the P300 response is rarely used as several electrodes can increase the amount of averaged epochs, as seen in the P300 controlled apartment by Bayliss [29] utilizing 9 electrodes. In the preprocessing step, the number of epochs for averaging was kept as low as five, which is usually in the order of 10−20. In the classification step, we detected P300 or non P300 epochs with no a-priori assumptions while many P300 classifiers uses a trial-based soft score measures in which one epoch (the most likely) is classified as a P300 epoch [30].

A careful tradeoff is needed between simplicity and performance, since performance is particularly important when BCI is used for neuro-rehabilitation. The feedback is considered, by the user, to be the correction solution and many false classifications will inhibit improvement. Besides the accuracy, a feedback which is fast enough is also important. Feedback from the P300 response happens after five averages of the target which corresponds to a time between 3.4 s to 5 s, depending on the pseudorandom order. This is a slower feedback than the usual neurofeedback methods which utilizes β and θ waves, and improvement in this area will be needed for a future setup.

The large variability in chosen features illustrated a low amount of data in the SVM analysis. Nevertheless, \({f_{m}^{9}}\) was proven superior since it was selected frequently as the best feature to discriminate P300 epochs from non-P300 epochs. Only 40 % of the features selected were temporal features with the rest being template based features. Therefore, the template generating trials were an important and somewhat limiting factor in the classification method. ADHD subjects are expected to have larger inter-subject differences in the P300 potential reflecting cognitive and processing difficulties [31]. The T-SEARCH game may prove more difficult than the flashing ANISPELL game, from which the template signal was derived, and could easily increase the amount of false negatives from the template based features. Furthermore, as argued by Wolpaw et al. [32], the P300 is likely to change over time, reflecting task adaptation. In contrast to the above, as the user progresses, the template has to be updated to accommodate the changes in the latency and amplitude.


With the results and feedback from the healthy subjects who participated in the first-of-a-kind P300 based VR training system for ADHD subjects, it is apparent that the system meets the insufficiencies seen in previous neurofeedback studies. The automatic P300 detection classifier was trained through forward selection of features derived from a template of the P300 signal, and temporal patterns. Although the non-linear SVM only used five repetitions of the same stimuli, the classifier still managed to detect the P300 with an average error below 0.30.

The P300 was demonstrated to be connected to attention in the healthy subjects, and suggests a positive effect on ADHD subjects as well. With the results on this preliminary study, demonstrating our prototype system, we hope to encourage the neurofeedback community to expand their BCI systems with interactive settings, competitive games, and the use of the P300 potential when aimed at a drug-free treatment for ADHD subjects. If the long-term effects proves significant, the training environment will be expanded to include several more oddball games.

With cheap hardware and a simple “off-axis perspective projection” algorithm, we have been able to suggest an affordable portable interactive environment with added visual and auditory distractions that can easily be used directly at schools, institutions or at private homes. The setup will require minimal instructions for the school- or after-school care personnel and we envision that the training games would be an integrated part for ADHD subjects, just as medication is a integrated part in our present day life.



The authors would like to thank Assoc. Prof. H. BD Sørensen, MD. T.W. Kjær, and Assoc. Prof. C. E. Thomsen for their valuable suggestions and inputs during the course of this work. The authors acknowledge the numerous interesting discussions they had with Ph.D. students M. Ordikhani-Seyedlar and A. Vilic. Thanks goes to M.Sc.(CS) M. H. Erichsen for introducing the authors to the domain of computer science where the idea behind the infrared camera came. Lastly, thanks goes to the volunteers who unconditionally and enthusiastically participated in the experiments.

Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License(, which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

Authors’ Affiliations

Department of Electrical Engineering, Technical University of Denmark


  1. Association AP. Diagnostic and statistical manual of mental disorders: DSM-IV-TR. Washington DC: Am Psychiatric Publishing, Inc; 2000, pp. 39–135.Google Scholar
  2. Polanczyk G, de Lima M, Horta B, Biederman J, Rohde L. The worldwide prevalence of ADHD: a systematic review and metaregression analysis. Am J Psychiatry. 2007; 164(6):942–8.View ArticleGoogle Scholar
  3. Rapport MD, Moffitt C. Attention deficit/hyperactivity disorder and methylphenidate: a review of height/weight, cardiovascular, and somatic complaint side effects. Clin Psychol Rev. 2002; 22(8):1107–31.View ArticleGoogle Scholar
  4. Lubar JF. Discourse on the development of eeg diagnostics and biofeedback for attention-deficit/hyperactivity disorders. Biofeedback Self-Regul. 1991; 16(3):201–25.View ArticleGoogle Scholar
  5. Wolpaw JR, Wolpaw EW. Brain-Computer Interfaces: Principles and Practice. New York: Oxford University Press; 2012.View ArticleGoogle Scholar
  6. Jiang L, Guan C, Zhang H, Wang C, Jiang B. Brain computer interface based 3D game for attention training and rehabilitation. In: Proc. 6th IEEE Conf. Ind. Elect. and Appl. China: IEEE Computer Society: 2011. p. 124–127.Google Scholar
  7. Tai C, Wang J, Yan N, Liu H, Liu M. Brain-computer interfaces based on attention and complex mental tasks. In: Proc. 1st Int. Conf. Dig. Human Model. Beijing, China: Springer: 2007. p. 467–473.Google Scholar
  8. Castelo-Branco M, Pires G, Torres M, Casaleiro N, Nunes U. Playing tetris with non-invasive BCI. In: Proc IEEE 1st Int. Conf. Serious Games and Appl. for Health. Braga, Portugal: IEEE: 2011. p. 1–6.Google Scholar
  9. Thomas KP, Vinod AP, Guan C. Enhancement of attention and cognitive skills using EEG based neurofeedback game. In: Proc. 6th Int. IEEE/EMBS Conf. Neural Eng. CA, USA: IEEE: 2013. p. 21–24.Google Scholar
  10. Lim CG, Fung DSS, Zhao Y, Lee TS, Teng SSW, Krishnan KRR, Guan C, Zhang H. A brain-computer interface based attention training program for treating attention deficit hyperactivity disorder. Plos One. 2012; 7(10):1–8.View ArticleGoogle Scholar
  11. Johnstone S. Computer gaming and ADHD: Potential positive influences on behaviour. IEEE Technol Soc Mag. 2013; 32(1):20–2.View ArticleGoogle Scholar
  12. Abdulla A, Puthusserypady S. A 3D learning playground for potential attention training in adhd: a brain computer interface approach. In: 37th Ann. Intl. IEEE EMBS Conf. Milan, Italy: IEEE: 2015.Google Scholar
  13. Emanuel D, Ritter W, Mccallum CW. The endogenous components of the ERP In: Callaway E, Tueting P, Koslow SH, editors. Event-related Brain Potentials in Man. New York: Academic Press: 1978. p. 349–411.Google Scholar
  14. Lance BJ, Kerick SE, Ries AJ, Oie KS, McDowell K. Brain-computer interface technologies in the coming decades. IEEE Proc. 2012; 100(13):1585–99.View ArticleGoogle Scholar
  15. Kurtz LA. Visual perception problems in children with ADHD, Autism, and other learning disabilities: a guide for parents and professionals. Philadelphia PA: Jessica Kingsley Publishers; 2006, pp. 15–78.Google Scholar
  16. Farwell LA, Donchin E. Talking off the top of your head: toward a mental prosthesis utilizing event-related brain potentials. Electroencephalogr Clin Neurophysiol. 1988; 70(6):510–23.View ArticleGoogle Scholar
  17. Frintrop S, Rome E, Christensen HI. Computational visual attention systems and their cognitive foundations: a survey. ACM Transactions on Applied Perception (TAP). 2010; 7(1):1–46.View ArticleGoogle Scholar
  18. Schultheis MT, Rizzo AA. The application of virtual reality technology in rehabilitation. Rehabil Psychol. 2001; 46(3):296–311.View ArticleGoogle Scholar
  19. Rizzo AA, Bowerly T, Buckwalter JG, Schultheis M, Matheis R, Shahabi C, et al. Virtual environments for the assessment of attention and memory processes: the virtual classroom and office. In: Proc. of the 4th Int. Conf. on Disability, Virtual Reality and Assoc. Tech. Reading. UK: University of Reading: 2002. p. 3–12.Google Scholar
  20. Lee JC. Hacking the nintendo wii remote. IEEE Pervasive Comput. 2008; 7(3):39–45.View ArticleGoogle Scholar
  21. Kooima R. Generalized perspective projection. 2008, p1–7. [online] Available:
  22. Thulasidas M, Guan C, Wu J. Robust classification of EEG signal for brain-computer interface. IEEE Trans Neural Syst Rehabil Eng. 2006; 14(1):24–9.View ArticleGoogle Scholar
  23. Panicker RC, Puthusserypady S, Sun Y. An asynchronous p300 bci with ssvep-based control state detection. IEEE Trans Biomed Eng. 2011; 58(6):1781–8.View ArticleGoogle Scholar
  24. He P, Wilson G, Russell C. Removal of ocular artifacts from electro-encephalogram by adaptive filtering. Med Biol Eng Comput. 2004; 42(3):407–12.View ArticleGoogle Scholar
  25. Groppe DM, Urbach TP, Kutas M. Mass univariate analysis of event-related brain potentials/fields (i): a critical tutorial review. Psychophysiology. 2011; 48(12):1711–25.View ArticleGoogle Scholar
  26. Lotte F, Congedo M, Lécuyer A, Lamarche F, Arnaldi B. A review of classification algorithms for eeg-based brain-computer interfaces. J Neural Eng. 2007; 4:1–24.View ArticleGoogle Scholar
  27. Rasmussen PM, Abrahamsen TJ, Madsen KH, Hansen LK. Nonlinear denoising and analysis of neuroimages with kernel principal component analysis and pre-image estimation. NeuroImage. 2012; 60(3):1807–18.View ArticleGoogle Scholar
  28. Matthews BW. Comparison of the predicted and observed secondary structure of t4 phage lysozyme. Biochim Biophys Acta (BBA)-Protein Structure. 1975; 405(2):442–51.ADSView ArticleGoogle Scholar
  29. Bayliss JD. Use of the evoked potential p3 component for control in a virtual apartment. IEEE Trans Neural Syst Rehabil Eng. 2003; 11(2):113–6.MathSciNetView ArticleGoogle Scholar
  30. Kaper M, Meinicke P, Grossekathoefer U, Lingner T, Ritter H. BCI competition 2003-data set iib: support vector machines for the p300 speller paradigm. IEEE Trans Biomed Eng. 2004; 51(6):1073–6.View ArticleGoogle Scholar
  31. Barry RJ, Johnstone SJ, Clarke AR. A review of electrophysiology in attention-deficit/hyperactivity disorder: Event-related potentials. Clin Neurophysiol. 2003; 114(2):184–98.View ArticleGoogle Scholar
  32. Wolpaw JR, Birbaumer N, McFarland DJ, Pfurtscheller G, Vaughan TM. Brain-computer interfaces for communication and control. Clin Neurophysiol. 2002; 113(6):767–91.View ArticleGoogle Scholar


© Rohani and Puthusserypady. 2015