SPF-R Web Tool
The Highway Safety Manual (HSM) was first published by AASHTO in 2010 and provides guidance for safety analysis in highway transportation project planning and development. The HSM contains predictive methods for infrastructure improvement project alternative analysis and development/design including the use of national safety performance functions developed to predict crashes by severity specific facility types and base conditions; and associated crash modification factors (CMFs) to estimate the potential effects of design alternatives or changes from base conditions.
In 2017 the Kentucky Transportation Center developed a tool using the free and open-source statistical computing and graphics environment “R”. Utilizing methods outlined by the HSM, code was created in R to automate SPF development to improve regression models. The tool became known as SPF-R and allowed states that have not adopted newer methodologies due to the difficulties related to SPF development the ability to create Safety Performance Functions. SPF-R provides immediate feedback in SPF development, including goodness-of-fit measures and depictions of the model. SPF-R is now in the FHWA Safety Toolbox, but it does require someone with a working knowledge of how to run R code, as well as an application downloaded to a computer in order to run.
Recognizing that running code may be a barrier for some, this new version of the code takes the SPF-R and runs it on a server. A new web interface has been developed so SPFs may be developed through a user’s web browser simply by uploading a CSV file with certain predefined parameters. Users of this new tool will have fewer technical challenges getting SPF-R working as the mechanics are all handled online. SPF-R online is still free and open-source, but in this current form it is more accessible than ever before.