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 doi paper

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. To appear xx.

Getting started

Install the package from PyPI

pip install physics-based-pedestrian-modeling

Download the configuration files into your working directory.

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

python main.py params=single_paths

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

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.

Featured Notebooks

A couple of usage notebooks are available for the following cases:

  • Narrow corridor paths
  • Station paths
  • User input paths

Documentation

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

physics_based_pedestrian_modeling-0.1.3.tar.gz (44.1 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for physics_based_pedestrian_modeling-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b767c10838a969a313496c7dd0168e832701109fb64b1488f3fc46455bfd7a99
MD5 eed3229b8def0bf616fd9c55d0a0b100
BLAKE2b-256 92d866f64cd4f48327c77bf4474cfe3db23a2dfda7b1f0bb5515e871a7126814

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_based_pedestrian_modeling-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 89bcb45203a9676a3bbf240961c03613e084aa3ef5814b95b61fbd22257c4392
MD5 5b08696f9d12d54ba241d74064108734
BLAKE2b-256 ee28b58aafe266a519113067eb3dc71665901838d00207a37ff9219ae53415db

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