<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>COMPARISON OF DIFFERENT CONVOLUTION NEURAL NETWORK ARCHITECTURES FOR THE SOLUTION OF THE PROBLEM OF EMOTION RECOGNITION BY FACIAL EXPRESSION</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>A.O. Vorontsov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>A.N. Averkin</string-name>
          <email>averkin2003@inbox.ru</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dubna State University, Institute of system analysis and management;</institution>
          <addr-line>141980, Dubna, Moscow reg., Universitetskaya str., 19</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>FRC “Computer Science and Control”of RAS</institution>
          ,
          <addr-line>117333, Moscow, Vavilova str., 40</addr-line>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>[9] Yin Fan, Xiangju Lu, Dian Li, Yuanliu Liu. Video-based emotion recognition using CNN-RNN and C3D hybrid networks. // Conference: International Conference on Multimodal Interaction</institution>
          ,
          <addr-line>At Tokyo</addr-line>
          ,
          <country country="JP">Japan</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <fpage>342</fpage>
      <lpage>345</lpage>
      <abstract>
        <p>In this paper the usage of convolution neural networks has been considered for solving the problem of emotion recognition by images with facial expression. Emotion recognition is a complex task and the result of recognition is highly dependent on the choice of the neural network architecture. In this paper various architectures of convolutional neural networks were reviewed and training experiments were conducted on selected neural networks. The overviewed neural network architectures were trained on FER2013 and AffectNet datasets, both widely used for emotion recognition experiments. A comparison of the selected neural network architectures was made using the accuracy metrics. At the end of this paper the comparative analysis was made and obtained results were overviewed.</p>
      </abstract>
      <kwd-group>
        <kwd>emotion recognition</kwd>
        <kwd>deep learning</kwd>
        <kwd>convolution neural networks</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Prerequisites and the concept of emotion recognition</title>
      <p>Emotion recognition is one of the hottest topics in artificial intelligence today. At first glance,
it seems to be poorly applicable in everyday life in fact can be widely useful in various interesting
areas. The use of emotion recognition technology is very diverse. You can build behavioral models of
people, evaluate the quality of customer service in stores and conduct marketing research, supplement
additional analytics into systems of “smart” cities, assess the emotional state of students and much
more.</p>
      <p>
        Emotion is a special kind of mental processes that express the human experience of their
relationship to the world and themselves. Emotions play a huge role in human life and interpersonal
communication. Emotions can be expressed in various ways and through various sources: facial
expressions, gestures, posture, motor responses, voice. However, the face of a person possesses the
most informative and the reason of it lays in its expressiveness. Each person expresses emotions in
different ways, but all of them have a common basis. American psychologist Paul Ekman in one of his
studies found that there is a set of emotions that are universal and can be understood by another person
regardless of race, culture or gender. Such "basic" emotions are joy, surprise, anger, fear, sadness,
disgust, contempt [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        This categorical model allowed researchers to start working towards constructing first emotion
classifiers. After the acceptance of convolutional neural networks as strong technology in 2012 and its
subsequent development it became possible to process images in order to detect and classify emotions
in images of people's faces [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. This work formed the basis for a new direction of science - emotions
recognition. In addition to the described categorical model, there are some other ones. Emotions can
be detected via key points (action units) and their movements. Result depends on movements of these
points and the correspondence of these movements to a specific set of action unit rules [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. In addition,
a valence-arousal scale that provides a more flexible two-parameters-way to define emotions [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
Nevertheless, one way or another in the end it all comes down to “basic” emotion model.
      </p>
      <p>The concept of emotions recognition through images consists of two steps:
1. Search for and detect faces in the image.
2. Classify emotions.</p>
      <p>Moreover, if with the first step there are no problems today then the second one causes certain
difficulties. Today there are a number of international competitions in emotion recognitions in which
participants struggle finding the optimal models of neural networks in order to get greater accuracy
values.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Our research</title>
      <p>The first emotion recognition competition was the “Challenges in Representation Learning:
Facial Expression Recognition Challenge” competition (FER2013) launched on the Kaggle platform
in 2013. Participants were asked to create a classifier that would classify emotions from a photograph
of a person’s face choosing emotions from seven classes. Those classes were taken from the Paul
Ekman’s research described earlier in this paper. The dataset consists of 35 thousand grayscale images
and each image is 48 by 48 pixels in size. Any Kaggle user is allowed to take a part in this competition
even today. The small size of dataset and its general accessibility made it possible for this dataset to
become leading and most used at the first research stages in the development of neural networks for
recognition of emotions. Today, almost all researchers in this field use the FER2013 dataset to test the
workings of the proposed and developed algorithms and models.</p>
      <p>
        For comparison, the largest publicly available dataset for emotion recognition is AffectNet.
AffectNet contains about a million color high-resolution images [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. However, even this amount of
data is not enough to achieve high training accuracy values.
      </p>
      <p>The growth of neural network technologies directly connected to the growth of computing
power and the development of cloud computing. This helped to create new types of neural networks
and develop a huge variety of complicated neural network architectures. To date, there has been
tremendous progress in artificial intelligence technologies. The best models of neural networks could
track and detect different objects with an accuracy above of 98%. Despite this, today researchers who
engaged in the emotion recognition get mean accuracy results in the range from 60% to 70%. It can be
justified by the features of the research field itself. A person's face can express several emotions at
once and a neural network is prone to be mistaken choosing between them. Positive emotions are
detected quite accurately, but the negative ones can be tangled. Such results are not bad and they allow
conducting the research itself clearly showing how the proposed methods and algorithms work.
Nevertheless, those accuracy values are not enough for applying emotion recognition technologies in
production systems.</p>
      <p>There are many competitions being held and not all of them are dedicated only to emotion
recognition through people's face, but they are connected with this source of information in one way or
another.</p>
      <p>
        EmotioNet competition offers participants to train neural networks using action units
dateset [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. At the 2017 competition the accuracy of the model proposed and trained by the winning
team was about 60% [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>The Multimodal Emotion Recognition Challenge (MERC) challenged participants in defining
emotions by a combination of voice, face, and movement. The training dataset consisted of thousands
of small videos. The accuracy result of the winner was 67.9%.</p>
      <p>
        In the Emotion Recognition in the Wild Challenge (EmotiW) participants were faced with
several tasks one of which is similar to the MERC competition. The winners' results ranged from
59.7% to 60.3%, [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].One of the participating teams suggested using four neural networks in parallel
execution with the result averaging [8].
      </p>
      <p>In addition to competitions, comparative characteristics are also being made. Table 1 presents
the results of pre-trained neural networks with popular architectures that were retrained with the
FER2013 dataset [9].</p>
      <p>As it can be seen from table 1 there is no dependency between the depth of an neural network
and the result. Moreover, deeper neural networks do not always have the best results. Each of the
presented networks was pre-trained on ImageNet dataset excluding VGG16-FACE that was trained on
the facial detection. Probably that causes that the result is the best among those presented networks.</p>
      <p>In this work we attempted to create our own model of a neural network and train it from
scratch using the FER2013 dataset that has been already discussed in this paper. The neural network
architecture is simple and consists of 11 layers: 4 consecutive blocks of a convolutional layer and a
pooling layer and 3 fully connected layers. Neural network training was conducted on virtual
machines in the Amazon Web Services cloud for 20 hours on 1 GPU. The result of training was 62%
for the validation batch of samples and 60% for the test batch. This is not that bad comparing to the
results of neural networks presented in the table 1.</p>
      <p>In addition, as part of this work, a second training experiment was conducted on same model
with the use of the AffectNet dataset. The result is 71% validation accuracy and 67% on the test
sample. This result is still in the range of values and to the further improvement, it requires both the
study of the model itself and additional work with the data.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Future work</title>
      <p>In order to improve the practical results of the research we plan to re-train the proposed neural
network on the FER2013 dataset extended by augmentation [10]. An increase of data and its
normalization (even distribution of training samples across emotion classes) can help to get a better
result.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>In this paper emotion recognition neural network models and the results of major competitions
have been reviewed and a practical study was conducted. Training results that have been achieved
does not so far behind training results obtained by most researchers in this field. Thus, now it is easy
to assume that everyone can start working on the problem of emotion recognition and it does not
require much. Actually, results of such studies can be quite strong (for the first step).</p>
      <p>Unfortunately, solution of the problem of emotion recognition and real production systems are
still very far away. First, it requires the accumulation of data for training, as well as the construction of
new models and the development of new methods, such as combining several neural networks and
averaging the result or using various sources taken together, such as detecting emotions by facial
expression and voice or face and gestures.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgement References</title>
      <p>The work was supported by the grant of RFBR 17-07-01558.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Ekman</surname>
            <given-names>P.</given-names>
          </string-name>
          <article-title>Basic emotions</article-title>
          . // In T. Dalgleish and
          <string-name>
            <given-names>M.</given-names>
            <surname>Power</surname>
          </string-name>
          (Eds.).
          <source>Handbook of Cognition and Emotion</source>
          . Sussex, U.K.: John Wiley &amp; Sons, Ltd.,
          <year>1999</year>
          , pp
          <fpage>45</fpage>
          -
          <lpage>60</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Krizhevsky</surname>
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sutskever</surname>
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hinton</surname>
            <given-names>G.</given-names>
          </string-name>
          <article-title>ImageNet classification with deep convolutional neural networks</article-title>
          .
          <source>// NIPS'12 Proceedings of the 25th International Conference on Neural Information Processing Systems - Volume</source>
          <volume>1</volume>
          ,
          <year>December 2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>N.</given-names>
            <surname>Hussain</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Ujir</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I. Hipiny</given-names>
            ,
            <surname>J-L Minoi</surname>
          </string-name>
          .
          <article-title>3D Facial Action Units Recognition for Emotional Expression</article-title>
          . // Advanced Science Letters Volume
          <volume>24</volume>
          (
          <issue>ICCSE2017</issue>
          ),
          <year>December 2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Ali</given-names>
            <surname>Mollahosseini</surname>
          </string-name>
          , Behzad Hasani,
          <string-name>
            <surname>Mohammad</surname>
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Mahoor</surname>
          </string-name>
          .
          <article-title>AffectNet: A Database for Facial Expression</article-title>
          , Valence, and
          <article-title>Arousal Computing in the Wild</article-title>
          . // IEEE Transactions on Affective Computing,
          <year>August 2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>C.</given-names>
            <surname>Fabian</surname>
          </string-name>
          Benitez-Quiroz, Ramprakash Srinivasan,
          <string-name>
            <surname>Aleix</surname>
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Martinez. EmotioNet</surname>
          </string-name>
          :
          <article-title>An accurate, real-time algorithm for the automatic annotation of a million facial expressions in the wild</article-title>
          . // IEEE Conference on
          <article-title>Computer Vision and Pattern Recognition (CVPR)</article-title>
          ,
          <year>December 2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>C.</given-names>
            <surname>Fabian</surname>
          </string-name>
          Benitez-Quiroz, Ramprakash Srinivasan,
          <string-name>
            <surname>Aleix</surname>
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Martinez. EmotioNet Challenge</surname>
          </string-name>
          <article-title>: Recognition of facial expressions of emotion in the wild</article-title>
          . // March 2017
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Abhinav</given-names>
            <surname>Dhall</surname>
          </string-name>
          , Roland Goecke, Shreya Ghosh,
          <string-name>
            <given-names>Jyoti</given-names>
            <surname>Joshi</surname>
          </string-name>
          . From Individual to Group-Level
          <source>Emotion Recognition: EmotiW 5.0. // Proceedings of the 19th ACM International Conference on Multimodal Interaction</source>
          , pp
          <fpage>524</fpage>
          -
          <lpage>528</lpage>
          ,
          <year>November 2017</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>