In this repository, we include the tool and datasets used in publication ... The datasets used in our analysis, including the baseline and three behavior variations, can be found in resources. The tool used can be found in the agents_and_networks folder. This implementation is based on the GMU-Social Model in Python, using Mesa and Mesa-Geo. It is built upon the agents and networks example Agent and Networks.
In this model, we generate mobility trajectories using EPR. All parameters can be chosen through the user interface and correspond to the truncated power law distributions modeling jump length and waiting time in the CTRW. The exploration and preferential return probabilities can also be specified. Agents' commute routes can be found as the shortest path between entrances of their home and desired destination. These commute routes are segmented according to agents' walking speed. In this way, the movements of agents are constrained on the road network.
We include a model to generate datasets for connecting antennas for two phones per agent trajectory. Two options are implemented, one based on the closest antenna facing the agent (the simple model) and one using a coverage model of an antenna's service area (the coverage model). We assume independent phone usage between phones carried by the same agent, and model inter-arrival times as exponentially distributed with the rate of one per hour. We also allow for a dependency sampling option based on either time or location.
Update config.py to include the correct file locations. Street and building locations (in the netherlands) can be downloaded from https://download.geofabrik.de/europe/netherlands.html.
From the agents_and_networks folder, first install the dependencies:
python3 -m pip install -r requirements.txt
Then run the trajectory model:
python3 scripts/run.py
Then run the cell-tower sampling model:
With coverage model:
python3 scripts/run_cell/coverage.py
With simple sampling (closest cell tower facing agent):
python3 scripts/run_cell/simple.py
Open your browser to http://127.0.0.1:8521/ and press Start
.
The data is from the GMU-Social Model and is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.