Semi-parametric estimation of an isotropic Spatio-Temporal Hawkes process for car accidents on a road network
This repository includes data and codes to efficiently estimate a semi-parametric spatio-temporal Hawkes process on a road network. The model is applied to a dataset of road accidents that occurred within the Great Ring Road (GRA) surrounding the urban area of Rome. In particular, the model's specification can account for both spatial and temporal patterns characterizing such phenomena, and the road network topology is needed to make valid inference on the data generative process.
The repository contains:
- a folder, named ExampleRome_M1M2_42019, containing the codes to estimate the model on an example dataset concerning the road accidents that occurred in Municipio I and Municipio II of the City of Rome in April 2019.
- a subfolder ExampleRome_M1M2_42019/Data/ including the shapefiles and the raw data in .csv format
- a C++ file, named auxiliary.cpp, including auxiliary functions that are needed to efficiently compute the model ingredients
- Three additional R scripts that should be run sequentially:
- 0.data_preparation.R
- 1.kernel_computation.R
- 2.model_estimation.R
In what follows, we provide a general overview of the considered semi-parametric spatio-temporal Hawkes Process.
We seek to model the occurrence of traffic collisions over a spatio-temporal domain
In particular, we express these two components as in the semi-parametric spatio-temporal periodic Hawkes Process:
Let
The perform estimation we need to evaluate the relative impact of background and excitation in each event. We here propose a semi-parametric estimation procedure where the various functions' shapes are estimated non-parametrically through weighted kernel smoothing and the coefficients