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

File metadata

File hashes

Hashes for physics_based_pedestrian_modeling-0.1.5.tar.gz
Algorithm Hash digest
SHA256 389e0363d4544e66d8a357bcc138fd74436008c648a2575fa0e3f15bd9780fd9
MD5 2cc20469844a7c8c0cd2ca12b0a4e842
BLAKE2b-256 8877d46065707be46fa430a53700508bfda781a3ea0aaef2a3eb9151391c5098

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_based_pedestrian_modeling-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 86546adbaf4b0104a965c3c7f85c8bc01ec3905b2a826b537379a01220ba11df
MD5 2b59af67558e0266e7bf05b6ec32a023
BLAKE2b-256 f79a8d2cdb686744d24acaf6019f79baa0083500f0c96124999496b42d8c8a4c

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