Skip to main content

Python package to create physics-based pedestrian models from crowd measurements

Project description

Data-driven physics-based modeling of pedestrian dynamics

PyPI - Python Version Code style: black arXiv

Project Overview

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. Preprint, https://arxiv.org/abs/2407.20794

Documentation

Usage Notebooks

- Quick-start notebook demonstrating the generalized pedestrian model.

This notebook can be used to create a model for all the environments that rely on public data sets without the need to locally install the package.

Installation

Alternatively, you can locally install the package from PyPI

pip install --upgrade 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 file name of the environment. The configuration file names 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

The environments that rely on public data sets can be used by overwriting the 'params' variable with one of the following configuration file names:

Narrow corridor

Trajectories of walking paths in a narrow corridor.

Configuration file name: narrow_corridor

Intersecting walking paths

Trajectories of intersecting walking paths.

Configuration file name: intersecting_paths

Train station platform

Trajectories of walking paths in the Amsterdam Zuid train station on platform 1 and 2.

Configuration file name: asdz_pf12

License

  • Free software: 3-clause BSD license

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file physics_based_pedestrian_modeling-0.3.0.tar.gz.

File metadata

File hashes

Hashes for physics_based_pedestrian_modeling-0.3.0.tar.gz
Algorithm Hash digest
SHA256 447483a4d6044d68f37cbf8fb2ad1dc7a8eb12dca906a7a1f7cbb9e395ec4ca7
MD5 f8feb96b19dca0c0b4f384313c054e9a
BLAKE2b-256 d17ab3908234b5911485432de76d497523246718dd0ca97e8d24e1421c712a6a

See more details on using hashes here.

File details

Details for the file physics_based_pedestrian_modeling-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for physics_based_pedestrian_modeling-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 337e1c10623105c7a891a8b6d2b5cb1b270e234af5bf8e0cbae992c1b29b52e7
MD5 f1b09b5799ef0b1a15b161c01465ae92
BLAKE2b-256 d1e02e5ba40cc7b3153333b0740203606bcd0c0bb36237109696b43199587956

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page