National Academies Press: OpenBook
« Previous: Chapter 2 - Data Requirements
Page 17
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 17
Page 18
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 18
Page 19
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 19
Page 20
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 20
Page 21
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 21
Page 22
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 22
Page 23
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 23
Page 24
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 24
Page 25
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 25
Page 26
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 26
Page 27
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 27
Page 28
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 28
Page 29
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 29
Page 30
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 30
Page 31
Suggested Citation:"Chapter 3 - Introduction to the Tool." National Academies of Sciences, Engineering, and Medicine. 2023. Development and Application of Crash Severity Models for Highway Safety: User Guidelines. Washington, DC: The National Academies Press. doi: 10.17226/27038.
×
Page 31

Below is the uncorrected machine-read text of this chapter, intended to provide our own search engines and external engines with highly rich, chapter-representative searchable text of each book. Because it is UNCORRECTED material, please consider the following text as a useful but insufficient proxy for the authoritative book pages.

17   The project team developed an R Shiny (https://shiny.rstudio.com/) web-based application for generating the QIE variables and predicting crashes by severity using one of the three new modeling approaches. Shiny is an open-source R package that provides a framework for building web applications using R. The advantages of developing an R Shiny application include (1) R is a modern data science tool that is widely accepted by researchers and practitioners, (2) it is easier to develop an R application with it than with some other applications, (3) the user interface can be made simple and easy to use, (4) it is less error-prone compared to some other tools with copying and pasting maneuvers, (5) the same level of flexibility such as allowing users to input their own data files and parameter files can be provided, and (6) the QIE data generation step cannot be implemented in some other applications. Consequently, adding the crash prediction step and making it an all-in-one solution is convenient to end-users. Steps to use the tool are presented in the following. 3.1 Access the Tool The application is available for download as a ZIP file on the National Academies Press website (nap.nationalacademies.org) by searching for NCHRP Research Report 1047: Development and Application of Crash Severity Models for Highway Safety. The user will need a browser installed to access the URL (e.g., Microsoft Edge, Chrome, Firefox, or Safari). Once the files are unzipped, please refer to the installation instructions in the “Desktop_Software_Tool_Instructions.docx” file. Once installed, you will see four tabs in the navigation bar: the “Home” page, the “Generate QIE Variables” page, the “Predict Crashes by Severity” page, and the “Read More – Model Speci- fications” page. The “Home” page introduces the objectives of the project, as shown in Figure 3-1. 3.2 Introduction of the QIE Step On the “Generate QIE Variables” page, the QIE method is first introduced, and a working area is provided to import data and run the QIE process, as presented in Figure 3-2 and Figure 3-3. C H A P T E R 3 Introduction to the Tool

Figure 3-1. Home page.

Figure 3-2. Introduction of the QIE method.

Figure 3-3. Working area for generating QIE variables.

Introduction to the Tool 21   To run the QIE process, choose a QIE roadway file and a QIE driver file from your computer to import, as shown in Figure 3-4. The input files must conform to the requirements as discussed in Section 3.1. The files are required to be in comma-separated values (i.e., csv) format. File names can be anything the user chooses, conforming to system specifications. A sample roadway file and driver file can be downloaded by clicking “Download A Sample QIE Roadway File” and “Download A Sample QIE Driver File.” Once the input files are uploaded, as shown in Figure 3-5, click the “Generate QIE Variables” button to get the process running. Note that depending on the size of the input files, this process may take some time to run. The generated QIE variables will be appended to the input roadway file and downloaded automatically to your “Download” folder once the process is completed. Please do not leave the webpage while waiting for the process to complete. The downloaded file has a name starting with “QIE_data_” and ending with the date of the run. It is recommended that you immediately rename this file if you wish to archive it. Figure 3-6 presents a sample result of the input files. Figure 3-4. Importing roadway and driver files. Figure 3-5. Run the QIE process.

22 Development and Application of Crash Severity Models for Highway Safety: User Guidelines 3.3 Introduction of the Crash Prediction Step On the “Predict Crashes by Severity” page, the facility types implemented in this tool and the default recommended modeling frameworks for each facility type are first introduced, and a working area is provided to import data and run the crash prediction process, as presented in Figure 3-7 and Figure 3-8. Figure 3-6. Example result of the QIE process.

Figure 3-7. Introduction of the facility types and models.

24 Development and Application of Crash Severity Models for Highway Safety: User Guidelines Figure 3-8. Working area for predicting crashes by facility types. Figure 3-9. Select a facility type. Step 1: Select a Facility Type To predict crashes by severity using the modeling frameworks recommended in this project, four to six steps are required, depending on the framework developed for the facility type. The first step is to select a facility type, as shown in Figure 3-9. The recommended modeling frame- work for each facility type as introduced in Chapter 2 of this guide was implemented.

Introduction to the Tool 25   Step 3: Import Your Roadway File The third step is to import the crash prediction roadway file (denoted as RoadFile2 in Fig- ure 1-1), as shown in Figure 3-11. Note that this file needs to include the QIE variables, either generated from the QIE step or collected through other sources. The input file needs to meet the requirements as discussed in Section 3.2 of this guide. You can download a sample roadway file by clicking “Download A Sample Roadway File.” Figure 3-10. Select number of years crashes to predict. Figure 3-11. Import the roadway file with QIE variables. Step 2: Select Number of Years of Crashes to Predict The second step is to select the number of years of crashes to predict, as shown in Figure 3-10. By default, 1 year of crashes will be predicted. The predicted total crashes or crashes by severity levels in the output file are aggregated into the selected number of years.

26 Development and Application of Crash Severity Models for Highway Safety: User Guidelines Figure 3-12. Import or use default parameter estimates. Step 4 and More: Import Your Parameter Estimates Files This step is where users are given the opportunity to either use the default parameter estimates (model coefficients) or provide their own model coefficients. Most users will want to check the box at the top of the input area and use the default coefficients, as shown in Figure 3-12, where it says: “To use the default parameter estimates check this box.” If the box is checked, the input module for the parameter file will be hidden. The default coefficient file can be downloaded by clicking “Download the Default Coefficient File.” If users prefer to use parameters that were estimated for their jurisdiction, the input param- eter file must meet the requirements as discussed in Section 3.2. Depending on the facility type selected (and thus the default recommended model selected), different types of input files will be required. For instance, if any of the multilane rural facility types is selected, the multilevel model is recommended. This modeling framework requires three separate parameter estimate files—one for the univariate count model, one for the connection model, and another for the discrete outcome model—as shown in Figure 3-13. If users wish to change what they have already entered, the input files can be cleared by clicking the “Clear the Input or Default Files” button (see Figure 3-14). This will clear the files imported or selected in Step 3 and Step 4. Once the roadway file and the parameter files are imported, the “Summary of Input Vari- ables” will display the names of the variables (variables that start with “Var_”) in both files. If the variable names from the roadway file match exactly with the parameter files, a message will say “Good job! The roadway file contains all columns needed for matching with the parameter files!” as shown in Figure 3-15. If the variable names do not match, or variable names in the parameter files are missing from the roadway file, a message will say “Error: the roadway file does not contain all columns needed for matching with all the parameter files. Please make sure the column names starting with ‘Var_’ in both files match exactly!” as shown in Figure 3-16.

Figure 3-13. Parameter files required for the multilevel modeling framework. Figure 3-14. Clear the input files.

28 Development and Application of Crash Severity Models for Highway Safety: User Guidelines Figure 3-15. Summary of input variables if match. Figure 3-16. Summary of input variables if not match. If the variable names do not match, please check, modify, and make sure the names match exactly, then clear the input les and upload them again. Please note that the models estimated for this project only include the variables listed in this report. If a jurisdiction has additional input variables, they will not be needed for applying the project models. If they are le in the input le, they will be ignored by the soware tool. If a user wants to use any additional variables for crash prediction, they have to estimate their own models that use those variables. e tool is designed to be exible about permitting a user to dene their own variables as long as the user can also provide a set of coecients for those variables. If the variable names match exactly, you will see the “Download Output” section appear on the screen, as shown in Figure 3-17. Click the “Run the prediction processes” button to get the prediction model running. It usually only takes a few seconds to generate the predictions, and the output le will be downloaded automatically. A sample output form from the rural two-lane highway segment model is presented in Fig- ure 3-18. (Column names are highlighted in yellow here for demonstration purposes; they are

Figure 3-17. Download the output.

Figure 3-18. Prediction output from the rural two-lane highway segment model (univariate).

Introduction to the Tool 31   not highlighted in your downloaded output file.) Note that the raw predictions directly coming out of the models, the calibration factors, and the predictions with the calibration factors applied are all preserved in the output. Calibration factors should be calculated whenever the models are applied to a dataset that has a different time period or is from a different region. If, for some reason, users decide not to use the calibration factors automatically calculated from the tool, they may refer to the prediction values without calibration in the output. The rules that follow are used in the tool for calculating the calibration factors: • Calibration is done at the end by injury severity levels. • A threshold of a minimum of 30 crashes is used for determining whether there are sufficient data for calculating calibration factors: – If at least 30 crashes are observed for each severity level, then five individual calibration factors (by severity level) are calculated. – If fewer than 30 crashes are observed for O crashes, then a single KABCO calibration factor is calculated and applied to each of the five severity levels. – If at least 30 crashes are observed for O crashes, but fewer than 30 crashes are observed for C crashes, then a calibration factor for O and a calibration factor for KABC are calculated. – If at least 30 crashes are observed for O and C crashes separately, but fewer than 30 crashes are observed for B crashes, then a calibration factor for O, a calibration factor for C, and a calibration factor for KAB are calculated. – If at least 30 crashes are observed for O, C, and B crashes separately, but fewer than 30 crashes are observed for A crashes or K crashes separately, then a calibration factor for O, a calibra- tion factor for C, a calibration factor for B, and a calibration factor for KA are calculated.

Next: Chapter 4 - Summary »
Development and Application of Crash Severity Models for Highway Safety: User Guidelines Get This Book
×
 Development and Application of Crash Severity Models for Highway Safety: User Guidelines
MyNAP members save 10% online.
Login or Register to save!
Download Free PDF

As the Highway Safety Manual continues to evolve, determining the potential crash severity at a location becomes an increasingly vital component in predicting safety performance.

NCHRP Research Report 1047: Development and Application of Crash Severity Models for Highway Safety: User Guidelines, from TRB's National Cooperative Highway Research Program, is designed to help predict crashes by injury severity on rural two-lane, two-way roadways, rural multi-lane highways, and urban and suburban arterials.

Supplemental to the report is NCHRP Web-Only Document 351: Development and Application of Crash Severity Models for HighwaySafety: Conduct of Research Report, a presentation summarizing the research, and a Crash Severity Count Prediction Tool.

READ FREE ONLINE

  1. ×

    Welcome to OpenBook!

    You're looking at OpenBook, NAP.edu's online reading room since 1999. Based on feedback from you, our users, we've made some improvements that make it easier than ever to read thousands of publications on our website.

    Do you want to take a quick tour of the OpenBook's features?

    No Thanks Take a Tour »
  2. ×

    Show this book's table of contents, where you can jump to any chapter by name.

    « Back Next »
  3. ×

    ...or use these buttons to go back to the previous chapter or skip to the next one.

    « Back Next »
  4. ×

    Jump up to the previous page or down to the next one. Also, you can type in a page number and press Enter to go directly to that page in the book.

    « Back Next »
  5. ×

    To search the entire text of this book, type in your search term here and press Enter.

    « Back Next »
  6. ×

    Share a link to this book page on your preferred social network or via email.

    « Back Next »
  7. ×

    View our suggested citation for this chapter.

    « Back Next »
  8. ×

    Ready to take your reading offline? Click here to buy this book in print or download it as a free PDF, if available.

    « Back Next »
Stay Connected!