Personality Detection Using Context Based Emotions in Cognitive Agents

: Detection of personality using emotions is a research domain in artificial intelligence. At present, some agents can keep the human’s profile for interaction and adapts themselves according to their preferences. However, the effective method for interaction is to detect the person’s personality by understanding the emotions and context of the subject. The idea behind adding personality in cognitive agents begins an attempt to maximize adaptability on the basis of behavior. In our daily life, humans socially interact with each other by analyzing the emotions and context of interaction from audio or visual input. This paper presents a conceptual personality model in cognitive agents that can determine personality and behavior based on some text input, using the context subjectivity of the given data and emotions obtained from a particular situation/context. The proposed work consists of Jumbo Chatbot, which can chat with humans. In this social interaction, the chatbot predicts human personality by understanding the emotions and context of interactive humans. Currently, the Jumbo chatbot is using the BFI technique to interact with a human. The accuracy of proposed work varies and improve through getting more experiences of interaction.

Emotion detection most commonly applies techniques from NLP as well as ML [7]. Emotion detection is closely associated with effective computing since it is aimed at improving Human-Computer. In the last few decades, researchers show to focus on developing emotion-based systems. These systems help build Human-computer interaction (HCI) applications in internet search and navigation services, information collection and delivery, interactive chatting systems for customer's services, customer feedback, analyzing social networking feedback, interactive hardware and software Interfaces. It also includes text processing systems-text summarization, information extraction, information retrieval, domain-specific application websites' feedback, and text processing applications are typical examples that incorporate cognitive agents [8]. Furthermore, emotion detection is a source through which one can add personality in cognitive agents. The idea behind adding personality in cognitive agents begins an attempt to maximize adaptability based on behavior [9].
Existing subjective specialists are, as of now, ready to, by one means or another, see feelings through outward appearances, signals, discourse and from content [10]. They can add personality traits and emotional intelligence to the cognitive agent. Research is being done, recognising emotions from the text. Several methods have been used, including semantics, keyword spotting, and text mining, to recognize emotions from the text for cognitive agents. However, existing systems are lacking articulating emotional states whenever to detect emotions from context. Many systems may also lack the ability to learn the context of detecting emotions according to the subject. Human in routine social interaction always considers and perceive the emotions of others by addressing the current aim and context of the conversation to judge the personality. This personality perception will help him to change his behavior accordingly. The proposed work is based on the conceptual cognitive model to detect emotions according to context by considering subjectivity for personality detection. The Jumbo chatbot is designed based on this proposed cognitive model to visualize the working form of the proposed work.

IBM Watson Personality Insights
The IBM Watson personality insights provide an API to derive insight from different platforms like social media and other digital communications. For example, this service detects an individual's personality from emails, Twitter posts, simple messages [11].
A Watson personality insight is a combination of three primary models: (1) Big Five personality characteristics are used to infer the behavior of an individual.
(2) Values relate to how an individual's motivating factors influence decisions like cooperation, achievement striving, efficiency. (3) Needs determine an individual's characteristics based on the current context/situation. The limitation of this system is that it is assessing the personality based on social media comments, not through live chat. In addition, this system has some contextual limitations for Arabic and Korean inputs

Nazi Chatbot
A chatbot related to personality adds the extension in dialogue architecture and adds personality traits and emotional intelligence [12,13]. It covers three main areas: (1) Understanding of emotions (2) Situation management (3) Generate emotional response This system, in some responses, generates offensive tweets, which are not acceptable for a human-based society.

Personality Forge Chatbots
This chatbot has the ability to build relationships in terms of emotional responses with anyone they chat with. Developers used to integrate it with their chatbot API [14]. The main feature is that it is having knowledge of hundreds or even thousands of words, capable of unmatched pattern matching, having Wikipedia as a knowledge base size. However, this system does not have an emotion analyzer to judge the personality of a human.
The major limitation of all defined related work is that although some judge personality based on emotions and context, they cannot judge personality based on subjectivity.

Conceptual Personality Model (CPM)
The proposed system in Fig. 1 is focusing on textual input, and the primary aim is to determine personality based on context and emotions extracted from text input; and finally, it will identify a personality trait It simulates a chat application program to detect the emotion using the context. It is employed here the detection technique to detect emotions from a given input and incorporate it into a cognitive agent. The cognitive agent aims to detect a user's personality from interaction and adapts itself by introducing a personality trait according to the user's preferences.

Jumbo Chat Bot
Chat application created to go about as an interface amongst clients and framework for identity identification. This chat application will contribute to the type of English sentences and forward to a pre-relevant analyzer for additional handling.

Pre-Context Analyzer
A pre-contextual analyzer combines two sub-modules, Text Tokenization and Part-of-speech (POS) tagger modules.

Text Tokenizer
The working of the tokenizer is to separate sentences of English and then further grouped these sentences in tokens, which may likewise call "words". The framework utilizes Stanford NLP gather Tokenizer and POS tagger for the pre-relevant handling of content contribution through visit application by the client as English sentences. Stanford NLP group is a team that provides innovative probabilistic and ML approaches to NLP. They provide state of an art tokenizer and POS tagger. For example, "I am going to visit the USA for enjoying vacations" is input through a chat application. The Stanford Tokenizer will divide this sentence into tokens, as shown in Fig. 2. The Stanford Tokenizer divides the text input through the chat application into tokens, and then the Stanford POS tagger activated for tagging process.

POS Tagger
POS tagger is a product that contributes to the type of content and doles out the grammatical form to every token or word, for example, verb, thing and modifier. Although Stanford POS Tagger is a java-based tagger bolster English, German, Arabic, Chinese, French dialects as in Fig. 3, Context Analyzer uses tagged tokens for further processing of text to articulate context-based personality as well as emotion-based personality and personality trait.

Context Analyzer
Context Analyzer performs three critical errands. First, right off the bat, the analyzer extricates the feelings and set of given info utilizing enthusiastic notion analyzer, secondly, working history generator module. Finally, the third analyzer separates conceivable characteristics.

Emotional Sentiment Analyzer
Enthusiastic Suppositions add significance to our day-by-day correspondence, whether it's verbal or non-verbal. On the off chance that catches the client's enthusiastic notions electrically, the client's mindset will pass on supposition. If the listener listens to the customer's voice, it will convey complaints, suggestions about our brand and uncover sales opportunities. Similarly, emotional sentences play an extensive part in all fields of life to judge assessment, inclination, and feelings of other individuals whether passed on through content or voice. Passionate Sentiment Analysis from the content is essential for the intuitive condition and causes us to include knowledge as an emotional sentiment analyst into our intellectual specialist. Enthusiastic Sentiment analyzer will extricate subjectivity and objectivity from content information as defined in Fig. 4.

Figure 4: Emotional sentiment analyzer
Text may be subjective or objective. Sometimes refers objective text refers to be neutral. The emotional Sentiment Analyzer module will extract the subjectivity of text input through the chat application. For this reason, the analyzer will extract subjectivity (positive, negative, neutral) of tagged tokens (words) in the form of negative or positive weight from the available lexicon SENTIWORDNET.

Sentiwordnet Lexicon
Sentiwordnet is a lexical hotspot for supporting passionate feeling characterization. It consequently clarifies synsets as per the idea of subjectivity (Positive, Negative) and objectivity (Neutral). Subjectivity score implies (Positive, Negative) and objectivity score (Neutral) is assembled with every synset of sentiwordnet. These scores demonstrate how positive, negative and impartial enthusiastic assessments sorted out in every synset (sense). When Emotional Sentiment Analyzer removes positive or negative or nonpartisan score from Sentiwordnet, it changes into Context Analyzer for additionally handling.

History Generator
The part of history generator is critical for passionate feeling investigation and in addition for recognizing the identity of setting and feelings. The history generator is in charge of investigating the setting of the sentence. Stanford POS tagger labeled the sentence token and in the initial step performed by setting analyzer extricates subjectivity score as affirmative or undesirable from sentiwordnet. The following stage includes the utilization of a history generator. History generator looks through each labeled name which holds symbolic (word) with its POS tag from history reactions store. On the off chance that matches don't locate the symbolic (word) with its POS tag and partiality score, it refers to putting away to history reactions store. If matches found in the store, the same qualities separated from the store and send to a setting analyzer for the additional process.

Context-Based Personality
The role of context is essential when it is a matter to talk about personality. Personality based on context manifests itself in facial expressions, speech utterances, gestures or actions. For instance, a person's personality can be reserved, friendly, and imaginative, saying that living in fantasies. So to extract such types of situations from text input is the working of this module. Parameters calculated by the context analyzer are social able, straight forwardness, thorough, tense, imaginative, and forceful, as defined in Tab. 1.    Fig. 5, Y represents the input type of Context Type variables which could be one of the following Y Type-1 context types, and their effect of personality is represented in the graph with the value of X. In Fig. 6, Z represents the input type of Context Type variables which could be one of the following Z Type-2 context types.  Figure 6: Impact of second type-2 of context on personality

Emotion-Based Personality
Human emotions manifest themselves in facial expressions, speech utterances, writings, and gestures and actions. Consequently, scientific research in emotion has been pursued along several dimensions and has drawn upon research from various fields. Recent research has shown that emotions play an essential role in our life. Emotions are described from a different perspective. Some researchers think feelings are also developed; others think emotions are publically built. As indicated by PAUL EKMAN, there are Big Six feelings that can be sorted into essential feelings. These Big Six reactions are Happiness, surprise, fear, sadness, disgust, and anger. Emotion-based personality adds position to our regular message, whether it's vocal or non-vocal. Feeling-based identity from the content is significant for the intuitive condition and causes us to include knowledge as identity into our intellectual operator. Feeling-based identity rates passionate human states as per positive or negative, and neutral extremity. So this module will extract emotions from text input and gives result in percentage.
The following Tab. 2 define the Emotions use in the proposed model, their categorization and scaling.   Fig. 7, V represents the input type of emotion type variables, one of the following V Type-1 emotions.  Figure 7: Impact of type-1 emotion on personality In Fig. 8, T represents the input type of Emotion Type variables which could be one of the following T Type-2 Emotions.

Personality Detection
After extracting emotions and context from a given input, a personality will be detected in terms of positive, negative or neutral. Identity discovery assumes an extensive part in all fields of life to judge feelings, mindsets, feelings, and settings through content or voice. Identity identification from the content is significant for the intuitive condition and encourages us to include insight into our psychological operator.

Personality Trait
When personality is detected in positive, negative or neutral, the next thing that has a significant role in identifying traits based on context-based personality and emotion-based personality is that an agent is considered useless if there is no personality. For this purpose, some designers have developed traits, using the term "Big Five" personality traits. They arrived from five-factor models, which are used often by many psychologists so to determine human personality. Five traits included in every human's personality are agreeableness, conscientiousness, neuroticism, extraversion, and openness, defined in Tab. 3. On behalf of these five traits, the proposed system will detect traits for every personality.   Fig. 9, Where L represents the input type of personality trait variables could be one of the following K Type-2 personality traits.
In Fig. 10, R represents the input type of Personality Trait variables which could be one of the following R Type-1 personality trait

Experimental Results
A sample of data questions based on Big five inventory (BFI) used by many psychologists to determine the personality of a human. The proposed approach will take some questions and detect personality based on those questions.

Results
After answering the questions, the system will get the result in percentages. Ekman's theory based on six emotions is used in this application. In the end, the application will determine positive, negative, and neutral personalities based on emotions and context-based traits.

Discussions
Emotions can be expressed through languages like facial expressions, voice or text. Emotional information requires the extraction of meaningful patterns from the given data. Emotion detection is a source through which one can add personality in cognitive agents. The idea behind adding personality in cognitive agents begins an attempt to maximize adaptability on the basis of behavior. Emotions and their detectability play a crucial role in an interaction. If one could detect the emotion and its type during an interaction, there is a probability that one can derive an impression about the personality from this emotion. Chatbots such as Nazi, Personality Forge and IBM Watson personality insights determine personality based on emotions, generate an emotional response, and cover the area of situation management. Still, the main primary deficiency in these three chatbots is that they do not detect personality on the basis ofbased on subjectivity; instead, it only detects the personality in terms of personality traits and emotional response. Jumbo chatbot presented in this research adds an extra feature of detecting personality based on subjectivity by determining the context-based personality and emotion-based personality based on text input. The interacting body will ask a series of questions, and answers will be given in the form of yes/no. The accuracy level achieved by the jumbo chatbot is 80% as it extends the feature of adding subjectivity to detect personality. This extra feature enhances the featured response of this jumbo chatbot.

Conclusion
This research paper attempts to generate cognitive agents that can determine personality and behavior based on some text input, using the context of the given data and emotions obtained from it. If one could detect the emotion and its type during an interaction, there is a probability that one can derive an impression about the personality from this emotion. Humans can perceive emotions as well as can judge personality. The subjectivity in personality can help out to analyze the person's personality and adapt/improve their behavior based on the subject's personality. The proposed model articulates by first extracting emotions and context from a given input, then it extracts subjectivity and identifies traits based on human personality. So, the real impediment in the proposed model might be the disappointment of judgment of emotions and setting from content through which identity location is come about in some way or another not precise. This issue can be accomplished and considered in future work.