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

We provide the following usage notebook on Google Colab:

- Generalized pedestrian model.

The notebook can be used to create a model for the following environments:

  • Walking paths in a narrow corridor
  • Intersecting walking paths
  • Walking paths on a train station platform

Getting started

Install the package from source

git clone https://github.com/c-pouw/physics-based-pedestrian-modeling.git
cd physics-based-pedestrian-modeling
pip install -e .

Run the main processing script for one of the available parameter files (listed below)

python physped/main.py params=PARAM_NAME

Parameter Files

Configuration of parameter files is handled by Hydra. Default parameter files are provided for the following cases:

  • single_paths: Trajectories in a narrow corridor.
  • parallel_paths: Trajectories in a wide corridor.
  • curved_paths_synthetic: Trajectories along a closed elliptical path.
  • intersecting_paths: Trajectories intersecting in the origin.
  • station_paths: Complex trajectories in a train station.

Features

Preprocessing of trajectories

Calculate slow dynamics

Learn potential from the preprocessed trajectories

Learn the potential

Simulate new trajectories using the learned potential

Simulate new trajectories

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.1.6.tar.gz.

File metadata

File hashes

Hashes for physics_based_pedestrian_modeling-0.1.6.tar.gz
Algorithm Hash digest
SHA256 55abcde1ffdc8c800875ba53a69188574651863cac8eae1b93789bc767f21215
MD5 bb5c21a3164c47ee6eac992ca0acb8e2
BLAKE2b-256 16b9d67bd3cc3ed2c85594019ddca992bada5b8d7c626ba338b016283d671bc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_based_pedestrian_modeling-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 df4ca74ff29d9121584c777bf21fdd647aa78b2eb41725fba3f90ac8cffd7127
MD5 501b9a2a77f2641bf3ad19f013290d6e
BLAKE2b-256 4d559200feee854bccd45953b68fed1cfbd99e2569d3fb100cdabdddedbc04d1

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