Abstract
Background:
Students have to manage the strain of rising education level and their future career, accompanying the hormonal changes during their pubescence. This creates a great impact on their education as well as personal life. In this paper, an analysis has been made to study the impact of yoga on engineering students. To understand the impact. Brain-Computer Interface (BCI) approaches have been utilized. An EEG based BCI is used which will give a direct view of whats going on in the students’ brains.
Methodology:
In this work, an experiment has been performed on engineering students and their brain activity is recorded before and after practicing yoga. In the experimental procedure, EEG signals are acquired from 8 electrodes which are associated with the cognitive and memory-related tasks of the brain. During each trial, participants solve the set of mathematical questionnaire. EEG signals are acquired during test trials before and after the yoga session. A bandpass filter is applied to preprocess the EEG signals. A discrete wavelet transform is implemented for feature extraction of the preprocessed signals.
Results:
Different classification algorithms are applied to classify the EEG signals before and after the yoga session. To measure the classification performance, measures such as accuracy, sensitivity, and specificity are presented in the paper. The highest accuracy of 95 % is achieved with Probabilistic Neural Network. Classification concluded the variations in signals before and after yoga. Further, in this work analysis of frequency bands, accuracy and score of the subjects before and after the yoga session are also done.
Introduction
Brain-Computer Interface (BCI) is a communication technology that enables communication between the human brain and different devices without physical contact through the generation of brain signals. BCI setup consists of an amplifier, sensing device and a monitoring system. In a BCI application, there are three stages: signal acquisition (capturing the brain signals), pre-processing (noise removal) the signals and classification. Since the invention of Electroencephalography (EEG), researchers are trying to get meaningful information from brain signals. There are also different methods for signal acquisition which includes fMRI (Functional Magnetic Resonance Imaging) [29], NIRS (Near-Infrared Spectroscopy) [30], Magnetoencephalography (MEG) [31], optical coherence tomography (OCT) [32–35] etc. During the early time, BCI is mostly used for the provision of helpful technologies to the disabled person. BCI has a wide number of applications and has proven to be most beneficial, which includes applications from controlling the cursor of a computer through commands of mind to recognizing the emotions of a person. One of the vital applications of BCI is recognizing the stress levels in an individual by analyzing the brain waves [1]. This has proved beneficial, as understanding the stress level at an early stage with good accuracy can help the individual to implement proper stress management techniques. Another approach is detecting the mental concentration of the player during trianing [2]. The trainer can analyze the external factors that affect the concentration of the player so that he can provide the training to the player more specifically. In this, brain waves are considered for analyzing the mental condition. Different types of waves are generated by brain, which are delta(δ), theta(θ), alpha(α), beta(β), and gamma(γ). Each wave has a different frequency and the presence of each frequency depends on the activities performed by an individual.
Related work
In today’s era, students have to manage the burden of growing education levels and increasing competition. Including this, the entertainment world and social media have attained their height and it is also proving to be one of the reasons for distraction. When students are bewildered and stressed out, they breathe in an uncomfortable way. Their breathing is protracted for a long time than the normal inspiration, thus their body gets accumulated with the toxins, which disturbs their mental state [6]. This unmanaged stress results in the development of mental and behavioral problems in students, which leads to anxiety, depression and lack of focus [7]. Certain researches have revealed that 13.1% of students suffer from severe, 37.7% of students suffer from modest and of students suffer from 2.4% extremely severe depression [5]. These factors affect the concentration of power students as well as their psychic stability. Lack of concentration results in the breakdown of students, achieving a high level of concentration is the key to success.: Yoga,the most ancient Indian exercising technique, that consists of different poses (asana), meditation (dhyana), breathing (pranayama), relaxation of the senses, concentration, attaining a higher level of consciousness is believed to bring stability and health to the mind and body [4]. This paper includes an experiment that is based on how yoga increases the concentration of the students and this analysis is done using BCI.
Methodology
The architecture of the experiment is stated in Fig. 1.

Architecture of Experiment.
EEG signals are acquired from 10 subjects. Brain Vision Recorder is utilized for signal acquisition. The subjects had a normal vision and they did not have any neurological disorder so that it should not deviate the results of this experiment. The subjects were associated with the age group of 12-22 years. The subjects were preferred of this age group because they covered school children, teenagers as well as adults. School children were chosen because they are at the beginning of puberty. Teenagers were chosen because they undergo a lot of hormonal changes and adults were chosen because they suffer from stress-related to their career. Fp1, Fp2, F3, F4, T7, T8, C3, C4 electrodes were selected for data acquisition. Fp1 and Fp2 electrodes relate to the decision making part of the brain. F3, F4, C3, C4 electrodes relate to concentration and memory part of the brain. T7 and T8 belong to the processing semantics. Table 1 explains the functions of the brain in various regions with respect to the electrodes. The experimental setup is illustrated in Fig. 2.
Functioning of the brain in various regions with respect to the electrodes
Functioning of the brain in various regions with respect to the electrodes

Experimental Setup.
Before proceeding to the experiment, subjects are delivered with an elaborative introduction and explanation about the experiment. Experiment procedure has been divided into three phases: Problem-solving before yoga, Yoga, Problem-solving after yoga. In the first phase, subjects were asked to solve a set of mathematical questions. Questions are set according to the education level and age of the subject. Time for solving questions is 40 seconds. EEG signals are recorded during that period with the sampling rate of 250 Hz. Five trials are conducted for each subject for 5 consecutive days, as the mental state of the subject is different every day. In the second phase, subjects are instructed to practice yoga for two weeks for 20 minutes per day. Yoga practice for 20 days included physical poses as well as breathing exercises. In the third phase, after two weeks, before conducting each test, subjects are asked to perform yoga for 5 minutes and then they are asked to solve the set of mathematical questions for 40 seconds.
Although, EEG device helps to record the signals of the brain activity, it also records the signals from the sources other than the brain. These extra signals recorded, are known as the artifacts. EEG signals are accordingly preprocessed to remove these artifacts and to acquire precise signals. In this experiment, a bandpass filter is applied to the data. Bandpass filter permits the signals at a certain range of frequency which form a band of frequency and rejects other frequencies. Bandpass filter used in this experiment filtered the frequency in the range of 0.3-30 Hz, which eliminates the high-frequency bands from the data.
Feature extraction
Preprocessed signals were used for feature extraction. Analog EEG signals of all subjects are converted to numerical data i.e into (.)mat file using the Brain Vision Analyzer. The matrix of data for each subject was obtained for a single trial. Now, Discrete Wavelet transform is applied to the data of each subject at 4 levels, using ‘Symlet 4’ as a mother wavelet. Numerical value 4 in Symlet 4 indicates four vanishing moments. Symlet is the modification of Daubechies Wavelets. The scaling function of Symlet wavelet integrates to unity. EEG signals are non-stationary waves in which the frequency shifts at different times. Therefore it is very important to have time-frequency representation of the EEG. signals. Following techniques are used for the feature extraction of the EEG signals: Hilbert-Huang Transform (HHT), Principal Component Analysis (PCA), Local Discriminant Basis, Wavelet transform, Independent Component Analysis (ICA) [4]. A wavelet transform provides time (t) and frequency (f) relation simultaneously, thus it gives the time-frequency representation of the signals. Wavelet transform overcomes the resolution related problem of STFT. So Wavelet transform was used in this study. Discrete wavelet transform (DWT) decomposes the signals into orthogonal sets of wavelets. EEG signals are decomposed simultaneously using the low pass filter and high pass filter. The signals are decomposed up to the required level. This process is called Downsampling of the signals. The decomposed wavelet coefficients comprise the information of original signal [26]. Now, half of the data can be eliminated using the Nyquist’s rule. Haar wavelet was the first DWT wavelet discovered by Hungarian mathematician Alfred Haar [27]. Other widely used DWT wavelets include Daubechies wavelets, Coiflet Wavelets, Symlet Wavelets, etc. Daubechies is a wavelet of order 4, Coiflet is a wavelet of order 3, Symlet is a wavelet of order 8. The order defines the smoothness of the wavelet. Therefore Symlet Discrete wavelet transform was used for feature Extraction.
In the first level of signal decomposition, the signal was decomposed to high-frequency components and the low-frequency components as illustrated in Fig. 3. Here, high-frequency components comprise of approximate coefficients and low-frequency components comprises of detail coefficients. In the second level, the detail coefficients are further decomposed to approximate and detail coefficients. This process is repeated until level four. It can be observed in Fig. 3, D2, D3, D4 are the detail coefficients at levels two, three and four respectively. In this study, D2, D3, D4 were reconstructed again to obtain the extracted features of data. Figure 4 illustrates the four decomposed levels of feature extraction of this experiment.

Process of feature extraction using Discrete Wavelet transform.

EEG signals decomposition using DWT upto 4 levels.
The extracted features from wavelets are used for classification. The data is classified into two classes: concentration before yoga and concentration after yoga. Classification algorithms work uniquely on different datasets i.e A classifier can work productively for one dataset but it can work unproductive for another dataset. Different classifiers are implemented on the dataset and an optimum model is adopted. The implemented classifiers includes Support Vector Machine (SVM), K-Nearest Neighbor (k-NN) and Probabilistic Neural Networks (PNN).
In this experiment input to the PNN are 8 electrode’s data, that is the input layer has 8 neurons. Then the data of 8 electrodes is transferred to the pattern layer. The computation of the pattern layer is performed with the Parzen Window Density estimate. Then the output of the pattern layer is further passed to the summation layer. Summation layer pass its output as input to the ouput layer, which apply Bayes rule to find class of input vector. The classification was binary that is whether that point belongs to before yoga or after yoga class. Among PNN, SVM, k-NN, highest accuracy is observed in PNN, which is referred in Table 2.
Simulations of classification algorithms of EEG data
Simulations of classification algorithms of EEG data
The extracted features were used for classification. The data was classified into two classes: concentration before yoga and concentration after yoga. The data was divided into two groups. First was before yoga which was labeled as A and second one was after yoga which was labeled as B. We have used these two classes for classification.Data was randomly shuffled and divided 80:20 portion for training testing. Classification was done to show that data was distinguishable before and after yoga. It indicated that there was change in brain signals after performing yoga. We used classification algorithms to predict whether particular data point to belong class A or class B. Classification algorithms work uniquely on different datasets i.e A classifier can work productively for one dataset but it can work unproductive for another dataset. Different classifiers were implemented on the dataset and an optimum model was adopted. The implemented classifiers includes Support Vector Machine(SVM), K-Nearest Neighbour (k-NN) and Probabilistic Neural Networks (PNN).
In classification, it is observed that there is a change in EEG data before and after yoga. Therefore, analysis of the signals is performed to examine impact of yoga on EEG signals. This section is broadly divided into two parts. The first part is based on an analysis of the score and accuracy of the conducted test. The second part is based on the analysis of EEG signals concerning alpha and beta waves. After the experiment, a survey was conducted, to check the consistency of the Yoga performance of the students. The response of students about their experience before and after yoga was noted at the end of the experiment. From responses, it was observed that subject S5 was irregular and other subjects were regular. The irregularity of the subject S5 has also affected his score as well as alpha and beta band power. The regularity of the subjects is reflected in their score as well as alpha and beta band power.
Analysis of score and accuracy
For experiment and analysis, questions are set according to the education level and age of the subject. For every correct answer, 250 points are rewarded while for the incorrect answer 125 points are subtracted from the total score. The accuracy obtained in table 3 is not exclusively reliant on the score. It is considered as a measure to analyze the impact of yoga because every subject has different excellency in mathematics. Accuracy enables the analysis of subjects at the same level irrespective of their age and education level. It is computed by the following formula:
Accuracy is a measure of concentration as well as memory tasks in this test as the subjects are asked to solve the questions without using pen and paper. It has been observed that in case of every subject there is a significant change in accuracy besides the subject S5. After feedback from the subject S5, it is noted that the S5 is irregular in performing yoga. Subjects S1 and S4 have high improvement in accuracy and average marks among all subjects. During feedback from those subjects, they revealed that yoga has helped them to manage their anxiety as well as distractions. They also felt an improvement in their concentration and alertness while performing different tasks. Subjects S2, S3, S6, S7, S8, S9, and S10 also exhibited better improvement in accuracy and score. Yoga has marked propitious in the performance of response time with respect to cognitive process [17]. It is observed in Table 3 that average score of every subject after yoga is improved. The time for solving mathematical question before and after remained the same but it is discovered that score is increased, eventually, the number of questions endeavored by students are increased after yoga. It indicates that their response time to solve the questions is reduced.
Subject wise variation in accuracy and score
The brain waves acquired from the subjects are analyzed. The principal focus in this work is on the alpha band and the beta band. Alpha and beta wave lie in range of 8-13Hz and 13 to 30 Hz respectively. The alpha activity is responsible for attention and memory-related task whereas beta activity is responsible for cognitive processes [16]. This section is subdivided into three sections. The first section deals with an analysis of the alpha band. The second section deals with the beta band and third one with the intrabeta band activity. This analysis is based on the power of the frequency bands with respect to Power Spectral Density (PSD). Power Spectral Density is obtained with the help of pwelch() function in MATLAB, using the EEGlab tool for the data of each subject.
Analysis of alpha band power
The alpha band extends in the frequency range of 8-13 Hz. The alpha band is associated with memory, relax and calm state and consciousness of the person. Fast and accurate recalling from memory has a direct correlation with the alpha frequency band [17]. It is also noted that the alpha band is associated with two primary functions of attention: selection and suppression [18]. It enables semantic orientation i.e capability to be consciously oriented in space and time. In the study by Puma, it was observed that alpha band power is used for assessing the cognitive workload in a different multitasking environment [19].
For analyzing the alpha band power, it is necessary to select the electrodes which have high alpha power, therefore channel spectra and maps were plotted using spectopo() function. Function spectopo() plots the power spectral density (PSD) in a given frequency, it also incorporates the respective electrodes which have the presence of high power as well as low power. The red color on the map denotes the highest power whereas the blue color denotes lowest power. After plotting the channel spectra and maps for the alpha frequency, it was observed that the PSD of 60 % of the subjects are in the frontal and prefrontal region and 40 % is observed to be in the temporal region. Figure 5 represents the above explanation of power distribution. As the power distribution included every electrode, all the electrodes are selected for the analysis of alpha-band power. For the analysis of the alpha band power, before and after yoga, the power of each electrode has been calculated for each trial of the subject using pwelch() function. Then the power of all electrodes has been summed and subsequently, the average of each trial is calculated. Further, the result of every trial is summed and subsequently average of before and after trials is calculated. Table 4 represents the alpha power before and after yoga, in terms of decibel (dB).

Power Spectral Density distribution of alpha band.
From Table 4, it is observed that all subjects have good improvement in their alpha power except subject S5 with an improvement of only 1%, the same result was obtained in Table 3. Even though subject S8 has an accuracy improvement of 5%, the alpha power improvement is very high corresponding to other subjects, which defines that improvement in the alertness of subject S8 is high. Subject S4 has an improvement in accuracy by 10%, which is precisely correlated with the high improvement of alpha-band power. The other subjects S1, S2, S3, S6, S7, S9, S10 had also recorded with a significant change in alpha band power, which reflects that yoga has availed them in the improvement of consciousness and memory-related tasks.
Discrepancy in Alpha band power
The beta band extends in the frequency range of 13-30 Hz. Beta waves define the characteristics of the engaged mind [20]. Beta waves are also effective for active response [21]. A study defines that an increase of existing beta wave activity can lead to a higher GPA among students [15]. It has been also observed that there is an improvement in the beta band at the prefrontal region during the problem-solving task as compared to the resting state [22]. According to researchers, theta wave decreases and beta wave increases during concentration and the power ratio of beta and theta bands were used for determining the concentrated state of a person [23].
Analysis of intrabeta band
Analysis of complete Beta band power
Channel spectra and maps are plotted for the beta band power distribution using spectopo() function, to obtain the electrodes with high beta power. In overall observation, the power distribution of beta band was 50% in the right hemisphere and 50 % in the left hemisphere of the subjects, which comprise all 8 electrodes. Refer Fig. 6 for the power distribution of the beta band.

Power Spectral Density of beta band.
The process of power calculation for the beta band in terms of PSD was repeated similar to the process of computing the power of alpha using pwelch() function. The power of the beta band was estimated for each subject, before and after yoga. Table 6 outlines the beta power before and after yoga, in terms of decibel (dB).
Stipacek in his paper noted that, as memory load raises, accuracy decreases and response time increases [24]. But in this experiment, it was noticed that even though memory load is increased accuracy increases and response time decreases after going through the yoga session. It indicates that even though memory load is increased the cognitive power of the human mind gets benefitted from yoga. It is observed from Table 3 that after the yoga session, students were capable of handling higher memory load and they were also able to accurately calculate mathematical questions as compared to test before the yoga session. That is their memory load was increased but the level of the cognitive task carried out by them was improved. The same thing is observed in Table 6, there is an improvement in the beta power of every subject which is associated with the cognitive task of the human.
From Table 6, it is observed that subject S4 has drastic growth in beta power, which is also reflected in Table 3. Even though subject S5 is irregular, there is an improvement in its beta band power, which indicate that subject S5 had an enhancement in concentration. Subjects other than S4 and S5 has also shown improvement in the beta power. During the feedback from all the subjects, it is discovered that the subjects are able to solve the given set of questionnaire more quickly and with good concentration after yoga.
Analysis of subparts of beta band. The increase in beta band power indicates that there is an improvement in the cognitive activity of human. But it does not indicate explicitly, which cognitive activity of the human is increased. To deal with this issue, the beta band is further divided into three sub-parts as given in Table 7.
Table 7 shows that improvement in low and mid beta band is beneficial, whereas improvement in high beta band is disadvantageous. Therefore, it is necessary that when beta band power increases, the power of high beta band should not increase. Table 5 precisely indicates that there is a positive impact on the power of low beta and mid beta, whereas in case of high beta it has a negative relationship. Even though subject S5 was irregular it shows the same trend.
Discrepancy in Beta band power
Intrabeta waves and their properties
Discrepancy in Intrabeta band power
Figure 7 distinctly shows this fact for single trial. Power of low and mid beta is high in after yoga, whereas low in before yoga. In case of high beta, it has been observed that overall power is depleted after yoga.

Variation in Activity Power Spectrum beta band.
This work is focused on the study of the impact and effectiveness of yoga on engineering students. The experiment is conducted in three phases: test trials before the yoga session, 20 days of yoga practice, test trials after the yoga session. Further, EEG signals are classified and analyzed to determine its positive impact on cognitive and memory-related task. Throughout data acquisition, subjects solved the set of mathematical questionnaire. The signals are recorded during the tests. For classifying these EEG signals, three different classifiers are applied. The highest accuracy of 95 % is achieved with the Probabilistic Neural Network. Further, to distinguish the positive or negative impact of yoga on the students, analysis of the accuracy and score as well as frequency bands is performed. Accuracy and score analysis concluded that the accuracy of the subjects in solving mathematics is increased after yoga. Alpha and beta band power analysis with respect to Power Spectral Density is performed. Alpha band power analysis concluded that the power of the alpha band increases after yoga which results in the improvement of handling memory-related tasks by the subject. Beta band power analysis concluded that the power of the beta band increases after yoga which results in improvement of the cognitive ability of the students. Also, there is an increment in low and mid beta power which indicates the improvement in concentration and there is a drop in high beta power which indicates the reduction in stress. Further, in course of analysis of feedback from students, it is observed that subjects experienced academics less stressful as compared to before yoga sessions. Along with this, they felt less anxiety during exams and able to cope up with the pressure when they continued Yoga. It indicates that Yoga helps in cognitive activity and memory-related tasks of students and it also helps to reduce the personal and academic stress. Hence, it can be inferred that it is beneficial to include yoga in the curriculum of engineering students.
