scikit-mobility: An open-source Python library for human mobility analysis and simulation

The availability of geo-spatial mobility data (e.g., GPS traces, call detail records) is a trend that will grow in the near future. For this reason, understanding and simulating human mobility is of paramount importance for many present and future applications, such as traffic forecasting, urban planning, and epidemic modeling, and hence for many actors, from urban planners to decision-makers and advertising companies. scikit-mobility is a Python library for mobility analysis and simulation that allows the user to: (1) analyze mobility data by using the main measures characterizing human mobility patterns (e.g., radius of gyration, daily motifs, mobility entropy); (2) simulate individual and collective mobility by executing the most common human mobility models (e.g., gravity and radiation models, exploration and preferential return model); (3) compare all these models by a set of validation metrics taken from the literature. scikit-mobility provides an efficient and easy-to-use implementation, based on the standard Python library numpy, pandas and geopandas, of the main collective and individual human mobility models existing in literature, allowing for both the fitting of the parameters from real data and the running of the models for the generation of synthetic spatio-temporal trajectories. scikit-mobility is a starting point for the development of urban simulation and what-if analysis, e.g., simulating changes in urban mobility after the construction of a new infrastructure or when traumatic events occur like epidemic diffusion, terrorist attacks or international events.

[1]  Xing Xie,et al.  GeoLife: Managing and Understanding Your Past Life over Maps , 2008, The Ninth International Conference on Mobile Data Management (mdm 2008).

[2]  Alessandro Vespignani,et al.  Real-time numerical forecast of global epidemic spreading: case study of 2009 A/H1N1pdm , 2012, BMC Medicine.

[3]  Marco Conti,et al.  Human mobility models for opportunistic networks , 2011, IEEE Communications Magazine.

[4]  Luca Pappalardo,et al.  Effective injury forecasting in soccer with GPS training data and machine learning , 2017, PloS one.

[5]  Francesca Pratesi,et al.  Privacy-by-design in big data analytics and social mining , 2014, EPJ Data Science.

[6]  Cecilia Mascolo,et al.  A Tale of Many Cities: Universal Patterns in Human Urban Mobility , 2011, PloS one.

[7]  César A. Hidalgo,et al.  Unique in the Crowd: The privacy bounds of human mobility , 2013, Scientific Reports.

[8]  Siyuan Liu,et al.  Urban human mobility data mining: An overview , 2016, 2016 IEEE International Conference on Big Data (Big Data).

[9]  Siddharth Gupta,et al.  The TimeGeo modeling framework for urban mobility without travel surveys , 2016, Proceedings of the National Academy of Sciences.

[10]  Alan Wilson,et al.  A Family of Spatial Interaction Models, and Associated Developments , 1971 .

[11]  Marta C. González,et al.  A universal model for mobility and migration patterns , 2011, Nature.

[12]  Anita Graser,et al.  MovingPandas: Efficient Structures for Movement Data in Python , 2019, GI_Forum.

[13]  Francesca Pratesi,et al.  A Data Mining Approach to Assess Privacy Risk in Human Mobility Data , 2017, ACM Trans. Intell. Syst. Technol..

[14]  Dino Pedreschi,et al.  Understanding the patterns of car travel , 2013 .

[15]  Dino Pedreschi,et al.  Returners and explorers dichotomy in human mobility , 2015, Nature Communications.

[16]  H. Stanley,et al.  Gravity model in the Korean highway , 2007, 0710.1274.

[17]  Ciro Cattuto,et al.  Predicting human mobility through the assimilation of social media traces into mobility models , 2016, EPJ Data Science.

[18]  Sergio J. Rey,et al.  PySAL: A Python Library of Spatial Analytical Methods , 2010 .

[19]  Guangchun Luo,et al.  Location prediction on trajectory data: A review , 2018, Big Data Min. Anal..

[20]  Ronaldo Menezes,et al.  The effect of recency to human mobility , 2015, EPJ Data Science.

[21]  Luca Pappalardo,et al.  Modelling individual routines and spatio-temporal trajectories in human mobility , 2016, ArXiv.

[22]  Dino Pedreschi,et al.  Human mobility, social ties, and link prediction , 2011, KDD.

[23]  Luca Pappalardo,et al.  Human Mobility Modelling: Exploration and Preferential Return Meet the Gravity Model , 2016, ANT/SEIT.

[24]  Marco De Nadai,et al.  A multi-source dataset of urban life in the city of Milan and the Province of Trentino , 2015, Scientific Data.

[25]  Bruno Lepri,et al.  Modeling Taxi Drivers' Behaviour for the Next Destination Prediction , 2018, ArXiv.

[26]  Licia Capra,et al.  Urban Computing: Concepts, Methodologies, and Applications , 2014, TIST.

[27]  Kentaro Toyama,et al.  Project Lachesis: Parsing and Modeling Location Histories , 2004, GIScience.

[28]  Zbigniew Smoreda,et al.  An analytical framework to nowcast well-being using mobile phone data , 2016, International Journal of Data Science and Analytics.

[29]  G. Zipf The P 1 P 2 D Hypothesis: On the Intercity Movement of Persons , 1946 .

[30]  M. Barthelemy,et al.  Human mobility: Models and applications , 2017, 1710.00004.

[31]  Alex 'Sandy' Pentland,et al.  bandicoot: a Python Toolbox for Mobile Phone Metadata , 2016, J. Mach. Learn. Res..

[32]  C. Ratti,et al.  Quantifying population exposure to air pollution using individual mobility patterns inferred from mobile phone data , 2019, Journal of Exposure Science & Environmental Epidemiology.

[33]  Chaoming Song,et al.  Modelling the scaling properties of human mobility , 2010, 1010.0436.

[34]  Luca Pappalardo,et al.  Evaluation of Spatio-Temporal Microsimulation Systems , 2014 .

[35]  Luca Pappalardo,et al.  Data-driven generation of spatio-temporal routines in human mobility , 2016, Data Mining and Knowledge Discovery.

[36]  Alessandro Vespignani,et al.  Modeling human mobility responses to the large-scale spreading of infectious diseases , 2011, Scientific reports.

[37]  Vincent D. Blondel,et al.  A survey of results on mobile phone datasets analysis , 2015, EPJ Data Science.

[38]  Rahul Nair,et al.  A Multi-Scale Approach to Data-Driven Mass Migration Analysis , 2016, SoGood@ECML-PKDD.

[39]  Albert-László Barabási,et al.  Understanding individual human mobility patterns , 2008, Nature.

[40]  Albert-László Barabási,et al.  Limits of Predictability in Human Mobility , 2010, Science.

[41]  Edzer Pebesma,et al.  CRAN Task View: Handling and Analyzing Spatio-Temporal Data , 2020 .

[42]  Francesca Pratesi,et al.  PRUDEnce: a System for Assessing Privacy Risk vs Utility in Data Sharing Ecosystems , 2018, Trans. Data Priv..

[43]  Yu Zheng,et al.  Trajectory Data Mining , 2015, ACM Trans. Intell. Syst. Technol..