<!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>Detecting Trending Venues Using Foursquare's Data</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Stephanie Yang</string-name>
          <email>stpyang@foursquare.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Max Sklar</string-name>
          <email>max@foursquare.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Foursquare Labs</institution>
          ,
          <addr-line>568 Broadway, 10th Floor, New York, NY</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Foursquare is a search and discovery tool which helps users discover venues around the world. Much of the data for these recommendations come from its sister app Swarm, which is a location based social network where users can \check in" to places they visit. Older versions of Foursquare had a strongly static component to its recommendations. For instance, the top restaurants in New York City do not vary from month to month, and venues with years of consistently strong signals will dominate search results. In this paper we outline a new algorithm which Foursquare uses in order to discover fresh recommendations. Promoting younger venues with fewer check-ins or older venues with a recent surge of activity increases turnover in our recommendations and yields a better user experience.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. INTRODUCTION</title>
      <p>
        Foursquare has a database of nine billion check-ins and 85
million public venues around the world. Using this data, the
mobile app provides personalized venue recommendations to
users. Core components of these recommendations are based
on foot tra c data in the form of check-ins and passively
generated visits from a background location service called
Pilgrim [
        <xref ref-type="bibr" rid="ref4 ref7">4, 7</xref>
        ], as well as other user interactions in the form
of venue feedback, tips, and photos.
      </p>
      <p>There is a constant tension between consistency and
freshness in Foursquare's recommendations. For example, Thomas
Keller's Per Se is always at the top of the results for
restaurants in New York City, but most users nd value in
discovering a more accessible venue like a new mom-and-pop co ee
shop around the corner. Likewise, a celebrity chef moving
to a new restaurant results in a urry of activity which is
not always captured well by Foursquare's long-term signals.
Permission to make digital or hard copies of part or all of this work for personal or
classroom use is granted without fee provided that copies are not made or distributed
for profit or commercial advantage and that copies bear this notice and the full citation
on the first page. Copyrights for third-party components of this work must be honored.
For all other uses, contact the authors.</p>
      <p>RecSys ’16 Sept 15–19, 2016, Boston, MA, USA
c 2016 Copyright held by the authors.</p>
      <p>
        Foursquare has successfully implemented short term trend
detection to showcase real-time events as they happen [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
The algorithm in this paper lls the gap between the
nearinstantaneous discovery of popular events, and the long-term
detection of quality venues.
2.
      </p>
    </sec>
    <sec id="sec-2">
      <title>FEATURES</title>
      <p>All of the features described below are generated by users'
interaction with the Foursquare and Swarm apps and by
passively generated visits from Pilgrim. Noteworthy venues
inspire users to interact with their apps, and so most user
activity for a venue is seen as positive.
2.1</p>
    </sec>
    <sec id="sec-3">
      <title>User generated signals</title>
      <p>Checkins and visits: The primary signals for
trendiness are based on foot tra c in the form of active check-ins
and passive visits. Active check-ins typically indicate better
venues, since Swarm users tend to broadcast special outings
more often than their day to day activities.</p>
      <p>Saves: Foursquare users have the option of saving a venue
to a list for later. This distinguishes trendy new places from
average ones, because it indicates aspirations to visit.</p>
      <p>
        Tips from users: Users have the option of writing tips at
any venue, which are shown to other users as part of the local
discovery experience [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Trendy venues consistently attract
a larger number of tips compared to the average venues.
      </p>
      <p>Tips from vetted accounts: A handful of user accounts
are unusually in uential. For example, some celebrities and
local blogs about food maintain active Foursquare accounts
with tens of thousands of followers. Tips from these accounts
drive foot tra c and are a leading signal of venue trendiness.</p>
      <p>Explicit feedback: The Foursquare app prompts it users
to leave explicit ratings|like, dislike, or neutral|about the
places they visit.</p>
      <p>Photos: The excitement of visiting a noteworthy venue
is often re ected by our users documenting their visit with
photographs.
2.2</p>
    </sec>
    <sec id="sec-4">
      <title>Trend detection</title>
      <p>For each of the activities listed above, we calculate two
statistics.</p>
      <p>The rst statistic is derived from tting a trend line through
the time series of the activity. The signal that we use is given
by the equation
^</p>
      <p>Day
where ^ denotes the slope of the trend line through the time
series with 56 days of data, and ^ denotes the standard
error of the estimate ^.</p>
      <p>In Figure 1 we display the number of check-ins per day
for two restaurants in Istanbul, Turkey. The trend lines
for both time series (omitted from the gure) have similar
slopes. Although the value of ^ is positive and similar for
both venues, the value of ^ is lower for Suppa than it is for
Ka e Pi. Hence the signal S for Suppa is larger than the
corresponding signal for Ka e Pi. In general, venues with
erratic or spiky activity do not bene t from one-time events
for this class of signals.</p>
      <p>The second statistic is a decayed sum of the activity,
calculated with a half life of 56 days.</p>
      <p>D = X cde d;</p>
      <p>d
where d is the number of days prior to the current day,
cd is the total amount of user activity on that day, and
= ln 2=56. Note that short half lives are associated with
noisier data, and long half lives lead to a lack of freshness.
For example, the venue Kafe Pi in Figure 1 has a spike in
activity on Day 39, which would have dominated the signal
if the half life were too short. Longer half lives have more
stability, and we found that very long half lives lead to a
lack of freshness in our recommendations. In our research,
56 days is the best balance for both stability and freshness.</p>
    </sec>
    <sec id="sec-5">
      <title>COMBINING THE SIGNALS</title>
      <p>The distribution of the S-scores is roughly bell-shaped,
while the distribution of the D-scores has a long tail. In
order to combine the two classes of scores, we normalize
each signal to a Gaussian distribution using the function
N =
1(r);
where is the cdf of the standard N (0; 1) distribution and
r is the relative rank, between 0 and 1, of the venue when
compared to all other venues and sorted by a given score.
We then combine the signals linearly with hand-tuned
coe cients. The largest coe cients are associated with the
S-score of tips left by vetted accounts|a sparse but strong
signal |and the S-score of Pilgrim-generated visits. These
two scores account for more than 60% of the nal signal.</p>
    </sec>
    <sec id="sec-6">
      <title>4. SUMMARY AND RESULTS</title>
      <p>
        The combined signal is now being used as a primary
component of venue recommendations, and is showcased in the
main Foursquare app and on the website in the form of
weekly billboard-style \Trending This Week" lists in major
metropolitan areas (Figure 2). It is also frequently covered
in articles which feature best-of lists for many cities [
        <xref ref-type="bibr" rid="ref1 ref2 ref3">1, 2,
3</xref>
        ]. Weekly e-mails featuring these lists have click through
rates that far exceed the industry average and drive
regular in-app activity. The signal has also been integrated
into Foursquare's core venue ratings algorithm resulting in
greater freshness and turnover.
5.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>R.</given-names>
            <surname>Bruner</surname>
          </string-name>
          .
          <article-title>10 trendy Austin restaurants you need to try right now</article-title>
          . http://www.businessinsider.
          <article-title>com/thehottest-restaurants-in-austin-tx-2016-3</article-title>
          . Accessed:
          <fpage>2016</fpage>
          -06-30.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>R.</given-names>
            <surname>Bruner</surname>
          </string-name>
          .
          <article-title>12 up-and-coming New York City restaurants you need to try right now</article-title>
          . http://www.businessinsider.com.au/12-trendy
          <article-title>-new-nycrestaurants-to-try-now-2016-1</article-title>
          . Accessed:
          <fpage>2016</fpage>
          -06-30.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>R.</given-names>
            <surname>Bruner</surname>
          </string-name>
          .
          <article-title>15 trendy New York City restaurants you need to try right now</article-title>
          . http://www.businessinsider.com/15-new
          <article-title>-nycrestaurants-to-try-now-2016-2</article-title>
          . Accessed:
          <fpage>2016</fpage>
          -06-30.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A.</given-names>
            <surname>Heath</surname>
          </string-name>
          .
          <article-title>Foursquare's location data is way more powerful than people realize</article-title>
          .
          <source>Tech Insider</source>
          ,
          <year>January 2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>M.</given-names>
            <surname>Sklar</surname>
          </string-name>
          .
          <article-title>Timely tip selection for Foursquare recommendations</article-title>
          .
          <source>In RecSys Posters, October</source>
          <volume>6</volume>
          {
          <fpage>10</fpage>
          2014.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Sklar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Shaw</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Hogue</surname>
          </string-name>
          .
          <article-title>Recommending interesting events in real-time with Foursquare check-ins</article-title>
          .
          <source>In RecSys 2012 Poster Proceedings</source>
          , pages
          <volume>311</volume>
          {
          <fpage>312</fpage>
          ,
          <string-name>
            <surname>September</surname>
            <given-names>9</given-names>
          </string-name>
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>R.</given-names>
            <surname>Tate</surname>
          </string-name>
          .
          <article-title>The brilliant hack that brought Foursquare back from the dead</article-title>
          . Wired,
          <year>December 2013</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>