Classification of Relaxation and Concentration Mental States with EEG
Abstract
:1. Introduction
- Present a reliable method to invoke two mental states for a low-cost EEG device at a short period of time.
- Subjects do not receive training before conducting experiments.
- Subjects are not screened to exclude BCI-illiteracy subjects.
- Use one EEG recording, but not a slice of it, as a sample for either training or testing.
2. Related Work
3. Experimental Settings
3.1. Invoking Proposed Mental States and Test Subjects
3.2. EEG Recording Device
3.3. Feature Extraction
- (i)
- All band average energy (All band energy). In this type of feature, the total energy per second is calculated for each band (theta, alpha, beta_1, beta_2, and gamma). For beta band, we sum up all values for l from 13 to 20 in Equation (1) to form beta_1, and from 21 to 28 to form beta_2. Thus, the feature dimension to represent one EEG piece has values, i.e., 3 s with 5 bands per second.
- (ii)
- Beta band with different frequency resolution ( only). It is known that when a person is in concentration, the beta band has much stronger energy. Thus, we use this band to classify mental states. Features in this category are averaged energy of beta band in 1, 2, or 4 Hz bandwidth. As the beta band is from 13 to 28 Hz, a bandwidth of 1 Hz produces a feature of 3 × 16 = 48 dimensions for one piece of EEG signal.
- (iii)
- Beta band plus a portion of alpha band (). Similar to (ii), but the frequency range is from 9 to 28 Hz. Although it is given in the literature that higher energy appears in beta band when the subject is in the concentration mental state, different persons may have different frequency ranges in the beta band. In fact, the frequency ranges of the bands are somewhat arbitrary. As pointed out in Wikipedia on EEG [2]:Unfortunately there is no agreement in standard reference works on what these (band) ranges should be—values for the upper end of alpha and lower end of beta include 12, 13, 14 and 15 (Hz).Considering this situation, we have a strong reason to also examine energy from other bands.
- (iv)
- Beta band plus a portion of alpha and gamma band (). Similar to (ii), but the frequency range is from 9 to 43 Hz.
3.4. Used Classifiers
4. Experiments and Results
4.1. Generic Model vs. Individualized Model
4.2. Features with Different Band Ranges and Different Bandwidths
4.3. Dimensionality Reduction by Factor Analysis
- Let
- Compute the covariance matrix as
- Compute the eigenvalues and the associated eigenvectors for . Denote the largest p eigenvalues as with the corresponding eigenvectors , …, . In the simulation, we use p = 8, 6, or 4 for dimension reduction rates. Basically, p is the number of values remained after FA in one second. Note that full resolution has p = 16.
- Construct the loading matrix by
- The dimension-reduced features are obtained as
4.4. Reproducible Test
4.5. Discussions
4.6. Limitations of the Study
- The subjects are clear-headed. During the experiments, we observed that a subject could not concentrate if he/she was sleepy. Therefore, it is important to check the subject’s drowsiness before conducting the experiments.
- The subjects are limited to a small group with a uniform background. Currently, the experiments were conducted with subjects aged in their 20 s with college degrees in one geographic area. Therefore, subjects with different age groups, different educational levels, and different areas will be needed in the future work.
- The proposed features are in the frequency-domain with a short period of time. Recall that the features we used represent only one channel with a duration of 3 s. However, public datasets such as DEAP (Database for Emotion Analysis using Physiological Signals) [38] have multiple channels with much longer recording time. For example, in the DEAP dataset, each EEG recording has 32 channels with a recording duration of 1 min. To apply the features presented in this paper, we need to choose one appropriate channel among the 32 channels and one particular 3-s segment from the one-minute recording. Certainly, this work is not trivial. For this type of dataset, it might be easier to use a 1D CNN classifier to extract features directly from the time-domain signal.
5. Conclusions
Funding
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Akbar, I.A.; Igasaki, T. Drowsiness Estimation Using Electroencephalogram and Recurrent Support Vector Regression. Information 2019, 10, 217. [Google Scholar] [CrossRef] [Green Version]
- Available online: https://en.wikipedia.org/wiki/Electroencephalography (accessed on 10 April 2021).
- Lin, Y.P.; Wang, C.H.; Jung, T.P.; Wu, T.L.; Jeng, S.K.; Duann, J.R.; Chen, J.H. EEG-based emotion recognition in music listening. IEEE Trans. Biomed. Eng. 2010, 57, 1798–1806. [Google Scholar] [PubMed]
- Koelstra, S.; Muhl, C.; Soleymani, M.; Lee, J.; Yazdani, A.; Ebrahimi, T.; Pun, T.; Nijholt, A.; Patras, I. DEAP: A database for emotion analysis; using physiological signals. IEEE Trans. Affect. Comput. 2012, 3, 18–31. [Google Scholar] [CrossRef] [Green Version]
- Patsis, G.; Sahli, H.; Verhelst, W.; De Troyer, O. Evaluation of attention levels in a tetris game using a brain computer interface. Lect. Notes Comput. Sci. 2013, 7899, 127–138. [Google Scholar]
- Vyšata, O.; Schätz, M.; Kopal, J.; Burian, J.; Procházka, A.; Jiří, K.; Hort, J.; Vališ, M. Non-Linear EEG measures in meditation. J. Biomed. Sci. Eng. 2014, 7, 731–738. [Google Scholar] [CrossRef] [Green Version]
- Liu, N.-H.; Chiang, C.-Y.; Chu, H.-C. Recognizing the degree of human attention using EEG signals from mobile sensors. Sensors 2013, 13, 10273–10286. [Google Scholar] [CrossRef] [PubMed]
- Li, Y.; Li, X.; Ratcliffe, M.; Liu, L.; Qi, Y.; Liu, Q. A real-time EEG-based BCI system for attention recognition in ubiquitous environment. In Proceedings of the 2011 International Workshop on Ubiquitous Affective Awareness and Intelligent Interaction (UAAII’11), Beijing, China, 18 September 2011; pp. 33–40. [Google Scholar]
- Liang, Z.; Liu, H.; Mak, J.N. Detection of media enjoyment using single-channel EEG. In Proceedings of the 2016 IEEE Biomedical Circuits and Systems Conference (BioCAS), Shanghai, China, 17–19 October 2016; pp. 516–519. [Google Scholar]
- Katona, J.; Ujbanyi, T.; Sziladi, G.; Kovari, A. Speed control of Festo Robotino mobile robot using NeuroSky MindWave EEG headset based brain–computer interface. In Proceedings of the 2016 7th IEEE International Conference on Cognitive Infocommunications (CogInfoCom), Wroclaw, Poland, 16–18 October 2016; pp. 251–256. [Google Scholar]
- Maskeliunas, R.; Damasevicius, R.; Martisius, I.; Vasiljevas, M. Consumer-grade EEG devices: Are they usable for control tasks? PeerJ 2016, 4, e1746. [Google Scholar] [CrossRef] [PubMed]
- Morshad, S.; Mazumder, M.R.; Ahmed, F. Analysis of Brain Wave Data Using Neurosky Mindwave Mobile II. In Proceedings of the International Conference on Computing Advancements; Association for Computing Machinery: New York, NY, USA, 2020; pp. 1–4. [Google Scholar]
- Jiang, L.; Guan, C.; Zhang, H.; Wang, C.; Jiang, B. Brain computer interface based 3D game for attention training and rehabilitation. In Proceedings of the 6th IEEE Conference on Industrial Electronics and Applications, Beijing, China, 21–23 June 2011; pp. 124–127. [Google Scholar]
- Rebolledo-Mendez, G.; Dunwell, I.; Martínez-Mirón, E.A.; Vargas-Cerdán, M.D.; De Freitas, S.; Liarokapis, F.; García-Gaona, A.R. Assessing NeuroSky’s usability to detect attention levels in an assessment exercise. Lect. Notes Comput. Sci. 2009, 5610, 149–158. [Google Scholar]
- Hamadicharef, B.; Zhang, H.; Guan, C.; Wang, C.; Phua, K.S.; Tee, K.P.; Ang, K.K. Learning EEG-based spectral-spatial patterns for attention level measurement. In Proceedings of the 2009 IEEE International Symposium on Circuits and Systems, Taipei, Taiwan, 24–27 May 2009; pp. 1465–1468. [Google Scholar]
- Kahneman, D. Thinking, Fast and Slow; Farrar, Straus and Giroux: New York, NY, USA, 2011. [Google Scholar]
- Morabito, F.C.; Campolo, M.; Mammone, N.; Versaci, M.; Franceschetti, S.; Tagliavini, F.; Sofia, V.; Fatuzzo, D.; Gambardella, A.; Labate, A. Deep learning representation from electroencephalography of Early-Stage Creutzfeldt-Jakob disease and features for differentiation from rapidly progressive dementia. Int. J. Neural Syst. 2017, 27, 1–15. [Google Scholar] [CrossRef]
- Ahn, M.; Cho, H.; Ahn, S.; Jun, S.C. High Theta and Low Alpha Powers May Be Indicative of BCI-Illiteracy in Motor Imagery. PLoS ONE 2013, 8, e80886. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Blankertz, B.; Sannelli, C.; Halder, S.; Hammer, E.M.; Kübler, A.; Müller, K.R.; Curio, G.; Dickhaus, T. Neurophysiological predictor of SMR-based BCI performance. Neuroimage 2010, 51, 1303–1309. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Vuckovic, A. Motor imagery questionnaire as a method to detect BCI illiteracy. In Proceedings of the 2010 3rd International Symposium on Applied Sciences in Biomedical and Communication Technologies (ISABEL), Rome, Italy, 7–10 November 2010; pp. 1–5. [Google Scholar]
- Ahn, M.; Ahn, S.; Hong, J.H.; Cho, H.; Kim, K.; Kim, B.S.; Chang, J.W.; Jun, S.C. Gamma band activity associated with BCI performance: Simultaneous MEG/EEG study. Front. Hum. Neurosci. 2013, 7. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Ali, F.; El-Sappagh, S.; Islam, S.R.; Ali, A.; Attique, M.; Imran, M.; Kwak, K.S. An intelligent healthcare monitoring framework using wearable sensors and social networking data. Future Gener. Comput. Syst. 2021, 114, 23–43. [Google Scholar] [CrossRef]
- Sarkar, S.K.; Roy, S.; Alsentzer, E.; McDermott, M.B.A.; Falck, F.; Bica, I.; Adams, G.; Pfohl, S.; Hyland, S.L. Machine Learning for Health (ML4H) 2020: Advancing Healthcare for All. Proc. Mach. Learn. Res. 2020, 136, 1–11. Available online: http://proceedings.mlr.press/v136/sarkar20a.html (accessed on 10 April 2021).
- Hyland, S.L.; Faltys, M.; Hüser, M.; Lyu, X.; Gumbsch, T.; Esteban, C.; Bock, C.; Horn, M.; Moor, M.; Rieck, B. Early prediction of circulatory failure in the intensive care unit using machine learning. Nat. Med. 2020, 26, 364–373. [Google Scholar] [CrossRef] [PubMed]
- Ali, F.; El-Sappagh, S.; Islam, S.R.; Kwak, D.; Ali, A.; Imran, M.; Kwak, K.S. A smart healthcare monitoring system for heart disease prediction based on ensemble deep learning and feature fusion. Inf. Fusion 2020, 63, 208–222. [Google Scholar] [CrossRef]
- Available online: https://en.wikipedia.org/wiki/N-back (accessed on 10 April 2021).
- Available online: https://en.wikipedia.org/wiki/10%E2%80%9320_system_(EEG) (accessed on 10 April 2021).
- Public Domain. Available online: https://en.wikipedia.org/wiki/10%E2%80%9320_system_(EEG)#/media/File:21_electrodes_of_International_10-20_system_for_EEG.svg (accessed on 10 April 2021).
- LIBSVM—A Library for Support Vector Machines. Available online: https://www.csie.ntu.edu.tw/~cjlin/libsvm/ (accessed on 10 April 2021).
- Ghosh, R.; Sinha, N.; Singh, N. Emotion recognition from EEG signals using back propagation neural network. In Proceedings of the 2019 2nd International Conference on Innovations in Electronics, Signal Processing and Communication (IESC), Shillong, India, 1–2 March 2019; pp. 188–191. [Google Scholar]
- Kshirsagar, P.; Akojwar, S. Optimization of BPNN parameters using PSO for EEG signals. In Proceedings of the International Conference on Communication and Signal Processing 2016 (ICCASP 2016); Atlantis Press: Dordrecht, The Netherlands, 2016; pp. 384–393. [Google Scholar]
- Cheah, K.H.; Nisar, H.; Yap, V.V.; Lee, C.Y. Convolutional neural networks for classification of music-listening EEG: Comparing 1D convolutional kernels with 2D kernels and cerebral laterality of musical influence. Neural Comput. Appl. 2020, 32, 8867. [Google Scholar] [CrossRef]
- You, S.D.; Liu, C.H.; Lin, J.W. Improvement of Vocal Detection Accuracy Using Convolutional Neural Networks. KSII Trans. Internet Inf. Syst. 2021, 15, 729–748. [Google Scholar] [CrossRef]
- Available online: https://machinelearningmastery.com/transfer-learning-for-deep-learning/ (accessed on 10 April 2021).
- Available online: https://en.wikipedia.org/wiki/Sensitivity_and_specificity (accessed on 10 April 2021).
- You, S.D.; Hung, M. Comparative Study of Dimensionality Reduction Techniques for Spectral-Temporal Data. Information 2021, 12, 1. [Google Scholar] [CrossRef]
- Giavarina, D. Understanding Bland Altman analysis. Biochem. Med. 2015, 25, 141. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- DEAP Database. Available online: http://www.eecs.qmul.ac.uk/mmv/datasets/deap/ (accessed on 10 April 2021).
Setting | Accuracy |
---|---|
All band energy with common SVM Model | 57.1% |
All band energy with individual SVM model | 74.4% |
Sensitivity | Specificity | Accuracy | |||||
---|---|---|---|---|---|---|---|
Metric | Mean | Std. | Mean | Std. | Mean | std. | F1 Score |
only, 1 Hz | 75.9 | 15.4 | 80.6 | 15.7 | 78.2 | 11.0 | 77.4 |
only, 2 Hz | 76.0 | 12.7 | 82.4 | 8.6 | 79.2 | 9.4 | 78.2 |
only, 4 Hz | 71.0 | 20.3 | 82.9 | 9.9 | 77.0 | 12.9 | 74.3 |
+ , 1 Hz | 74.3 | 23.1 | 74.8 | 25.3 | 74.5 | 8.7 | 73.3 |
+ , 2 Hz | 74.1 | 16.5 | 79.6 | 14.5 | 76.8 | 12.1 | 75.9 |
+ , 4 Hz | 74.9 | 18.4 | 83.2 | 8.4 | 79.1 | 12.5 | 77.4 |
+ + , 1 Hz | 78.3 | 20.6 | 79.8 | 22.4 | 79.0 | 12.2 | 78.1 |
+ + , 2 Hz | 79.5 | 11.1 | 84.2 | 11.6 | 81.9 | 9.1 | 81.4 |
+ + , 4 Hz | 74.5 | 18.2 | 84.1 | 8.9 | 79.3 | 12.4 | 77.4 |
Sensitivity | Specificity | Accuracy | |||||
---|---|---|---|---|---|---|---|
Metric | Mean | Std. | Mean | Std. | Mean | std. | F1 Score |
only, 1 Hz | 66.8 | 15.0 | 73.3 | 11.3 | 70.1 | 9.7 | 68.6 |
only, 2 Hz | 68.2 | 13.7 | 74.8 | 14.4 | 71.5 | 11.0 | 70.4 |
only, 4 Hz | 70.8 | 18.3 | 76.4 | 11.6 | 73.6 | 12.8 | 72.1 |
+ , 1 Hz | 66.1 | 16.4 | 72.2 | 12.9 | 69.2 | 11.0 | 67.7 |
+ , 2 Hz | 68.9 | 14.6 | 74.8 | 13.2 | 71.8 | 11.7 | 70.8 |
+ , 4 Hz | 69.5 | 16.3 | 79.3 | 12.5 | 74.4 | 12.8 | 72.7 |
+ + , 1 Hz | 67.3 | 14.3 | 74.5 | 11.7 | 70.9 | 8.0 | 69.4 |
+ + , 2 Hz | 70.8 | 14.4 | 79.3 | 13.4 | 75.1 | 10.5 | 73.7 |
+ + , 4 Hz | 69.3 | 18.2 | 80.0 | 11.9 | 74.7 | 12.6 | 72.6 |
Sensitivity | Specificity | Accuracy | |||||
---|---|---|---|---|---|---|---|
Metric | Mean | Std. | Mean | Std. | Mean | std. | F1 Score |
only, 1 Hz | 74.6 | 24.5 | 94.6 | 6.9 | 84.6 | 15.0 | 81.1 |
only, 2 Hz | 82.0 | 19.2 | 88.5 | 15.3 | 85.3 | 14.9 | 84.2 |
only, 4 Hz | 85.8 | 14.8 | 89.6 | 8.0 | 87.7 | 11.1 | 87.1 |
+ , 1 Hz | 59.6 | 30.0 | 94.0 | 7.1 | 76.8 | 17.5 | 68.5 |
+ , 2 Hz | 67.3 | 27.8 | 95.3 | 5.5 | 81.3 | 15.8 | 75.3 |
+ , 4 Hz | 79.0 | 20.6 | 87.4 | 20.0 | 83.2 | 17.3 | 81.9 |
+ + , 1 Hz | 65.1 | 28.7 | 93.7 | 7.5 | 79.4 | 17.1 | 73.1 |
+ + , 2 Hz | 75.4 | 25.9 | 94.5 | 5.8 | 85.0 | 15.2 | 81.2 |
+ + , 4 Hz | 83.8 | 18.2 | 87.5 | 15.0 | 85.6 | 15.4 | 84.9 |
SVM | BPNN | |||||||
---|---|---|---|---|---|---|---|---|
Metric | Acc | Sens. | Spec. | F1 Score | Acc | Sens. | Spec. | F1 Score |
only, 1 Hz | 82.0 | 75.1 | 88.8 | 80.9 | 76.2 | 78.1 | 74.3 | 78.0 |
only, 2 Hz | 82.8 | 79.5 | 86.0 | 83.4 | 77.5 | 78.7 | 76.4 | 79.2 |
only, 4 Hz | 83.3 | 79.7 | 86.9 | 85.4 | 80.0 | 81.1 | 78.8 | 81.4 |
+ , 1 Hz | 75.9 | 65.6 | 86.1 | 71.1 | 75.7 | 78.6 | 72.8 | 77.7 |
+ , 2 Hz | 79.4 | 70.1 | 88.8 | 77.1 | 77.9 | 79.9 | 76.0 | 79.7 |
+ , 4 Hz | 81.5 | 77.3 | 85.7 | 82.5 | 80.9 | 81.2 | 80.5 | 83.3 |
+ + , 1 Hz | 79.3 | 70.5 | 88.0 | 75.8 | 76.7 | 78.7 | 74.7 | 78.6 |
+ + , 2 Hz | 83.7 | 77.1 | 90.3 | 82.4 | 80.2 | 80.9 | 79.5 | 82.3 |
+ + , 4 Hz | 83.0 | 79.9 | 86.1 | 84.6 | 81.5 | 81.5 | 81.5 | 84.0 |
Classifier | S2 | S5 | S7 | S8 | S10 | S11 | S13 | S14 | S15 | S17 |
---|---|---|---|---|---|---|---|---|---|---|
SVM | ||||||||||
BPNN |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
You, S.D. Classification of Relaxation and Concentration Mental States with EEG. Information 2021, 12, 187. https://doi.org/10.3390/info12050187
You SD. Classification of Relaxation and Concentration Mental States with EEG. Information. 2021; 12(5):187. https://doi.org/10.3390/info12050187
Chicago/Turabian StyleYou, Shingchern D. 2021. "Classification of Relaxation and Concentration Mental States with EEG" Information 12, no. 5: 187. https://doi.org/10.3390/info12050187
APA StyleYou, S. D. (2021). Classification of Relaxation and Concentration Mental States with EEG. Information, 12(5), 187. https://doi.org/10.3390/info12050187