<!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>Music Emotion Recognition via End-to-End Multimodal Neural Networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Byungsoo Jeon∗</string-name>
          <email>jbsimdicd@gmail.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dongwon Kim</string-name>
          <email>dongwon.kim@navercorp.com</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Chanju Kim</string-name>
          <email>chanju.kim@navercorp.com</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jangyeon Park</string-name>
          <email>jangyeon.park@navercorp.com</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Adrian Kim</string-name>
          <email>adrian.kim@navercorp.com</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jung-Woo Ha†</string-name>
          <email>jungwoo.ha@navercorp.com</email>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Music Emotion Recognition, Music Recommendation, Multimodal</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>RecSys '17 Poster Proceedings, Como, Italy</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>2017.</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Carnegie Mellon University</institution>
          ,
          <addr-line>Pittsburgh, PA</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Clova, NAVER Corp.</institution>
          ,
          <addr-line>Seongnam</addr-line>
          ,
          <country country="KR">Korea</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Neural Network</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2017</year>
      </pub-date>
      <abstract>
        <p>Music emotion recognition (MER) is a key issue in user contextaware recommendation. Many existing methods require hand-crafted features on audio and lyrics. Here we propose a new end-to-end method for recognizing emotions of tracks from their acoustic signals and lyrics via multimodal deep neural networks. We evaluate our method on about 7,000 K-pop tracks labeled as positive or negative emotion. The proposed method is compared to end-to-end unimodal models using audio signals or lyrics only. The experimental results show that our multimodal model achieves the best accuracy as 80%, and we discuss the reasons of these results.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>INTRODUCTION</title>
      <p>Music emotion recognition (MER) is a core technology of
contextaware music recommendation. Users usually want music to amplify
their emotions while partying or driving, for examples. Music
recommendation using content-based MER allows music’s emotion to
be aligned with that of users in these scenarios. However, this is
challenging because it is still unclear how music is causing
emotions. It is known that numerous factors such as tone, pace, and
lyrics are related to determine music emotion.</p>
      <p>
        Existing studies tackle MER in various ways. They mainly
formulate MER as either a classification or a regression problem. Laurier
et al. use four emotion categories in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] while Hu et al. use 18
categories in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. Both of them require additional feature engineering,
such as rhythmic and tonal feature extractions and psychological
feature extractions from words, while our model doesn’t. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]
propose a convolutional recurrent neural network for music tagging,
∗This work was performed in NAVER Corp.
†Corresponding author
inspiring us to extend it to multimodal neural network for MER. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]
and [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] also suggest other neural network models for MER while
formulating regression based on unsupervised learning. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] and [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]
tackle sentence-level MER problem, but we formulate song-level
MER problem because it is more reasonable to recommend to users.
      </p>
      <p>Here we simplify MER as a polarity emotion (positive /
negative) classification of tracks to reduce the uncertainty from many
emotion categories, considering an application to simple music
recommendation scenario. We propose an end-to-end multimodal
neural network models without an additional feature engineering
process. We also create new dataset including tracks served on a
Korean music streaming service to guarantee the high-quality data.
2</p>
    </sec>
    <sec id="sec-2">
      <title>DATA DESCRIPTION</title>
      <p>We describe our dataset from a famous Korean music streaming
service, NAVER Music 0. This consists of 3,742 positive and 3,742
negative tracks with their lyrics, and they are represented into
mel-spectrograms. How could we seperate a positive and negative
track? There are tracks tagged by editors in NAVER Music. We
use a predefined emotion word dictionary to seperate positive and
negative tags. For instance, positive emotion words are ‘happy’,
and ‘cheerful’, while negative emotion words are ‘sad’, and ‘lonely’.
Then, we filter out the tracks whose tags include both positive and
negative words. We reject the tracks whose length is less than a
minute or lyrics include less than 30 words. We use the first one
minute of each mel-spectrograms, and only use noun, verb,
adjective, and adverb in words of lyrics. Finally, each mel-spectrogram
is represented as a 128 by 1024 matrix including 128 mels and 1024
time slots corresponding to one minute length of acoustic signals.
Also, we have (27,496, 400) word vectors where vocabulary size
|V | = 27, 496 and the maximum length of word sequences is 400.
3</p>
    </sec>
    <sec id="sec-3">
      <title>MUTIMODAL DEEP NETWORKS FOR</title>
    </sec>
    <sec id="sec-4">
      <title>MUSIC EMOTIONAL RECOGNITION</title>
      <p>ua = [Maxpoolinд(Conv(xa))]5</p>
      <p>Five 1D convolution layers whose filter sizes are all 3 have 128,
128, 128, 64, and 64 output of filters, respectively. Filter sizes of five
max pooling layers are 3, 3, 3, 2, and 2. We use the exponential
linear unit (elu) function as a non-linear function of convolution
layers.</p>
      <p>On top of that, we put two RNN layers (GRU) whose output
dimensionality is 64 and one fully connected layer whose weight
matrix is F CaW is to build an audio embedding vector va with
length 64 before merging with lyrics branch.</p>
      <p>va = F CaW {GRU 2(ua)}</p>
      <p>At the bottom of the lyrics branch, there is an embedding layer
(weight matrix: F CeW ) whose output dimensionality is 200 followed
by an 1D convolution layer whose filter size and number of output
are 3 and 250 where an input word vector is xl. On top of that, we
put global 1D max pooling layer because it is more robust to noise
words than non-global one. As in the audio branch, there is one
fully connected layer whose weight matrix is F Cl W on it to build
an lyrics embedding vector with length 64.</p>
      <p>vl = F Cl W {GlobalMaxpoolinд(Conv(F CeW xl))}</p>
      <p>We concatenate two branches because it shows the best
performance. Lastly, we produce final output by taking this concatenated
vector as an input of one fully connected layer (weight matrix:
F CmW ) whose output dimensionality is 64 followed by a softmax
layer to compute the binary cross-entorpy loss.</p>
      <p>o = So f tmax (ReLU (F CmW {Concatenate(va, vl)}))</p>
      <p>As a result, output vector o includes two values, the probabilities
of a positive and negative emotional track.
4</p>
    </sec>
    <sec id="sec-5">
      <title>EVALUATION</title>
      <p>We compare the classification accuracies of models using audio,
lyrics, and both. We test five unimodal models and one multimodal
model which consists of the best unimodal models for audio and
lyrics as in Figure 1. To test these models, we implemented them
(1)
(2)
(3)
(4)</p>
      <p>Data Model
Audio CNN</p>
      <p>RNN</p>
      <p>CNN+RNN
Lyrics CNN</p>
      <p>RNN
Both CNN+RNN, CNN
with Keras on Tensorflow while using Tesla M40 GPU. Table 1
shows the classification accuracies for each model. We randomly
split the dataset into 90% for training and the rest for validation,
and obtain the results shown in Table 1 after 5 runs of the test
for each model. 1D CNN + RNN model is the best among models
using audio. 1D CNN model is the best among models using lyrics.
The reason why 1D CNN is better than RNN to predict from lyrics
may be that the word sequences are too long. It is also notable that
the model for lyrics works better than that for audio. Overall, the
multimodal model using audio and lyrics shows the best accuracy,
0.8046. Figure 2 presents validation accuracy and loss of the best
model for each modality (audio, lyrics, both). The model for lyrics
and both shows little more stable convergence than that for audio.
5</p>
    </sec>
    <sec id="sec-6">
      <title>CONCLUSION</title>
      <p>We define MER as a polarity emotion classification and propose a
multimodal neural network model trained in an end-to-end
manner without additional feature engineering. We present lyrics are
better features than audio on our problem, and our multimodal
models proves the best accurcacy, 80% compared to unimodal
models. We will further investigate end-to-end deep learning strategies
with more tracks and emotional categories. Furthermore, we will
apply our method to the context-aware music recommendation
service of Clova, Cloud-based AI-assistant platform developed as a
collaboration project by NAVER-LINE1.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Keunwoo</given-names>
            <surname>Choi</surname>
          </string-name>
          , George Fazekas,
          <string-name>
            <given-names>Mark</given-names>
            <surname>Sandler</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Kyunghyun</given-names>
            <surname>Cho</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Convolutional Recurrent Neural Networks for Music Classification</article-title>
          .
          <source>arXiv preprint arXiv:1609.04243</source>
          (
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Eduardo</given-names>
            <surname>Coutinho</surname>
          </string-name>
          , George Trigeorgis, Stefanos Zafeiriou, and
          <string-name>
            <surname>Björn</surname>
            <given-names>W.</given-names>
          </string-name>
          <string-name>
            <surname>Schuller</surname>
          </string-name>
          .
          <year>2015</year>
          .
          <article-title>Automatically Estimating Emotion in Music with Deep Long-Short Term Memory Recurrent Neural Networks</article-title>
          .
          <source>In Working Notes Proceedings of the MediaEval 2015 Workshop.</source>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Xiao</given-names>
            <surname>Hu</surname>
          </string-name>
          and
          <string-name>
            <given-names>J. Stephen</given-names>
            <surname>Downie</surname>
          </string-name>
          .
          <year>2010</year>
          .
          <article-title>When Lyrics Outperform Audio for Music Mood Classification: A Feature Analysis</article-title>
          .
          <source>In 11th ISMIR</source>
          <year>2010</year>
          .
          <volume>619</volume>
          -
          <fpage>624</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Moyuan</given-names>
            <surname>Huang</surname>
          </string-name>
          , Wenge Rong, Tom Arjannikov,
          <string-name>
            <given-names>Nan</given-names>
            <surname>Jiang</surname>
          </string-name>
          , and Zhang Xiong.
          <year>2016</year>
          .
          <article-title>Bi-Modal Deep Boltzmann Machine Based Musical Emotion Classification</article-title>
          .
          <source>In ICANN</source>
          <year>2016</year>
          .
          <volume>199</volume>
          -
          <fpage>207</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Cyril</given-names>
            <surname>Laurier</surname>
          </string-name>
          , Jens Grivolla, and
          <string-name>
            <given-names>Perfecto</given-names>
            <surname>Herrera</surname>
          </string-name>
          .
          <year>2008</year>
          .
          <article-title>Multimodal Music Mood Classification Using Audio and Lyrics</article-title>
          .
          <source>In 7th ICMLA</source>
          <year>2008</year>
          .
          <volume>688</volume>
          -
          <fpage>693</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Bin</given-names>
            <surname>Wu</surname>
          </string-name>
          , Erheng Zhong,
          <string-name>
            <given-names>Andrew</given-names>
            <surname>Horner</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Qiang</given-names>
            <surname>Yang</surname>
          </string-name>
          .
          <year>2014</year>
          .
          <article-title>Music Emotion Recognition by Multi-label Multi-layer Multi-instance Multi-view Learning</article-title>
          .
          <source>In ACM MM</source>
          <year>2014</year>
          .
          <volume>117</volume>
          -
          <fpage>126</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Yi-Hsuan</surname>
            <given-names>Yang</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Yu-Ching</surname>
            <given-names>Lin</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ya-Fan Su</surname>
          </string-name>
          , and
          <string-name>
            <surname>Homer</surname>
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Chen</surname>
          </string-name>
          .
          <year>2008</year>
          .
          <article-title>A Regression Approach to Music Emotion Recognition</article-title>
          .
          <source>IEEE Trans. Audio, Speech &amp; Language Processing 16</source>
          ,
          <issue>2</issue>
          (
          <year>2008</year>
          ),
          <fpage>448</fpage>
          -
          <lpage>457</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>