Next Article in Journal
Talking about Health: A Topic Analysis of Narratives from Individuals with Schizophrenia and Other Serious Mental Illnesses
Previous Article in Journal
The Prediction of Consumer Behavior from Social Media Activities
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Decoding Prediction Model of Flexion and Extension of Left and Right Feet from Electroencephalogram

by
Abeer Abdulaziz AlArfaj
1,
Hanan A. Hosni Mahmoud
1,* and
Alaaeldin M. Hafez
2
1
Department of Computer Sciences, College of Computer and Information Sciences, Princess Nourah bint Abdulrahman University, P.O. Box 84428, Riyadh 11671, Saudi Arabia
2
Department of Information Systems, College of Computer and Information Sciences, King Saud University, Riyadh 84412, Saudi Arabia
*
Author to whom correspondence should be addressed.
Behav. Sci. 2022, 12(8), 285; https://doi.org/10.3390/bs12080285
Submission received: 2 July 2022 / Revised: 11 August 2022 / Accepted: 11 August 2022 / Published: 13 August 2022

Abstract

:
Detection of limb motor functions utilizing brain signals is a significant technique in the brain signal gain model (BSM) that can be effectively employed in various biomedical applications. Our research presents a novel technique for prediction of feet motor functions by applying a deep learning model with cascading transfer learning technique to use the electroencephalogram (EEG) in the training stage. Our research deduces the electroencephalogram data (EEG) of stroke incidence to propose functioning high-tech interfaces for predicting left and right foot motor functions. This paper presents a transfer learning with several source input domains to serve a target domain with small input size. Transfer learning can reduce the learning curve effectively. The correctness of the presented model is evaluated by the abilities of motor functions in the detection of left and right feet. Extensive experiments were performed and proved that a higher accuracy was reached by the introduced BSM-EEG neural network with transfer learning. The prediction of the model accomplished 97.5% with less CPU time. These accurate results confirm that the BSM-EEG neural model has the ability to predict motor functions for brain-injured stroke therapy.

1. Introduction

Most patients with stroke incidence have motor function deficiency in both left and right feet [1], causing a substantial loss of motor occupation and daily activities [1,2,3]. Stroke therapy tends to stimulate UE motor recovery and restore motor function of both feet. A main rehabilitation process is the understanding of the EEG signals to supply a non-invasive solution for the brain signal gain model (BSM), employed in all EEG signal models. BSM systems include the following steps: EEG reading, image processing, and controller [1,2,3,4]. Motor function of left and right feet target the objects in the surroundings [4,5].
The brain signal gain model (BSM) is a learning model that can capture EEG signals and convert them into motion function. BSMs are extensively found in brain-injured therapy cases. The brain signals lead to a non-intrusive answer for the BSM. BSM models the steady state of the EEG signals for motor functions feedback systems [5,6]. the images contain disparities of muscles motivated by the brain signals [7,8,9,10,11]. In our research, EEGs are captured from stroke patient cases with motor function disabilities for stroke patients. BSM systems can stimulate the motor function-lacking body part to regain the nerves of the injured parts (left and right feet in our case). Deep learning models are usually applied for BSM schemes, spatial feature selection, classification, and recognition models [10,11,12,13,14]. The researchers in [15] presented a support vector machine to classify motor signals from images. The researchers in [16] introduced the score prediction technique, and conquered accurate classification [17]. EEG signals are investigated and used in a deep learning prediction model. This model outperformed previous models especially on large datasets. Deep learning models can label properties without geometrical engineering. This defines the neural structure systems as feature selection for EEG brain signals using BSM. Current models operated deep learning systems to capture deep features. The researchers in [15] introduced a neural network with an auto-encoder with higher classification precision than prior models on the BSM-2b sets. Researchers in [16] presented a belief deep learning prediction model using the Boltzmann model. Researchers in [17] presented the envelope map of EEG signals by employing the Hilbert technique and constructed a motor imagery-based BSM prediction deep model. They employed the model to the BSM EEG-2 dataset and exhausted the most progressive prediction accuracy stated. Researchers in [16] utilized a deep learning model depiction of multiple channel EEG signal to enhance the accuracy. The researchers in [17] built 3D feature vectors of the EEG data with a parallel CNN model. The model in [18] attained high accuracy. Deep learning techniques use EEG feature mining and achieve higher precision [18,19,20,21]. However, feature mining becomes difficult due to the medical state of stroke incident cases especially for the EEG, since capturing is hard with an effect on large-size databases. The usage of these systems for motor function spatial studies in stroke cases is limited. Our model incorporates transfer learning methodologies to efficiently reduce the size of the required training set [22,23,24,25]. Features used by transfer learning utilize incident similarities and by sub-parameter inheritance [25,26,27,28]. These parameters can be reused in a reduced dataset and can increase the effectiveness of the EEGs feature learning models [28,29,30,31,32,33]. Our research contributions are summarized as depicted below:
Designing a deep learning neural system with a number of additional modules and cascading transfer learning stages.
Improving the precision of the BSM system for the prediction of motor functions for stroke patients from their EEG signals.
Proposing an extension to the Dense-Net using parameter tuning and transfer learning (BSM-EEG).
Confirming the accuracy of the proposed model by performing a comparison to similar published models.
The remainder of this paper is organized as follows. The dataset description is presented in Section 2. The proposed model with transfer learning is presented in Section 3. The experiments and performance comparison are depicted in Section 4. Section 5 concludes the work.

2. Materials and Methods

2.1. Data Description

The dataset contains the EEG data of 100 cases (an average of 20 different motor function for each case). The EEG signal per case continues for 3.5 s as depicted in Figure 1. The public dataset has records of the EEG signals of the patient while he is doing different motor functions of his left and right feet. Then, we let him relax for two seconds. The public dataset can be accessed by registration from https://www.bbci.de/competition/iv/#dataset2a accessed on 12 May 2022 and https://www.bbci.de/competition/iii/#data_set_iiia accessed on 15 May 2022.
These data items are recorded and labeled in a public dataset that we utilized for our experiments [15]. The motor functions of the foot are depicted in Figure 2. Figure 2a displays the flexion and extension of the foot in the ranges of 0–30 and 0–50 respectively. Figure 2b displays the flexion and extension of the foot in vertical position. Figure 2c displays the pronation and supination of the foot in the ranges of 0–30 and 0–60 respectively The statistics of the motor function of left and right feet data are shown in Table 1. These data are extracted from the public dataset in [15]. The recorded data include the foot with all the reflexes. The dataset statistics are depicted in Table 1 and Table 2.

2.2. Preprocessing Task

EEG data were processed through Matlab with the toolboxes BraSig 2.3.0 and EEGProc 13.1.0, Matlab Inc. (Asheboro, NC, USA).
The four preprocessing steps were as follows:
  • Removal of noisy channels, we erased the channel AFz as it is impacted by eye blinks.
  • Removal of static outliers using ICA using EEG signal with frequency 0.5–60 Hz to capture the outliers. We erased static outliers by applying the zero-phase band-pass filter using independent component analysis. We concentrated the EEG channels with principal component analysis and kept only components that capture 98% of the variations of the data.
  • Detection of attempts with transitory artefacts (EEG signal from 0.5–60 Hz). We distinguished transitory artefacts using EEGProc and signaled attempts for denial with values more than −90 μV or less than 90 μV.
  • Removal of static and transitory artefacts (computed from step 2 and 3) from the EEG signal in the range of 0.5 Hz to 5 Hz [34,35,36,37].
A total of 120 attempts were recorded for each patient as depicted from the data. We used K-fold validation dividing the data into 70%, 15%, and 15% for training, testing, and validation respectively.

3. Deep Learning Phase: The Proposed BSM-EEG Model

BSM-EEG is a deep learning model with cascading transfer learning model for handling EEG signals through training on EEG signals of healthy cases and the motor functions associated with them. The prediction phase is to predict the motor function from the EEG of the brain-injured cases.

3.1. Methodology

Our methodology aims to achieve a learning transfer model from other deep learning models that are trained on other motor functions for brain-injured cases, namely as upper limb movements (source domain 1) [7] and knee movements (source domain 2) [5]. Each source domain contains an average of 30,000 different labeled motor function EEG. To do so, we employed several input domains D s to get the suitable learning transfer models. Figure 3 displays the phases to accomplish this objective. We can have several input domains. For each domain D s i , an optimal deep neural network was attained via Bayesian procedure. The optimization module output the parts of D s i which was utilized to train the final deep learning model. The training data of the transfer learning model were chosen due to its prediction accuracy over the labeled target domain. The flow diagram of the proposed model is depicted in Figure 3.
The presented model comprises four stages:
(1)
Transfer training in input domain D s 1 utilizing upper limb labeled, motor function labeled EEG signals. A deep neural network was trained to learn the EEG signals for upper limb motor functions. The structure of this deep learning network was optimized to realize higher accuracy.
(2)
Unsupervised training phase on the same dataset D s 1 utilizing non-labeled data items from D s 1 and from other data items not included in D s 1 . We adjusted the pre-trained deep learning model from first phase by utilizing the same neural weights.
(3)
Fine-tuning in the target input domain D T using 271 labeled EEGs with their desired lower limb motor functions.

3.2. Architecture

To choose the suitable deep learning model with the correct weights is the Bayesian selection process [21]. Random Bayesian selection of the convolutional weight space leads to higher accuracy. In a Bayesian optimization model, the parameters of the deep learning model are computed as the optimization of an objective function. The objective function’s goal is to optimize the loss function of the deep learning model by adjusting the selection space.
In this paper, we present several Bayesian procedures to obtain the deep learning model that achieves better performance on the source input domains. The training process phases is depicted as follows.
The first phase was to train an initial model D L i with arbitrary preliminary parameters and optimize a loss function L i for the source input domains D s i in each source domain.
For each source D s , an optimized deep learning (DL) neural network was achieved via Bayesian optimizer. During this process, the source input domain was divided into a training subset and validation subset. The DL model was verified based on the transfer learning performance using the target input domains. This Bayesian optimizer was applied on all source domain data. The model with the highest performance was chosen by computing the performance metrics on transfer learning functions using a function.
The last step was to validate the usefulness of prior models for transfer learning optimization by utilizing all target datasets by optimizing the loss function ( L B a y s ) of the Bayesian optimizer.
Min   L B a y s   [ D L i       D L j   ]     i   j  
where   is a transfer learning operator. D L i is a deep learning model and is trained with only a single source input domain and its weights are transferred to the other source domains by fine-tuning the fully connected layers in D L j   . The loss function L o s s is calculated as a weighted (w) accuracy (acc) average and the average loss in both the learning and validation process and is computed as follows:
L o s s = w [ ( 1 a c c l e a r n i n g ) + L o s s l e a r n i n g ] + ( 1 w )   [ ( 1 a c c v a l i d a t i o n ) + L o s s v a l i d a t i o n ]
The final step of this stage was a set of DL models equal to the count of source domains. The architecture of transfer learning training and prediction from actual labeled clinical data is depicted in Figure 4.

4. Results and the Prediction Performance

4.1. Training

The proposed model training was done on a Sun station CPU X6-3320 V2@ 3.60 GHz* 16 with 64 bits Linux operating system as depicted in Table 3. The deep learning model was implemented in Python 3.6.0. The method of the training was to modify the filter weights to ensure that the classified result is near to the labeled class. The utilized dataset was partitioned into three partitions. The first partition was the training subset and it included 70% of the dataset. The second partition was the validation subset and it included 15% of the dataset. The third partition was the validation subset and it included 15% of the dataset for testing the efficiency of the model. Adam optimizer was employed for fine-tuning the neural weights to minimize the loss. Table 4 depicts the hyperparameters utilized for training.

4.2. Experiment Setting

The experimental setting included determining the number of hidden layers of the DL model and the number of neurons in each layer, number of epochs, and learning rate. To define the construction of the neural structure, hidden layers and the neurons in the different layers had to be defined. The results of various hidden layer numbers and neuron counts are depicted in Table 5 and displayed in Figure 5. The count of iterations was 1900.
The various learning rate also impacts the accuracy of the neural network. We tested learning rate between 0.05 and 0.15, with step of 0.02. The results of several learning rates are depicted in Table 6 and displayed in Figure 6. The results prove that the proposed model had the highest performance with learning rate equals to 0.07.

5. The Proposed Models with Transfer Learning from Different Domain Sources

5.1. Performance Metrics

To analyze the performance of the proposed model, several performance metrics were utilized, which proved the efficiency of the model in predicting foot movement from the EEG. The evaluation metrics were recall, f1-score, precision, and accuracy (they are defined in the following equations).
P r e c i s i o n = T P T P + F P
R e c a l l = T P T P + F N
A c c u r a c y = T P + T N T P + T N + F P + F N  
F 2 S c o r e = 2 × R e c a l l × P r e c i s i o n R e c a l l + p r e c i s i o n
where T P is the number of true positive predictions, T N is the number of true negative predictions, F P is the number of false positive predictions, and V is th F N number of false negative predictions.
The classification accuracy, recall, and F1-score of our model are depicted in Table 7. The mentioned table compares between the performance metrics of our model and transfer learning with one and two source domain.

5.2. Confusion Matrix

The confusion matrices of predicting foot movement from the EEG is depicted in Table 8, Table 9 and Table 10, which display the true label (ground truth) at the y-axis and the predicted foot movement at the x-axis. The confusion matrices are for the proposed model without transfer learning (Table 8), the proposed model with transfer learning from one source domain (Table 9), and the proposed model with transfer learning from two source domains (Table 10).

5.3. Time Complexity Versus Accuracy

In this research, it was essential to compute the time complexity for the deep learning model and how transfer learning could affect the training time complexity. Moreover, it was important to see the tradeoff between the deep learning model alone and the trade off when we incorporated the transfer learning for one or more sourced domains. The results are presented in Table 11 and Table 12.

5.4. Performance Comparison of Different Models

The experiments have a big role in determining the hidden layers and the optimized count of neuron with learning rate in accordance. The selected parameters were applied to our proposed deep learning model. We comparatively evaluated our models with other DL models with transfer learning with the same parameter settings. The compared models were BP neural [13], TransferN [19], DLN [21], CNN [27], and STL [31]. The parameter settings were the same for all the compared models. Since transfer learning models need relatively lengthy training times, the training time and prediction time of different models are shown in Table 13.

6. Conclusions

The goal of this research was to decode the left and right foot motor functions from EEG signals. The proposed deep learning model realized high prediction precision which can lead to a better a brain signal gain model (BSM) which can be employed in several limb assistive devices. The proposed research attained high accuracy by applying transfer learning from other source domains such as from elbow and knees source input domains. Our method realized higher accuracy of 97.4% by training through EEG signals of healthy cases performing motor feet functions. The presented classifier can be deployed in several classes of BSM as control signals for operative foot neuro pros. The research also concluded that the proposed BSM-EEG model with cascading transfer learning with deep learning can be competently employed on a small size input.
This research indicates that the presented model can transfer learning for the same pattern. The experimental results depict that transfer learning should be incorporated in the paradigm of EEG processing. The BSM-EEG outperformed other state-of-the-art neural deep learning models in motor imagery detection. The experiments showed that we can utilize a small-sized dataset for training by incorporating feature extraction through other source domains. The mechanism of this study can be generalized by using n source domains instead of only two source domains.

Author Contributions

Conceptualization, H.A.H.M. and A.A.A.; methodology, H.A.H.M.; software, H.A.H.M.; validation, H.A.H.M., A.A.A. and A.M.H.; formal analysis, H.A.H.M.; investigation, H.A.H.M.; resources, H.A.H.M.; data curation, H.A.H.M.; writing—original draft preparation, H.A.H.M.; writing—review and editing, H.A.H.M. and A.M.H.; visualization, A.M.H.; supervision, A.M.H.; project administration, H.A.H.M.; funding acquisition, A.A.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Princess Nourah bint Abdulrahman University Researchers Supporting Project number (PNURSP2022R113), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The public dataset can be accessed by registration from https://www.bbci.de/competition/iv/#dataset2a (accessed on 1 August 2022) and https://www.bbci.de/competition/iii/#data_set_iiia (accessed on 1 August 2022).

Acknowledgments

We would like to thank Princess Nourah bint Abdulrahman University Researchers Supporting for supporting our Project with number (PNURSP2022R113), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Graimann, B.; Allison, B.; Pfurtscheller, G. Brain–Computer Interfaces: A Gentle Introduction Brain-Computer Interfaces; Springer: Cham, Switzerland, 2009; pp. 1–29. [Google Scholar]
  2. Mane, R.; Chouhan, T.; Guan, C. BSA for brain-injured therapy: Motor and beyond. J. Neural Eng. 2020, 19, 041001. [Google Scholar] [CrossRef] [PubMed]
  3. Tabar, Y.R.; Halici, U. A novel deep learning approach for prediction of EEG motor imagery signals. J. Neural Eng. 2019, 14, 016003. [Google Scholar] [CrossRef] [PubMed]
  4. Liu, C.; Wang, H.; Pu, H.; Zhang, Y.; Zou, L. EEG feature extraction and pattern recognition during right and left hands motor imagery in brain-computer interface. In Proceedings of the 2012 5th International Conference on BioMedical Engineering and Informatics, Chongqing, China, 16–18 October 2012; pp. 506–510. [Google Scholar]
  5. Imani Nejad, Z.; Khalili, K.; Hosseini Nasab, S.H.; Schütz, P.; Damm, P.; Trepczynski, A.; Taylor, W.R.; Smith, C.R. The Capacity of Generic Musculoskeletal Simulations to Predict Knee Joint Loading Using the CAMS-Knee Datasets. Ann. Biomed. Eng. 2020, 48, 1430–1440. [Google Scholar] [CrossRef]
  6. Muller-Putz, G.R.; Pfurtscheller, G. Control of an electrical prosthesis with an ssvep-based BSA. IEEE Trans. Biomed. Eng. 2006, 55, 361–364. [Google Scholar] [CrossRef] [PubMed]
  7. Averta, G.; Barontini, F.; Catrambone, V.; Haddadin, S.; Handjaras, G.; Held, J.P.O.; Hu, T.; Jakubowitz, E.; Kanzler, C.M.; Kühn, J.; et al. U-Limb: A multi-modal, multi-center database on arm motion control in healthy and post-stroke conditions. GigaScience 2021, 10, giab043. [Google Scholar] [CrossRef] [PubMed]
  8. Rundo, F.; Rinella, S.; Massimino, S.; Coco, M.; Fallica, G.; Parenti, R.; Conoci, S.; Perciavalle, V. An innovative deep learning algorithm for drowsiness detection from EEG signal. Computation 2019, 9, 13. [Google Scholar] [CrossRef]
  9. Jafari, A.; Ganesan, A.; Thalisetty, C.S.K.; Sivasubramanian, V.; Oates, T.; Mohsenin, T. SensorNet: A scalable and low-power deep convolutional neural network for multimodal data classification. IEEE Trans. Circuits Syst. I Regul. Pap. 2018, 66, 274–287. [Google Scholar] [CrossRef]
  10. Jafari, A.; Ganesan, A.; Thalisetty, C.S.K.; Sivasubramanian, V.; Oates, T.; Mohsenin, T. Feedback control of oxygen uptake during robot-assisted gait. IEEE Trans. Control Syst. Technol. 2010, 18, 136–142. [Google Scholar]
  11. Zhang, F.; Bohlen, P.; Lewek, M.D.; Huang, H. Prediction of intrinsically caused tripping events in individuals with brain-injured. IEEE Trans. Neural Syst. Rehabil. Eng. 2017, 25, 1202–1210. [Google Scholar] [CrossRef] [PubMed]
  12. Baer, G.D.; Salisbury, L.G.; Smith, M.T.; Pitman, J.; Dennis, M. Treadmill training to improve mobility for people with sub-acute brain-injured: A phase II feasibility randomized controlled trial. Clin. Rehab. 2018, 32, 201–212. [Google Scholar] [CrossRef]
  13. Harshvardhan Vathsangam, E.; Schroeder, T.; Sukhatme, G.S. Hierarchical approaches to estimate energy expenditure using phone-based accelerometer. IEEE J. Biomed. Health Inform. 2014, 18, 1242–1252. [Google Scholar] [CrossRef]
  14. Polese, J.C.; Ada, L.; Dean, C.M.; Nascimento, L.R.; Teixeira-Salmela, L.F. Treadmill training is effective for ambulatory adults with brain-injured: A systematic review. J. Physiother. 2013, 59, 73–80. [Google Scholar] [CrossRef]
  15. Feasel, J.; Whitton, M.C.; Kassler, L.; Brooks, F.P.; Lewek, M.D. The integrated virtual environment rehabilitation treadmill system. IEEE Trans. Neural Syst. Rehabil. Eng. 2011, 19, 290–297. [Google Scholar] [CrossRef] [PubMed]
  16. Kang, J.; Vashista, V.; Agrawal, S.K. On the adaptation of pelvic motion by applying 3-dimensional guidance forces using TPAD. IEEE Trans. Neural Syst. Rehabil. Eng. 2017, 25, 1558–1567. [Google Scholar] [CrossRef] [PubMed]
  17. Hussain, I.; Park, S.J. HealthSOS: Real-Time Health Monitoring System for Stroke Prognostics. IEEE Access 2020, 8, 213574–213586. [Google Scholar] [CrossRef]
  18. Pietrusinski, M.; Cajigas, I.; Severini, G.; Bonato, P.; Mavroidis, C. Robotic gait rehabilitation trainer. IEEElASME Trans. Mechatron. 2014, 19, 490–499. [Google Scholar] [CrossRef]
  19. Franceschini, M.; Carda, S.; Agosti, M.; Antenucci, R.; Malgrati, D.; Cisari, C. Walking after brain-injured: What does treadmill training with body weight support add to overground gait training in patients early after brain-injured? A single-blind randomized controlled trial. AHA J. Brain-Inj. 2009, 55, 2499–2508. [Google Scholar]
  20. Shaughnessy, M.; Michael, K.; Resnick, B. Impact of treadmill exercise on efficacy expectations physical activity and brain-injured recovery. J. Neurosci. Nurs. 2012, 44, 27–35. [Google Scholar] [CrossRef] [PubMed]
  21. Dohnng, M.E.; Daly, J.J. Automatic synchronization of functional electrical stimulation and robotic assisted treadmill training. IEEE Trans. Neural Syst. Rehabil. Eng. 2008, 16, 310–313. [Google Scholar]
  22. Hussain, I.; Park, S.J. Quantitative Evaluation of Task-Induced Neurological Outcome after Stroke. Brain Sci. 2021, 11, 900. [Google Scholar] [CrossRef] [PubMed]
  23. Nielsen, R.K.; Samson, K.L.; Simonsen, D.; Jensen, W. Effect of early and late rehabilitation onset in a chronic rat model of ischemic brain-injured–assessment of motor cortex signaling and gait functionality over time. IEEE Trans. Neural Syst. Rehabil. Eng. 2013, 21, 1006–1015. [Google Scholar] [CrossRef] [PubMed]
  24. Banala, S.K.; Kim, S.H.; Agrawal, S.K.; Scholz, J.P. Robot assisted gait training with active leg exoskeleton (ALEX). IEEE Trans. Neural Syst. Rehabil. Eng. 2009, 17, 2–8. [Google Scholar] [CrossRef] [PubMed]
  25. Banala, S.K.; Agrawal, S.K.; Kim, S.H.; Scholz, J.P. Novel gait adaptation and neuromotor training results using an active leg exoskeleton. IEEElASME Trans. Mechatron. 2010, 15, 216–225. [Google Scholar] [CrossRef]
  26. Kim, S.-J.; Ogilvie, M.; Shimabukuro, N.; Stewart, T.; Shin, J.-H. Effects of visual feedback distortion on gait adaptation: Comparison of implicit visual distortion vs. conscious modulation on retention of motor learning. IEEE Trans. Biomed. Eng. 2015, 62, 2244–2250. [Google Scholar] [CrossRef] [PubMed]
  27. Snvastava, S.; Kao, P.-C.; Kim, S.H.; Stegall, P.; Zanotto, D.; Higginson, J.S. Assist-as-needed robot-aided gait training improves walking function in individuals following brain-injured. IEEE Trans. Neural Syst. Rehabil. Eng. 2015, 23, 956–963. [Google Scholar] [CrossRef] [PubMed]
  28. Cheng, T.M.; Savkin, A.V.; Celler, B.; Su, S.; Wang, L. Nonlinear modeling and control of human heart rate response during exercise with various work load intensities. IEEE Trans. Biomed. Eng. 2008, 55, 2499–2508. [Google Scholar] [CrossRef] [PubMed]
  29. Matsuoka, S.; Amano, H.; Nakajima, K.; Inoue, K.; Kudoh, T.; Maruyama, N.; Endo, T.; Katagiri, T.; Hanawa, T.; Taura, K.; et al. From flops to bytes: Disruptive change in high-performance computing towards the post-moore era. ACM Int. Conf. Cairo Egypt 2016, 112–116. Available online: https://dl.acm.org/doi/abs/10.1145/2903150.2906830 (accessed on 1 August 2022).
  30. Raza, H.; Chowdhury, A.; Bhattacharyya, S. Deep learning based prediction of EEG motor imagery of brain-injured patients for neuro-therapy application. In Proceedings of the 2020 International Joint Conference on Neural Networks (IJCNN), Glasgow, UK, 18–23 June 2020; pp. 201–205. [Google Scholar]
  31. Gal, Y.; Ghahramani, Z. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In Proceedings of the ICML16: 33rd International Conference on International Conference on Machine Learning, New York, NY, USA, 20–22 June 2015; Volume 46, pp. 1050–1059. [Google Scholar]
  32. Xin, B.; Wang, T.; Tang, T. A deep learning and softmax regression fault diagnosis model for multi-level converter. In Proceedings of the 2019 IEEE 25th International Symposium on Diagnostics for Electrical Machines, Power Electronics and Drives (SDEMPED), Toulouse, France, 27–30 August 2019; pp. 292–299. [Google Scholar]
  33. Iandola, F.X.; Moskewicz, M.; Karayev, S.; Girshick, R.; Darrell, T.; Keutzer, K. Densenet: Implementing efficient convnet descriptor pyramids. Comput. Vis. Pattern Recognit. 2014. [Google Scholar]
  34. Szegedy, C.; Ioffe, S.; Vanhoucke, V.; Alemi, A.A. Inception-v4, Inception-ResNet and the impact of residual connections on learning. Proc. AAAI Conf. Artif. Intell. 2019, 31, 4196–4264. [Google Scholar] [CrossRef]
  35. Chollet, F. Xception: Deep learning with depthwise separable convolutions. In Proceedings of the 2019 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, MA, USA, 16–20 June 2019. [Google Scholar]
  36. Ray, S. Disease prediction within dermascopic images using features extracted by resnet50 and prediction through deep forest. arxiv 2016, arXiv:1609.05925. [Google Scholar]
  37. Huang, H.; Wu, J.; Lim, T.C.; Yang, M.; Ding, W. Pure electric vehicle nonstationary interior sound quality prediction based on deep CNNs with an adaptable learning rate tree. Mech. Syst. Signal Process. 2020, 148, 107170. [Google Scholar] [CrossRef]
Figure 1. EEG signal recording versus time in seconds.
Figure 1. EEG signal recording versus time in seconds.
Behavsci 12 00285 g001
Figure 2. The motor functions of the foot (ac).
Figure 2. The motor functions of the foot (ac).
Behavsci 12 00285 g002
Figure 3. Methodology to obtain deep learning models for transfer learning (the flow diagram of the BSM-EEG model).
Figure 3. Methodology to obtain deep learning models for transfer learning (the flow diagram of the BSM-EEG model).
Behavsci 12 00285 g003
Figure 4. (a) The architecture of the transfer learning training; (b) the architecture of prediction from actual labeled clinical data.
Figure 4. (a) The architecture of the transfer learning training; (b) the architecture of prediction from actual labeled clinical data.
Behavsci 12 00285 g004
Figure 5. Prediction accuracy of various counts of neurons in convolutional layers.
Figure 5. Prediction accuracy of various counts of neurons in convolutional layers.
Behavsci 12 00285 g005
Figure 6. The impact of learning rate on performance.
Figure 6. The impact of learning rate on performance.
Behavsci 12 00285 g006
Table 1. The statistics of the motor function of left and right feet data.
Table 1. The statistics of the motor function of left and right feet data.
Motor FunctionMeanStandard DeviationMinimumMaximum
Right foot flexion 18.9° 3.4°030°
Left foot flexion20.5° 2.68°030°
Right foot extension40.7°5.67°050°
Left foot extension42.7°6.3° 050°
Right foot pronation25.962.87030°
Left foot pronation26.713.63030°
Right foot supination51.715.73060°
Left foot supination48.964.87060°
Table 2. Dataset statistics (total samples of EEG signals: 2000 from 271 cases).
Table 2. Dataset statistics (total samples of EEG signals: 2000 from 271 cases).
Foot Movement Associated with the EEGCount
Right foot flexion 222
Left foot flexion200
Right foot extension208
Left foot extension300
Right foot pronation250
Left foot pronation200
Right foot supination300
Left foot supination320
Table 3. Environment.
Table 3. Environment.
Hardware
ProcessorRAM
Sun station CPU X6-3320 V2@ 3.60 GHz* 1664 GB
Software
Operating systemSimulation environment
LinuxPython 3.4 and Mat lab
Table 4. Hyperparameters utilized for training.
Table 4. Hyperparameters utilized for training.
StageLayerHyperparameter Value
First ConvolutionFilters128
Kernel size5
Strides3
Average pooling8
Second ConvolutionFilters256
Kernel size4
Average pooling4
Third ConvolutionFilters512
Kernel size2
Max pooling2
Training ParametersLearning rate0.2
Epochs80
Batch size26
OptimizerAdam
Table 5. Prediction accuracy of various counts of neurons in convolutional layers.
Table 5. Prediction accuracy of various counts of neurons in convolutional layers.
Neuron Counts89101112131415
Layer 10.92560.93590.93630.92820.94610.97090.97260.9655
Layer 20.96650.97040.97290.93890.95090.94490.93660.9336
Layer 30.94490.97270.96520.94660.95290.95060.94370.9363
Layer 40.94060.93830.93720.94490.92770.93640.93330.9309
Layer 60.93040.94290.93610.93090.93090.93290.93090.9271
Table 6. The impact of learning rate on performance.
Table 6. The impact of learning rate on performance.
Learning Rate0.050.070.090.110.130.15
Accuracy0.9540.9720.9580.9310.9320.930
Table 7. Classification report of our model with transfer learning with one and two source domain model.
Table 7. Classification report of our model with transfer learning with one and two source domain model.
Our Model with Transfer Learning with One Source Domain Our Model with Transfer Learning with Two Source Domain
Predicted
movement
PrecisionRecallF2-scorePrecisionRecallF2-score
Right foot
flexion
0.90.950.90.970.990.96
Left foot flexion0.80.850.80.960.960.96
Right foot
extension
0.940.850.910.920.960.97
Left foot
extension
0.940.850.90.970.920.96
Right foot
pronation
0.890.930.910.960.940.97
Left foot
pronation
0.90.90.910.960.90.96
Right foot
supination
0.840.90.80.940.90.96
Left foot
supination
0.940.90.90.970.90.99
Table 8. Confusion matrix for the proposed DL model without transfer learning.
Table 8. Confusion matrix for the proposed DL model without transfer learning.
Motor FunctionRight Foot Flexion Left Foot FlexionRight Foot ExtensionLeft Foot Extension Right Foot PronationLeft Foot PronationRight Foot SupinationLeft Foot SupinationTotal Cases
Right foot flexion 942503521200222
Left foot flexion3100433222135200
Right foot extension20510753021821208
Left foot extension1040 0150 10401139300
Right foot pronation2283010130103010250
Left foot pronation61911314110930200
Right foot supination21029106051705300
Left foot supination45104911305170320
Table 9. Confusion matrix for the proposed DL model with transfer learning with one source domain.
Table 9. Confusion matrix for the proposed DL model with transfer learning with one source domain.
Motor FunctionRight Foot Flexion Left Foot FlexionRight Foot ExtensionLeft Foot Extension Right Foot PronationLeft Foot PronationRight Foot SupinationLeft Foot SupinationTotal Cases
Right foot flexion 1842103121100222
Left foot flexion11702102915200
Right foot extension8218071280208
Left foot extension280270 1937300
Right foot pronation101710220192250
Left foot pronation1725117527200
Right foot supination80921132652300
Left foot supination310111394280320
Table 10. Confusion matrix for the proposed DL model with transfer learning with two source domains.
Table 10. Confusion matrix for the proposed DL model with transfer learning with two source domains.
Motor FunctionRight Foot Flexion Left Foot FlexionRight Foot ExtensionLeft Foot Extension Right Foot PronationLeft Foot PronationRight Foot SupinationLeft Foot SupinationTotal Cases
Right foot flexion 2110405020222
Left foot flexion0195011201200
Right foot extension2020003120208
Left foot extension010295 0202300
Right foot pronation1020244120250
Left foot pronation0102019601200
Right foot supination2011202922300
Left foot supination0112010315320
Table 11. Time complexity of the proposed model with and without transfer learning.
Table 11. Time complexity of the proposed model with and without transfer learning.
Our Model with Transfer
Learning with One Source
Domain
Our Model with Transfer
Learning with Two Source
Domain
Training CPU time (h)12:3218:57
Classification time (s)119.9 s90.3 s
Table 12. Performance comparison of the proposed model with and without transfer learning.
Table 12. Performance comparison of the proposed model with and without transfer learning.
ModelAverage Accuracy for All Motor Functions (%)Average Training Time (h) Average Classification Time
(s)
Our model without transfer learning 57.10%8.1113.1
Our model with
transfer learning with one source domain
90.90%12.9119.9
Our model with transfer learning with two source domain97.30%17.390.3
Table 13. Performance comparison.
Table 13. Performance comparison.
ModelBP NeuralTransferNDLNSTLOur Model without
Transfer
Learning
Our Model with
Transfer Learning with One Source Domain
Our Model with
Transfer Learning with Two Source Domain
Acc0.61360.64430.66660.66110.56680.910.97
Time(s)6410611313212011990.3
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

AlArfaj, A.A.; Hosni Mahmoud, H.A.; Hafez, A.M. A Decoding Prediction Model of Flexion and Extension of Left and Right Feet from Electroencephalogram. Behav. Sci. 2022, 12, 285. https://doi.org/10.3390/bs12080285

AMA Style

AlArfaj AA, Hosni Mahmoud HA, Hafez AM. A Decoding Prediction Model of Flexion and Extension of Left and Right Feet from Electroencephalogram. Behavioral Sciences. 2022; 12(8):285. https://doi.org/10.3390/bs12080285

Chicago/Turabian Style

AlArfaj, Abeer Abdulaziz, Hanan A. Hosni Mahmoud, and Alaaeldin M. Hafez. 2022. "A Decoding Prediction Model of Flexion and Extension of Left and Right Feet from Electroencephalogram" Behavioral Sciences 12, no. 8: 285. https://doi.org/10.3390/bs12080285

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop