Humans communicate with each other and express emotions using facial expressions. Facial expression is an important part of expressing emotions. Facial features can be considered as eyes, mouth, and nose. In this chapter, the authors considered these facial features for emotion detection and processed them with convolutional neural network (CNN). There are mainly six basic types of emotions: fear, disgust, anger, sadness, happiness, and surprise. These emotions can be classified into two types: positive emotions and negative emotions. A positive emotion is a feeling where there is no negativity such as happy, neutral. A negative emotion is a feeling of depression, frustration including anger, sadness, fear. This chapter describes a step-by-step method in processing an image in CNN and giving an output. CNN classifies different emotions. Further classification is done for emotion as negative and positive, and when the negative emotion is detected, music is played to change the emotion of a person.
Pei-Tse YangShih-Ming KuangChia‐Chun WuJia-Lien Hsu