psafe

The Psafe module of MATSim for first/last mile trips simulation

https://github.com/panosgjuras/psafe

Science Score: 57.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.6%) to scientific vocabulary

Keywords

agent-based matsim simulation transportation-planning
Last synced: 6 months ago · JSON representation ·

Repository

The Psafe module of MATSim for first/last mile trips simulation

Basic Info
  • Host: GitHub
  • Owner: panosgjuras
  • License: mit
  • Language: Java
  • Default Branch: main
  • Homepage:
  • Size: 286 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 1
Topics
agent-based matsim simulation transportation-planning
Created over 1 year ago · Last pushed 10 months ago
Metadata Files
Readme License Citation

README.md

The MATSim Psafe Module

The Psafe Module extends the scoring function of MATSim so that perceived safety rates are considered. As can be seen in Equation below, travel disutility now depends on time, distance (i.e., cost), and safety. The beta coefficient ($\beta_{psafe,m(q)}$ parameter) represents the overall weight of safety perceptions in the plan selection process, influencing mode or route choice. It is inspired by Bicycle contribution aiming to bring out an updated version.

The MATSim Psafe Module repository contains: - Psafe package: includes all the classes to extend the MATSim scoring so that perceived safety is considered. - ScenarioAthens run package: contains the public class to run simulation experiments using the ScenarioAthens. - ScenarioAthens: some toy scenarios developed for the city center of Athens for further experimentation.

The Module can be utilized for research and education purposes. A Getting Started document will be prepared soon.

Overall, perceived safety is an attribute of the links incuded in the network. The calculation of scores can be performed based on the tools uploaded in PerceivedSafetyChoices repository (a new version will be online soon).

To incorporate perceived safety, a threshold level is established, where safety ratings below the threshold decrease trip utility and vice versa. Perceived safety values are then multiplied by the ratio of the distance of each link to the distance threshold (${cd}_{m\left(q\right)}$ parameter). The parameter represents the level of unsafe distance a road user is willing to tolerate during a short trip. This is closely linked to the user’s experience, familiarity with, and tolerance for minor unsafe gaps that may arise along their route. A lower distance threshold indicates a higher contribution of perceived safety to the overall utility of a specific transport mode. The Psafe module also enables the use of a variable distance threshold rather than a fixed one. It assesses the impact of perceived safety by applying a distance-weighted average. In this approach, the distance threshold corresponds to the total length of each trip.

$S{trav,m(q)} = \left[ C{m(q)} + \beta{trav,m(q)} \times t{trav,m(q)} + \beta{mon} \times \Delta mq + \left(\frac{\beta{d,m(q)}}{\gamma{d,m(q)} + \beta{mon}}\right) \times d{trav,q} \right]$

$+ \beta{psafe,m(q)} \times \sumi \left[ \frac{(psafe{i,m} - c{psafe}) \times d{trav,i}}{cd{m(q)}} \right]$

where:

$S{trav,m(q)}$: sum of all travel (dis)utilities of trip (q) (e.g., travel time, cost, distance, etc.);
$C
{m(q)}$: mode specific constant of mode (m);
$\beta{trav,m(q)}$: the marginal utility of travel time of mode (m);
$t
{trav,m(q)}$: the travel time in hours of using mode (m) in trip (q);
$\beta{mon}$: the marginal utility of money;
$\Delta m
q$: the change in the monetary budget in euros (equal to zero in this case);
$\beta{d,m(q)}$: the marginal utility of distance of mode (m);
$\gamma
{d,m(q)}$: the monetary distance rate of mode (m);
$d{trav,q}$: the travel distance of trip (q) in meters;
$d
{trav,i}$: the travel distance in link (i) in meters, by definition: $d{trav,i} \le d{trav,q}$;
$\beta{psafe,m(q)}$: the marginal utility of perceived safety of mode (m);
$psafe
{i,m}$: the perceived safety level of link ( i ) of mode (m) in Levels;
$c{psafe}$: the perceived safety threshold (Level 4 is recommended);
$cd
{m(q)}$: the distance threshold of mode (m).

It is Maven project; all dependencies are included in the pom.xml file. MATSim is a major dependency that should be installed.

The tools contained in this repository were developed within various research project of Laboratory of Transportation Engineering of National Technical University of Athens.

When referencing the contrib, please use the following papers:

Tzouras, P.G., Mitropoulos, L., Karolemeas, C., Stravropoulou, E., Vlahogianni, E.I., Kepaptsoglou, K., 2024. Agent-based simulation model of micro-mobility trips in heterogeneous and perceived unsafe road environments. Journal of Cycling and Micromobility Research 2, 100042. [https://doi.org/10.1016/j.jcmr.2024.100042]

Owner

  • Login: panosgjuras
  • Kind: user
  • Location: Athens
  • Company: National Techical University of Athens

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: 'The MATSim Psafe Module'
message: 'If you use this software, please cite it as below.'
type: software
authors:
  - given-names: Panagiotis
    family-names: Tzouras
    email: ptzouras@mail.ntua.gr
    affiliation: National Technical University of Athens
    orcid: 'https://orcid.org/0000-0001-7944-9094'
identifiers:
  - type: url
    value: 'https://github.com/panosgjuras/Psafe'
keywords:
  - simulation
  - agent-based
  - transportation planning
  - matsim
license: MIT
version: 0.0.1
date-released: '2024-10-24'

GitHub Events

Total
  • Public event: 1
  • Push event: 8
Last Year
  • Public event: 1
  • Push event: 8