<?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">JILSA</journal-id><journal-title-group><journal-title>Journal of Intelligent Learning Systems and Applications</journal-title></journal-title-group><issn pub-type="epub">2150-8402</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jilsa.2017.91002 </article-id><article-id pub-id-type="publisher-id">JILSA-73931</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>
 
 
  Text-Based Intelligent Learning Emotion System
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Mohammed</surname><given-names>Abdel Razek</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Claude</surname><given-names>Frasson</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Research and Development Department, Deanship of Distance Learning, King Abdulaziz University, Jeddah, Kingdom of Saudi Arabia</addr-line></aff><aff id="aff2"><addr-line>Département d’informatique &amp;amp; de recherche opérationnelle Université de Montréal, Québec, Canada</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>abdelram@gmail.com(MAR)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>24</day><month>01</month><year>2017</year></pub-date><volume>09</volume><issue>01</issue><fpage>17</fpage><lpage>20</lpage><history><date date-type="received"><day>September</day>	<month>1,</month>	<year>2016</year></date><date date-type="rev-recd"><day>Accepted:</day>	<month>February</month>	<year>3,</year>	</date><date date-type="accepted"><day>February</day>	<month>6,</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>
 
 
  Nowadays, millions of users use many social media systems every day. These services produce massive messages, which play a vital role in the social networking paradigm. As we see, an intelligent learning emotion system is desperately needed for detecting emotion among these messages. This system could be suitable in understanding users’ feelings towards particular discussion. This paper proposes a text-based emotion recognition approach that uses personal text data to recognize user’s current emotion. The proposed approach applies Dominant Meaning Technique to recognize user’s emotion. The paper reports promising experiential results on the tested dataset based on the proposed algorithm.
 
</p></abstract><kwd-group><kwd>Text Based Emotion</kwd><kwd> Intelligent Learning System</kwd><kwd> Dominant Meaning</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>In collaborative chatting between users, emotions are an important aspect. The detection of the exchange of emotions among users through text messages can help for delivering right emotion in the right time. Several researches used text- based emotion to predict and classify the emotion types, such as [<xref ref-type="bibr" rid="scirp.73931-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.73931-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.73931-ref3">3</xref>] and [<xref ref-type="bibr" rid="scirp.73931-ref4">4</xref>] . Jraidi et al. [<xref ref-type="bibr" rid="scirp.73931-ref5">5</xref>] show the impact of using emotion in intelligent system and show how these emotions oriented toward developing emotionally sensitive tutors.</p><p>This paper presents a new technique based on Dominant Meaning Technique [<xref ref-type="bibr" rid="scirp.73931-ref6">6</xref>] and Appraisal Method [<xref ref-type="bibr" rid="scirp.73931-ref7">7</xref>] to classify a text to a suitable emotion. The dominant meanings definition is known as “the set of keywords that best fit an intended meaning of a target word” [<xref ref-type="bibr" rid="scirp.73931-ref6">6</xref>] . This technique sees the target meaning as a master word. Some slave words are to be added to the master to clarify the target meaning. For example, a word bank has several meaning, 1) a financial bank with slaves’ words such as statement, loan, and rate, 2) blood bank with slaves such as medical, transfusion, and human body, 3) river bank with slaves such as land, lake, and edge.</p><p>Appraisal is a linguistic theory that tries to model language’s capability to definite opinions and attitudes within text [<xref ref-type="bibr" rid="scirp.73931-ref7">7</xref>] . The appraisal method contains three distinct aspects: Attitude, Engagement, and Graduation. In this paper, we adopt attitudes in its classification. Attitudes are separated into three categories: Affect, Judgment, and Appreciation. Attitude is defined as a mode that anyone acts in a specific condition and shows how he feels [<xref ref-type="bibr" rid="scirp.73931-ref8">8</xref>] . These aspects embody the capability to express emotional, moral, and aesthetic feelings respectively [<xref ref-type="bibr" rid="scirp.73931-ref9">9</xref>] . For example, “when I was in grade 11 in the school, I was punished for no serious mistake of mine” another sentence “when I was in grade 11 in the school, I got an award for my excellence”. Using the dominant meaning methods, the words “punish, and mistake” lead the first sentences to a negative emotion, however, the words “award and excellence” classify the second sentences to a positive emotion.</p><p>Detecting emotion from text is useful in understanding users’ feelings towards particular discussion in intelligent learning system. To test our algorithm, we use ISEAR (International Survey on Emotion Antecedents and Reactions), dataset collected by Klaus R. Scherer and Harald Wallbott [<xref ref-type="bibr" rid="scirp.73931-ref9">9</xref>] . ISEAR dataset contains seven major emotions: joy, fear, anger, sadness, disgust, shame, and guilt. The process to classify sentences in this work involves two main steps: representing 40% of dataset to allow learning, extract features based on appraisal method, create dominant meaning hierarchy, train a classifier on prepared examples, and then using the classifier to predict a category.</p><p>The remainder of this paper is organized as follows. Section 2 presents the methodology to detect the emotion and how to construct dominant meaning tree. Section 3 describes experiments and discusses the results. Finally, Section 4 summarizes the conclusion.</p></sec><sec id="s2"><title>2. Emotion Detection Methodology</title><p>The architecture of the proposed system contains two stages: training stage, and classification stage. The training stage happens on the server side. We apply the dominant meaning methods [<xref ref-type="bibr" rid="scirp.73931-ref6">6</xref>] on the ISEAR dataset [<xref ref-type="bibr" rid="scirp.73931-ref9">9</xref>] to form the hierarchy tree. Based on the ISEAR, the tree consists of seven concepts: joy, fear, anger, sadness, disgust, shame, and guilt.</p><p>The classifier unit receives two types of information. A hierarchy tree for dominant meaning for seven classes and ISEAR examples. The classifier in general uses a large amount of labeled training data for text classification, which is a labor-intensive and time-consuming task. In contrast, our approach is to construct the dominant meaning tree and then use this tree to classify incoming examples from Emotion Models unit. This unit contains two types of set of words. First, set coming from Emotion Agent, which extract some features from Chatting GUI unit during the chatting between users, remove stop words, and reformulate in the way Emotion unit can deal with it. Stop words are those that occur commonly but are too general―such as “the”, “an”, “a”, “to”, etc. The algorithm removed the stop words from the collection. Emotion agent use Emotion Algorithm to assign an emotion for each set of features based on the emotion models coming from emotion models unit. After determining the emotion, Emotion Expression assigns a suitable expression for it and sends it to be shown in the Chatting GUI (see <xref ref-type="fig" rid="fig1">Figure 1</xref>).</p><sec id="s2_1"><title>2.1. Constructing Emotion Dominant Meaning Tree</title><p>To represent the proposed approach to classify sentiment, suppose that the collection consists of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x2.png" xlink:type="simple"/></inline-formula> emotion, i.e.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x3.png" xlink:type="simple"/></inline-formula>. Given the limited set of examples for each emotion, we try to represent the collection as a hierarchy of dominant meanings.</p><p>In this definition, each emotion is represented by a finite set of examples<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x4.png" xlink:type="simple"/></inline-formula>. The question now is how can we use those examples to construct dominant meanings of the corresponding emotion? In other words, those examples include some words that almost come with the corresponding emotion. The challenge is how to determine those words.</p><p>Each example is represented by a fixed set of words<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x5.png" xlink:type="simple"/></inline-formula>.</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Architecture of the emotion detection system</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-9601342x6.png"/></fig><p>The<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x7.png" xlink:type="simple"/></inline-formula>’s represent the frequency of word <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x8.png" xlink:type="simple"/></inline-formula> occurs in example <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x9.png" xlink:type="simple"/></inline-formula> which belongs to emotion<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x10.png" xlink:type="simple"/></inline-formula>. This frequency is computed as the number of times that the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x11.png" xlink:type="simple"/></inline-formula> occurs in the<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x12.png" xlink:type="simple"/></inline-formula>.</p><p>Our goal is to choose the top-<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x13.png" xlink:type="simple"/></inline-formula> words, which can represent the dominant meanings of emotion<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x14.png" xlink:type="simple"/></inline-formula>. To do that, we proceed as follows. Suppose that word <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x15.png" xlink:type="simple"/></inline-formula> symbolizes emotion<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x16.png" xlink:type="simple"/></inline-formula>.</p><p>・ Calculate the values of</p><disp-formula id="scirp.73931-formula84"><label>. (1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-9601342x17.png"  xlink:type="simple"/></disp-formula><p>・ Suppose that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x18.png" xlink:type="simple"/></inline-formula> is the frequency of emotion<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x19.png" xlink:type="simple"/></inline-formula>, which appears in example<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x19.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x20.png" xlink:type="simple"/></inline-formula>, where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x19.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x20.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x21.png" xlink:type="simple"/></inline-formula></p><p>・ Calculate the maximum value of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x22.png" xlink:type="simple"/></inline-formula>,</p><disp-formula id="scirp.73931-formula85"><label>. (2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-9601342x23.png"  xlink:type="simple"/></disp-formula><p>・ Calculate the maximum value of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x24.png" xlink:type="simple"/></inline-formula>,</p><disp-formula id="scirp.73931-formula86"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-9601342x25.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x26.png" xlink:type="simple"/></inline-formula></p><p>・ Choose<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x27.png" xlink:type="simple"/></inline-formula>, which satisfies <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x28.png" xlink:type="simple"/></inline-formula></p><p>・ Finally, consider the dominant meaning probability</p><p>・ <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x29.png" xlink:type="simple"/></inline-formula>. (4)</p><p>Therefore, we divide <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x30.png" xlink:type="simple"/></inline-formula> by the maximum value <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x31.png" xlink:type="simple"/></inline-formula> of the frequency of<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x32.png" xlink:type="simple"/></inline-formula>, and then we normalize the results by dividing by the number of examples <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x33.png" xlink:type="simple"/></inline-formula> in collection<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x34.png" xlink:type="simple"/></inline-formula>. Based on formula (3), we clearly have<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x30.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x31.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x32.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x33.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x34.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x35.png" xlink:type="simple"/></inline-formula>.</p></sec><sec id="s2_2"><title>2.2. Constructing Emotion Dominant Meaning Models</title><p>The proposed system creates sevens models one for each emotion: joy, fear, anger, sadness, disgust, shame, and guilt.</p><p>For each emotion<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x36.png" xlink:type="simple"/></inline-formula>, we have a collection of N examples</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x37.png" xlink:type="simple"/></inline-formula>. For each collection, we apply the formula from (1) to (4).</p><p>After applying formulas, we get a set of dominant meanings each word in the set has <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x38.png" xlink:type="simple"/></inline-formula> value for a word <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x39.png" xlink:type="simple"/></inline-formula> and in emotion<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x38.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x39.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x40.png" xlink:type="simple"/></inline-formula>.</p><p>We rank the terms of collection <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x41.png" xlink:type="simple"/></inline-formula> in decreasing order according to formula (4). As a result, the dominant meanings of the emotion <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x42.png" xlink:type="simple"/></inline-formula> can be represented by the set of words that is corresponds to the set<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x43.png" xlink:type="simple"/></inline-formula>; i.e.<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x41.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x42.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x43.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x44.png" xlink:type="simple"/></inline-formula>.</p><p>Therefore, we select the top-N values of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x45.png" xlink:type="simple"/></inline-formula> to form motion dominant meaning tree (EDMT). EDMT represents seven emotions suggested by (Klaus, 1994) as a tree. Each emotion is joined with a slave word. This slave is represent a dominant meaning and associated with the dominant meaning probability of that emotion as shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>. In this paper we put the top-N of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x45.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x46.png" xlink:type="simple"/></inline-formula> values as an arbitrary value.</p><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Emotion dominant meaning tree</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-9601342x47.png"/></fig><p>Accordingly, we can create seven models to represent the emotion. Each model is a set called emotion dominant meaning models<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x48.png" xlink:type="simple"/></inline-formula>. Each <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x48.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x49.png" xlink:type="simple"/></inline-formula> contains the top-N dominant meaning probability:</p><disp-formula id="scirp.73931-formula87"><label>. (5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-9601342x50.png"  xlink:type="simple"/></disp-formula><p>The corresponding word set of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x51.png" xlink:type="simple"/></inline-formula> is represented as:<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x51.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x52.png" xlink:type="simple"/></inline-formula>.</p><p>For a new example<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x53.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x54.png" xlink:type="simple"/></inline-formula>represents a word in the new example. For each emotion, we compute the model value <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x53.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x54.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x55.png" xlink:type="simple"/></inline-formula> as flowing:</p><disp-formula id="scirp.73931-formula88"><label>(6)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/2-9601342x56.png"  xlink:type="simple"/></disp-formula><p>where</p><p><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x57.png" xlink:type="simple"/></inline-formula>, for each <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x57.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x58.png" xlink:type="simple"/></inline-formula></p><p>The emotion detection algorithm returns the emotion <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x59.png" xlink:type="simple"/></inline-formula> that represents a set of words<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x59.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x60.png" xlink:type="simple"/></inline-formula>. The algorithm uses Equation (6) to compute the model value for each emotion for the example<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x59.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x60.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/2-9601342x61.png" xlink:type="simple"/></inline-formula>. Therefore, it calculates the highest value and then returns the index of this value. This index is used to determine the emotion.</p></sec></sec><sec id="s3"><title>3. Experiments and Results</title><p>This section presents two purposes. First purpose is used to build Emotion Dominant Meaning Tree. The second purpose is to test the accuracy of using this tree for detecting the emotion.</p><sec id="s3_1"><title>3.1. Data Sets</title><p>The dataset uses ISEAR dataset [<xref ref-type="bibr" rid="scirp.73931-ref9">9</xref>] that contains emotional statements. ISEAR contains 7666 sentences (as shown in <xref ref-type="table" rid="table1">Table 1</xref>). The dataset is collected from 1096 participants with different cultural background who completed questionnaires about seven emotions: anger, disgust, fear, sadness, shame, joy, and guilt.</p></sec><sec id="s3_2"><title>3.2. Building Emotion Dominant Meaning Tree</title><p>Most of text classification methods use keyword-based methods with thesaurus. In contrast, we use the dominant meaning methods as features to improve accuracy and refine the categories. To build the dominant meaning tree, we use 60% of ISEAR dataset for seven emotion categories (as shown in <xref ref-type="table" rid="table2">Table 2</xref>): anger,</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Characteristics of the ISEAR Dataset</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Emotion</th><th align="center" valign="middle" >No. of Examples</th></tr></thead><tr><td align="center" valign="middle" >Anger</td><td align="center" valign="middle" >1096</td></tr><tr><td align="center" valign="middle" >Disgust</td><td align="center" valign="middle" >1096</td></tr><tr><td align="center" valign="middle" >Fear</td><td align="center" valign="middle" >1095</td></tr><tr><td align="center" valign="middle" >Sadness</td><td align="center" valign="middle" >1096</td></tr><tr><td align="center" valign="middle" >Shame</td><td align="center" valign="middle" >1096</td></tr><tr><td align="center" valign="middle" >Joy</td><td align="center" valign="middle" >1094</td></tr><tr><td align="center" valign="middle" >Guilt</td><td align="center" valign="middle" >1093</td></tr><tr><td align="center" valign="middle" >Total examples</td><td align="center" valign="middle" >7666</td></tr></tbody></table></table-wrap><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Characteristics of dataset used to build tree</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Emotion</th><th align="center" valign="middle" >No. of Examples</th></tr></thead><tr><td align="center" valign="middle" >Anger</td><td align="center" valign="middle" >658</td></tr><tr><td align="center" valign="middle" >Disgust</td><td align="center" valign="middle" >658</td></tr><tr><td align="center" valign="middle" >Fear</td><td align="center" valign="middle" >657</td></tr><tr><td align="center" valign="middle" >Sadness</td><td align="center" valign="middle" >658</td></tr><tr><td align="center" valign="middle" >Shame</td><td align="center" valign="middle" >658</td></tr><tr><td align="center" valign="middle" >Joy</td><td align="center" valign="middle" >656</td></tr><tr><td align="center" valign="middle" >Guilt</td><td align="center" valign="middle" >656</td></tr><tr><td align="center" valign="middle" >Total examples</td><td align="center" valign="middle" >4601</td></tr></tbody></table></table-wrap><p>disgust, fear, sadness, shame, joy, and guilt.</p><p>Stop words were removed in all examples for examples: for, an, the, a, an, another, but, or, yet, so, towards, before, etc.</p><p>Based on the Equation (1) to (5), we can build the dominant meaning tree of seven emotion categories, as shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>Each node contains one emotion. Each emotion is associated with top-N dominant meaning words based. The node between word and the emotion is labeled with its dominant meaning probability as shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>. To determine N value, we have to conduct some experimentations with different N values to figure out which N reflects a considerable results. The following subsection presents the accuracy of the proposed method to classify emotion examples.</p></sec><sec id="s3_3"><title>3.3. Detecting Algorithm Accuracy</title><p>The goal of the experiments is to measure the accuracy of the proposed algorithm to predict a single emotional label given an input sentence. We follow Cohen’s Kappa [<xref ref-type="bibr" rid="scirp.73931-ref10">10</xref>] to measure the accuracies of the experiment. We use average precision, recall, and F-measure to measure the classification accuracy.</p><p>In this experiment, we use ISEAR dataset to figure out the performance of our proposed mechanism. We used a Java programing language to create a class file to implement Emotion Detection Algorithm. This program classified the tested data in one emotion. The results of precision and recall are shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><p>The precision and recall of our proposed approach shows a considerable performance comparing to those in related works.</p><p>In his classification he found that using SVM produced better results for sadness (F1 = 0.733) which is better than our approach for sadness (F1 = 0.67). In contrast, our approach has better results in others classes such as anger (F1 = 0.66), disgust (F1 = 0.47), fear (F1 = 0.56), shame (F1 = 0.55), joy (F1 = 0.58), and guilt (F1 = 0.50). Where Balahur results were for anger (F1 = 0.38), disgust</p><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Precision and recall for dominant meanings</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-9601342x71.png"/></fig><p>(F1 = 0.264), fear (F1 = 0.49), shame (F1 = 0.43), joy (F1 = 0.46), and guilt (F1 = 0.42).</p><p>Danisman and Alpkocak [<xref ref-type="bibr" rid="scirp.73931-ref11">11</xref>] used the ISEAR collection and used vector space models (VSM) to categorize 801 examples. Our approach showed a significant results anger (F1 = 0.38), joy (F1 = 0.46), and sadness (F1 = 0.67) compared to Danisman and Alpkocak (2008) for anger (F1 = 0.242), joy (F1 = 0.496) and sadness (F1 = 0.371).</p><p>On the other hand, in order to test the performance of our proposed approach with alternative methods for emotion detection, we chose the work done by Balahur et al. [<xref ref-type="bibr" rid="scirp.73931-ref12">12</xref>] , as shown in <xref ref-type="table" rid="table3">Table 3</xref>.</p><p>The results of 10-fold cross validation using Support vector machine to classify the whole set of 1081 examples initially chosen. We found that using dominant meaning classifier produced better results all categories than using the method of SVM in Balahur et al. [<xref ref-type="bibr" rid="scirp.73931-ref12">12</xref>] , as shown in <xref ref-type="table" rid="table3">Table 3</xref>, where our proposed method produced the most accurate results for Sadness class with Precision (27.2) and Recall (60.2). Using 10-fold cross validation with SVM (Balahur, 2011) produced also the most accurate results for sadness class with Precision (0.707) and Recall (0.77). However, our proposed method produces a lower value for precision for two classes “Anger” with (20.2) and “Shame” with (20.2), Balahur’s results produced a lower value for precision a class “Disgust” with 0.292.</p><p><xref ref-type="fig" rid="fig4">Figure 4</xref> shows F1 measure for the results of Dominant meaning approach and 10-fold cross validation using SVM [<xref ref-type="bibr" rid="scirp.73931-ref12">12</xref>] . As we see both our proposed approach and Balahur’s approach have a similar function for drawing F1 measure. We see that the top value for the graph for both approach recorded for “Sadness” class and the bottom value for the graph for both approach recorded for “Disgust” class.</p></sec></sec><sec id="s4"><title>4. Conclusion</title><p>Text-Based Emotion detection becomes an important research field with the massive chatting messages coming from social media systems. In this paper, we have proposed an approach to extract user’s emotion based on messages who posts. We used a dominant meaning approach, which looks for the meaning of the word rather than the word itself. To do that, we proposed an architecture for</p><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Characteristics of dataset used to build tree</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Emotion</th><th align="center" valign="middle"  colspan="2"  >Precision</th><th align="center" valign="middle"  colspan="2"  >Recall</th></tr></thead><tr><td align="center" valign="middle" >Our method</td><td align="center" valign="middle" >Balahur</td><td align="center" valign="middle" >Our method</td><td align="center" valign="middle" >Balahur</td></tr><tr><td align="center" valign="middle" >Anger</td><td align="center" valign="middle" >20.2</td><td align="center" valign="middle" >0.353</td><td align="center" valign="middle" >52.1</td><td align="center" valign="middle" >0.414</td></tr><tr><td align="center" valign="middle" >Disgust</td><td align="center" valign="middle" >22.4</td><td align="center" valign="middle" >0.292</td><td align="center" valign="middle" >46.9</td><td align="center" valign="middle" >0.241</td></tr><tr><td align="center" valign="middle" >Fear</td><td align="center" valign="middle" >26.2</td><td align="center" valign="middle" >0.482</td><td align="center" valign="middle" >55.7</td><td align="center" valign="middle" >0.491</td></tr><tr><td align="center" valign="middle" >Guilt</td><td align="center" valign="middle" >20.3</td><td align="center" valign="middle" >0.462</td><td align="center" valign="middle" >51.9</td><td align="center" valign="middle" >0.386</td></tr><tr><td align="center" valign="middle" >Joy</td><td align="center" valign="middle" >26.6</td><td align="center" valign="middle" >0.439</td><td align="center" valign="middle" >50.6</td><td align="center" valign="middle" >0.474</td></tr><tr><td align="center" valign="middle" >Sadness</td><td align="center" valign="middle" >27.2</td><td align="center" valign="middle" >0.707</td><td align="center" valign="middle" >60.2</td><td align="center" valign="middle" >0.76</td></tr><tr><td align="center" valign="middle" >Shame</td><td align="center" valign="middle" >20.2</td><td align="center" valign="middle" >0.441</td><td align="center" valign="middle" >48.9</td><td align="center" valign="middle" >0.412</td></tr></tbody></table></table-wrap><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Comparison between the results of dominant meaning approach and 10-fold cross validation-using SVM (Balahur, 2011)</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/2-9601342x72.png"/></fig><p>the proposed system to finish two tasks: training and classification. For training system, a hierarchy tree for dominant meaning for seven emotions (“joy, fear, anger, sadness, disgust, shame, and guilt”) is built using ISEAR dataset. We create an algorithm called Emotion Detection Algorithm to classify and find the suitable emotion class based on the text. To experiment the proposed technique, we tested it on the ISEAR dataset, and compare our results with different results that were implemented by Alexandra Balahur [<xref ref-type="bibr" rid="scirp.73931-ref12">12</xref>] and Danisman and Alpkocak [<xref ref-type="bibr" rid="scirp.73931-ref11">11</xref>] . We show that our system has the best results in precision, recall and F-measure.</p></sec><sec id="s5"><title>Cite this paper</title><p>Razek, M.A. and Frasson, C. (2017) Text-Based Intelligent Learning Emotion System. Journal of Intelligent Learning Systems and Applications, 9, 17-26. https://doi.org/10.4236/jilsa.2017.91002</p></sec></body><back><ref-list><title>References</title><ref id="scirp.73931-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Alm, C.O., Roth, D. and Sproat, R. (2005) Emotions from Text: Machine Learning for Text-based Emotion Prediction. Proceedings of the Human Language Technology Conference and the 2005 Conference on Empirical Methods in Natural Language Processing, Vancouver, Canada, 6-8 October 2005, 579-586.  
https://doi.org/10.3115/1220575.1220648</mixed-citation></ref><ref id="scirp.73931-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Alm, C.O. (2009) Affect in Text and Speech. VDM Verlag, Saarbrücken.</mixed-citation></ref><ref id="scirp.73931-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Chen, Y., Lee, S.Y.M. and Huang, C.-R. (2009) A Cognitive-Based Annotation System for Emotion Computing. Proceedings of the Third Linguistic Annotation Workshop (The LAW III), Suntec, Singapore, 6-7 August 2009, 1-9.</mixed-citation></ref><ref id="scirp.73931-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Tokuhisa, R., Inui, K. and Matsumoto, Y. (2008) Emotion Classification Using Massive Examples Extracted from the Web. Proceedings of COLING, Manchester, 18-22 August, 2008, 881-888. https://doi.org/10.3115/1599081.1599192</mixed-citation></ref><ref id="scirp.73931-ref5"><label>5</label><mixed-citation publication-type="book" xlink:type="simple">Jraidi, I., Chalfoun, J. and Frasson, C. (2012) Implicit Strategies for Intelligent Tutoring Systems. Cerri, S.A., et al., Eds., Springer-Verlag, Berlin Heidelberg, 1-10.</mixed-citation></ref><ref id="scirp.73931-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Razek, M.A., Frasson, C. and Kaltenbach, M. (2003) A Context-Based Information Agent for Supporting Intelligent Distance Learning Environments. The 12th International World Wide Web Conference (WWW 2003), Budapest, Hungary, 20-24 May 2003, 183-191.</mixed-citation></ref><ref id="scirp.73931-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Wu, B. (2013) Appraisal Perspective on Attitudinal Analysis of Public Service Advertising Discourse. Published by Canadian Center of Science and Education, English Language and Literature Studies, Vol. 3, No. 1.</mixed-citation></ref><ref id="scirp.73931-ref8"><label>8</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Martin</surname><given-names> J. </given-names></name>,<etal>et al</etal>. (<year>2003</year>)<article-title>Introduction, Special issue on Appraisal</article-title><source> Text</source><volume> 23</volume>,<fpage> 171</fpage>-<lpage>181</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.73931-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Scherer, K.R. and Wallbotth, G. (1994) Evidence for Universality and Cultural Variation of Differential Emotion Response Patterning. Journal of Personality and Social Psychology, 66, 310-328. https://doi.org/10.1037/0022-3514.66.2.310</mixed-citation></ref><ref id="scirp.73931-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Cohen, J. (1960) A Coefficient of Agreement for Nominal Scales. Educational and Psychological Measurement, 20, 37-46.  
https://doi.org/10.1177/001316446002000104</mixed-citation></ref><ref id="scirp.73931-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Danisman, T. and Alpkocak, A. (2008) Feeler: Emotion Classification of Text Using Vector Space Model. Proceedings of the AISB 2008 Symposium on Affective Language in Human and Machine, University of Aberdeen, UK, 1-4 April 2008, 53-59.</mixed-citation></ref><ref id="scirp.73931-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Balahur, A., Hermida, J.M. and Montoyo, A. (2011) Building and Exploiting Emotinet, a Knowledge Base for Emotion Detection Based on the Appraisal Theory Model. IEEE Transactions on Affective Computing, 3, 88-101.</mixed-citation></ref></ref-list></back></article>