Skip to main content

Data-driven physics-based modeling of pedestrian dynamics

tests coverage PyPI - Python Version Licence Code style: black

Python package to create physics-based pedestrian models from pedestrian trajectory measurements. This package is an implementation of the data-driven generalized pedestrian model presented in:

Pouw, C. A. S., van der Vleuten, G., Corbetta, A., & Toschi, F. (2024). Data-driven physics-based modeling of pedestrian dynamics. Phys. Rev. E 110 (6 Dec. 2024), p. 064102. DOI: 10.1103/PhysRevE.110.064102.

Abstract. We introduce a data-driven physics-based generalized Langevin model that allows robust and generic modeling of pedestrian behavior across any environment where extensive pedestrian trajectory data is available. Our model effectively captures the complex interplay between the deterministic movements and stochastic fluctuations associated with walking.

PRE Zenodo dataset

Documentation

Usage Notebook

This Goolge Colab notebook can be used to create pedestrians models without the need to install the package or download any data. The notebook can be used with all the environments discussed below, or can be easily adapted for any other data set.

Installation

You can install the package from PyPI

pip install physics-based-pedestrian-modeling

Using the CLI

Run the main processing script for one of the available environments by overwriting the params variable with the configuration filename of the environment. The configuration filenames associated to every environment are specified below. These parameter configurations are handled by Hydra, see their documentation for more details Hydra.

physped_cli params=CONFIGURATION_FILE_NAME

Similarly, we can overwrite all the other parameter directly from the command line. For instance, if we want to process the narrow corridor trajectories with a different noice intensity, e.g. sigma=0.7, we can simply run

physped_cli params=narrow_corridor params.model.sigma=0.7

Creating the model for multiple parameter values can be achieved by adding -m and listing the variables. For example

physped_cli -m params=narrow_corridor params.model.sigma=0.5,0.7,0.9

Available environments

Every environment discussed in the paper that relies a on public data set can be modeled using the cli by overwriting the 'params' variable with one of the following configuration filenames:

Narrow corridor

The dynamics of a single pedestrian walking undisturbed through a narrow corridor is possibly one of the simplest conceivable dynamics; an almost one-dimensional movement solely confined by two parallel corridor walls.

To model this environment we use the public pedestrian trajectory dataset: Crowdflow – diluted pedestrian dynamics in the Metaforum building of Eindhoven University of Technology.

Configuration filename: narrow_corridor

Intersecting walking paths

Trajectories of intersecting walking paths. We synthesize these from the narrow corridor trajectory data set for which half of the trajectories are rotated by 90 degrees. Note that these trajectories were measured in the dilute limit, consequently there is no interaction between them.

Configuration filename: intersecting_paths

Train station platforms

Complex dynamics of pedestrians walking across real-life train platforms.

Eindhoven train station track 3-4.

Configuration filename: eindhoven_pf34.

To model this environment we use the public pedestrian trajectory dataset: Data-driven physics-based modeling of pedestrian dynamics - dataset: Pedestrian trajectories at Eindhoven train station

Amsterdam Zuid train station track 1-2.

Configuration filename: asdz_pf12.

To model this environment we use the public pedestrian trajectory dataset: Trajectory data Amsterdam Zuid (track 1-2) underlying the PhD-thesis: Mind your passenger! The passenger capacity of platforms at railway stations in the Netherlands

License

  • Free software: 3-clause BSD license

Contact

Metadata

Release files for physics-based-pedestrian-modeling 0.3.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for physics-based-pedestrian-modeling 0.3.8
File Size Uploaded
physics_based_pedestrian_modeling-0.3.8.tar.gz 91.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for physics-based-pedestrian-modeling 0.3.8
File Interpreter ABI Platform
physics_based_pedestrian_modeling-0.3.8-py3-none-any.whl Python 3 none any Details

Total release size: 210.9 kB

Release files / physics_based_pedestrian_modeling-0.3.8.tar.gz

Download URL physics_based_pedestrian_modeling-0.3.8.tar.gz
Size 91.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8b4c2244d2257361cd22cf5c131b23b9c65e86779655569a4b75af9b3c5e4abc
BLAKE2b-256 checksum
How to use checksums
c7bfeb92e93800f6de9eb75f8fdd02bc7cc278387b4e2ff954fa47cbd4ceb70c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.9

Release files / physics_based_pedestrian_modeling-0.3.8-py3-none-any.whl

Download URL physics_based_pedestrian_modeling-0.3.8-py3-none-any.whl
Size 119.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1f2172dfa46e8a6c05d15d448c388c28900b816acd28ea34415fc05a78b7b62
BLAKE2b-256 checksum
How to use checksums
0859ad8d03fa3820e57a5ee155f02cc32152913e39ca5d914bc063a23e905741
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.9

Release history Release notifications | RSS feed

This release

0.3.8 This release

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page