<!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 Identification using Chroma Features</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Adrian Iftene</string-name>
          <email>adiftene@infoiasi.ro</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrei Rusu</string-name>
          <email>rusu.andrei@infoiasi.ro</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alexandra Leahu</string-name>
          <email>alexandra.leahu@infoiasi.ro</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>UAIC: Faculty of Computer Science, “Alexandru Ioan Cuza” University</institution>
          ,
          <addr-line>General Berthelot, 16, 700483, Iasi</addr-line>
          ,
          <country country="RO">Romania</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper some specific issues related to Music Information Retrieval (MIR) are presented. First part is dedicated to introductive notions from this field in the field, and second part is dedicated to giving details about the system we built for MusiCLEF 2011. An important aspect related to our work is related to searching metrics able to allow us to identify an audio recording in a database with existing songs. Our system uses chroma features associated to a song and apply on it many types of metrics. Some of these metrics wants to find more accurate song of which part of that fragment belong to and other metrics are used to enable us to do this as quickly as possible.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>In the last years, we have seen an explosion in terms of the number of existing audio
files on the Internet (music files, video files, audio streaming, etc.). Music
Information Retrieval (MIR) is devoted to the study of methodologies for automatic
music access. Today, although MIR usually focuses on content-based approaches,
music search facilities in commercial systems are still based on simple keyword
matching between music tags, with additional exploitation of user profiling and
collaborative filtering approaches1.</p>
      <p>As the organizers say, MusicCLEF 2011 aims at promoting the development of
new methodologies that allow us direct access to audio files, combined with the use of
knowledge from the database associated with audio files. For that, organizers allowed
access to information automatically extracted from audio files, and additional they
allowed access to contextual information provided by users who have had access to
their tags or comments and reviews associated with them.</p>
      <p>In edition 2011, the organizers propose two tasks: Content and Context-based
Music Retrieval and Music Identification2. For this exercise they offer to participants
a test collection of about 10,000 songs stored in MP3 format for both tasks. First task,
Content and Context-based Music Retrieval is a categorization task and it aims to
combine information automatically extracted about the content with information
generated by user. The second task, Music Identification is closed to what MIR
meaning, and it has aim to automatically identify an audio recording and to cluster a
group of recordings in the same group.</p>
      <p>In the following chapters we present the basic notions used in this paper and the
details about our group approach in an attempt to build a system for the second related
to Music Identification task.</p>
    </sec>
    <sec id="sec-2">
      <title>2 Basic notions</title>
      <sec id="sec-2-1">
        <title>Sound</title>
        <p>
          The first definition of sound from the American Heritage Dictionary of the English
language is [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]:
        </p>
        <p>Vibrations transmitted through an elastic solid or a liquid or gas, with frequencies
in the approximate range of 20 to 20,000 hertz, capable of being detected by human
organs of hearing.</p>
        <p>The propagation of sound3 is a sequence of waves of pressure which propagates
through compressible media such as air or water or even solids. During their
propagation, waves can be reflected, refracted, or attenuated by the medium. All
media have three properties which affect the behavior of sound propagation:
1. A relationship between density and pressure determines the speed of sound
within the medium.
2. The motion of the medium itself (e.g., wind): if the medium is moving, the
sound is further transported.
3. The viscosity of the medium determines the rate at which sound is attenuated.</p>
        <p>For many media, such as air or water, attenuation due to viscosity is
negligible.</p>
      </sec>
      <sec id="sec-2-2">
        <title>Pitch</title>
        <p>
          Pitch4 is an auditory perceptual property that allows the ordering of sounds on a
frequency-related scale [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]. Pitches are compared as “higher” and “lower” in the sense
associated with musical melodies [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ], which require “sound whose frequency is clear
and stable enough to be heard as not noise” [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]. Pitch is one of the auditory attribute
of musical tones, along with duration, loudness, and timbre [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ].
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>Octave</title>
        <p>
          In music, an octave5 is the interval between one musical pitch and another with
half or double its frequency. The octave relationship is a natural phenomenon that has
been referred to as the “basic miracle of music,” the use of which is “common in most
musical systems.” [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]
        </p>
      </sec>
      <sec id="sec-2-4">
        <title>Pitch class</title>
        <p>
          In music, a pitch class6 is a set of all pitches that are a whole number of octaves
apart, e.g., the pitch class C consists of the Cs in all octaves. “The pitch class C stands
3 The propagation of sound: http://www.jhu.edu/virtlab/ray/acoustic.htm
4 Pitch: http://en.wikipedia.org/wiki/Pitch_%28music%29
5 Octave: http://en.wikipedia.org/wiki/Octave
6 Pitch class: http://en.wikipedia.org/wiki/Pitch_class
for all possible Cs, in whatever octave position.” [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] Psychologists refer to the quality
of a pitch as its “chroma”.
        </p>
      </sec>
      <sec id="sec-2-5">
        <title>Chroma</title>
        <p>
          A chroma7 is an attribute of pitches. Similar, a “pitch class” is a set of all pitches
sharing the same chroma. The concept behind chroma is that octaves play a basic role
in music perception and composition [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. Chroma features have been already used in
music retrieval applications [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. Thus, the application of chroma features to
identification task has been already been proposed for classical [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] and for pop [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]
music.
3
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Metrics</title>
      <p>For the MusiCLEF 2011, the organizers provide a set of songs which are described by
Chroma vectors. In order to extract chroma from mp3 songs, they used the
MIRToolbox8. Chroma features are considered as pointers to the recordings they
belong to, playing the same role of words in textual documents. The information on
the time position of chroma features is used to directly access to relevant audio
excerpts.</p>
      <p>Chroma features consist of a twelve-element vector with each dimension
representing the intensity associated with a particular semitone, regardless of octave.
The vector has one single integer value and it is obtained through a hashing function.
For each song we have a file that contains many chroma vectors that describes the
respective mp3 song. We also have a set of fragments of songs that are also described
by these vectors.</p>
      <p>An example of this type of vector is:
0.98892, 0.95418, 0.89027, 0.93907,
0.71884, 0.72182, 0.89031, 0.9806, 0.85977, 1
0.75066,
0.77229,</p>
      <p>We can see this vector as a point in a n-dimensional space (with n equal to 12).
From this point of view we decide to use n-dimensional metrics in order to calculate
distance between chroma associated to songs from our database (Alicante fonoteca in
our case).</p>
      <sec id="sec-3-1">
        <title>3.1 Euclidian Metrics</title>
        <p>First used metric was Euclidean9 distance. In a n-dimensional space if we have two
points = ( , , … , ) and = ( , , … , ) then we can define the Euclidean
distance between p and q the following value:
7 Chroma: http://en.wikipedia.org/wiki/Pitch_class
8 MIRToolbox: https://www.jyu.fi/hum/laitokset/musiikki/en/research/coe/materials/mirtoolbox
9 Euclidean distance: http://en.wikipedia.org/wiki/Euclidean_distance</p>
        <p>In this case p represents a chroma vector from a song from Alicante fonoteca
database (more precisely p represent a line from a file associated to a song), and q
represents a chroma vector for a fragment that need to be identified.</p>
        <p>Based on this Euclidian distance we define a global Euclidean distance, like a sum
of Euclidean distances corresponding to all consecutive lines from file associated to
the song that must be identified and consecutive lines from a song from our database.
The sequence of lines, from our song, from database, which has the global Euclidian
distance with minimum value, given to us the minimum global Euclidean distance.</p>
        <p>In order to classify a song, we need to calculate all possible minimum global
Euclidean distances between it and songs from our database and in the end to select
the song with minimum global Euclidian distance. In the end we decide that this song
is similar with the song from database with shortest minimum global Euclidean
distance.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2 Relative Euclidian Metrics</title>
        <p>This metric is based on Euclidian metrics, but it aims to eliminate similar differences
which exist on different octaves in two chromas. Thus, in a n-dimensional space if we
have two points = ( , , … , ) and = ( , , … , ) then we define the
Relative Euclidean distance between p and q the following value:</p>
        <p>In comparison with above metric, this metric comes to cover cases when a song is
written in other gamma. Obviously it is possible that this metric does not always work
well, but we want that after tests on training data, to find a way to automatically
identify cases where it would be preferable to use.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3 Scalability Metrics</title>
        <p>Because it is possible to have very many songs in our database is possible like above
metrics not be effective, in terms of scalability. From this reason we try to find a way
to reduce the search space, making an obvious reduction in quality of final solutions.
For this case instead to consider all lines from a file with chromas associated to a
song, we consider the following values for all octaves from these files: minimum,
average and maximum value. In this way instead to consider around 30,000 lines for a
song from our database and instead to consider around 5,000 lines for a song that
must be identified, we consider only three lines of values for both types of files. Thus
for two songs s1 and s2 there are two metrics available based on Euclidian metrics
from above:
( , ) =
(
) +
(
!,
!) +
(
",
" )
and</p>
      </sec>
      <sec id="sec-3-4">
        <title>3.4 Combined Metrics</title>
        <p>These metrics start from scalability metrics, but instead to keep only the minimum
value, we keep first 10 lowest values. On these 10 lowest values we apply
corresponding Euclidian or Relative Euclidian metrics and we identify the most
suitable file. In this way we perform a faster identification using the scalability
metrics from 3.3, and then using the basic metrics from 3.1 and 3.2 we refine the
search and in the end we obtain a better solution.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Experiments</title>
      <p>Another idea that we had was to use clustering algorithms in order to identify
similarities between songs, and similarities between different parts of the same song.
Thus we first tried to accomplish that using some Java machine learning libraries that
are available (such as Java-ML10), we soon observed that much faster results can be
computed in MATLAB11.</p>
      <p>So far, we used the k-means clustering method with the Euclidean distance
measure (and also implemented some efficient methods to compute the global
Euclidean distance between n points), and we partitioned each set of chroma vectors
into ten clusters. The result is a vector representing each song and containing the
cluster indices of each point. Also, in addition to that, we made use of a vector
containing the within-cluster sums of point-to-centroid distances. Of course, this raw
data would be of no use unless processed in the right way, and since the results
described so far were computed for individual songs, is natural that for finding
similarities between different songs we have to use this data, but apply
metaclustering algorithms on it. Also, we are currently working on a more precise
classifier which will enable us the make even more accurate predictions.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Instead of conclusions</title>
      <p>Until now, our current work was related to find metrics that allow us to identify a
song and to classify it accordingly to chroma features associated to it. The results
10 Java Machine Learning Library: http://java-ml.sourceforge.net/
11 MATLAB: http://www.mathworks.com/products/matlab/index.html
obtained until now are promising, but in the next period we must use the training data
and to identify thresholds, that will allow us to say that a song is in our database or
not.</p>
      <p>Another big problem until now was related to scalability of our work, and from this
reason we try to find suitable metrics that can be applied in real time. This problem
will give us another future direction in our work related to combination of Euclidian
metrics with scalability metrics.</p>
      <p>Acknowledgements. The research presented in this paper was funded by the Sector
Operational Program for Human Resources Development through the project
“Development of the innovation capacity and increasing of the research impact
through post-doctoral programs” POSDRU/89/1.5/S/49944.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <article-title>The American Heritage Dictionary of the English Language, Fourth Edition</article-title>
          , Houghton Mifflin Company,
          <year>2000</year>
          ,
          <source>archived from the original on June 25</source>
          ,
          <year>2008</year>
          , retrieved May 20, (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Klapuri</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Davy</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Signal processing methods for music transcription</article-title>
          . Springer. p.
          <fpage>8</fpage>
          . ISBN 9780387306674.
          <article-title>(</article-title>
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Plack</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <source>Pitch: Neural Coding and Perception. Springer. ISBN 0387234721</source>
          .
          <article-title>(</article-title>
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Don</surname>
            <given-names>Michael</given-names>
          </string-name>
          , R. ed.:
          <source>The Harvard Dictionary of Music</source>
          (4 ed.). Harvard University Press. p.
          <fpage>499</fpage>
          . ISBN 9780674011632.
          <article-title>(</article-title>
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Patterson</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gaudrain</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Walters</surname>
          </string-name>
          , T. C.
          <article-title>: The Perception of Family and Register in Musical Tones</article-title>
          . In Mari Riess Jones, Richard R. Fay, and
          <string-name>
            <surname>Arthur</surname>
            <given-names>N.</given-names>
          </string-name>
          <string-name>
            <surname>Popper</surname>
          </string-name>
          .
          <source>Music Perception</source>
          . Springer. pp.
          <fpage>37</fpage>
          -
          <lpage>38</lpage>
          . ISBN 9781441961136.
          <article-title>(</article-title>
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Cooper</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Perspectives in Music Theory: An Historical-Analytical Approach</article-title>
          .
          <source>Pag. 16. ISBN 0-396-06752-2</source>
          . (
          <year>1973</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Whitall</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          : The Cambridge Introduction to Serialism (New York: Cambridge University Press,
          <year>2008</year>
          ):
          <fpage>276</fpage>
          .
          <source>ISBN 978-0-521-68200-8</source>
          . (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Bartschand</surname>
            ,
            <given-names>M. A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wakefield</surname>
            ,
            <given-names>G. H.</given-names>
          </string-name>
          :
          <article-title>Audio Thumbnailing of Popular Music Using Chroma-based Representations</article-title>
          .
          <source>IEEE Transactions on Multimedia</source>
          . (
          <year>1996</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Miotto</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Orio</surname>
          </string-name>
          , N.:
          <article-title>A Music Identification System Based on Chroma Indexing and Statistical Modeling</article-title>
          .
          <source>International Symposium/Conference on Music Information Retrieval</source>
          . Pp.
          <volume>301</volume>
          -
          <fpage>306</fpage>
          . (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Müller</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kurthand</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Clausen</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Audio Matching Via Chroma-based Statistical Features</article-title>
          .
          <source>Proceedings of the International Conference of Music Information Retrieval</source>
          , London, UK. (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Hu</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dannenberg</surname>
            ,
            <given-names>R. B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tzanetakis</surname>
          </string-name>
          , G.:
          <article-title>Polyphonic Audio Matching and Alignment for Music Retrieval</article-title>
          .
          <source>Proceedings of the IEEE Workshop on Applications of Signal Processing to Audio and Acoustics</source>
          . (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>