Next Article in Journal
Stochastic Neural Networks for Automatic Cell Tracking in Microscopy Image Sequences of Bacterial Colonies
Next Article in Special Issue
Variable Decomposition for Large-Scale Constrained Optimization Problems Using a Grouping Genetic Algorithm
Previous Article in Journal
On Appearance of Fast or Late Self-Synchronization between Non-Ideal Sources Mounted on a Rectangular Plate Due to Time Delay
Previous Article in Special Issue
AutoML for Feature Selection and Model Tuning Applied to Fault Severity Diagnosis in Spur Gearboxes
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Attention Measurement of an Autism Spectrum Disorder User Using EEG Signals: A Case Study

by
José Jaime Esqueda-Elizondo
1,2,
Reyes Juárez-Ramírez
2,
Oscar Roberto López-Bonilla
1,
Enrique Efrén García-Guerrero
1,
Gilberto Manuel Galindo-Aldana
3,
Laura Jiménez-Beristáin
2,
Alejandra Serrano-Trujillo
2,
Esteban Tlelo-Cuautle
4 and
Everardo Inzunza-González
1,*
1
Facultad de Ingeniería, Arquitectura y Diseño, Universidad Autónoma de Baja California, Carretera Transpeninsular Ensenada-Tijuana No. 3917, Ensenada C.P. 22860, Baja California, Mexico
2
Facultad de Ciencias Químicas e Ingeniería, Universidad Autónoma de Baja California, Calzada Universidad No. 14418, Parque Industrial Internacional, Tijuana C.P. 22390, Baja California, Mexico
3
Facultad de Ciencias de la Ingeniería y Tecnología, Universidad Autónoma de Baja California, Carretera Estatal No. 3, Gutiérrez, Mexicali C.P. 21720, Baja California, Mexico
4
Departamento de Electrónica, Instituto Nacional de Astrofísica, Óptica y Electrónica, Luis Enrique Erro No. 1, Santa María Tonanzintla, Puebla C.P. 72840, San Andrés Cholula, Mexico
*
Author to whom correspondence should be addressed.
Math. Comput. Appl. 2022, 27(2), 21; https://doi.org/10.3390/mca27020021
Submission received: 30 December 2021 / Revised: 23 February 2022 / Accepted: 24 February 2022 / Published: 2 March 2022
(This article belongs to the Special Issue Numerical and Evolutionary Optimization 2021)

Abstract

:
Autism Spectrum Disorder (ASD) is a neurodevelopmental life condition characterized by problems with social interaction, low verbal and non-verbal communication skills, and repetitive and restricted behavior. People with ASD usually have variable attention levels because they have hypersensitivity and large amounts of environmental information are a problem for them. Attention is a process that occurs at the cognitive level and allows us to orient ourselves towards relevant stimuli, ignoring those that are not, and act accordingly. This paper presents a methodology based on electroencephalographic (EEG) signals for attention measurement in a 13-year-old boy diagnosed with ASD. The EEG signals are acquired with an Epoc+ Brain–Computer Interface (BCI) via the Emotiv Pro platform while developing several learning activities and using Matlab 2019a for signal processing. For this article, we propose to use electrodes F3, F4, P7, and P8. Then, we calculate the band power spectrum density to detect the Theta Relative Power (TRP), Alpha Relative Power (ARP), Beta Relative Power (BRP), Theta–Beta Ratio (TBR), Theta–Alpha Ratio (TAR), and Theta/(Alpha+Beta), which are features related to attention detection and neurofeedback. We train and evaluate several machine learning (ML) models with these features. In this study, the multi-layer perceptron neural network model (MLP-NN) has the best performance, with an AUC of 0.9299, Cohen’s Kappa coefficient of 0.8597, Matthews correlation coefficient of 0.8602, and Hamming loss of 0.0701. These findings make it possible to develop better learning scenarios according to the person’s needs with ASD. Moreover, it makes it possible to obtain quantifiable information on their progress to reinforce the perception of the teacher or therapist.

1. Introduction

Scientists have always been captivated by the brain, and cognitive processes are also the most intriguing for most people. A fundamental part of these cognitive processes is the attention process. To obtain knowledge, first, the attention process is needed. Attention is a cognitive process that enables selecting, focusing on, and sustained information processing [1]. The object of attention can either be an environmental stimulus actively processed by sensory systems or associative information and response alternatives generated by the ongoing cognitive activity. This allows us to orient ourselves towards relevant stimuli, ignoring those not, and act accordingly. Moreover, it is the basis of learning, and it is necessary to have it, in order to begin the learning process. There have been many measuring techniques, such as using the response times or the number of clicks given while using particular software, the eye contact time measured from videos, Magnetic Resonance Imaging (MRI) or functional Magnetic Resonance Imaging (fMRI) studies, among other techniques. Autism Spectrum Disorder (ASD) is a neurodevelopmental life condition characterized by problems with social interaction, low verbal and non-verbal communication skills, and repetitive and restricted behavior [2,3]. People with ASD usually have variable attention levels because they have hypersensitivity and large amounts of environmental information are a problem for them.
There are many methods for measuring attention reported in the literature, such as eye-tracking/gaze [4,5], fMRI [6,7], using a program [8], biofeedback [9], and electroencephalographic (EEG) signals [10,11,12], among others. The last one delivers great advantages over other neuroimaging techniques due to its high temporal resolution [13], neurodevelopmental diagnosis accuracy [14], cognitive-related bioelectrical data [15], low cost [16], and non-invasive application methods [17]. The authors [8] show how the attention of 49 children with ASD and a group of 51 typical children is measured using a mindfulness-based program (MBP); in other words, this is a computerized attention test. This MBP software measures the accuracy and reaction times, but they did not directly measure. Another way to measure attention is by analyzing the facial expressions or measuring the timing of eye contact from video recordings. The study [5] shows a measuring technique based on the analysis of video recordings of 1756 toddlers from 12 to 72 months with ASD while watching selected short videos on an iPhone or an iPad. Their facial expressions are video-recorded and analyzed as they watch the videos. Reference [18] presents a study about the concentration measurement of a children group while interacting with an NAO robot and their teacher. In this case, the eye contact time was measured by analyzing the video recordings of the sessions obtained with two cameras at the posterior.
The study [19] shows an approach to the joint analysis of EEG and eye-tracking for children’s ASD evaluation. First, the synchronization measures, information entropy, and time-frequency features of the multi-channel EEG are derived. Then, a random forest is applied to the eye-tracking recordings of the same subjects to single out the most significant features. A convolutional graph network (GCN) model naturally fuses the two groups of features to differentiate the children with ASD from the typically developed (TD) subjects. Reference [20] uses EEG activity (raw EEG and alpha power) to provide a time-resolved index of attentional orienting towards salient stimuli that either matched or did not match target-defining properties. In all of the references presented above, the use of feature extraction techniques helps to obtain information from the signals acquired. These feature extraction techniques can help us to obtain useful or descriptive information while eliminating or reducing redundant or unnecessary information, noise, or artifacts. Once the feature extraction stage has finished, the classification can quantify the signals. This paper also shows the feature extraction and the classification algorithms most frequently used.
Nowadays, intelligent systems that incorporate artificial intelligence (AI) frequently rely on machine learning (ML) [21,22]. ML is a term that refers to a system’s ability to learn from problem-specific training data in order to automate the process of developing analytical models and completing associated tasks [23,24]. Deep learning (DL) is a paradigm in machine learning that is based on the use of artificial neural networks [25,26]. Commonly, the use of ML algorithms is centered in the diagnosis or detection of ASD, as is presented in [20]. The authors in [27] used EEG and eye-tracking features to identify children with ASD. In [28], the authors used deep convolutional architectures to detect ASD. Other studies [29] reported statistical features for ASD classification. In reference [30], they used an ML and a DL process for diagnosing ASD from time-frequency spectrogram images of EEG. The authors in [31] reported that it is possible to evaluate mental stress using DL and EEG records. There are also studies such as [32], where they used the free artifact signal of two electrodes to detect ASD. In [33], they used a hybrid light-weighted feature extractor from signal to spectrogram images.
Recent studies have a focus on the relationship between human and machine behavior, based on the premise that diverse social and psychological backgrounds correspond in practice with different modalities of human–computer interaction [34]. In general, EEG feature extraction techniques have offered strong clinical consistency since the beginning of their use for assessing and diagnosing different cognitive and neurological domains in ASD [35], learning difficulties [36], and attention [37]. It is widely accepted that AI techniques are helpful for automatic diagnosis and rehabilitation procedures in ASD cases. For example, in [38], a review of DL methods focusing on neuroimaging-based approaches is presented. Furthermore, the authors report a review of studies based on DL networks for diagnosing ASD and the challenges in automatized detection and ASD rehabilitation. Nowadays, there are some DL applications for brain disease diagnoses, such as the ones presented in [39], which presents a review of automated multiple sclerosis (MS) detection methods based on MRI. They notice that the most used architectures for MS detection are convolutional neural networks (CNNs), autoencoders (AEs), generative adversarial networks (GANs), and CNN-RNN models. Schizophrenia (Sz) is another brain disease detected with DL methods using EEG signal processing [40]. The authors compare their results with the traditional AI methods, such as support vector machine (SVM), k-nearest neighbors, decision tree, naïve Bayes, random forest, extremely randomized trees, and bagging. The DL models used are long short-term memories (LSTMs), one-dimensional convolutional networks (1D-CNNs), and 1D-CNN-LSTMs. Convolutional neural networks and LSTMs perform best, cross-validated with a k-fold of 5. Moreover, epileptic seizures are detectable by using EEG signal processing; for example, in [41], the authors present a novel diagnostic procedure that uses fuzzy theory and DL techniques. They propose an adaptive neuro-fuzzy inference system (ANFIS) with a breeding swarm optimization (BS) method. These ANFIS-BS methods present accuracy of 99.74 % in a two-class classification task. Appendix A summarizes in Table A1 and Table A2 the state of the art and shows a comparison with the proposed method, considering the dataset, data source, preprocessing, methods/algorithm, main findings, and applications.
The research questions that motivate this paper are: (1) What brain regions activate on average when attention increases? At what levels? Depending on the type of activity to be developed? (2) Can the level of the attention span of a person with Autism Spectrum Disorder be quantified as a feature using time-frequency analysis methods? (3) Is there a relationship between the increment in the power of electroencephalographic signals and attention span in a child with Autism Spectrum Disorder?
In this paper, the hypothesis is that measuring and quantifying the brain’s electrical activity (power spectrum density) makes it possible to assess the level of attention when performing various cognitive activities and interacting with different software or systems. Therefore, this article aims to detect when an ASD user has high attention levels while developing learning activities based on the EEG signals acquired by an Epoc+ Brain–Computer Interface (BCI). The novelty of this paper is the use of ML algorithms to classify the “Attention” and “No Attention” states of an ASD user. This research presents a new methodology based on EEG signals and ML algorithms for classifying the attention of a 13-year-old boy with ASD. This research formulates a method for processing electroencephalographic signals to determine attention lapses in people with ASD, tested by performing various learning activities and interacting with computer programs.
The rest of this paper is organized as follows. Section 2 presents the materials and the proposed methodology. Section 3 shows the findings of this paper. Section 4 presents the discussion. Finally, Section 5 summarizes our conclusions.

2. Materials and Methods

The approval of this research by the Ethics Committee and Research for Pre-Graduates and Post-Graduates of the Facultad de Ingeniería y Negocios Guadalupe Victoria de la Universidad Autónoma de Baja California was obtained on 8 October 2020, with the POSG/020-1-04 register. The EEG signals were acquired with an Epoc+ Brain–Computer Interface (BCI) [42,43] via the Emotiv Pro platform while the ASD user developed several learning activities, and data were processed with Matlab 2019a and Emotiv Pro software using the Student Version.
Figure 1 depicts the electrode location (left) and the Emotiv Epoc+ headset (right). According to the coherence analysis in attention [44,45], the selected electrodes were F3, F4, P7, and P8.
The proposed methodology and the simulations were performed on a personal computer with the following specifications: Intel(R) Core i5-8250U CPU @ 1.60 GHz, 1800 Mhz, 4 Cores, 8 Logical Processors, and 8 GB in RAM.
The signal was sampled at 2048 Hz, filtered with a dual-notch filter at 50 Hz and 60 Hz and a low-pass filter at 64 Hz, and then downsampled to 128 Hz for transmission. It was necessary to multiply the signal by 0.51 μ to convert it to a voltage.
The proposed data acquisition process is as follows:
Step 1.
Place the headset with the electrodes hydrated on the test subject.
Step 2.
Start the video recording and the EEG data acquisition.
Step 3.
Give the worksheet to the test subject and the instructions.
Step 4.
Let the test subject start the activity, and give him additional instructions if necessary, as in a regular school session.
Step 5.
When the activity is over, stop video recording and data acquisition.
Figure 2 shows the EEG acquisition process and how the boy worked with the activity sheets using the Epoc+ headset.

2.1. Activity Sheets

Figure 3 and Figure 4 depict examples of other activity sheets provided by the child’s teachers, according to his knowledge and abilities. Figure 3 shows an activity sheet about reading, following instructions, and drawing. Figure 4 is a counting animal activity sheet. The school for children with ASD Eduke (https://www.facebook.com/EDUKE-123602824381330, accessed on 29 December 2021), located in Tijuana, Baja California, México, provided all the activity sheets used in this research.

2.2. Signal Processing Procedure

Figure 5 depicts the block diagram of the procedure used for signal processing. The first step is preprocessing the EEG signal, and then the power spectrum density of signals is calculated and separated into bands. Next, we obtain the features presented in Table 1 and validate them. With these features, we train the machine learning algorithms. In the next section, we give more information about these steps.

2.2.1. Preprocessing of EEG Signal

The Emotiv software gives the recordings in a .csv file with integer numbers. It is necessary to convert the EEG signal acquired by the Epoc+ to its voltage equivalent by multiplying it by the factor 0.51× 10 6 .

2.2.2. Band Power Separation

In EEG signal processing, it is common to separate the power spectrum density into the following bands: Delta (1–4 Hz), Theta (4–8 Hz), Alpha (8–12 Hz), Beta (12–30 Hz), and Ram (or Gamma) (30–50 Hz), depicted in Figure 6. These band powers [46] are the basis for calculating relative powers and ratios in the feature extraction stage. The Emotiv software gives the power of each band, except for the Delta band, and it gives the Beta band separated into Low Beta and High Beta powers [47]. For this research, we add both Beta band powers.
The Emotiv software uses two-second windows to calculate the power spectrum density in absolute values, with units μ V 2 /Hz, and then separates it into bands. The two-second window involves 256 samples [47,48].
Figure 7 shows an example of band power separation. For this paper, we use the electrodes F3, P7, F4, and P8 because they show high coherence in attention tasks [44,45].

2.2.3. Feature Extraction

To detect the Theta–Beta Ratio (TBR) and the Theta–Alpha Ratio (TAR), it is necessary first to calculate the band power spectrum density (PSD) of the EEG signal in two-second windows and for each channel or electrode. It is common to use the TBR features in attention detection and neurofeedback and the Theta Relative Power Beta and Theta/(Alpha + Beta), known as TBAR [48].
Table 1 presents the features calculated and their equations [48]. The next step is to use these features to train several machine learning models and evaluate their performance.
Table 1. Feature equations for attention detection.
Table 1. Feature equations for attention detection.
FeatureEquation
Theta Relative PowerTRP = θ T
Alpha Relative PowerARP = α T
Beta Relative PowerBRP = β T
Theta–Beta RatioTBR = θ β
Theta–Alpha RatioTAR = θ α
Theta Alpha + Beta TBAR = θ β + α
T = θ + α + β is the total power [48].
Figure 8 depicts the Theta, Alpha, and Beta relative powers (R.P.) obtained for the F4 electrode using the equations presented in Table 1. These R.P. values change with the time and function of the activity performance. Figure 9 shows the Theta–Beta Ratio, Theta–Alpha Ratio, and Theta/(Alpha–Beta Ratio) for the same F4 electrode.

2.2.4. Dataset Preparation

The dataset consists of 24 features, 6 features for each electrode, with four electrodes (F3, F4, P7, and P8) and two classes: “Attention” and “No Attention”. The dataset has 33,936 samples; it has 16,968 samples for each class to conserve balance. Figure A1 from Appendix B shows a fragment of the created dataset with 24 features acquired through the processing of EEG signals when the user is performing didactic activities and paying attention and when he is not paying attention to his learning process.
The Supplementary Materials dataset included six different Attention activities (counting, forming words, completing words, looking for differences between two figures, reading text, and answering simple questions from the reading), taken in 6 different moments. There are also No Attention samples recorded in non-learning activities such as watching cartoons, echolalia, doing nothing, and just sitting awake, trying to be as relaxed as possible.

2.2.5. Machine Learning Algorithm Training

In this paper, we chose eight ML algorithms to evaluate the classification of attention through the EEG signals of an ASD user. The chosen ML algorithms were naive Bayes (N.B.), stochastic gradient descent (SGD), decision trees (D.T.), support vector machine (SVM)-RBF, k-nearest neighbors (KNN), multi-layer perceptron neural network (MLP-NN), random forest (R.F.), and extra trees (E.T.). These ML models are part of the Scikit Learn library [49]. Figure 10 shows the flowchart to perform the training test of the ML algorithms. First, it is necessary to import the libraries or toolboxes required, such as Scikit Learn, Pandas, and Seaborn. Then, the features dataset is loaded; subsequently, separating the input data (features) from the output data is necessary. Next, we randomly divide the dataset, 80% for training and 20% for tests. Then, the data are scaled between 0 and 1 to obtain optimized results. Then, the machine learning model is trained. Then, we perform the scoring of the ML model, i.e., using the confusion matrix and performance metrics to evaluate the ML models.

3. Results

To evaluate the ML models, we rely on the metrics of the Scikit Learn library [49]. The metrics used to evaluate the scoring of the ML models are the confusion matrix (true positives, true negatives, false positives, false negatives), accuracy, F1 score, precision, sensitivity/recall, and specificity.
Table 2 shows the scoring parameters obtained for the ML models tested in this paper. The first four parameters correspond to the results of the confusion matrix. Naive Bayes with an accuracy of 0.7628, SGD with 0.8619, decision tree with 0.8697, SVM-RBF with 0.8940, KNN with 0.8968, MLP-NN with 0.9298, random forest with 0.9291, and finally extra trees with an accuracy of 0.9270. Therefore, the extra trees model has the best accuracy score.
Regarding the F1 score parameter, it is observable that naive Bayes, SGD, decision trees, and SVM-RBF obtained a score lower than 0.90. Meanwhile, the KNN, MLP-NN, random forest, and extra trees models obtained a score greater than 0.90, with extra trees achieving the highest score. Regarding the specificity/precision, we observed that the naive Bayes model was the lowest, while the extra trees and MLP-NN models were the highest, with 0.8896 and 0.9155, respectively. Regarding the sensitivity/recall score, all the models obtained a result greater than 0.90, except decision trees with 0.8720, and the extra trees model achieved the best result with 0.9738.
Table 3 shows the performance metrics obtained for each ML model. The metrics used to evaluate the performance of the ML models were the Area Under the Curve (AUC), the Cohen’s Kappa coefficient, Hamming loss, and the Matthews correlation coefficient. Regarding the AUC metric, we notice that the naive Bayes, stochastic gradient descent, and decision trees models are the lowest, with 0.7642, 0.8624, and 0.8697, while the support vector machine (SVM)-RBF, KNN, extra trees, MLP-NN, and random forest (R.F.) models are the ones that obtained the best AUC, with 0.8944, 0.8972, 0.9274, 0.9299, and 0.9294, respectively, with the MLP-NN model obtaining a better AUC. This measure compares labelings by different human annotators, not a classifier versus ground truth, regarding Cohen’s Kappa coefficient. The Kappa score is a number between −1 and 1. Scores above 0.8 indicate good agreement; zero or lower means no agreement (practically random labels). We observe that the naive Bayes, stochastic gradient descent, decision trees, support vector machine (SVM)-RBF, and KNN models obtained a Kappa coefficient less than 0.80 but greater than zero. However, the extra trees, MLP-NN, and random forest (R.F.) models obtained Kappa coefficients of 0.8542, 0.8597, and 0.8583, respectively, which are more significant than 0.80. Therefore, it means that these ML models have good agreement. We notice that the model MLP-NN is the one that obtained the highest Cohen’s Kappa coefficient.
Regarding the Hamming loss, this Hamming loss should be zero; that is, the closer it is to zero, the model tends to be perfect or ideal. In this case, the extra trees, MLP-NN, and random forest (R.F.) models have the lowest Hamming loss. The MLP-NN model has the lowest Hamming loss, with 0.0701. We use in machine learning the Matthews correlation coefficient (MCC) or phi coefficient as a measure of the quality of binary (two-class) classifications, introduced by biochemist Brian W. Matthews [50]. In this case, the three best models are extra trees, MLP-NN, and random forest (R.F.), with 0.8580, 0.8602, and 0.8613, respectively, with random forest being the best (R.F.).
Figure 11 depicts the ROC curve of the top five ML models trained for attention classification using EEG data. The ROC curve shows the trade-off between sensitivity (TPR) and specificity (1-FPR). Classifiers that give curves closer to the top-left corner indicate better performance. The closer the curve comes to the 45-degree diagonal of the ROC space, the less accurate the test is. The SVM-RBF and KNN models are closer to the 45-degree diagonal, resulting in less accuracy. On the other hand, the random forest, extra trees, and MLP-NN models are closest to the upper left. Therefore, they are the ones with the best performance.
Figure 12 depicts the training time of the eight ML models tested in this study. The N.B., SGD, KNN, and D.T. models have the shortest training time. However, according to the results shown in Table 2 and Table 3, they have the lowest performance metrics. In contrast, the SVM-RBF, R.F., and MLP-NN models have a longer training time of 17.01, 21.14, and 73.10 s, with the MLP-NN model having a longer training time. However, the model also has better performance metrics, as shown in Table 2 and Table 3. Therefore, the classifier designer must conduct a cost–benefit analysis in terms of accuracy and processing time. In most cases, programmers prefer better accuracy, sacrificing training time since this process (training) is only done once and only uses the trained model. For this reason, in this study, it would be more convenient to choose the MLP-NN model.

4. Discussion

In this research, we observed that the power spectrum density (PSD) is helpful for attention detection, as proposed in the hypothesis. The features based on band PSD, such as Relative Theta Power (RTP), Relative Alpha Power (RAP), Relative Beta Power (RBP), Theta–Beta Ratio (TBR), Theta–Alpha Ratio (TAR), and the TBAR are good features for attention classification. With these features, the multi-layer perceptron neural network model (MLP-NN) achieved the best performance, with an AUC of 0.9299, Cohen’s Kappa coefficient of 0.8597, Matthews correlation coefficient of 0.8602, and Hamming loss of 0.0701. Nevertheless, MLP-NN requires a longer training time of up to 73.1 s. However, the results presented in Table 2 and Table 3 and Figure 11 and Figure 12 show that the random forest and extra trees models have good performance metrics and a training time of 21.14 and 2.21, respectively. Therefore, the classifier designer must perform a cost–benefit analysis in terms of accuracy and processing time. In most cases, designers prefer better accuracy, sacrificing training time since this process (training) is only performed once, and then only the trained model is used. For this reason, in this study, it would be more convenient to choose the MLP-NN model.
Furthermore, feature extraction improves the acquisition of relevant information for accuracy for diagnosis and has been widely applied to different neuropsychological and neurophysiological fields [51]; the type of waveforms and definition of the morphology of EEG patterns increases the amount of available information for clinical decision making from brain dysfunction [52] to cognitive impairment [53]. Particular interest has been historically directed to the frontal areas in attention measurement, as they correspond to the brain regions responsible for activity direction and orientation. Classification of features may help to describe cortical connectivity, particularly for attentional deficits associated with frontal theta in children [36]. Other research refers to frontal bilateral theta waves in resting EEG in children with learning difficulties and an association with bilateral synchronous frontal theta waves [37], which closely relates to techniques for brain activity description in this study.

Limitations of the Study

One of the limitations of this research is that a BCI is required. The ASD user should not have much hair. The BCI must be pleasant and tolerated by them. Moreover, the electrodes must be kept hydrated with saline solution. It also depends on the battery life of the BCI. The emotional state of the ASD user is essential because good measurements will not be obtained if altered. Activities should be done in a scenario with learning conditions without distractions, such as a classroom.

5. Conclusions

In this paper, a methodology for the classification of attention by EEG signals of an ASD user was presented. The EEG data acquisition was performed while the ASD user performed some didactic learning activities. In addition, our dataset was created for the post-processing of the information and training of the ML algorithms. To create the dataset, it was necessary to perform preprocessing, filtering, and feature extraction. The proposed features can be used to train and evaluate several ML models to classify attention using EEG signals.
On the other hand, with these findings, therapists, teachers, and psychologists can develop better learning scenarios according to the cognitive needs of ASD users. In addition, diagnosis accuracy can be improved by acquiring individual EEG features, which provide relevant information for differential clinical neurodevelopmental symptomatology classification. Furthermore, with the proposed methodology, one can obtain quantifiable information about the performance of ML models when an ASD user performs didactic/learning activities, the above with the purpose of reinforcing the perception of the teacher or therapist.
The future work will involve implementing the proposed method on a real-time embedded system—for example, a stand-alone version using an edge device, novel deep learning methods, and internet of things (IoT). It is possible to explore the feasibility of a mobile-based platform that links with a BCI, instead of a computer. Furthermore, future replication of this methodology is needed to approach a broad spectrum of attention processes and standard estimation.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/2297-8747/27/2/21/s1.

Author Contributions

Conceptualization, R.J.-R. and E.I.-G.; Data curation, L.J.-B. and A.S.-T.; Formal analysis, E.E.G.-G., L.J.-B. and A.S.-T.; Funding acquisition, J.J.E.-E. and O.R.L.-B.; Investigation, J.J.E.-E. and E.T.-C.; Methodology, J.J.E.-E., G.M.G.-A. and E.I.-G.; Project administration, O.R.L.-B.; Resources, J.J.E.-E. and O.R.L.-B.; Software, J.J.E.-E.; Supervision, R.J.-R. and E.I.-G.; Validation, G.M.G.-A.; Visualization, A.S.-T.; Writing—original draft, J.J.E.-E.; Writing—review and editing, E.E.G.-G., E.T.-C. and E.I.-G. All authors have read and agreed to the published version of the manuscript.

Funding

This research had funds provided by the Universidad Autónoma de Baja California (UABC) through the grants number 679 and 300/2610.

Institutional Review Board Statement

The study was conducted according to the guidelines of the Declaration of Helsinki, and approved by the Ethics Committee and Research for Pre-Graduates and Post-Graduates of the Facultad de Ingeniería y Negocios Guadalupe Victoria of the Universidad Autónoma de Baja California; it was approved on 8 October 2020, with the POSG/020-1-04 code.

Informed Consent Statement

Written informed consent has been obtained from the patient to publish this paper.

Data Availability Statement

We share the dataset as Supplementary Material.

Acknowledgments

We want to thank Escudero Garrido Elena Patricia (Interdisciplinary Professional Unit of Biotechnology of the National Polytechnic Institute, UPIBI-IPN), Gutiérrez Montiel Ixchel (Interdisciplinary Professional Unit of Biotechnology of the National Polytechnic Institute, UPIBI-IPN), Macarena de Haro Iliana Elizabeth (Interdisciplinary Professional Unit of Biotechnology of the National Polytechnic Institute, UPIBI-IPN), Martínez Amaya Laura Fernanda (Manizalez Autonomous University, Colombia), Martínez Oliva Gonzalo Guillermo (Interdisciplinary Pro-fessional Unit of Biotechnology of the National Polytechnic Institute, UPIBI-IPN), López Rivas Andrea (Autonomous University of Baja California, UABC) and Becerril Valenzuela Brando (Autonomous University of Baja California, UABC) and Martinez Verdin Annette Sofia (Autonomous University of Baja California, UABC), for their participation in this project via the Summer of Scientific and Technological Research of the Pacific or Research Activities of UABC. We want to thank the Chemical Sciences and Engineering Faculty of the Autonomous University of Baja California (UABC) for supporting the project with grant number 300/2610. The authors would like to thank INAOE for accepting researcher Everardo Inzunza-González to carry out his sabbatical stay. Thanks are given to PRODEP (Professional Development Program for Professors) for supporting the academic groups to increase their degree of consolidation. We also want to thank the Tijuana Special Education School Eduke and the teachers Jessica Avelar, Letycia Gutiérrez, and Atziri Torres, for supplying the activity sheets and guiding us in working with the ASD person.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
AIArtificial Intelligence
ANFISAdaptive Neuro-Fuzzy Inference System
ASDAutism Spectrum Disorder
BSBreeding Swarm
CNNConvolutional Neural Networks
DLDeep Learning
fMRIFunctional Magnetic Resonance Imaging
GANGenerative Adversarial Networks
LSTMLong Short-Term Memories
MBPMindfulness-Based Program
MLMachine Learning
MRIMagnetic Resonance Imaging
PSDPower Spectrum Density
RAPRelative Alpha Power
RBPRelative Beta Power
RNNRecurrent Neural Network
RTPTheta Relative Power
TARTheta–Alpha Ratio
TBRTheta–Beta Ratio
TDTypically Developed

Appendix A. Comparison of the Proposed Method with the State of the Art

Table A1. State of the art, part 1.
Table A1. State of the art, part 1.
ReferenceDatasetData SourcePreprocessingMethod/AlgorithmMain FindingsApplication
Ref. [20]12 ASD users and 12 typical childrenEEGN/ATrial-averaged phase-locking value (PLV) approach and cubic support vector machine (SVM)95.8% Accuracy, 100% Sensitivity, and 92% SpecificityASD Classification/Detection
Ref. [27]97 children aged from 3 to 6EEG, eye-tracking tests individually on own-race and other-race stranger faces stimuli.Data were band-pass filtered between 0.5 and 45 Hz. To improve computing speed, EEG data were then down-sampled to 250 Hz. Power line noise in EEG was removed by a notch filter centered at 50 Hz. Artifacts in EEG were removed using an ICA approach (EEGLab).SVM, minimum-redundancy-maximum-relevance (MRMR).Classification Accuracy from combining two types of data reached a maximum of 85.44%, AUC 0.93, when 32 features were selected.ASD Classification/Detection
Ref. [28]10 typically developing children (6 Male and 6 Female) and 10 autistic children (6 Male and 4 Female).Natus Nihon Ohden MEB9000 version 05–81.22 channels, sampling frequency of 500 Hz and filtered with a low pass filter and a high pass filter at a frequency range of [0.53, 70] Hz. After filtering out the signal at a frequency range of 0.53 to 70 Hz, the ocular artifacts in the EEG signal were removed by thresholding. The threshold was set based on the average value of the amplitude of the eye blink signal. The eye blink signal was observed for 10 seconds with the eye open and eye close event.ResNet50Average Accuracy of 81%ASD Classification/Detection
Ref. [29]N/AEEGWavelet Transform, reduction of dimensionality, removal of irrelevant data.K-Nearest Neighbour (KNN), A Correlation-based Feature Selection (CFS), Minimum Redundancy Maximum Relevance (MRMR) and the Information Gain (IG).N/AASD Classification/Detection
Ref. [30]Dataset from King Abdulaziz University (KAU) Hospital, Saudi Arabia. It is a public available dataset found in Sixteen subjects with twelve from ASD group (3 girls and 9 boys, age 6–20 years old) and four subjects from control group (all boys, 9–13 years old).Spectrogram of EEGArtifacts were removed from raw EEG data with re-referencing, filtering and normalization. Common average referencing (CAR) is used for re-referencing. IIR filter is used to low pass filter the signal at 40 Hz cut off frequency and finally the filtered signals from each electrode is normalized to the interval [ 1 , 1 ] . signals are segmented into 3.5 second window frames for each subject to the dataset. Using Short-Time Fourier Transform (STFT) for each of the above segments, the spectrogram plot is generated in the last step and saved as image.NB, LDA, RF, kNN, LR and SVM. Ten-fold cross validation. Three different CNN models.The proposed DL based model achieves higher accuracy (99.15%) compared to the ML based model (95.25%) on an ASD EEG dataset and also outperforms existing methods.ASD Classification/Detection
Ref. [31]5 Neurotypical and 8 ASD.EEGHigh-pass filtered at 1 Hz to remove slow trends and subsequently low-pass filtered at 50 Hz to remove line noise. The routine clinical bandwidth for EEG is from 0.5 to 50 Hz.ML classifiers, namely support vector machine (SVM) and deep learning methods.Multiclass two-layer LSTM RNN deep learning classifier is capable of identifying mental stress from ongoing EEG with an overall accuracy of 93.27%.ASD Mental Stress
Ref. [32]Study 1, 15 teenagers. Study 2, 20 subjects diagnosed with ASD and 20 subjects diagnosed with other neuropsychiatric disorders.Artifact-free EEG data.Raw EEG time-series were analyzed with a features extraction algorithm to extract 794 quantitative features (TSFRESH Python package).TWIST, Sine-net ANN and Back Propagation ANN.Sine-net ANN reached the best predictive capability in distinguishing autistic cases from typicals in study 1, Accuracy of 100%. Back Propagation ANN reached the best predictive capability in distinguishing autistic cases from subjects affected by other neuropsychiatric disorders in study 2 with an overall accuracy of 94.95%.ASD Classification/Detection
Table A2. State of the art, part 2.
Table A2. State of the art, part 2.
ReferenceDatasetData SourcePreprocessingMethod/AlgorithmMain FindingsApplication
Ref. [33]122 subjects.EEG to image convertedSpectrogram image generation model is presented using a combination of 1D_LBP and STFT.Decision Tree (DT), Discriminant Analysis (DA), Logistic Regression (LR), SVM, K-Nearest Neighbor (kNN).SVM classifier reached 96.44% AccuracyASD Classification/Detection
Ref. [38]The disorder group comprises of 8 boys (10–16 years), and the normal group consists of 10 boys (9–16 years). Neuroimaging: ABIDE-I and ABIDE-II, which encompasses sMRI, rs-fMRI, and phenotypic data. ABIDE-I: a total of 1112 datasets, 539 individuals with ASD and 573 healthy individuals (ages 64–7). ABIDEII: 1114 datasets from 521 individuals with ASD and 593 healthy individuals (ages 5–64).Neuroimaging, fMRI, MRI, EEGSeveral preprocesing applied to all signals.Supervised learning, unsupervised learning, and reinforcement learning (RL).Presents challenges and performances of DL techniquesASD Classification/Rehabilitation
Ref. [39]MICCAI 2008, MICCAI 2016, ISBI 2015, and eHealth Lab.MRILow level and high level preprocessing methods in MRI.Most popular DL architectures for MS detection: convolutional neural networks (CNNs), Autoencoders (AEs), generative adversarial networks (GANs), and CNN-RNN models.The inaccessibility of huge sMRI datasets belonging to a diverse population and lack of access to fMRI modalities are among the most important dataset-related challenges which are discussed in detail. Moreover, DL-related challenges include researchers’ lack of access to powerful hardware resources for MS diagnosis research.Multiple Sclerosis Detection
Ref. [40]Dataset of the Institute of Psychiatry and Neurology in Warsaw.EEGEEG signals were divided into 25 s time frames and then normalized by z-score or norm L2.EEG signals Classification: support vector machine, k-nearest neighbors, Decision Tree, Naive Bayes, Random Forest, extremely randomized trees, and bagging. DL models: long short-term memories (LSTMs), one-dimensional convolutional networks (1D-CNNs), and 1D-CNN-LSTM.CNN-LSTM model accuracy of 99.25%.Schizophrenia/Diagnosis
Ref. [41]Bonn University dataset with six classification combinations and the Freiburg dataset.EEGTunable-Q wavelet transform (TQWT) for EEG signal decomposition. Feature extraction, 13 different fuzzy entropies calculated from TQWT. Six layers Autoencoder (AE) for dimensionality reduction.Classification: Adaptive neuro-fuzzy inference system (ANFIS), and also its variants with grasshopper optimization algorithm (ANFIS-GOA), particle swarm optimization (ANFIS-PSO), and breeding swarm optimization (ANFIS-BS).ANFIS-BS two classes classification Accuracy: 99.74%; an Accuracy of 99.46% in ternary classification on the Bonn dataset, and 99.28% on the Freiburg dataset.Detection of epileptic seizures
Proposed method1 Subject, 33936 samplesEEG and BCIScaling, 2 seconds Band Power Separation. Features: TRP, ARP, BRP, TBR, TAR, and Theta/(alpha+beta).Naive Bayes, Stochastic Gradient Descent, Decision trees, SVM, KNN, MLP-NN, RF, Extra trees.(MLP-NN) with Accuracy 92.98%, Sensitivity 94.59%, F1 Score 93.04%, Specificity 91.55%, AUC of 0.9299, Cohen’s Kappa coefficient of 0.8597, Matthews correlation coefficient of 0.8602, and Hamming loss of 0.0701.ASD Attention Classification

Appendix B. Fragment of the Dataset Created for This Study

Figure A1. Fragment of the dataset created for this study.
Figure A1. Fragment of the dataset created for this study.
Mca 27 00021 g0a1

References

  1. Howe, T.R.; Trotter, J.S.; Davis, A.S.; Schofield, J.W.; Allen, L.; Millians, M.; Bolt, N. Attention Span; Springer: New York, NY, USA, 2011. [Google Scholar] [CrossRef]
  2. American Psychiatric Association. Diagnostic and Statistical Manual of Mental Disorders: DSM-5, 5th ed.; American Psychiatric Publishing: Washington, DC, USA, 2013; p. 947. [Google Scholar]
  3. Goqvkqpcn, E.; Ogpvcn, E. Autism Spectrum Disorder. Nat. Rev. Dis. Prim. 2020, 6, 6. [Google Scholar] [CrossRef]
  4. Ishizaki, Y.; Higuchi, T.; Yanagimoto, Y.; Kobayashi, H.; Noritake, A.; Nakamura, K.; Kaneko, K. Eye gaze differences in school scenes between preschool children and adolescents with high-functioning autism spectrum disorder and those with typical development. BioPsychoSoc. Med. 2021, 15, 2. [Google Scholar] [CrossRef] [PubMed]
  5. Egger, H.L.; Dawson, G.; Hashemi, J.; Carpenter, K.L.H.; Espinosa, S.; Campbell, K.; Brotkin, S.; Schaich-Borg, J.; Qiu, Q.; Tepper, M.; et al. Automatic emotion and attention analysis of young children at home: A ResearchKit autism feasibility study. NPJ Digit. Med. 2018, 1, 20. [Google Scholar] [CrossRef] [PubMed]
  6. Son, J.; Ai, L.; Lim, R.; Xu, T.; Colcombe, S.; Franco, A.R.; Cloud, J.; LaConte, S.; Lisinski, J.; Klein, A.; et al. Evaluating fMRI-Based Estimation of Eye Gaze During Naturalistic Viewing. Cereb. Cortex 2020, 30, 1171–1184. [Google Scholar] [CrossRef]
  7. Lawrence, S.J.D.; Formisano, E.; Muckli, L.; De Lange, F.P. Laminar fMRI: Applications for cognitive neuroscience. NeuroImage 2019, 197, 785–791. [Google Scholar] [CrossRef]
  8. Ridderinkhof, A.; De Bruin, E.I.; Driesschen, S.v.d.; Bögels, S.M. Attention in Children with Autism Spectrum Disorder and the Effects of a Mindfulness-Based Program. J. Atten. Disord. 2018, 24, 681–692. [Google Scholar] [CrossRef] [PubMed]
  9. Ababkova, M.; Leontieva, V.; Trostinskaya, I.; Pokrovskaia, N. Biofeedback as a cognitive research technique for enhancing learning process. IOP Conf. Ser. Mater. Sci. Eng. 2020, 940, 012127. [Google Scholar] [CrossRef]
  10. Lau-Zhu, A.; Lau, M.; McLoughlin, G. Mobile EEG in research on neurodevelopmental disorders: Opportunities and challenges. Dev. Cogn. Neurosci. 2019, 36, 100635. [Google Scholar] [CrossRef]
  11. Mehmood, F.; Ayaz, Y.; Ali, S.; Amadeu, R.D.C.; Sadia, H. Dominance in Visual Space of ASD Children Using Multi-Robot Joint Attention Integrated Distributed Imitation System. IEEE Access 2019, 7, 168815–168827. [Google Scholar] [CrossRef]
  12. Wang, H.; Song, Q.; Ma, T.; Cao, H.; Sun, Y. Study on Brain-Computer Interface Based on Mental Tasks. In Proceedings of the 5th Annual IEEE International Conference on Cyber Technology in Automation, Control and Intelligent Systems, Shenyang, China, 8–12 June 2015; pp. 841–845. [Google Scholar] [CrossRef]
  13. Ismail, L.E.; Karwowski, W. Applications of EEG indices for the quantification of human cognitive performance: A systematic review and bibliometric analysis. PLoS ONE 2020, 15, e0242857. [Google Scholar] [CrossRef] [PubMed]
  14. Niemarkt, H.J.; Jennekens, W.; Maartens, I.A.; Wassenberg, T.; van Aken, M.; Katgert, T.; Kramer, B.W.; Gavilanes, A.W.; Zimmermann, L.J.; Bambang Oetomo, S.; et al. Multi-channel amplitude-integrated EEG characteristics in preterm infants with a normal neurodevelopment at two years of corrected age. Early Hum. Dev. 2012, 88, 209–216. [Google Scholar] [CrossRef] [PubMed]
  15. Micoulaud-Franchi, J.A.; Batail, J.M.; Fovet, T.; Philip, P.; Cermolacce, M.; Jaumard-Hakoun, A.; Vialatte, F. Towards a Pragmatic Approach to a Psychophysiological Unit of Analysis for Mental and Brain Disorders: An EEG-Copeia for Neurofeedback. Appl. Psychophysiol. Biofeedback 2019, 44, 151–172. [Google Scholar] [CrossRef] [PubMed]
  16. Singh, M.I.; Singh, M. Development of low-cost event marker for EEG-based emotion recognition. Trans. Inst. Meas. Control 2017, 39, 642–652. [Google Scholar] [CrossRef]
  17. Yang, L.; Wilke, C.; Brinkmann, B.; Worrell, G.A.; He, B. Dynamic imaging of ictal oscillations using non-invasive high-resolution EEG. Neuroimage 2011, 56, 1908–1917. [Google Scholar] [CrossRef]
  18. Ismail, L.I.; Shamsudin, S.; Yussof, H.; Hanapiah, F.A.; Zahari, N.I. Estimation of concentration by eye contact measurement in Robot-based Intervention Program with autistic children. Procedia Eng. 2012, 41, 1548–1552. [Google Scholar] [CrossRef]
  19. Zhang, S.; Chen, D.; Tang, Y.; Zhang, L. Children ASD Evaluation Through Joint Analysis of EEG and Eye-Tracking Recordings with Graph Convolution Network. Front. Hum. Neurosci. 2021, 15, 651349. [Google Scholar] [CrossRef] [PubMed]
  20. Alotaibi, N.; Maharatna, K. Classification of Autism Spectrum Disorder from EEG-Based Functional Brain Connectivity Analysis. Neural Comput. 2021, 33, 1914–1941. [Google Scholar] [CrossRef] [PubMed]
  21. Cerrada, M.; Trujillo, L.; Hernández, D.E.; Correa Zevallos, H.A.; Macancela, J.C.; Cabrera, D.; Vinicio Sánchez, R. AutoML for Feature Selection and Model Tuning Applied to Fault Severity Diagnosis in Spur Gearboxes. Math. Comput. Appl. 2022, 27, 6. [Google Scholar] [CrossRef]
  22. Enríquez Zárate, J.; Gómez López, M.d.l.A.; Carmona Troyo, J.A.; Trujillo, L. Analysis and Detection of Erosion in Wind Turbine Blades. Math. Comput. Appl. 2022, 27, 5. [Google Scholar] [CrossRef]
  23. Janiesch, C.; Zschech, P.; Heinrich, K. Machine learning and deep learning. Electron. Mark. 2021, 31, 685–695. [Google Scholar] [CrossRef]
  24. Fong-Mata, M.; García-Guerrero, E.; Mejia-Medina, D.; López-Bonilla, O.; Villarreal-Gomez, L.; Zamora-Arellano, F.; López-Mancilla, D.; Inzunza-González, E. An Artificial Neural Network Approach and a Data Augmentation Algorithm to Systematize the Diagnosis of Deep-Vein Thrombosis by Using Wells’ Criteria. Electronics 2020, 9, 1810. [Google Scholar] [CrossRef]
  25. Choi, R.Y.; Coyner, A.S.; Kalpathy-Cramer, J.; Chiang, M.F.; Campbell, J.P. Introduction to Machine Learning, Neural Networks, and Deep Learning. Transl. Vis. Sci. Technol. 2020, 9, 14. [Google Scholar] [CrossRef]
  26. Navarro-Espinoza, A.; López-Bonilla, O.R.; García-Guerrero, E.E.; Tlelo-Cuautle, E.; López-Mancilla, D.; Hernández-Mejía, C.; Inzunza-González, E. Traffic Flow Prediction for Smart Traffic Lights Using Machine Learning Algorithms. Technologies 2022, 10, 5. [Google Scholar] [CrossRef]
  27. Kang, J.; Han, X.; Song, J.; Niu, Z.; Li, X. The identification of children with autism spectrum disorder by SVM approach on EEG and eye-tracking data. Comput. Biol. Med. 2020, 120, 103722. [Google Scholar] [CrossRef] [PubMed]
  28. Radhakrishnan, M.; Ramamurthy, K.; Choudhury, K.K.; Won, D.; Manoharan, T.A. Performance analysis of deep learning models for detection of Autism Spectrum Disorder from EEG signals. Trait. Signal 2021, 38, 853–863. [Google Scholar] [CrossRef]
  29. Thirumal, S.; Thangakumar, J. Investigation of Statistical Feature Selection Techniques for Autism Classification Using EEG Signals. J. Adv. Res. Dyn. Control Syst. 2020, 12, 1254–1263. [Google Scholar] [CrossRef]
  30. Tawhid, M.N.A.; Siuly, S.; Wang, H.; Whittaker, F.; Wang, K.; Zhang, Y. A spectrogram image based intelligent technique for automatic detection of autism spectrum disorder from EEG. PLoS ONE 2021, 16, e0253094. [Google Scholar] [CrossRef]
  31. Sundaresan, A.; Penchina, B.; Cheong, S.; Grace, V.; Valero-Cabré, A.; Martel, A. Evaluating deep learning EEG-based mental stress classification in adolescents with autism for breathing entrainment BCI. Brain Inform. 2021, 8. [Google Scholar] [CrossRef]
  32. Grossi, E.; Valbusa, G.; Buscema, M. Detection of an Autism EEG Signature From Only Two EEG Channels Through Features Extraction and Advanced Machine Learning Analysis. Clin. EEG Neurosci. 2021, 52, 330–337. [Google Scholar] [CrossRef] [PubMed]
  33. Baygin, M.; Dogan, S.; Tuncer, T.; Datta Barua, P.; Faust, O.; Arunkumar, N.; Abdulhay, E.W.; Emma Palmer, E.; Rajendra Acharya, U. Automated ASD detection using hybrid deep lightweight features extracted from EEG signals. Comput. Biol. Med. 2021, 134, 104548. [Google Scholar] [CrossRef] [PubMed]
  34. Hagendorff, T. Linking Human And Machine Behavior: A New Approach to Evaluate Training Data Quality for Beneficial Machine Learning. Minds Mach. 2021, 31, 563–593. [Google Scholar] [CrossRef] [PubMed]
  35. Swatzyna, R.J.; Boutros, N.N.; Genovese, A.C.; MacInerney, E.K.; Roark, A.J.; Kozlowski, G.P. Electroencephalogram (EEG) for children with autism spectrum disorder: Evidential considerations for routine screening. Eur. Child Adolesc. Psychiatry 2019, 28, 615–624. [Google Scholar] [CrossRef] [PubMed]
  36. Kurgansky, A.V.; Machinskaya, R. Bilateral frontal theta-waves in EEG of 7–8-year-old children with learning difficulties: Qualitative and quantitative analysis. Hum. Physiol. 2012, 38, 255–263. [Google Scholar] [CrossRef]
  37. Machinskaya, R.; Semenova, O.A.; Absatova, K.A.; Sugrobova, G.A. Neurophysiological factors associated with cognitive deficits in children with ADHD symptoms: EEG and neuropsychological analysis. Psychol. Neurosci. 2014, 7, 461–473. [Google Scholar] [CrossRef]
  38. Khodatars, M.; Shoeibi, A.; Sadeghi, D.; Ghaasemi, N.; Jafari, M.; Moridian, P.; Khadem, A.; Alizadehsani, R.; Zare, A.; Kong, Y.; et al. Deep learning for neuroimaging-based diagnosis and rehabilitation of Autism Spectrum Disorder: A review. Comput. Biol. Med. 2021, 139, 104949. [Google Scholar] [CrossRef]
  39. Shoeibi, A.; Khodatars, M.; Jafari, M.; Moridian, P.; Rezaei, M.; Alizadehsani, R.; Khozeimeh, F.; Gorriz, J.M.; Heras, J.; Panahiazar, M.; et al. Applications of deep learning techniques for automated multiple sclerosis detection using magnetic resonance imaging: A review. Comput. Biol. Med. 2021, 136, 104697. [Google Scholar] [CrossRef] [PubMed]
  40. Shoeibi, A.; Sadeghi, D.; Moridian, P.; Ghassemi, N.; Heras, J.; Alizadehsani, R.; Khadem, A.; Kong, Y.; Nahavandi, S.; Zhang, Y.D.; et al. Automatic Diagnosis of Schizophrenia in EEG Signals Using CNN-LSTM Models. Front. Neuroinform. 2021, 15. [Google Scholar] [CrossRef]
  41. Shoeibi, A.; Ghassemi, N.; Khodatars, M.; Moridian, P.; Alizadehsani, R.; Zare, A.; Khosravi, A.; Subasi, A.; Rajendra Acharya, U.; Gorriz, J.M. Detection of epileptic seizures on EEG signals using ANFIS classifier, autoencoders and fuzzy entropies. Biomed. Signal Process. Control 2022, 73, 103417. [Google Scholar] [CrossRef]
  42. Khng, K.H.; Mane, R. Beyond BCI—Validating a wireless, consumer-grade EEG headset against a medical-grade system for evaluating EEG effects of a test anxiety intervention in school. Adv. Eng. Inform. 2020, 45, 101106. [Google Scholar] [CrossRef]
  43. Fouad, I. A robust and reliable online P300 based BCI system using Emotiv EPOC Headset. J. Med. Eng. Technol. 2021, 45, 94–114. [Google Scholar] [CrossRef]
  44. Dubrovinskaya, N.; Machinska, R.; Kulakovsky, Y. Brain Organization of Selective Tasks Preceding Attention: Ontogenetic Aspects. In Complex Brain Functions: Conceptual Advances in Russian Neurocience; CRC Press: Boca Raton, FL, USA, 2000; Volume 1, pp. 169–180. [Google Scholar] [CrossRef]
  45. Dubrovinskaya, N.V.; Machinskaya, R.I. Reactivity of Teta and Alpha EEG Frequency Bands in Voluntary Attention in Junior Schoolchildren. Hum. Physiol. 2002, 28, 522–527. [Google Scholar] [CrossRef]
  46. Emotiv, I. Data Sample Object. Cortex API. Available online: https://emotiv.gitbook.io/cortex-api/data-subscription/data-sample-object (accessed on 29 December 2021).
  47. Emotiv, I. Frequency Bands Emotiv PRO v3.0. Available online: https://emotiv.gitbook.io/emotivpro-v3/ (accessed on 29 December 2021).
  48. Fahimi, F.; Guan, C.; Wooi, B.G.; Kai Keng, A.; Choon, G.L.; Tih, S.L. Personalized features for attention detection in children with Attention Deficit Hyperactivity Disorder. In Proceedings of the Annual International Conference of the IEEE Engineering in Medicine and Biology Society, EMBS, Jeju, Korea, 11–15 July 2017; pp. 414–417. [Google Scholar] [CrossRef]
  49. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-Learn: Machine Learning in Python. 2011. Available online: https://scikit-learn.org (accessed on 29 December 2021).
  50. Matthews, B.W. Comparison of the predicted and observed secondary structure of T4 phage lysozyme. Biochim. Biophys. Acta (BBA)—Protein Struct. 1975, 405, 442–451. [Google Scholar] [CrossRef]
  51. Ein Shoka, A.A.; Alkinani, M.H.; El-Sherbeny, A.S.; El-Sayed, A.; Dessouky, M.M. Automated seizure diagnosis system based on feature extraction and channel selection using EEG signals. Brain Inform. 2021, 8, 1. [Google Scholar] [CrossRef] [PubMed]
  52. Misiunas, A.V.M.; Meskauskas, T.; Samaitiene, R. Machine Learning Based EEG Classification by Diagnosis: Approach to EEG Morphological Feature Extraction. AIP Conf. Proc. 2019, 2164, 080005. [Google Scholar] [CrossRef]
  53. Boroujeni, Y.K.; Rastegari, A.A.; Khodadadi, H. Diagnosis of attention deficit hyperactivity disorder using non-linear analysis of the EEG signal. IET Syst. Biol. 2019, 13, 260–266. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Electrode location (left side) of the Epoc+ headset (right side) of the Emotiv Inc., taken from Emotiv website https://emotiv.gitbook.io/epoc-user-manual/, accessed on 29 December 2021.
Figure 1. Electrode location (left side) of the Epoc+ headset (right side) of the Emotiv Inc., taken from Emotiv website https://emotiv.gitbook.io/epoc-user-manual/, accessed on 29 December 2021.
Mca 27 00021 g001
Figure 2. Data acquisition process with the Emotiv Epoc+. The EEG recordings start once the localization of the headset is correct, and the signal quality, and the electrode contacts are verified and in green level. Pictures are from http://imagentv.uabc.mx/videos/electro-encefalograf%C3%ADas-y-autismo-uabc-no-se-detiene-imago, accessed on 29 December 2021.
Figure 2. Data acquisition process with the Emotiv Epoc+. The EEG recordings start once the localization of the headset is correct, and the signal quality, and the electrode contacts are verified and in green level. Pictures are from http://imagentv.uabc.mx/videos/electro-encefalograf%C3%ADas-y-autismo-uabc-no-se-detiene-imago, accessed on 29 December 2021.
Mca 27 00021 g002
Figure 3. Example of reading, following instructions, and drawing activity sheet. This activity requires the child to read and follow instructions. The activity sheets are from https://familiaycole.com/, accessed on 29 December 2021.
Figure 3. Example of reading, following instructions, and drawing activity sheet. This activity requires the child to read and follow instructions. The activity sheets are from https://familiaycole.com/, accessed on 29 December 2021.
Mca 27 00021 g003
Figure 4. Example of counting animals activity sheet. This activity requires the child to identify, classify, count the animals, and write the number in the white square. The activity sheets are from https://www.actividadesdeinfantilyprimaria.com/, accessed on 29 December 2021.
Figure 4. Example of counting animals activity sheet. This activity requires the child to identify, classify, count the animals, and write the number in the white square. The activity sheets are from https://www.actividadesdeinfantilyprimaria.com/, accessed on 29 December 2021.
Mca 27 00021 g004
Figure 5. Block diagram of the proposed method. The first stage is signal preprocessing, after the band power separation, and then the feature extraction stage. Next is the feature validation process, the machine learning training stage, and finally, the attention quantification result.
Figure 5. Block diagram of the proposed method. The first stage is signal preprocessing, after the band power separation, and then the feature extraction stage. Next is the feature validation process, the machine learning training stage, and finally, the attention quantification result.
Mca 27 00021 g005
Figure 6. Band power separation example, Welch power spectral density estimate (illustrative figure).
Figure 6. Band power separation example, Welch power spectral density estimate (illustrative figure).
Mca 27 00021 g006
Figure 7. Band power separation example from F4 electrode. (a) Theta band power, (b) Alpha band power, (c) Beta band power, (d) Total band power.
Figure 7. Band power separation example from F4 electrode. (a) Theta band power, (b) Alpha band power, (c) Beta band power, (d) Total band power.
Mca 27 00021 g007
Figure 8. Example of relative powers obtained from F4 electrode. (a) F4 Theta relative power, (b) F4 Alpha relative power, and (c) F4 Beta relative power.
Figure 8. Example of relative powers obtained from F4 electrode. (a) F4 Theta relative power, (b) F4 Alpha relative power, and (c) F4 Beta relative power.
Mca 27 00021 g008
Figure 9. Example of ratios obtained from F4 electrode. (a) Theta–Beta Ratio, (b) Theta–Alpha Ratio, (c) Theta/(Alpha–Beta Ratio).
Figure 9. Example of ratios obtained from F4 electrode. (a) Theta–Beta Ratio, (b) Theta–Alpha Ratio, (c) Theta/(Alpha–Beta Ratio).
Mca 27 00021 g009
Figure 10. Flowchart for training and testing of ML algorithms.
Figure 10. Flowchart for training and testing of ML algorithms.
Mca 27 00021 g010
Figure 11. The receiver operating characteristic curve (ROC) of the top five ML models trained for attention classification using EEG data.
Figure 11. The receiver operating characteristic curve (ROC) of the top five ML models trained for attention classification using EEG data.
Mca 27 00021 g011
Figure 12. Training time of the eight ML models evaluated in this study.
Figure 12. Training time of the eight ML models evaluated in this study.
Mca 27 00021 g012
Table 2. Scoring parameters of the ML algorithms evaluated in this study.
Table 2. Scoring parameters of the ML algorithms evaluated in this study.
Machine-Learning Algorithm
Scoring ParametersNaive BayesSGDDecision Trees(SVM)-RBFKNNMLP-NNRandom Forest (RF)Extra Trees
True positive19842720296728742892312630393013
True negative31943131293731953196318632683280
False positive1436700453546528294381407
False negative17423743117317218210088
Accuracy0.76280.86190.86970.89400.89680.92980.92910.9270
F1 Score0.79860.86980.86910.89880.90120.93040.93140.9278
Specificity/Precision0.68980.81720.86630.85400.85820.91550.89550.8896
Sensitivity/Recall0.94830.92960.87200.94860.94890.94590.97030.9738
Table 3. Performance metrics of the eight ML algorithms evaluated in this study.
Table 3. Performance metrics of the eight ML algorithms evaluated in this study.
Performance Metrics
Machine Learning AlgorithmAUCCohen’s KappaCoefficientHamming LossMatthewsCorrelation Coefficient
Naive Bayes0.76420.52690.23710.5674
Stochastic Gradient Descent0.86240.72410.13800.7310
Decision Trees0.86970.73950.13020.7395
Support Vector Machine (SVM)-RBF0.89440.78830.10590.7931
KNN0.89720.79390.10310.7983
Extra Trees0.92740.85420.07290.8580
MLP-NN0.92990.85970.07010.8602
Random Forest (RF)0.92940.85830.07080.8613
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Esqueda-Elizondo, J.J.; Juárez-Ramírez, R.; López-Bonilla, O.R.; García-Guerrero, E.E.; Galindo-Aldana, G.M.; Jiménez-Beristáin, L.; Serrano-Trujillo, A.; Tlelo-Cuautle, E.; Inzunza-González, E. Attention Measurement of an Autism Spectrum Disorder User Using EEG Signals: A Case Study. Math. Comput. Appl. 2022, 27, 21. https://doi.org/10.3390/mca27020021

AMA Style

Esqueda-Elizondo JJ, Juárez-Ramírez R, López-Bonilla OR, García-Guerrero EE, Galindo-Aldana GM, Jiménez-Beristáin L, Serrano-Trujillo A, Tlelo-Cuautle E, Inzunza-González E. Attention Measurement of an Autism Spectrum Disorder User Using EEG Signals: A Case Study. Mathematical and Computational Applications. 2022; 27(2):21. https://doi.org/10.3390/mca27020021

Chicago/Turabian Style

Esqueda-Elizondo, José Jaime, Reyes Juárez-Ramírez, Oscar Roberto López-Bonilla, Enrique Efrén García-Guerrero, Gilberto Manuel Galindo-Aldana, Laura Jiménez-Beristáin, Alejandra Serrano-Trujillo, Esteban Tlelo-Cuautle, and Everardo Inzunza-González. 2022. "Attention Measurement of an Autism Spectrum Disorder User Using EEG Signals: A Case Study" Mathematical and Computational Applications 27, no. 2: 21. https://doi.org/10.3390/mca27020021

Article Metrics

Back to TopTop