<!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>
      <journal-title-group>
        <journal-title>September</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>From Sensors to Songs: A learning-free novel music recommendation system using contextual sensor data</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Abhishek Sen, Martha Larson Intelligent Systems Delft University of Technology</institution>
          ,
          <country country="NL">Netherlands</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2015</year>
      </pub-date>
      <volume>19</volume>
      <issue>2015</issue>
      <abstract>
        <p>Traditional approaches for music recommender systems face the known challenges of providing new recommendations that users perceive as novel and serendipitous discoveries. Even with all the music content available on the web and commercial music streaming services, discovering new music remains a time consuming and taxing activity for the average user. The goal for our proposed system is to provide novel music recommendations based on contextual sensor information. For example, contextual place information can be inferred with intelligent use of techniques such as geo-fencing and using lightweight sensors like accelerometers and compass to monitor location. The inspiration behind our system is that music is not in the past, neither in the future, but rather enjoyed in the present. For this reason, the system does not rely on learning the user's listening history. Raw sensor data is fused with information from the web, passed through a cascade of Fuzzy Logic models to infer the user's context, which is then used to recommend music from an online music streaming service (SoundCloud) after ltering out songs based on genre preferences that the user dislikes. This paper motivates and describes the design for a mobile application along with a description of tests that will be carried out for validation.</p>
      </abstract>
      <kwd-group>
        <kwd>Context-aware</kwd>
        <kwd>Music recommender systems</kwd>
        <kwd>Fuzzy logic</kwd>
        <kwd>Sensor data fusion</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Categories and Subject Descriptors</title>
      <p>H.3.3 [Information Storage and Retrieval]: Information
Search, Retrieval and Filtering</p>
    </sec>
    <sec id="sec-2">
      <title>1. INTRODUCTION</title>
      <p>Music plays a central role in the daily lives of many people.
Today, music streams are readily available through services
such as YouTube, Spotify and Apple Music. However, the
process of discovering music remains a tedious and
unpleasant experience. With a general trend towards streaming
music as opposed to downloading music, many music services
aim to learn user music tastes and listening behaviors to
provide personalized music recommendations. The
assumption of the learning approach, namely, that past behavior
is a good predictor of future behavior, is certainly not ill
founded. Such services will certainly satisfy users looking for
a highly predictable music experience. However, users
interested in expanding their music horizons will not be satis ed
by algorithms that rely on previous listening history or
preferences (artist/genre), since they do not support new music
discovery. Such algorithms fail to provide the serendipity
that is extremely important for users to discover music that
is new, but is also not completely alien to them. Instead, to
design the system presented here, we make a new
assumption. We consider music listening to be independent of the
past (history) or the future (prediction) and instead consider
it as a function of the present (current context). We use the
term context to refer to the sum of a user's experience at a
given moment, including place, surroundings, activities that
the user is currently pursuing and atmospheric e ects on the
user's mood. We assume that listeners have similar
expectations of which music ts a particular context. We rely on
the idea that this collective conception of `music that ts
a moment' will provide users with a sense that the
recommendations of our system t their current needs, and at the
same time allow them to discover music that they would not
have otherwise found themselves.
2.</p>
    </sec>
    <sec id="sec-3">
      <title>RELATED WORK</title>
      <p>
        There is a large volume of prior research in the eld of
context-aware music recommender systems (e.g., [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], [?],
[
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]). Bonnin and Jannach present a comprehensive
literature survey on automated playlist generation and
categorize existing approaches in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. They mention the
importance of context in automatic playlist generation and also
how similarity-based algorithms are an obvious approach
when the system's goal is to maximize the homogeneity of
the playlist. As a downside, serendipity and diversity are
negatively a ected since most songs recommended will be of
a similar type, i.e., the same with respect to artist or genre.
One of their core recommendations for future research is to
assess multiple criteria at the same time and explore the
trade-o s between homogeneity and diversity of playlists.
Our system, explained further in Section 5, addresses these
recommendations by balancing diversity and homogeneity
and does not rely on learning the user's past listening
behaviors.
      </p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], Wang et. al propose a system that is
contextaware, probabilistic and learns the user's listening habits
over time for better recommendations. Their system
utilizes contextual sensor data and integrates this information
with music content analysis to provide relevant music
recommendations per context. However, the study requires the
musical signal of the songs to be pre-analyzed by music
analysis and was also evaluated with o ine music. In the version
presented in this paper, our system instead focuses on
music metadata that is directly available and does not rely on
learning the user's listening behaviors. Okada et. al present
a system in [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] that focuses on the user interface aspects
of context-aware music recommender systems, an area
often ignored by researchers. One of their core objectives is
to explore how context plays a key role in a user's listening
behavior and how this information can be conveyed to the
user. In the next sections, we will see how this prior work
inspired key design choices in our system.
      </p>
    </sec>
    <sec id="sec-4">
      <title>DESIGN CONCEPT</title>
      <p>Our main design concept is|as the title states|from
sensors to songs. We want to recommend novel music to users
by inferring their context from sensory data. To achieve the
desired surprise and delight factor, the system should not
have to learn the user's music tastes and listening behavior.
We believe this non-learning characteristic of the system to
be, currently, a quite radical approach to music
recommendation. It allows users to discover new music continually
without any impediments, such as the need to interact
frequently with the system. Through inference of user
preferences based on collection-wide user experiences of context,
we think the system will achieve a level of personalization
that is ideal for music recommender systems|without the
need to learn everything about the user's listening history.</p>
      <p>We are aware that user music preferences are also highly
personal. However, instead of making the assumption that
music recommendation is \all about personalization", our
system strives to integrate \minimum necessary
personalization". We do this in two ways. First, we rely on the
idea of the context as mentioned above. The situations in
which users nd themselves can be expected to re ect their
lifestyles and overall music preferences for places and
activities. A system like ours that relies on collective music
preferences of users for speci c contexts, is actually
providing a level of personalization, albeit indirectly. Second, we
allow users a minimum degree of control, e.g., in excluding
songs from genres that the user dislikes.</p>
    </sec>
    <sec id="sec-5">
      <title>DESIGN METHODOLOGY</title>
      <p>Inspired by the design concept, our system focuses on
providing novel music recommendations with an emphasis
on incorporating contextual user information. Our design
methodology aims to inform the possibilities for a
sensorbased music recommender, with a user centered approach.
The goal of sensors embedded within any device is to `sense'
the environment for information such as temperature,
acceleration etc. This inherent capability of sensors makes them
an ideal choice for use in interpreting user context, especially
since most users carry `smart' devices such as smartphones
close to them at all times. This allows the system to respond
to major context changes implicitly without requiring any
user action. It is also important for our system to be
lightweight and run e ciently and not drain the device's battery
during normal usage.</p>
      <p>
        Given that the context inference might not be perfect due
to `noisy' sensory data, we want to give the user a choice of
playlists. As discussed in our design concept, to exploit the
communal behaviors of music listening across di erent
contexts, we will generate contextual tags to retrieve music from
SoundCloud1. Knees and Schedl [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] discuss tags as a form
of text-based approach given their community-based
characteristics. SoundCloud has a music database of over 100
million songs, which are richly annotated with tags. Tags of
a track that are related to the context provide us with
evidence that listeners generally associate the track with that
context. Contextual tag-based queries then allow us to
retrieve songs from SoundCloud that both, t contexts and
allow users to discover new music.
      </p>
      <p>We conducted an intensive focus group study with 6
Master's students from di erent faculties at the Delft University
of Technology and the feedback gave us key insights for our
design process. All of them described music discovery as
a tedious and challenging activity even with all the music
available on the web. They described their ideal music
recommender system would know which song to play for any
given situation and not just based on their past history.</p>
      <p>One of their main complaints about current music
recommender systems was that most systems tend to repeat the
same type of songs unless the user has explicitly made a
di erent selection. They were also of the opinion that even
though such a system might provide `bad' recommendations
at times, they would simply move on to the next song and
continue listening. This insight suggested that our system
does not have to infer the user context perfectly and that we
could hedge our predictions by providing the user a choice of
playlists for the most likely contexts. The group also
mentioned that they all had di erent music tastes and each had
their own music preferences for di erent contexts|this led
us to include a genre preferences block as shown in Figure
1 so that in addition to knowing what the user enjoyed
listening to of late, more importantly, the system \knows" the
kind of music the user really does not enjoy hearing.
5.</p>
    </sec>
    <sec id="sec-6">
      <title>PROPOSED SYSTEM</title>
      <p>The proposed system architecture as shown in Figure 1 is
the materialization of our design concept, methodology, and
the focus group feedback. The system is divided into three
main components: context inference, music retrieval/analysis
and music recommendation.
5.1</p>
    </sec>
    <sec id="sec-7">
      <title>Context Inference</title>
      <p>Context inference as shown in Figure 1 is done by fusing
sensor data and passing it through fuzzy logic models.
5.1.1</p>
      <sec id="sec-7-1">
        <title>Sensors</title>
        <p>1https://developers.soundcloud.com/docs/api/reference</p>
        <p>Using fuzzy logic for context inference makes the system
extremely exible and easy-to-understand, and allows it to
process imprecise sensor data with ease. Motivated by our
non-learning design concept, fuzzy logic makes it possible
to translate user-supplied human language rules into
mathematical values that can be used for making decisions, thus
making the system logic easily understandable. Given the
computational challenges of fusing multi-modal sensor data,
fuzzy logic provides an extremely light-weight and e cient
technique. The Fuzzy Logic Context Modeling block
comprises two main internal models as shown in Table 2.</p>
        <p>
          The Atmospheric-based model generates values for
valence and arousal based on prior psychology research on the
impacts of di erent weather factors on people's mood (e.g.,
[
          <xref ref-type="bibr" rid="ref3">3</xref>
          ], [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]). Weather information is integrated into the system
using Yahoo API2. Mood is a very di cult characteristic to
judge on a personal level|especially since everyone's mood
could be in uenced by a multitude of factors. For this
reason, we decided to use the most important weather condition
factors that are thought to most universally a ect people in
a certain geographic area to get a rough estimate of which
quadrant of Russell's widely accepted circumplex model of
a ect the user might be in [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ]. The objective here is not to
accurately determine the user's mood but to get a general
idea depending on the impacts of weather on their mood.
5.1.4
        </p>
      </sec>
      <sec id="sec-7-2">
        <title>Situation-Based Context Model</title>
        <p>For the situation-based context model, the focus group
results informed us of the most common situations in which
participants listen to music and we chose to pick the top 7
for our system: waking up, commuting, working/studying,
exercising, relaxing, housework and sleeping. To determine
the situation, we use fuzzy rules such as the following:</p>
        <p>IF Activity IS Stationary AND DayOfWeek IS Weekday
AND TimeOfDay IS Afternoon AND Indoor/Outdoor IS
Indoor AND Place IS O ce THEN Context IS Working or
Studying</p>
        <p>
          The activity states that our system identi es are
stationary, walking, running and driving. These activity states are
provided by the iOS platform. To accurately distinguish
between the stationary and driving state, we utilize GPS to get
the user's speed and make a decision accordingly. The
indoor/outdoor sensor inputs to this model determine whether
the user is indoors or outdoors using sensors such as light
and compass and is adapted from Zhou et. al's proposed
system in [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ]|we do not use cellular signal strength in our
system due to lack of development support on iOS.
2https://developer.yahoo.com/weather/
        </p>
        <p>Our system is currently able to identify ve general place
categories for users|home, o ce, library, gym and other.
These areas are recognized without the user having to
explicitly enter information. The system monitors signi cant
location updates and marks any visited locations as
possible candidates for any of the above ve places in a two-step
process.</p>
        <p>First, using the Foursquare Venues API we reverse geocode
the location's coordinates to the library or gym place
categories. If no results are returned, the visit information is
then passed through an internal fuzzy model to determine
the home and o ce place categories based on fuzzy rules.
Once a place has been annotated with a category (not
always), the system sets up a geofence around it for a speci ed
radius. From this point on, any time the user enters or leaves
this place, a place context change event is triggered and the
user's context is recomputed by processing all the other
sensory inputs as shown in the Situation-based Context Model
in Table 2. If a change in user context is detected, a new
contextual song query is formulated to request a new set of
songs from SoundCloud. The proposed technique of
monitoring places ensures that we do not drain the smartphone's
battery by only using the GPS when needed.
5.2</p>
      </sec>
    </sec>
    <sec id="sec-8">
      <title>Music Retrieval &amp; Recommendation</title>
      <p>
        Once the user's context has been analyzed, the next step
is to retrieve songs from SoundCloud based on this
information. The system performs query expansion using Last.fm
APIs3 to translate the fuzzy model's output into query tags.
For example, for the `Exercising' tag, Last.FM returns a set
of similar tags such as ` tness', `workout' and `motivation'.
These results are aggregated and the top-ten tags are used
by the system for this context. For the weather-to-mood tag
generation process, social mood tags from [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] were used as
tag seeds for the query expansion. Through this process of
query expansion and the ever-evolving music community on
SoundCloud, the chances of retrieving novel music is very
high.
      </p>
      <p>Post song retrieval, the system then performs music
content analysis using the EchoNest APIs4 for each of the
retrieved songs by looking at parameters such as energy and
valence. However, since each song is analyzed at runtime
by uploading the tracks from SoundCloud to EchoNest, this
process takes some time and increases as the song duration
increases. For this reason, this analysis is done in the
background while the user is listening to music. After the songs
have been retrieved from SoundCloud and/or EchoNest, the
system then generates situational-based and
atmosphericbased playlists. It is important at this step that the user
identi es the subtle di erences between the recommended
playlists and we plan on using visual imagery and colors to
convey the contextual di erences to the user.</p>
      <p>The system is currently under development as a mobile
application on the iOS platform on iPhone models 5S and
newer running iOS 85. The evaluation plan is to have about
20-25 participants use the application for a week and answer
the following research questions: \What information shown
3http://www.last.fm/api
4http://developer.echonest.com/docs/v4
5https://developer.apple.com/library/ios/navigation/
on the user interface would make the music
recommendations transparent for users?", \Which modality
(mood-basedcontext or activity-based-context) in uences the user more?",
\Is the content-based re-ranking for song relevancy necessary
for recommendations?".</p>
      <p>Future work in this topic includes a number of challenges
such as removing the hard-coding of contextual tags and
making the tag generation process dynamic. Other
alternatives would be to include playlist titles and tracks within
the recommendations for playlists. Our design concept and
motivations for this system however remain the same|to
expand the musical horizons of users while making the
music discovery process less tedious and more serendipitous.
7.</p>
    </sec>
    <sec id="sec-9">
      <title>ACKNOWLEDGEMENTS</title>
      <p>The contribution of the second author was funded in part
by CrowdRec (EC FP7 Project 610594).
8.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>G.</given-names>
            <surname>Bonnin</surname>
          </string-name>
          and
          <string-name>
            <given-names>D.</given-names>
            <surname>Jannach</surname>
          </string-name>
          .
          <article-title>Automated generation of music playlists: Survey and experiments</article-title>
          .
          <source>ACM Comput. Surv.</source>
          ,
          <volume>47</volume>
          (
          <issue>2</issue>
          ):
          <volume>26</volume>
          :1{
          <fpage>26</fpage>
          :
          <fpage>35</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>D.</surname>
          </string-name>
          <article-title>Gri ths, S. Cunningham, and</article-title>
          <string-name>
            <given-names>J.</given-names>
            <surname>Weinel</surname>
          </string-name>
          .
          <article-title>A discussion of musical features for automatic music playlist generation using a ective technologies</article-title>
          .
          <source>In Audio Mostly Conference, AM '13</source>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Hannak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Anderson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. F.</given-names>
            <surname>Barrett</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Lehmann</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mislove</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Riedewald</surname>
          </string-name>
          .
          <article-title>Tweetin' in the rain: Exploring societal-scale e ects of weather on mood</article-title>
          .
          <source>In International AAAI Conference on Weblogs and Social Media</source>
          ,
          <source>ICWSM `12</source>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>E.</given-names>
            <surname>Howarth</surname>
          </string-name>
          and
          <string-name>
            <surname>M. S.</surname>
          </string-name>
          <article-title>Ho man. A multidimensional approach to the relationship between mood and weather</article-title>
          .
          <source>British Journal of Psychology</source>
          ,
          <volume>75</volume>
          (
          <issue>1</issue>
          ):
          <volume>15</volume>
          {
          <fpage>23</fpage>
          ,
          <year>1984</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>P.</given-names>
            <surname>Knees</surname>
          </string-name>
          and
          <string-name>
            <given-names>M.</given-names>
            <surname>Schedl</surname>
          </string-name>
          .
          <article-title>A survey of music similarity and recommendation from music context data</article-title>
          .
          <source>ACM Trans. Multimedia Comput. Commun. Appl.</source>
          ,
          <volume>10</volume>
          (
          <issue>1</issue>
          ):2:
          <issue>1</issue>
          {2:
          <fpage>21</fpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>C.</given-names>
            <surname>Laurier</surname>
          </string-name>
          .
          <article-title>Automatic Classi cation of musical mood by content-based analysis</article-title>
          .
          <source>PhD thesis</source>
          , Universitat Pompeu Fabra,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>S.</given-names>
            <surname>Nirjon</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. F.</given-names>
            <surname>Dickerson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Asare</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. A.</given-names>
            <surname>Stankovic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Hong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Jiang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Shen</surname>
          </string-name>
          , and
          <string-name>
            <given-names>F.</given-names>
            <surname>Zhao</surname>
          </string-name>
          .
          <article-title>Musicalheart: A hearty way of listening to music</article-title>
          .
          <source>ACM SynSys `12</source>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>K.</given-names>
            <surname>Okada</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. F.</given-names>
            <surname>Karlsson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Sardinha</surname>
          </string-name>
          , and
          <string-name>
            <given-names>T.</given-names>
            <surname>Noleto</surname>
          </string-name>
          . Contextplayer:
          <article-title>Learning contextual music preferences for situational recommendations</article-title>
          .
          <source>In ACM SIGGRAPH `13</source>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>J.</given-names>
            <surname>Russell</surname>
          </string-name>
          .
          <article-title>A circumplex model of a ect</article-title>
          .
          <source>Journal of personality and social psychology</source>
          ,
          <volume>39</volume>
          (
          <issue>6</issue>
          ):
          <volume>1161</volume>
          {
          <fpage>1178</fpage>
          ,
          <year>1980</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>X.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Rosenblum</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wang</surname>
          </string-name>
          .
          <article-title>Context-aware mobile music recommendation for daily activities</article-title>
          .
          <source>In ACM Multimedia `12</source>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>P.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zheng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Li</surname>
          </string-name>
          , and
          <string-name>
            <given-names>G.</given-names>
            <surname>Shen. Iodetector</surname>
          </string-name>
          :
          <article-title>A generic service for indoor outdoor detection</article-title>
          .
          <source>In ACM SenSys `12</source>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>