## 4 Pattern Recognition
### Restricted Boltzmann Machines
```
1:Input network:
2:\(X_{a}\) and \(X_{b}\)
3:Train network:
4: Calculate the covariance matrix \(R_{a}=\frac{X_{a}X_{a}^{T}}{trace(X_{a}X_{a}^{T})}\)
5: Calculate the covariance matrix \(R_{b}=\frac{X_{b}X_{a}^{T}}{trace(X_{b}X_{a}^{T})}\)
6: Calculate \(R=R_{a}+R_{b}\)
7: Obtain the eigenvalues \(\lambda=[\lambda_{1},\lambda_{2},\dots,\lambda_{n}]\) and eigen vectors \(Q=[q_{1},q_{2},\dots,q_{n}]\) of \(R\)
8: Calculate the whitening transformation matrix \(P=\lambda^{-1/2}Q^{T}\)
9: Transform the average covariance matrices \(S_{a}=P\bar{R_{a}}p^{T}\quad S_{b}=P\bar{R_{b}}p^{T}\)
10: Using \(S_{a}\) and \(S_{b}\) obtain the generalized eigenvector matrix \(B\)
11: Obtain the projection matrix \(W=B^{T}P\)
12:Output network: Returns Matrix \(W\)
13: Transform the samples using the projection \(Z_{a}=WX_{a}\) and \(Z_{b}=WX_{b}\)
```

**Algorithm 1** CSP Pseudo-code. ## Appendix C Database and Code

The database can be found in [[http://www.bbci.de/competition/iv/#datasets](http://www.bbci.de/competition/iv/#datasets)]([http://www.bbci.de/competition/iv/#datasets](http://www.bbci.de/competition/iv/#datasets)) (accessed on 28 July 2021) under the Data set 2b. The code to this work can be found under [[https://github.com/DiegoLB96/BCI_MDPI/tree/main](https://github.com/DiegoLB96/BCI_MDPI/tree/main)]([https://github.com/DiegoLB96/BCI_MDPI/tree/main](https://github.com/DiegoLB96/BCI_MDPI/tree/main)) (accessed on 28 July 2021). ## References

* (1) [PERSON] Education 4.0 made simple: Ideas for teaching. _Int. J. Educ. Lit. Stud._**2018**, 6, 92-98. [CrossRef]
* (2) [PERSON] Is Education 4.0 an imperative for success of 4 th Industrial Revolution? 2017. Available online: [[https://pdiwan.medium.com/is-education-4-0-an-imperative-for-success-of-4](https://pdiwan.medium.com/is-education-4-0-an-imperative-for-success-of-4) th-industrial-revolution-50c31451e8a4]([https://pdiwan.medium.com/is-education-4-0-an-imperative-for-success-of-4](https://pdiwan.medium.com/is-education-4-0-an-imperative-for-success-of-4) th-industrial-revolution-50c31451e8a4) (accessed on 28 July 2021). * (3) [PERSON]; [PERSON]; [PERSON]; [PERSON] Engineering Education 4.0:--Proposal for a new Curricula. In Proceedings of the 2018 IEEE Global Engineering Education Conference (EDUCON), Islands, Spain, 18-20 April 2018; pp. 1273-1282. * (4) [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON] Active learning based laboratory towards engineering education 4.0. In Proceedings of the 2019 24 th IEEE International Conference on Emerging Technologies and Factory Automation (ETFA), Zaragoza, Spain, 10-13 September 2019; pp. 776-783. * (5) [PERSON]; [PERSON] Human-Computer Interaction (HCI): Interactivity, Immersion, and Invisibility as New Extensions. In _Wiley Encyclopedia of Management_; Wiley: Hoboken, NJ, USA, 2015; pp. 1-6. * (6) [PERSON] Human-computer interaction, foundations and new paradigms. _J. Vis. Lang. Comput._**2017**, 42, 122-134. [CrossRef] \begin{table}
\begin{tabular}{l} \hline (1) Perform idling eye movements with eyes open and close for a minute each. (2) Perform repeatedly eyes blinks for over 15 s. (3) Perform eye movements (rolling, left/right and up/down) for over 15 s each. These movements should circumscribe the whole field of view without moving the head. \\ \hline \hline \end{tabular}
\end{table} 
Table 1: Eye movement paradigm to ensure large EOG artifacts are recorded to estimate correction coefficients. * [PERSON] and [PERSON] (2012) [PERSON]; [PERSON] Hand gesture recognition with depth images: A review. In Proceedings of the 2012 IEEE RO-MAN: The 21 st IEEE International Symposium on Robot and Human Interactive Communication, Paris, France, 9-13 September 2012; pp. 411-417. * [PERSON] et al. (2017) [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON]; [PERSON] Large-area all-textile pressure sensors for monitoring human motion and physiological signals. _Adv. Mater._**2017**, _29_, 1703700. [CrossRef]
* 1077. [CrossRef]
* [PERSON] et al.