{'fraction_non_alphanumeric': 0.019230769230769232, 'fraction_numerical': 0.004120879120879121, 'mean_word_length': 5.226495726495727, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Artificial Intelligence System for Emotion Recognition and Text Analytics

Harnessing the power of emotional intelligence by analyzing a person’s behavioral and linguistic skills can help humans improve their approach to social interactions. In this paper, we propose an artificial intelligence-based stand-alone system that will allow us to classify and analyze facial expressions in real-time and perform sentiment analysis by examining the body of the text (extracted from audio) to understand the opinion expressed by it. This helps us provide a deeper understanding of how humans really feel at a given time. The proposed system uses a deep neural network (DNN) for classifying eight basic emotions based on features extracted from facial expressions and uses pretrained sentiment analysis tools to quantify text (extracted from audio) based on polarity. The system is implemented by extracting the audio and visual cues from real-time scenarios and using these extracted cues to perform facial expression recognition and text sentiment analysis. The integrated system extracts video and audio simultaneously with a frame rate of 4-5 fps. The facial emotion detection system successfully detects facial expressions of faces detected in real-time video with an accuracy of about 86.75%. The speech extracted is converted to text, cleaned, and processed to determine if the attitude of the speaker in a given situation is positive, negative, or neutral.