<?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">AJCM</journal-id><journal-title-group><journal-title>American Journal of Computational Mathematics</journal-title></journal-title-group><issn pub-type="epub">2161-1203</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ajcm.2020.104028</article-id><article-id pub-id-type="publisher-id">AJCM-104596</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Emotion Detection by Analyzing Voice Signal Using Wavelet
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Faishal</surname><given-names>Badsha</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>Rafiqul</surname><given-names>Islam</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Mathematics and Statistics, Bangladesh University of Business and Technology (BUBT), Dhaka, Bangladesh</addr-line></aff><aff id="aff2"><addr-line>Mathematics Discipline, Science, Engineering and Technology School, Khulna University, Khulna, Bangladesh</addr-line></aff><pub-date pub-type="epub"><day>01</day><month>12</month><year>2020</year></pub-date><volume>10</volume><issue>04</issue><fpage>485</fpage><lpage>502</lpage><history><date date-type="received"><day>30,</day>	<month>September</month>	<year>2020</year></date><date date-type="rev-recd"><day>28,</day>	<month>November</month>	<year>2020</year>	</date><date date-type="accepted"><day>2,</day>	<month>December</month>	<year>2020</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>
 
 
  Emotion is such a unique power of human trial that plays a vital role in distinguishing human civilization from others. Voice is one of the most important media of expressing emotion. We can identify many types of emotions by talking or listening to voices. This is what we know as a voice signal. Just as the way people talk is different, so is the way they express emotions. By looking or hearing a person’s way of speaking, we can easily guess his/her personality and instantaneous emotions. People’s emotion and feelings are expressed in different ways. It is through the expression of emotions and feelings that people fully express his thoughts. Happiness, sadness, and anger are the main medium of expression way of different human emotions. To express these emotions, people use body postures, facial expressions and vocalizations. Though people use a variety of means to express emotions and feelings, the easiest and most complete way to express emotion and feelings is voice signal. The subject of our study is whether we can identify the right human emotion by examining the human voice signal. By analyzing the voice signal through wavelet, we have tried to show whether the mean frequency, maximum frequency and 
  <em>L<sub>p</sub></em> values conform to a pattern according to its different sensory types. Moreover, the technique applied here is to develop a concept using MATLAB programming, which will compare the mean frequency, maximum frequency and 
  <em>L<sub>p</sub></em> norm to find relation and detect emotion by analyzing different voices.
 
</p></abstract><kwd-group><kwd>MATLAB Programming</kwd><kwd> Wavelet</kwd><kwd> Haar Decomposition</kwd><kwd> Voice Signal</kwd><kwd> Mean Frequency</kwd><kwd> Maximum Frequency</kwd><kwd> &lt;i&gt;L&lt;sub&gt;p&lt;/sub&gt;&lt;/i&gt; Norm</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>With the advancement of science, we generally became dependent on machines. Feature as machine learning, robotics, data science etc. have made our life easier and more enjoyable day by day. Although it is not possible to give emotion and feelings to a machine, we can often accurately identify the expression of emotions and feelings of a person by machine, analyzing the voice signal. We analyze voice signal by signal processing. When we want to express an emotion or feeling through our throat or through speech or through spoken or unspoken words, it simply takes the form of a basic signal in the form of sine and cosine [<xref ref-type="bibr" rid="scirp.104596-ref1">1</xref>]. These signals vary according to the type of person and person’s voice. By processing these voice signals, we can get an idea of the individual’s characteristics, identify him by his precious work and identify his various emotion. In previous these signals were processed with Fourier series and Fourier transform but there are some problems as Fourier series is not well time localized [<xref ref-type="bibr" rid="scirp.104596-ref2">2</xref>]. We use Haar wavelet to process our voice signal because wavelet is well time localized [<xref ref-type="bibr" rid="scirp.104596-ref3">3</xref>]. Although voice identification and classification began in early 1960’s, it is now a very rich research field like image processing [<xref ref-type="bibr" rid="scirp.104596-ref4">4</xref>]. This enrichment of research is due to some of the characteristics that determine the character of a voice signal, such as loudness, amplitude, mean frequency, maximum frequency, L<sub>p</sub> norm, standard deviation etc. which differ from person to person. We have calculated the unique feature of signal by analyzing the voice signals, which are composed of five-level decomposition through Haar wavelet [<xref ref-type="bibr" rid="scirp.104596-ref5">5</xref>]. Emotion detection, one of the fields of speech classification, is a technique of extracting the speech characteristic information from people voice, and then is analyzed through machine and identifies the uniqueness of speech. Speech classification is an interconnected field of many others fields like image processing, robotics, artificial intelligence, machine learning, etc., currently a lot of work being done in machine learning with voice classification, voice identification and emotion detection, which has enriched our robotics much more. A large part of robotics today depend on speech command through which our daily electronic turns away from its button and switch. By adding speech classification to machine learning, we can look at a person’s speech record and store the emotion of his speech as data to estimate his next field of emotion. With the addition of the voice detection feature to the CCTV camera, we can easily identify the culprit through emotion detection by hearing the voice without looking at the face. Emotion detection plays an important role for people with physical and mental disabilities who communicate mainly through machines. Therefore, emotion detection or voice classification has not only made our daily lives easier, it has become a more important part of our life. There are many ways of classifying voice for emotion detection; wavelet is one of the best tools among them [<xref ref-type="bibr" rid="scirp.104596-ref6">6</xref>].</p></sec><sec id="s2"><title>2. Methodology</title><sec id="s2_1"><title>2.1. Wavelet</title><p>The wavelet means small waves and in brief, a wavelet is an oscillation that decays quickly. Equivalent mathematical conditions for wavelet are:</p><p>i )     ∫ R | ψ ( x ) | 2 d x &lt; ∞ ii )     ∫ R ψ ( x ) d x = 0 iii )     ∫ R | ψ ^ ( ω ) | 2 | ω | d ω &lt; ∞</p><p>where ψ ^ ( ω ) is the Fourier Transform of ψ ( x ) [<xref ref-type="bibr" rid="scirp.104596-ref7">7</xref>].</p></sec><sec id="s2_2"><title>2.2. Haar Wavelet</title><p>The Hungarian mathematician Alfred Haar first introduced the Haar function in 1909 in his Ph.D. thesis.</p><p>A function defined on the real line ℜ as</p><p>ψ ( t ) = { 1       for     t ∈ [ 0 , 1 2 ) − 1       for     t ∈ [ 1 2 , 1 ) 0                 otherwise</p><p>Is known as the Haar function [<xref ref-type="bibr" rid="scirp.104596-ref7">7</xref>].</p><p>The Haar function ψ ( t ) is the simplest example of a Haar Wavelet. The Haar function ψ ( t ) is a wavelet because it satisfies all the conditions of wavelet. This fundamental example has all the major features of the general wavelet theory. Haar wavelet is discontinuous at t = 0 , 1 2 , 1 and it is very well localized in the time domain.</p><p>The Fourier transform of ψ ( t ) is given by</p><p>ψ ^ ( ω ) = i exp ( − i ω 2 ) sin 2 ( ω 4 ) ω 4 <sub> </sub></p><p><sub> ∴ Re { ψ ^ ( ω ) } = sin ( ω 2 ) sin 2 ( ω 4 ) ω 4 .</sub></p></sec><sec id="s2_3"><title>2.3. Signal</title><p>A signal is defined as a function f ( x ) , which has a series representation</p><p>f ( x ) = ∑ n = 0 ∞ a n x n</p><p>Then all information about the function f is stored in the coefficients { a n } n = 0 ∞ [<xref ref-type="bibr" rid="scirp.104596-ref8">8</xref>].</p></sec><sec id="s2_4"><title>2.4. Wavelets and Signal Processing</title><p>The mathematical theory for wavelets deals for a great part with ways of obtaining series expansions of the type f ( x ) = ∑ j ∈ Z ∑ k ∈ Z d j , k ψ j , k ( x ) for certain functions f. Very often, the relevant functions f describe the time dependence of certain signals, i.e. the vibrations in a mechanical system or the current in an electric circuit. We now shortly describe a property of wavelets, which distinguish representations of the type f ( x ) = ∑ j ∈ Z ∑ k ∈ Z d j , k ψ j , k ( x ) from the general representations f ( x ) = ∑ n = 0 ∞ a n f n ( x ) [<xref ref-type="bibr" rid="scirp.104596-ref8">8</xref>] [<xref ref-type="bibr" rid="scirp.104596-ref9">9</xref>].</p></sec><sec id="s2_5"><title>2.5. Frequency and Maximum Frequency</title><p>Frequency is the number of occurrences of a repeating event per unit time. In physics frequency is the number of waves that pass a fixed point in unit time; also, the number of cycle or vibration during one unit of time by a body in periodic motion. A body in periodic motion is said to have undergone one cycle of one vibration after passing through a series of events of positions and returning to its original state. If the period, or time interval, required to complete one cycle of vibration is 1/2 second, the frequency is two per second [<xref ref-type="bibr" rid="scirp.104596-ref10">10</xref>]. The symbol most often used for frequency are f and the Greek letters ϑ (nu) and omega ω . In general, the frequency is the reciprocal of the period, or time interval. If T is the time period to complete one cycle then the frequency f can be written as</p><p>f = 1 T</p><p>When the number of cycle in a unit period is maximum then the frequency is maximum.</p></sec><sec id="s2_6"><title>2.6. Mean Frequency</title><p>The mean frequency of a spectrum is calculated as the sum of the product of the spectrogram intensity (in dB) and the frequency, divided by the total sum of spectrogram intensity [<xref ref-type="bibr" rid="scirp.104596-ref10">10</xref>]. If n is the number of frequency bins in the spectrum, f i is the frequency of spectrum at bin i of n and I i is the intensity (in dB) of spectrum at bin i of n then the mean frequency f mean can be written as follows,</p><p>f mean = ∑ i = 0 i = n I i f i ∑ i = 0 i = n I i</p></sec><sec id="s2_7"><title>2.7. L<sub>p</sub> Norm</title><p>For finite p, L<sub>p</sub> Norm in c [ a , b ] is defined as</p><p>‖ f ‖ p = [ ∫ a b | f ( x ) | p d x ] 1 p ;   1 ≤ p &lt; ∞</p><p>For discrete function it can be defined as</p><p>‖ f ‖ p = [ ∑ i = 1 n | f ( x i ) | p ] 1 p</p><p>where { x i } are the components of f [<xref ref-type="bibr" rid="scirp.104596-ref11">11</xref>].</p><p>If we put p = 1 in the above equation then ‖ f ‖ 1 is called L<sub>1</sub> Norm.</p><p>If we put p = 2 in the above equation then ‖ f ‖ 2 is called L<sub>2</sub> Norm.</p></sec></sec><sec id="s3"><title>3. Experimental Sample</title><p>Here we take twelve-voice sample from four people. We collected our voice sample in four different mood (joy, sorrow and angry) from each person.</p><sec id="s3_1"><title>3.1. First Experimental Real Voice of First Person</title><p>First experimental real voice of first person who speaks by a microphone and say, “can you please tell me what is going on” with joy in between 0 to 5 seconds</p><p>From statistical analysis of first experimental speech signal of first person, we see that, mean frequency of signal is 347 Hz; maximum frequency of signal is 453 Hz, L<sub>1</sub> Norm is 2263 and L<sub>2</sub> Norm is 23.35.</p></sec><sec id="s3_2"><title>3.2. Second Experimental Real Voice of First Person</title><p>Second experimental real voice of first person who speaks by a microphone and say, “can you please tell me what is going on” with sorrow in between 0 to 5 seconds.</p><p>From statistical analysis of second experimental speech signal of first person, we see that, mean frequency of signal is 323 Hz, maximum frequency of signal is 428 Hz, L<sub>1</sub> Norm is 2311 and L<sub>2</sub> Norm is 17.26.</p></sec><sec id="s3_3"><title>3.3. Third Experimental Real Voice of First Person</title><p>Third experimental real voice of first person who speaks by a microphone and say, “can you please tell me what is going on” with anger in between 0 to 5 seconds</p><p>From statistical analysis of third experimental speech signal of first person, we see that, mean frequency of signal is 376 Hz, maximum frequency of signal is 508 Hz, L<sub>1</sub> Norm is 2181 and L<sub>2</sub> Norm is 28.02.</p></sec><sec id="s3_4"><title>3.4. First Experimental Real Voice of Second Person</title><p>First experimental real voice of second person who speaks by a microphone and say, “can you please tell me what is going on” with joy in between 0 to 5 seconds.</p><p>From statistical analysis of first experimental speech signal of second person, we see that, mean frequency of signal is 366 Hz, maximum frequency of signal is 481 Hz, L<sub>1</sub> Norm is 2206 and L<sub>2</sub> Norm is 24.32.</p></sec><sec id="s3_5"><title>3.5. Second Experimental Real Voice of Second Person</title><p>Second experimental real voice of second person who speaks by a microphone and say, “can you please tell me what is going on” with sorrow in between 0 to 5 seconds.</p><p>From statistical analysis of second experimental speech signal of second person, we see that, mean frequency of signal is 313 Hz, maximum frequency of signal is 423 Hz, L<sub>1</sub> Norm is 2327 and L<sub>2</sub> Norm is 15.28.</p></sec><sec id="s3_6"><title>3.6. Third Experimental Real Voice of Second Person</title><p>Third experimental real voice of second person who speaks by a microphone and say, “can you please tell me what is going on” with anger in between 0 to 5 seconds.</p><p>From statistical analysis of third experimental speech signal of second person, we see that, mean frequency of signal is 380 Hz, maximum frequency of signal is 497 Hz, L<sub>1</sub> Norm is 2049 and L<sub>1</sub> Norm is 27.88.</p></sec><sec id="s3_7"><title>3.7. First Experimental Real Voice of Third Person</title><p>First experimental real voice of third person who speaks by a microphone and say, “can you please tell me what is going on” with joy in between 0 to 5 seconds.</p><p>From statistical analysis of first experimental speech signal of third person, we see that, mean frequency of signal is 372 Hz, maximum frequency of signal is 456 Hz, L<sub>1</sub> Norm is 2218 and L<sub>2</sub> Norm is 22.09.</p></sec><sec id="s3_8"><title>3.8. Second Experimental Real Voice of Third Person</title><p>Second experimental real voice of third person who speaks by a microphone and say, “can you please tell me what is going on” with sorrow in between 0 to 5 seconds.</p><p>From statistical analysis of second experimental speech signal of third person, we see that, mean frequency of signal is 319 Hz, maximum frequency of signal is 433 Hz, L<sub>1</sub> Norm is 2295 and L<sub>2</sub> Norm is 16.43.</p></sec><sec id="s3_9"><title>3.9. Third Experimental Real Voice of Third Person</title><p>Third experimental real voice of third person who speaks by a microphone and say, “can you please tell me what is going on” with anger in between 0 to 5 seconds.</p><p>From statistical analysis of third experimental speech signal of third person, we see that, mean frequency of signal is 396 Hz, maximum frequency of signal is 514 Hz, L<sub>1</sub> Norm is 2031 and L<sub>2</sub> Norm is 28.16.</p></sec><sec id="s3_10"><title>3.10. First Experimental Real Voice of Forth Person</title><p>First experimental real voice of forth person who speaks by a microphone and say, “can you please tell me what is going on” with joy in between 0 to 5 seconds.</p><p>From statistical analysis of first experimental speech signal of forth person, we see that, mean frequency of signal is 360 Hz, maximum frequency of signal is 473 Hz, L<sub>1</sub> Norm is 2188 and L<sub>2</sub> Norm is 24.07..</p></sec><sec id="s3_11"><title>3.11. Second Experimental Real Voice of Forth Person</title><p>Second experimental real voice of forth person who speaks by a microphone and say, “can you please tell me what is going on” with sorrow in between 0 to 5 seconds.</p><p>From statistical analysis of second experimental speech signal of forth person, we see that, mean frequency of signal is 322 Hz, maximum frequency of signal is 416 Hz, L<sub>1</sub> Norm is 2235 and L<sub>2</sub> Norm is 17.28.</p></sec><sec id="s3_12"><title>3.12. Third Experimental Real Voice of Forth Person</title><p>Third experimental real voice of forth person who speaks by a microphone and say, “can you please tell me what is going on” with anger in between 0 to 5 seconds.</p><p>From statistical analysis of third experimental speech signal of forth person, we see that, mean frequency of signal is 402 Hz, maximum frequency of signal is 518 Hz, L<sub>1</sub> Norm is 2083 and L<sub>2</sub> Norm is 27.12.</p></sec></sec><sec id="s4"><title>4. Results and Discussions</title><p>In the above experimental study, we tried to predict the approximate emotion by analyzing the four unique and basic feature (mean frequency, maximum frequency, L<sub>1</sub> norm and L<sub>2</sub> norm) of voice signal. In this purpose, we analyzed the voice signal by Haar wavelet (Shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>). The signal frequency is nothing but sampling number. The number of sample of each of our signals is 40,000. In our experiment, we have taken three voices in three different mood (Joy, sorrow, anger) from each of four people (Figures 2-13). We calculate mean frequency, maximum frequency, L<sub>1</sub> norm and L<sub>2</sub> norm for each voice (Tables 1-4). We can see from the table and chart (shown in <xref ref-type="table" rid="table5">Table 5</xref> and <xref ref-type="fig" rid="fig1">Figure 1</xref>4) the mean frequency vary from approximate 310 Hz to 400 Hz and the maximum frequency vary from approximate 410 Hz to 520 Hz for all the voice signals. Also the mean frequency vary from 340 Hz to 360 Hz approximately for joy, 310 Hz to 330 Hz approximately for sorrow, 365 Hz to 400 Hz approximately for anger and the maximum frequency vary from 450 Hz to 470 Hz approximately for joy, 410 Hz to 440 Hz approximately for sorrow, 480 Hz to 520 Hz approximately for anger. Again the L<sub>1</sub> Norm vary 2180 to 2250 approximately for joy, 2250 to 2330 approximately for sorrow and 2030 to 2190 approximately for anger where as L<sub>2</sub> Norm vary from 20 to 25 approximately for joy, 15 to 20 approximately for sorrow and 25 to 30 for anger (shown in <xref ref-type="table" rid="table6">Table 6</xref>, <xref ref-type="fig" rid="fig1">Figure 1</xref>5 and <xref ref-type="fig" rid="fig1">Figure 1</xref>6). Therefore, we can see anger voice gives highest number of frequency where the lowest frequency emitted from the voice of sorrow and joy ensures the moderate type of frequency. On the other hand, L<sub>1</sub> and L<sub>2</sub> norm behave in reverse in the case of high and low frequency. In case of angry voices, L<sub>2</sub> norm gives the highest value where as L<sub>1</sub> is lowest and for the sorrow, the phenomenon is completely different also. Therefore, the mean frequency of all the happy voices in between 340 Hz to 360 Hz, the mean frequency of all the sorrow voices in between 310 Hz to 330 Hz and the mean frequency of all the angry voices in between 365 Hz to 400 Hz. On the other hand the maximum frequency of all the happy voices in between 450 Hz to 470 Hz, the maximum frequency of all the sorrow voices in between 410 Hz to 440 Hz and the maximum frequency of all angry voices in between 480 Hz to 520 Hz. So in case of mean frequency and maximum frequency the frequency gradually increase from sorrow, joy to anger (shown in <xref ref-type="table" rid="table5">Table 5</xref> and <xref ref-type="fig" rid="fig1">Figure 1</xref>4). The L<sub>1</sub> norm of all the happy voices in between 2180 to 2250, of all the sorrow voices in between 2250 to 2330 and of all the angry voices in between 2030 to 2190. Where the L<sub>2</sub> norm of all the happy voices in between 20 to 25, of all the sorrow voices in between 15 to 20 and of all the angry voices in between 25 to 30. It can be observed that L<sub>1</sub> norm and L<sub>2</sub> norm gradually increase and decrease respectively form sorrow, joy to angry (shown in <xref ref-type="table" rid="table6">Table 6</xref>, <xref ref-type="fig" rid="fig1">Figure 1</xref>5 and <xref ref-type="fig" rid="fig1">Figure 1</xref>6).</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Data chart for first person</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >1<sup>st</sup> person</th><th align="center" valign="middle" >Mean frequency (Hz)</th><th align="center" valign="middle" >Maximum frequency (Hz)</th><th align="center" valign="middle" >L<sub>1</sub> Norm</th><th align="center" valign="middle" >L<sub>2</sub> Norm</th></tr></thead><tr><td align="center" valign="middle" >Joy</td><td align="center" valign="middle" >347</td><td align="center" valign="middle" >453</td><td align="center" valign="middle" >2263</td><td align="center" valign="middle" >23.35</td></tr><tr><td align="center" valign="middle" >Sorrow</td><td align="center" valign="middle" >323</td><td align="center" valign="middle" >428</td><td align="center" valign="middle" >2311</td><td align="center" valign="middle" >17.26</td></tr><tr><td align="center" valign="middle" >Anger</td><td align="center" valign="middle" >376</td><td align="center" valign="middle" >508</td><td align="center" valign="middle" >2181</td><td align="center" valign="middle" >28.02</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Data chart for second person</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >2<sup>nd</sup> person</th><th align="center" valign="middle" >Mean frequency (Hz)</th><th align="center" valign="middle" >Maximum frequency (Hz)</th><th align="center" valign="middle" >L<sub>1</sub> Norm</th><th align="center" valign="middle" >L<sub>2</sub> Norm</th></tr></thead><tr><td align="center" valign="middle" >Joy</td><td align="center" valign="middle" >366</td><td align="center" valign="middle" >481</td><td align="center" valign="middle" >2206</td><td align="center" valign="middle" >24.32</td></tr><tr><td align="center" valign="middle" >Sorrow</td><td align="center" valign="middle" >313</td><td align="center" valign="middle" >423</td><td align="center" valign="middle" >2327</td><td align="center" valign="middle" >15.28</td></tr><tr><td align="center" valign="middle" >Anger</td><td align="center" valign="middle" >380</td><td align="center" valign="middle" >497</td><td align="center" valign="middle" >2049</td><td align="center" valign="middle" >27.88</td></tr></tbody></table></table-wrap><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Data chart for third person</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >3<sup>rd</sup> person</th><th align="center" valign="middle" >Mean frequency (Hz)</th><th align="center" valign="middle" >Maximum frequency (Hz)</th><th align="center" valign="middle" >L<sub>1</sub> Norm</th><th align="center" valign="middle" >L<sub>2</sub> Norm</th></tr></thead><tr><td align="center" valign="middle" >Joy</td><td align="center" valign="middle" >372</td><td align="center" valign="middle" >456</td><td align="center" valign="middle" >2218</td><td align="center" valign="middle" >22.09</td></tr><tr><td align="center" valign="middle" >Sorrow</td><td align="center" valign="middle" >319</td><td align="center" valign="middle" >433</td><td align="center" valign="middle" >2295</td><td align="center" valign="middle" >16.43</td></tr><tr><td align="center" valign="middle" >Anger</td><td align="center" valign="middle" >396</td><td align="center" valign="middle" >514</td><td align="center" valign="middle" >2031</td><td align="center" valign="middle" >28.16</td></tr></tbody></table></table-wrap><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Data chart for fourth person</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >4<sup>th</sup> person</th><th align="center" valign="middle" >Mean frequency (Hz)</th><th align="center" valign="middle" >Maximum frequency (Hz)</th><th align="center" valign="middle" >L<sub>1</sub> Norm</th><th align="center" valign="middle" >L<sub>2</sub> Norm</th></tr></thead><tr><td align="center" valign="middle" >Joy</td><td align="center" valign="middle" >360</td><td align="center" valign="middle" >473</td><td align="center" valign="middle" >2188</td><td align="center" valign="middle" >24.07</td></tr><tr><td align="center" valign="middle" >Sorrow</td><td align="center" valign="middle" >322</td><td align="center" valign="middle" >416</td><td align="center" valign="middle" >2235</td><td align="center" valign="middle" >17.28</td></tr><tr><td align="center" valign="middle" >Anger</td><td align="center" valign="middle" >402</td><td align="center" valign="middle" >518</td><td align="center" valign="middle" >2083</td><td align="center" valign="middle" >27.12</td></tr></tbody></table></table-wrap><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> Data table for all frequency</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Frequency</th><th align="center" valign="middle"  colspan="3"  >Different types of emotions of people</th></tr></thead><tr><td align="center" valign="middle" >Joy</td><td align="center" valign="middle" >Sorrow</td><td align="center" valign="middle" >Anger</td></tr><tr><td align="center" valign="middle"  rowspan="4"  >Mean frequency (Hz)</td><td align="center" valign="middle" >347 (1<sup>st</sup> person)</td><td align="center" valign="middle" >323 (1<sup>st</sup> person)</td><td align="center" valign="middle" >376 (1<sup>st</sup> person)</td></tr><tr><td align="center" valign="middle" >366 (2<sup>nd</sup> person)</td><td align="center" valign="middle" >313 (2<sup>nd</sup> person)</td><td align="center" valign="middle" >380 (2<sup>nd</sup> person)</td></tr><tr><td align="center" valign="middle" >372 (3<sup>rd</sup> person)</td><td align="center" valign="middle" >319 (3<sup>rd</sup> person)</td><td align="center" valign="middle" >396 (3<sup>rd</sup> person)</td></tr><tr><td align="center" valign="middle" >360 (4<sup>th</sup> person)</td><td align="center" valign="middle" >322 (4<sup>th</sup> person)</td><td align="center" valign="middle" >402 (4<sup>th</sup> person)</td></tr><tr><td align="center" valign="middle"  rowspan="4"  >Maximum frequency (Hz)</td><td align="center" valign="middle" >453 (1<sup>st</sup> person)</td><td align="center" valign="middle" >428 (1<sup>st</sup> person)</td><td align="center" valign="middle" >508 (1<sup>st</sup> person)</td></tr><tr><td align="center" valign="middle" >481 (2<sup>nd</sup> person)</td><td align="center" valign="middle" >423 (2<sup>nd</sup> person)</td><td align="center" valign="middle" >497 (2<sup>nd</sup> person)</td></tr><tr><td align="center" valign="middle" >456 (3<sup>rd</sup> person)</td><td align="center" valign="middle" >433 (3<sup>rd</sup> person)</td><td align="center" valign="middle" >514 (3<sup>rd</sup> person)</td></tr><tr><td align="center" valign="middle" >473 (4<sup>th</sup> person)</td><td align="center" valign="middle" >416 (4<sup>th</sup> person)</td><td align="center" valign="middle" >518 (4<sup>th</sup> person)</td></tr></tbody></table></table-wrap><table-wrap id="table6" ><label><xref ref-type="table" rid="table6">Table 6</xref></label><caption><title> Data table for all L<sub>p</sub> norm</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >L<sub>p</sub>↓</th><th align="center" valign="middle"  colspan="3"  >Different types of emotions of people</th></tr></thead><tr><td align="center" valign="middle" >Joy</td><td align="center" valign="middle" >Sorrow</td><td align="center" valign="middle" >Anger</td></tr><tr><td align="center" valign="middle"  rowspan="4"  >L<sub>1</sub> Norm</td><td align="center" valign="middle" >2263 (1<sup>st</sup> person)</td><td align="center" valign="middle" >2311 (1<sup>st</sup> person)</td><td align="center" valign="middle" >2181 (1<sup>st</sup> person)</td></tr><tr><td align="center" valign="middle" >2206 (2<sup>nd</sup> person)</td><td align="center" valign="middle" >2327 (2<sup>nd</sup> person)</td><td align="center" valign="middle" >2049 (2<sup>nd</sup> person)</td></tr><tr><td align="center" valign="middle" >2218 (3<sup>rd</sup> person)</td><td align="center" valign="middle" >2295 (3<sup>rd</sup> person)</td><td align="center" valign="middle" >2031 (3<sup>rd</sup> person)</td></tr><tr><td align="center" valign="middle" >2188 (4<sup>th</sup> person)</td><td align="center" valign="middle" >2235 (4<sup>th</sup> person)</td><td align="center" valign="middle" >2083 (4<sup>th</sup> person)</td></tr><tr><td align="center" valign="middle"  rowspan="4"  >L<sub>2</sub> Norm</td><td align="center" valign="middle" >23.35 (1<sup>st</sup> person)</td><td align="center" valign="middle" >17.26 (1<sup>st</sup> person)</td><td align="center" valign="middle" >28.02 (1<sup>st</sup> person)</td></tr><tr><td align="center" valign="middle" >24.32 (2<sup>nd</sup> person)</td><td align="center" valign="middle" >15.28 (2<sup>nd</sup> person)</td><td align="center" valign="middle" >27.88 (2<sup>nd</sup> person)</td></tr><tr><td align="center" valign="middle" >22.09 (3<sup>rd</sup> person)</td><td align="center" valign="middle" >16.43 (3<sup>rd</sup> person)</td><td align="center" valign="middle" >28.16 (3<sup>rd</sup> person)</td></tr><tr><td align="center" valign="middle" >24.07 (4<sup>th</sup> person)</td><td align="center" valign="middle" >17.28 (4<sup>th</sup> person)</td><td align="center" valign="middle" >27.12 (4<sup>th</sup> person)</td></tr></tbody></table></table-wrap></sec><sec id="s5"><title>5. Conclusion</title><p>In the above discussion, we have discussed many issues of voice signal. Our aim was to give a complete aspect of how voice signals behave in different ways of emotion of people. By processing the voice signal through wavelet analysis, we have seen that the signal changes its structure in case of three different moods (joy, sorrow and anger) and give characteristic values of mean frequency, maximum frequency, L<sub>1</sub> norm and L<sub>2</sub> norm. In this way by making a relationship among these characteristic calculations, we can easily determine the emotion of voice signal. These results not only help to determine the emotion but also they give important information about speakers. Emotion detection through voice signal analysis plays an important role in machine learning, robotics, artificial intelligence, data mining, voice biometric, intelligence division, forensic department etc. With the help of voice biometric, forensic and voice identification process, our intelligence department will be able to identify many criminals, as a result our cybercrime will greatly reduce. Now a day’s voice automation is very popular and widely used medium. Already, many things are being done through voice commands and in the near future, this sector will be spread. Voice security is very popular among the many trusted security media. Therefore, in the present world, emotion detection, voice identification, specification and speaker recognition are a very important task. In this paper, we have generated codes with the help of MATLAB Programming and recorded our sound by regular headphone so some noise may be mixed with the original voice. We will try to improve this issue in the future.</p></sec><sec id="s6"><title>Conflicts of Interest</title><p>The authors declare no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s7"><title>Cite this paper</title><p>Badsha, F. and Islam, R. (2020) Emotion Detection by Analyzing Voice Signal Using Wavelet. American Journal of Computational Mathematics, 10, 485-502. https://doi.org/10.4236/ajcm.2020.104028</p></sec></body><back><ref-list><title>References</title><ref id="scirp.104596-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Gabor, D. (1946) Theory of Communication. Journal of Institute of Electrical and Electronics Engineers, 93, 429-457. https://doi.org/10.1049/ji-3-2.1946.0076</mixed-citation></ref><ref id="scirp.104596-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Littlewood, J.E. and Paley, R.E.A.C. (1931) Theorems on Fourier Series and Power Series. Journal of the London Mathematical Society, 6, 230-233.  
https://doi.org/10.1112/jlms/s1-6.3.230</mixed-citation></ref><ref id="scirp.104596-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Rioul, O. and Vetterli, M. (1991) Wavelets and Signal Processing. Institute of Electrical and Electronics Engineers of Signal Processing Magazine, 8, 14-38.  
https://doi.org/10.1109/79.91217</mixed-citation></ref><ref id="scirp.104596-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Badsha, M.F., Islam, M.R. and Bulbul, M.F. (2018) Object Detection by Point Feature Matching Using Matlab. Advances in Image and Video Processing, 6, 22-29.</mixed-citation></ref><ref id="scirp.104596-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Favero, R.F. (1994) Compound Wavelets: Wavelets for Speech Recognition. Institute of Electrical and Electronics Engineers Communications Letters, 17, 600-603.  
https://doi.org/10.1109/TFSA.1994.467280</mixed-citation></ref><ref id="scirp.104596-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Meyer, Y. (1993) Wavelets, Algorithms and Applications. Society for Industrial and Applied Mathematics, Philadelphia, PA.</mixed-citation></ref><ref id="scirp.104596-ref7"><label>7</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Agbinya</surname><given-names> J.I. </given-names></name>,<etal>et al</etal>. (<year>1996</year>)<article-title>Discrete Wavelet Transform Techniques in Speech Proccesing</article-title><source> International Technical Conference of Institute of Electrical and Electronics Engineers</source><volume> 2</volume>,<fpage> 514</fpage>-<lpage>519</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.104596-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Pasti, L., Walczak, B., Massart, D.L. and Reschiglian, P. (1999) Optimization of Signal Denoising in Discrete Wavelet Transform. Chemometrics and Intelligent Labratiory Systems, 48, 21-34. https://doi.org/10.1016/S0169-7439(99)00002-7</mixed-citation></ref><ref id="scirp.104596-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Boll, S.F. (1979) Suppression of Acoustic Noise in Speech Using Spectral Subtractionv. IEEE Transactions on Acoustics, Speech, and Signal Proceedings, 27, 56-72.  
https://doi.org/10.1109/TASSP.1979.1163209</mixed-citation></ref><ref id="scirp.104596-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Chen, J.-F. and Ser, W. (2000) Speech Detection Using Microphone Array. Electronic Letters, 36, 181-182. https://doi.org/10.1049/el:20000140</mixed-citation></ref><ref id="scirp.104596-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Rabiner, L. and Juang, B. (1993) Fundamentals of Speech Recognition. Prentice Hall PTR, Englewood Cliffs, NJ.</mixed-citation></ref></ref-list></back></article>