Network Science Institute | Northeastern University
NETS 7983 Computational Urban Science
2025-03-31
This week:
Location Intelligence and Recommendation in urban areas
An example of a marketing campaign using geofencing by Burger King
Data -> Methods -> Models -> Applications.
Understand the concept of Location Intelligence and its applications in urban areas
Intro to Recommendation Systems and their applications in urban areas
Location intelligence is the discipline for turning location data into business outcomes and insights.
Location intelligence goes beyond simple mapping and visualization.
It includes data management, analysis, modeling, prediction, data management, and visualization in an integrative way.
Main industries: retail, real estate, logistics, and transportation.
Projections of market size by application in Location Intelligence
Probably the first example of location intelligence was John Snow’s 1854 study of the spread of cholera. Snow put on a map the cases of cholera and the water pumps. That visualization helped to solve the cholera outbreak.
From Google Maps Platform report on LI
Store Site Selection from Qlik
An example of a marketing campaign using geofencing by Burger King
Use of location data in Commercial Estate
Use of location data in Logistics, from Dista.ai
How Insurance Uses Location Data to Prepare for Natural Disasters, by Carto
Fraud detection using location data by Cambridge Intelligence
Mapping DC Crimes, by SAS
Mobile Devices & Apps: GPS-based data, user check-ins, location-based services
IoT (Internet of Things) Sensors: Traffic sensors, environmental monitors, smart city data
Satellite & Aerial Imagery: High-resolution data for land use analysis
Social Media & Open Data: Publicly available datasets (e.g., OpenStreetMap), user-generated geotagged content
Enterprise Data: Customer data, sales data, supply chain data
There is a market out there!
Location Intelligence Market, from Geoctrl
Data Analysis & Visualization (e.g., spatial analysis, geospatial data visualization)
Machine Learning & AI (e.g., predictive modeling, recommendation systems, causal techniques)
Urban System Simulation (e.g., agent-based modeling, network models, individual decision-making models)
Big Data & Spatial Databases (e.g., managing and querying large-scale geospatial datasets efficiently)
(Geomarketing)
Scenario: a retail company wants to use location data to:
Data:
Methods:
Spatial analysis: clustering, hotspots, spatial autocorrelation to identify client segments
Mobility models: to understand the behavior of the clients and their decision-making process.
Machine learning: predictive models to identify the best locations for new stores
Recommendation systems: to optimize the marketing campaigns, suggest products, etc.
Recommendation systems are algorithms that suggest items to users based on their preferences, behavior, and context. [1]
They are widely used in e-commerce, social media, streaming services, and many other applications.
They are also used in Location Intelligence to suggest locations, products, services, etc. to clients based on their behavior, preferences, and context.
Recommendation algorithms are a fundamental part of the personalization of the services, design of policies, and optimization of the resources in urban areas.
Content-based: recommend items similar to those the user liked in the past. It uses the content of the items and the user’s profile to make recommendations.
For example, recommending cultural events in the city based on the user’s past preferences.
Collaborative filtering: recommend items based on the preferences of other users. It uses the preferences of other users to make recommendations.
For example, recommending restaurants based on the preferences of similar users.
(Recommendation of locations) Scenario: a city wants to use recommendation systems to optimize the experience of the city’s citizens and tourists.
Recommendation of locations is based on building a place recommender system that suggests places to visit based on the user’s preferences, behavior, and context.
Recommendation algorithms are typically built as “next-place prediction” models that predict the next place the user will visit based on their past behavior [2], [3], [4].
Next place prediction incorporates information about:
But we know a lot about human mobility!
Human mobility is characterized by repeating patterns and regularities that can be used to predict the next place the user will visit. Thus, simple individual models or content models can work very well.
Human mobility is also characterized by social influence and contextual information that can be used to predict the next place the user will visit. Thus, collaborative filtering models can work very well too.
Thus, recommendation systems in urban areas can be built using a combination of content-based and collaborative filtering models.
Data:
Methods:
Machine learning: build predictive models to predict the next place the user will visit based on individual models (only using previous visits) and collaborative filtering models (using the behavior of similar users).
Evaluation: evaluate the performance of the models using metrics like accuracy @N, precision, recall, F1-score, etc.
Models
Suppose that we have \(N\) places or events in the city and that \(\vec u_i\) is the vector where each component is the amount of times user \(i\) has visited any of those places up to time \(t\).
Then, the recommendation for the next place to visit is
\[ P(\text{next place} = \alpha | \vec u_i) = \frac{u_{i,\alpha}}{\sum_{\beta=1}^N u_{i,\beta}} \] (this is very similar to the preferential return in EPR)
Find the \(K\) most similar users to user \(i\) based on their past behavior. We can use the cosine similarity between the users’ vectors to do this.
\[ \text{similarity}(i,j) = \frac{\vec u_i \cdot \vec u_j}{\|\vec u_i\| \|\vec u_j\|} \] Using the \(K\) most similar users, we can construct the vector
\[\vec u_i^* = \frac{1}{K} \sum_{j=1}^K \vec u_j\]
or the weighted version
\[\vec u_i^* = \sum_{j=1}^K \text{similarity}(i,j) \vec u_j\].
Then, the recommendation of the next place to visit is
\[ P(\text{next place} = \alpha | \vec u_i) = \frac{u_{i\alpha}^*}{\sum_{\beta=1}^N u_{i\alpha}^*} \]
or choose to recommend only \(\alpha\) according to that probability which are not previously visited only.
Collaborative filtering algorithm, from [5]
Evaluation: We can evaluate the performance of the models using metrics like:
For example, we can build a Markov model where the state is the place visited and the transition matrix is the probability of all users to visit place \(\alpha\) after visiting place \(\beta\).
\[ P(\text{next place} = \alpha | \text{current place} = \beta) = \frac{T_{\beta\alpha}}{\sum_{\gamma=1}^N T_{\beta\gamma}} \] Where \(T_{\beta\alpha}\) is the number of trips of users from place \(\beta\) to place \(\alpha\).
DeepMove model, from [8]
Location Intelligence uses the same methodologies as Computational Urban Science to turn location data into business outcomes and insights.
The main ingredients are data analysis & visualization, machine learning & AI, urban system simulation, and big data & spatial databases.
Recommendation Systems are algorithms that suggest items to users based on their preferences, behavior, and context. They are widely used in urban areas to suggest locations, services, products, and policies.
Location Intelligence
The Big Book of Mobile Location Data Use Cases by Quadrant
Location Intelligence for dummies by Carto
Unlocking value with location Intelligence by Google and Boston Consulting Group
Recommender systems
Recommender Systems Handbook by Ricci et al.
Recommendations in location-based social networks: a survey by Jie Bao et al. [2]
Mining user mobility features for next place prediction in location-based services, by Noulas et al [4]
Next place prediction: a systematic literature review, by Schreckenberger et al [9]
CUS 2025, ©SUNLab group socialurban.net/CUS