Python package to create physics-based pedestrian models from crowd measurements
Project description
Data-driven physics-based modeling of pedestrian dynamics
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
- Documentation: https://c-pouw.github.io/physics-based-pedestrian-modeling.
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 . 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
Release history Release notifications | RSS feed
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
- Download URL: physics_based_pedestrian_modeling-0.1.6.tar.gz
- Upload date:
- Size: 50.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.8.10 Linux/5.15.0-117-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55abcde1ffdc8c800875ba53a69188574651863cac8eae1b93789bc767f21215 |
|
MD5 | bb5c21a3164c47ee6eac992ca0acb8e2 |
|
BLAKE2b-256 | 16b9d67bd3cc3ed2c85594019ddca992bada5b8d7c626ba338b016283d671bc7 |
File details
Details for the file physics_based_pedestrian_modeling-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: physics_based_pedestrian_modeling-0.1.6-py3-none-any.whl
- Upload date:
- Size: 72.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.8.10 Linux/5.15.0-117-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df4ca74ff29d9121584c777bf21fdd647aa78b2eb41725fba3f90ac8cffd7127 |
|
MD5 | 501b9a2a77f2641bf3ad19f013290d6e |
|
BLAKE2b-256 | 4d559200feee854bccd45953b68fed1cfbd99e2569d3fb100cdabdddedbc04d1 |