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

File metadata

File hashes

Hashes for physics_based_pedestrian_modeling-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3077c3115d979f8c0c8c1101793277623a6e0f47a913b28ae6230a9eeea56868
MD5 b4e49ef2190d6c17232cf2a3185a9104
BLAKE2b-256 5fb2d27fc3ea7a2e70ab5dd9d786ead4f07c0796127aee368ac3c6547d025874

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_based_pedestrian_modeling-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65dcbddadf0e8948aef6880adc2b3ae1f425a921f99b85e334b9e4f92b7b384d
MD5 33f734f9608bae3e78ee02da866222db
BLAKE2b-256 9dbf4f7d384c5379fed424ab36dd0478c7b778b05aeee45f5b2ac9ddf9b268ad

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