DeepGravity
Feed-forward network that scores candidate trip destinations from geographic features of origin and destination.
Tabular and recommender · 46 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 454.5K
- Operations
- 46
- Framework
- PyTorch
- Recurrent
- No
- Published
- Nature Communications 12, 6576 (2021), as "A Deep Gravity model for mobility flows generation"
- Cited by
- 4 (as of 24 October 2026)
- Authors
- Filippo Simini, Gianni Barlacchi, Massimiliano Luca, Luca Pappalardo
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15942
- Graph hash
- f185d7e63022dcf055a26edcae602e8f4fd8d43ad2e6d80a5d38ec20494763bb
- Skeleton hash
- 476ed6505791284f4e68ad72a94d575a47ba345feba7d01fdb43150ba379b7b5
- Architecture hash
- 0e72cf33f666c1ca75ecc4d02d64c1d4c93972b4531e5611ba74e1b0fb493266
- Diagram SHA-256
- c19d79df8eebc8a81d8d8e071c181172610b820e14d8fb8ea06a70ddf1b21396
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Deep Gravity generates mobility flows: from geographic variables describing a set of locations, it produces the probability that a trip from one location ends at each of the others. It is aimed at regions where information about mobility flows is not available and has to be generated by a mathematical model.
The starting point is the classic gravity model, in which the flow between two locations increases with their populations and decreases with the distance between them. The paper observes that this model is equivalent to a shallow linear neural network and defines Deep Gravity by adding non-linearity, hidden layers and more geographic features. For one origin, an input vector is built for every location that could be a destination. All of them go through the same feed-forward network, which the paper gives as 15 hidden layers of dimensions 256 and 128 with LeakyReLu activations. A softmax then turns the resulting scores into probabilities.
The features come from OpenStreetMap and describe land use, road network, transportation, food, health, education and retail facilities. For England, the paper reports a Common Part of Commuters (CPC) of 0.32 for Deep Gravity against 0.11 for the gravity model.
Key idea. Deep Gravity extends the gravity model of mobility flows with hidden layers, non-linearity and geographic features drawn from voluntary geographic data.
- deep gravity
- deepgravity
- multi-feature deep gravity
- mfdg
- mobility flows
- flow generation
- gravity model
- human mobility
- origin-destination flows
- openstreetmap features
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{simini2022deepgravityenhancingmobility,
title={Deep Gravity: enhancing mobility flows generation with deep neural networks and geographic information},
author={Filippo Simini and Gianni Barlacchi and Massimiliano Luca and Luca Pappalardo},
year={2022},
eprint={2012.00489},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2012.00489},
}