<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JCC</journal-id><journal-title-group><journal-title>Journal of Computer and Communications</journal-title></journal-title-group><issn pub-type="epub">2327-5219</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jcc.2017.53009</article-id><article-id pub-id-type="publisher-id">JCC-75131</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  Emotion Classification from EEG Signals Using Time-Frequency-DWT Features and ANN
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Adrian</surname><given-names>Qi-Xiang Ang</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Yi</surname><given-names>Qi Yeong</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Wee</surname><given-names>Wee</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>School of Electrical &amp;amp; Electronic Engineering, Nanyang Technological University, Singapore City, Singapore</addr-line></aff><pub-date pub-type="epub"><day>08</day><month>03</month><year>2017</year></pub-date><volume>05</volume><issue>03</issue><fpage>75</fpage><lpage>79</lpage><history><date date-type="received"><day>February</day>	<month>17,</month>	<year>2017</year></date><date date-type="rev-recd"><day>Accepted:</day>	<month>March</month>	<year>10,</year>	</date><date date-type="accepted"><day>March</day>	<month>13,</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
   
   This paper proposes the use of time-frequency and wavelet transform features for emotion recognition via EEG signals. The proposed experiment has been carefully designed with EEG electrodes placed at FP1 and FP2 and using images provided by the Affective Picture System (IAP), which was developed by the University of Florida. A total of two time-domain features, two frequen-cy-domain features, as well as discrete wavelet transform coefficients have been studied using Artificial Neural Network (ANN) as the classifier, and the best combination of these features has been determined. Using the data collected, the best detection accuracy achievable by the proposed schemed is about 81.8%. 
  
 
</p></abstract><kwd-group><kwd>EEG</kwd><kwd> Emotion Classification</kwd><kwd> Feature Extraction</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>EEG carries important information on the responses to stimuli in the human brain. By studying the pattern of the brain signal waveforms, we can identify the types of emotion up to a certain level of accuracy. An emotion recognition system can help in understanding the cognitive functions of the brain. It can also enable the command and control of machines such as the cursor of a computer, wheelchairs, or a robotic arm. In the longer term, it may even allow disabled patients who have lost their voice and movement ability to express their thoughts and emotions.</p><p>Different features have been used to determine the emotion from EEG signals. Among them, wavelet transform coefficients have been used very commonly with good results [<xref ref-type="bibr" rid="scirp.75131-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.75131-ref2">2</xref>]. Several types of classifiers, namely Extreme Learning Machine (ELM), Support Vector Machine (SVM), and Artificial Neural Network (ANN), have been investigated for emotion classification applications [<xref ref-type="bibr" rid="scirp.75131-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.75131-ref3">3</xref>]. ANN classifier has also been used to classify brain signals of subjects engaging in mental tasks [<xref ref-type="bibr" rid="scirp.75131-ref4">4</xref>]. Another classifier that has been used to classify emotions is the Fuzzy C Means (FCM) Clustering [<xref ref-type="bibr" rid="scirp.75131-ref5">5</xref>]. In this paper, a new combination of features have been proposed and the ANN classifier has been used to further improve the emotion classification accuracy. Features extracted include mean, standard deviation, maximum frequency amplitude, power, and wavelet coefficients at sym6 and db4.</p><p>The organization of this paper is as follows. Section 2 describes the methodology for EEG signals acquisition and raw data pre-processing. Section 3 analyzes and proposes the features to be extracted from the EEG signals. Section 4 presents the classification results. Section 5 concludes the paper.</p></sec><sec id="s2"><title>2. EEG Signals Acquisition</title><sec id="s2_1"><title>2.1. Test Subjects</title><p>A total of 22 samples have been collected from our EEG signal acquisition experiment and used for the study reported in this paper. The test subjects were selected to have the following characteristics; 1) males between 23 - 25 years old, 2) right-handed, 3) and are penultimate engineering students.</p></sec><sec id="s2_2"><title>2.2. The Experiment</title><p>EEG signals were recorded using active dry EEG electrodes and g.US Bamp, a bio-signal amplifier with an integrated band-pass filter. The sampling period is 256 Hz, with the electrodes positioned on FP1, FP2 and Cz, where Cz is the reference electrode.</p><p>The experiment was carried out in a dark room with low lighting and noise condition to reduce noise and artifacts. Test subjects were seated facing a projector screen of approximately 4 ft by 5 ft. This is to ensure movements are kept to the minimum throughout the experiment.</p><p>The experiment was conducted with the use of International Affective Picture System (IAPS) [<xref ref-type="bibr" rid="scirp.75131-ref6">6</xref>] to evoke emotions of happy and sad in the subjects.</p><p>Self-Assessment was also included in the experiment for the subjects to rate each IAPS picture from extremely sad to happy with a scale of 1 - 9 respectively.</p><p>Focal object (i.e. cross in a circle symbol) will be shown before the showing each IAPS picture. This is to allow ample concentration and minimal movement for the subject.</p><p>Images from IAPS were used to stimulate two discrete emotions, “happy” and “sad”. The experiment is divided into 3 sets, where 10 different images were shown per set. From <xref ref-type="fig" rid="fig1">Figure 1</xref>, the process flow is as followed: 2 seconds focus time, followed by 4 seconds of image and 8 seconds of survey time. At the end of each experiment set, test participants are required to fill up a Self-Assessment form (SAM) to indicate their emotion associated with the image. To ensure the reliability and accuracy of the EEG test results, only signal data with score above “7” and below the score of “3” are considered in this research for feature extraction.</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Functional block diagram of emotion recognition process</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/75131x2.png"/></fig></sec><sec id="s2_3"><title>2.3. Pre-Processing</title><p>Artifacts can be present in EEG signal as a result of involuntary muscle movement as such the blinking of eyes, or interference caused from the heartbeat cardiac electrical system, introducing unwanted spikes and distortion in the interpretation of EEG signal. In this research, the frequencies of interest are alpha band (8 - 12 Hz) and beta band (12 - 30 Hz). Therefore, alpha band separation in the time domain can be achieved through the use of elliptic filter with a cutoff frequency of 13 Hz, while beta band separation in the time domain can be achieved through the use of Chebyshev filter with a cutoff frequency between 12 Hz and 31 Hz.</p></sec></sec><sec id="s3"><title>3. Emotion Recognition―Features Extraction</title><p>The functional block diagram of the process involved in emotion recognition is given in <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>The design of the EEG signal acquisition has been described in the previous section. The proposed features and the classifier used in this paper will now be described below.</p><p>The feature vector can be represented as:</p><disp-formula id="scirp.75131-formula88"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/75131x3.png"  xlink:type="simple"/></disp-formula><p>where F<sub>1</sub>, F<sub>2</sub>, … F<sub>N</sub> are the N features extracted from the EEG signals.</p><sec id="s3_1"><title>3.1. Time Domain Analysis</title><p>Time domain feature extraction method uses features derived from the time varying EEG signals for emotion recognition. In this study, the mean and standard deviation of the time-domain signals were used as the possible features.</p></sec><sec id="s3_2"><title>3.2. Frequency Domain Analysis</title><p>Frequency domain feature extraction method uses features derived from the EEG signals spectrum. Specifically, a short-time Fourier transform is first performed to obtain the spectrum of the signals. The maximum amplitude of the frequency components and the power of the signals were then determined. Research has shown that the left frontal (FP1) is associated with negative emotion, while the right frontal (FP2) is associated with positive emotion [<xref ref-type="bibr" rid="scirp.75131-ref7">7</xref>]. In our feature extraction method, the power and the ratio of the maximum amplitude determined from FP1 and that determined from FP2 are used as the two features.</p></sec><sec id="s3_3"><title>3.3. Wavelet Transform Domain Analysis</title><p>Transform domain uses discrete wavelet transform (DWT) for feature extraction.DWT uses time-scale signal analysis, signal decomposition and signal reconstruction in signal processing for EEG signals. Wavelet functions shown in (2), are derived from initial time-limited wavelet h(t) which is dilated by a value of a = 2<sup>m</sup>, translated by constant b = k2<sup>m</sup> and normalized so that</p><disp-formula id="scirp.75131-formula89"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/75131x4.png"  xlink:type="simple"/></disp-formula><p>where integer m, k and the initial wavelet coefficients are as defined in [<xref ref-type="bibr" rid="scirp.75131-ref8">8</xref>]. Upon passing the signal through a pair of filters repeatedly, the DWT decomposes the signal into approximation coefficients (CA) and detailed coefficients (CD). In this paper, wavelet functions of Daubechies order 4 and Symlets order 6 are studied.</p></sec></sec><sec id="s4"><title>4. Emotion Recognition―Classification</title><p>In this study, the Artificial Neural Network (ANN) classifier is used as the classifier. The classification accuracies for different combinations of the features considered above were studied. The classification accuracies for four of the combinations studied are summarized in <xref ref-type="table" rid="table1">Table 1</xref>.</p></sec><sec id="s5"><title>5. Results and Discussions</title><p>Based on the performance obtained when the individual feature is considered, Discrete Wavelet Transform (DWT) has the highest recognition accuracy of 77.3%.</p><p>Our intermediate results show that, time domain features are able to produce better accuracy for the “Happy” emotion, achieving 81.8% and 72.7% accuracy for mean and standard deviation respectively. On the other hand, frequency domain features were observed to perform better for the “Sad” emotion with a 72.7% accuracy using both the maximum frequency amplitude and power as the features.</p><p>From <xref ref-type="table" rid="table1">Table 1</xref>, it is interesting to note that the best combination is the one that uses the peak frequency amplitude, power and DWT as the features. The classification accuracy achievable is 81.8%.</p></sec><sec id="s6"><title>6. Conclusions</title><p>The effectiveness of using a combination of time, frequency, and DWT features for emotion recognition via EEG signal has been studied. The experiment has been carefully designed and conducted using the images provided by the IAP. Using the data collected, the emotion recognition accuracy obtained with ANN</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Classification accuracy</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Features</th><th align="center" valign="middle" >Classification Accuracy (ANN)</th></tr></thead><tr><td align="center" valign="middle" >Power</td><td align="center" valign="middle" >63.6%</td></tr><tr><td align="center" valign="middle" >DWT</td><td align="center" valign="middle" >77.3%</td></tr><tr><td align="center" valign="middle" >Mean + Std Dev + Maximum Frequency Amplitude Ratio</td><td align="center" valign="middle" >68.2%</td></tr><tr><td align="center" valign="middle" >Maximum Frequency Amplitude Ratio + Power + DWT</td><td align="center" valign="middle" >81.8%</td></tr></tbody></table></table-wrap><p>as the classifier is 81.8%. This finding presents an alternative set of features that can be used to classify two emotional states, which can in turn be useful for brain-computer-interface applications such as games.</p></sec><sec id="s7"><title>Cite this paper</title><p>Ang, A.Q.-X., Yeong, Y.Q. and Ser, W. (2017) Emotion Classification from EEG Signals Using Time-Frequency-DWT Features and ANN. Journal of Computer and Communications, 5, 75-79. https://doi.org/10.4236/jcc.2017.53009</p></sec></body><back><ref-list><title>References</title><ref id="scirp.75131-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Yohanes, R.E.J. (2012) Discrete Wavelet Transform Coefficients for Emotion Recognition from EEG Signals. 34th Annual Interna-tional Conference of the IEEE Engineering in Medicine and Biology Society, September 2012.  
Maxwell, J.C. (1892) A Treatise on Electricity and Magnetism. 3rd Edition, Vol. 2. Clarendon, Oxford, 68-73.</mixed-citation></ref><ref id="scirp.75131-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Murrugappan, M., Ramachandran, N. and Sazali, Y. (2010) Classification of Human Emotion from EEG Using Discrete Wavelet Transform. J. Biomedical Science and Engineering, 3, 390-396. https://doi.org/10.4236/jbise.2010.34054</mixed-citation></ref><ref id="scirp.75131-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Tolic, M. and Jovic, F. (2013) Classification of Wavelet Transformed EEG Signals with Neural Network for Imagined Mental and Motor Tasks. Faculty of Electrical Engineering, University J.J. Strossmayer in Osijek, Croatia, 3 March 2013.</mixed-citation></ref><ref id="scirp.75131-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Suleiman, A.-B.R. and Fatehi, T.A.-H. Feature Extraction Techniques of EEG Signal for BCI Application. Computer and Information Engineering Department, College of Electronics Engineering, University of Mosul. Mosul, Iraq.</mixed-citation></ref><ref id="scirp.75131-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Murugappan, M., Rizon, M., Nagarajan, R., Yaacob, S., Hazry, D. and Zunaidi. I. (2008) Time-Frequency Analysis of EEG Signals for Human Emotion Detection. Universiti Malaysia Perlis, School of Mechatronics Engineering, Perlis, Malaysia.  
https://doi.org/10.1007/978-3-540-69139-6_68</mixed-citation></ref><ref id="scirp.75131-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Lang, P.J., Bradley, M.M. and Cuthbert, B.N. (2008) International Affective Picture System (IAPS): Affective Ratings of Pictures and Instruction Manual. Technical Report A-8. University of Florida, Gainesville, FL.</mixed-citation></ref><ref id="scirp.75131-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Bos, D.O. EEG-Based Emotion Recognition—The Influence of Visual and Auditory Stimuli. Ph.D. Thesis, Department of Computer Science, University of Twente, Enschedue.</mixed-citation></ref><ref id="scirp.75131-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Newland, D.E. (1994) An Introduction to Random Vibrations, Spectral and Wavelet Analysis. 3 Vols. Longman Scientific &amp; Technical.</mixed-citation></ref></ref-list></back></article>