
Maximum Entropy Approach for the Prediction of Urban Mobility Patterns
Simone Daniotti,∗Bernardo Monechi, and Enrico Ubaldi
(Dated: October 5, 2022)
The science of cities is a relatively new and interdisciplinary topic. It borrows techniques from
agent-based modeling, stochastic processes, and partial differential equations. However, how the
cities rise and fall, how they evolve, and the mechanisms responsible for these phenomena are still
open questions. Scientists have only recently started to develop forecasting tools, despite their
importance in urban planning, transportation planning, and epidemic spreading modeling. Here,
we build a fully interpretable statistical model that, incorporating only the minimum number of
constraints, can predict different phenomena arising in the city. Using data on the movements
of car-sharing vehicles in different Italian cities, we infer a model using the Maximum Entropy
(MaxEnt) principle. With it, we describe the activity in different city zones and apply it to activity
forecasting and anomaly detection (e.g., strikes, and bad weather conditions). We compare our
method with different models explicitly made for forecasting: SARIMA models and Deep Learning
Models. We find that MaxEnt models are highly predictive, outperforming SARIMAs and having
similar results as a Neural Network. These results show how relevant statistical inference can be in
building a robust and general model describing urban systems phenomena. This article identifies
the significant observables for processes happening in the city, with the perspective of a deeper
understanding of the fundamental forces driving its dynamics.
INTRODUCTION
In recent years, pressing societal and environmental problems such as population growth, migrations, and climate
change, boosted the research on the Science of Cities and the related study of mobility. The availability of large
and detailed datasets covering the mobility of individuals at different granularity contributed largely to enhance the
interest of researchers in this field[1, 2]. Being multi-disciplinary, Science of Cities studies embrace diverse areas
of research. For example, statistical methods have been applied to city growth [3], multi-layer networks to urban
resilience [4] and spatial networks to describe and characterize the structure and the evolution of phenomena arising
on it [5]. On the modeling side, co-evolution models [6] and agent-based simulations [7] have been used to model
stylized facts and take into account policy making. Moreover, other frameworks such as ranking dynamics [8] have
been used to study urban environments and universal laws arising in them.
The mobility patterns of individuals diffusing in an urban environment are determined by the interplay of different
mechanisms, such as the daily routines of the individuals and environmental constraints, both again regulated by even
more fundamental and interrelated phenomena, like wealth, trends, economic relations, socio-political disparities, and
cultural movements [9–11]. Urban environments are complex systems [12], and describing their growth and relation
with the surrounding cities is not unanimously understood by the scientific community [13]. Being that the commuting
phenomenon inside and between cities may be driven by different events and may be related to different causes, different
tools and understandings must be developed [14, 15].
In this work, we study urban mobility patterns, building a model based on only a few constraints driven by
data observations. The model can predict different events in the urban environment with high precision and can
be generalized to other dynamical processes unfolding in urban spaces. Here, we propose a Statistical Inference
(Maximum Entropy) approach to study and predict urban mobility patterns. Phenomena and relative observables
that happen inside the city are complex, they entangle with various indicators and are difficult to predict. To build a
powerful, general, and robust statistical model, in principle we need to understand what are the important variables
that play a central role in the phenomenon we want to model. To solve it, we need to analyze the dataset we want to
study, identify the important dynamical properties and then model it solving the problem of optimizing the resulting
entropy.
The data represents the 30 −minute −binned multi-variate time-series of the activity of different zones inside the
city.
Being that urban systems are notoriously complex and that the fundamental causes of the observed mobility patterns
are various and interrelated, our methodology is novel in this field in the sense that builds the most general model
constrained to reproduce the correlations observed.
∗Complexity Science Hub Vienna, Vienna, 1080, Austria; daniotti@csh.ac.at
arXiv:2210.01491v1 [physics.soc-ph] 4 Oct 2022