SlideShare a Scribd company logo
A Comparative Analysis of Empirical Bayes and
Bayesian Hierarchical Models in Hotspot Identification
Xiaoyu “Sky” Guo
Lingtao Wu, Ph.D.
Yajie Zou, Ph.D.
Lee Fawcett, Ph.D.
TRB 98th Annual Meeting
January 15, 2019
Paper No.: 19-03519
Background
• Importance of Hotspot Identification (HSID)
– Inefficient use of limited resources
– Additional loss of lives
• Various Methods for HSID
– Crash frequency / Crash rate
– Equivalent property damage only
– Potential for improvement
– Empirical Bayes (EB)
2
Background
• EB Limitation: Temporary Instability in Crash Data
• EB Limitation: Parameter Estimation
• Bayesian Hierarchical Model
0
1
2
3
4
5
6
7
8
2010 2011 2012 2013 2014 2015
Crash
Year
Observed Crashes
EB
"Real"
3
Research Objective
• Perform HSID Methods
– Crash Rate
– Empirical Bayes
– Bayesian Hierarchical Model
• Assess the Performance using Four Evaluation Tests
– Site Consistency Test
– Method Consistency Test
– Total Rank Differences Test
– Poisson Mean Differences Test
4
Methodology
• Crash Rate (CR)
𝐶𝑟𝑎𝑠ℎ 𝑅𝑎𝑡𝑒 =
𝑂𝑏𝑠𝑒𝑟𝑣𝑒𝑑 𝑐𝑟𝑎𝑠ℎ
𝐸𝑥𝑝𝑜𝑠𝑢𝑟𝑒
• Empirical Bayes (EB)
𝑦 = 𝑤 ∗ 𝐸 𝑦 + 1 − 𝑤 ∗ 𝑦
where,
𝑦 = EB estimated crash
𝑤 = weight
𝐸 𝑦 = estimated crashes by crash prediction model
𝑦 = observed crash
5
Methodology
• Bayesian Hierarchical Model (BH; see Fawcett, Thorpe et al., AAP 2017)
𝑦 𝑡 |𝜆 𝑡 ~
𝑃𝑜𝑖 𝜆 𝑡 , 𝑡 ≥ 0;
𝑁𝐵 𝑟 =
𝜆 𝑡
𝑐 𝑡 − 1
, 𝑝 =
1
𝑐 𝑡
, 𝑡 < 0,
where,
𝑦 = BH estimated crash rate
𝑡 = time period
𝜆 = adjusted mean crash rate
𝑐 = time-varying parameter to inflate the variance
6
Mean = 𝜆 𝑡 ; Variance = 𝑐 𝑡 ∗ 𝜆 𝑡
Methodology
• Adjusted Mean Crash Rate, 𝜆 𝑡 :
𝜆 𝑡 = 𝜇 ∗ 𝑎 ∗ 𝑒 𝑏𝑡
where,
𝜇 = mean crash rate estimate
= f(predictor variables, t )
𝑎 = parameter of discrepancy
𝑏 = parameter of site-specific trend
Year 1
Year 2
0
1
2
3
4
5
Site 1 Site 2 Site 3
Crash
7
Methodology
• Priors
– Variance inflation factor 𝒄 𝒕 : We use a prior that reflects our belief about
how influential historical counts should be for making predictions
– Discrepancy parameter 𝒂: In the absence of any knowledge relating to
site-specific crash modification factors, we use a non-informative prior
– Site-specific trend parameter 𝒃: We use a prior that enables site-specific
deviations from the global trend only if there is significant evidence for this
• Implementation
– Use R-JAGS package to make inferences
– App: https://discover.ptvgroup.com/road-safety-evaluation-prediction
8
Period 2
Site
ID
Observed
Crash
Method A Method B
Rank
Estimated
Crash
Rank
Estimated
Crash
#1 2.4 2 2.9 2 3.2
#2 4.4 1 3.8 1 4.2
#3 1.8 3 1.2 3 2.3
Methodology
• Site Consistency Test
Period 1
Site
ID
Observed
Crash
Method A Method B
Rank
Estimated
Crash
Rank
Estimated
Crash
#1 4.3 1 3.9 2 2.5
#2 2.5 2 2.6 1 2.9
#3 3.5 3 3.2 3 2.3
Method Period 1 Period 2 Score Judgement
High Risk Site Estimated Crash Sum of Period 2
Method B is more
consistent than A.
Method A Site #1 2.9 2.9
Method B Site #2 4.2 4.2
Score B > Score A
9
Period 2
Site
ID
Observed
Crash
Method A Method B
Rank
Estimated
Crash
Rank
Estimated
Crash
#1 2.4 2 2.9 2 3.2
#2 4.4 1 3.8 1 4.2
#3 1.8 3 1.2 3 2.3
Methodology
• Method Consistency Test
Period 1
Site
ID
Observed
Crash
Method A Method B
Rank
Estimated
Crash
Rank
Estimated
Crash
#1 4.3 1 3.9 2 2.5
#2 2.5 2 2.6 1 2.9
#3 3.5 3 3.2 3 2.3
Method Period 1 Period 2 Score Judgement
High Risk Site High Risk Site # of Similar Sites
Method B is more
consistent than A.
Method A Site #1 Site #2 0
Method B Site #2 Site #2 1
Score B > Score A
10
Period 2
Site
ID
Observed
Crash
Method A Method B
Rank
Estimated
Crash
Rank
Estimated
Crash
#1 2.4 2 2.9 2 3.2
#2 4.4 1 3.8 1 4.2
#3 1.8 3 1.2 3 2.3
Methodology
• Total Rank Differences Test
Period 1
Site
ID
Observed
Crash
Method A Method B
Rank
Estimated
Crash
Rank
Estimated
Crash
#1 4.3 1 3.9 2 2.5
#2 2.5 2 2.6 1 2.9
#3 3.5 3 3.2 3 2.3
Method Period 1 Period 2 Score Judgement
Method A Site #1: Rank 1 Site #1: Rank 2 |1-2|=1
Method B is more
consistent than A.
Method B Site #2: Rank 1 Site #2: Rank 1 |1-1|=0
Score B < Score A
11
• Poisson Mean Differences Test
Period 1 Period 2 All Periods
Site
ID
Observed
Crash
Method A Method B Observed
Crash
Method A Method B Rank Crash
MeanRank Estimated
Crash
Rank Estimated
Crash
Rank Estimated
Crash
Rank Estimated
Crash
#1 4.3 1 3.9 2 2.5 2.4 2 2.9 2 3.2 2 3.35
#2 2.5 2 2.6 1 2.9 4.4 1 3.8 1 4.2 1 3.45
#3 3.5 3 3.2 3 2.3 1.8 3 1.2 3 2.3 3 2.65
Methodology
Method Period 1 Period 2 Score Judgement
Method A |3.35-3.45| |3.45-3.45| 0.10+0.00=0.10
Method B is more
consistent than A.
Method B |3.45-3.45| |3.45-3.45| 0.00+0.00=0.00
Score B < Score A
Critical Crash Mean
12
Data Description
• Data sites in the city of Halle, Germany
• Unsignalized intersections in urban area of 186 sites
• Variables
– Annual Crashes : 2004 ~ 2011
– Volume: AADT, Major Road, Minor Road
– Speed Limit: 30 kmph ~ 70 kmph, with 10 kmph increments
– Type of Intersection: Four Legs, Three Legs
13
Result
• Evaluation Results (Top 5% High Risk Sites)
Score
α = 0.050
2004 & 2005
vs.
2006 & 2007
2006 & 2007
vs.
2008 & 2009
2008 & 2009
vs.
2010 & 2011
CR EB BH CR EB BH CR EB BH
Test 1 92 270 296 76 258 268 93 257 272
Test 2 6 6 8 3 6 9 5 6 9
Test 3 71 67 25 77 92 3 67 69 3
Test 4 389 24 22 391 22 8 363 18 24
Bold and underline indicate the highest performance;
CR = Crash Rate; EB = Empirical Bayes; BH = Bayesian Hierarchical;
Test 1: Site consistency; Test 2: Method Consistency; Test 3: Total Rank Differences; Test 4: Poisson Mean Differences
14
Result
• Evaluation Results (Top 2.5% and 7.5% High Risk Sites)
Score
2004 & 2005
vs.
2006 & 2007
2006 & 2007
vs.
2008 & 2009
2008 & 2009
vs.
2010 & 2011
CR EB BH CR EB BH CR EB BH
𝛼 = 0.025
Test 1 32 144 129 27 137 152 37 138 138
Test 2 1 1 3 0 3 4 1 3 4
Test 3 36 27 20 44 23 3 47 5 4
Test 4 208 49 8 210 1 0 212 3 0
𝛼 = 0.075
Test 1 158 293 303 149 258 290 163 276 291
Test 2 7 5 11 8 6 13 8 8 11
Test 3 95 162 29 115 271 9 112 171 15
Test 4 300 81 32 321 40 15 315 30 27
15
Bold and underline indicate the highest performance;
CR = Crash Rate; EB = Empirical Bayes; BH = Bayesian Hierarchical;
Test 1: Site consistency; Test 2: Method Consistency; Test 3: Total Rank Differences; Test 4: Poisson Mean Differences
Summary
• Conclusion:
– Bayesian hierarchical model outperformed the empirical Bayes
approach in almost all the tests and periods
– Crash rate is not recommended
• Limitations
– Limited numbers of variables included in models
– HSID comparison on crash predictions
16
Questions?
Xiaoyu “Sky” Guo
Graduate Research Assistant
Texas A&M University
Texas A&M Transportation Institute
Email: xiaoyuguo@tamu.edu
TRB Paper No.: 19 - 03519
17
Auckland, New Zealand. Source: http://ourauckland.aucklandcouncil.govt.nz

More Related Content

Similar to Podium_20190115TRB

Due diligence reviews of mineral resource estimates
Due diligence reviews of mineral resource estimatesDue diligence reviews of mineral resource estimates
Due diligence reviews of mineral resource estimates
Peter Ravenscroft
 
7 Deadly Sins of AB Testing - Webinar
7 Deadly Sins of AB Testing - Webinar7 Deadly Sins of AB Testing - Webinar
7 Deadly Sins of AB Testing - Webinar
Mackenzie Rae Knapp
 
Charles Cotter's PhD research findings & recommendations_Strategic L&D
Charles Cotter's PhD research findings & recommendations_Strategic L&DCharles Cotter's PhD research findings & recommendations_Strategic L&D
Charles Cotter's PhD research findings & recommendations_Strategic L&D
Charles Cotter, PhD
 
Leveraging Siebel CTMS for Risk-Based Monitoring
Leveraging Siebel CTMS for Risk-Based MonitoringLeveraging Siebel CTMS for Risk-Based Monitoring
Leveraging Siebel CTMS for Risk-Based Monitoring
Perficient, Inc.
 
Risk based monitoring presentation by triumph research intelligence january 2014
Risk based monitoring presentation by triumph research intelligence january 2014Risk based monitoring presentation by triumph research intelligence january 2014
Risk based monitoring presentation by triumph research intelligence january 2014
Triumph Consultancy Services
 
Test Case Design Techniques
Test Case Design TechniquesTest Case Design Techniques
Test Case Design Techniques
Murageppa-QA
 
Risk Based Monitoring presentation by Triumph Research Intelligence January 2014
Risk Based Monitoring presentation by Triumph Research Intelligence January 2014Risk Based Monitoring presentation by Triumph Research Intelligence January 2014
Risk Based Monitoring presentation by Triumph Research Intelligence January 2014
Triumph Consultancy Services
 
How can A/B testing go wrong?
How can A/B testing go wrong?How can A/B testing go wrong?
How can A/B testing go wrong?
LivePerson
 
Ab test
Ab testAb test
Ab test
Shlomo Lahav
 
M5.pptx
M5.pptxM5.pptx
M5.pptx
mohansjbit
 
Multi-method Evaluation in Scientific Paper Recommender Systems
Multi-method Evaluation in Scientific Paper Recommender SystemsMulti-method Evaluation in Scientific Paper Recommender Systems
Multi-method Evaluation in Scientific Paper Recommender Systems
Aravind Sesagiri Raamkumar
 
SBP
SBPSBP
Galambos_SlidesNEAIR2015
Galambos_SlidesNEAIR2015Galambos_SlidesNEAIR2015
Galambos_SlidesNEAIR2015
Nora Galambos, PhD
 
Risk Assessment Hazardous Liquid Pipeline Integrity
Risk Assessment Hazardous Liquid Pipeline IntegrityRisk Assessment Hazardous Liquid Pipeline Integrity
Risk Assessment Hazardous Liquid Pipeline Integrity
Audubon Engineering Company
 
Webinar on Environmental Footprint data quality
Webinar on Environmental Footprint data qualityWebinar on Environmental Footprint data quality
Webinar on Environmental Footprint data quality
Marisa Vieira
 
Gaur11428
Gaur11428Gaur11428
Gaur11428
Priyanka Gaur
 
Design of Experiments
Design of ExperimentsDesign of Experiments
Design of Experiments
Dr. Keerti Jain
 
[HCMC STC Jan 2015] Risk-Based Software Testing Approaches
[HCMC STC Jan 2015] Risk-Based Software Testing Approaches[HCMC STC Jan 2015] Risk-Based Software Testing Approaches
[HCMC STC Jan 2015] Risk-Based Software Testing Approaches
Ho Chi Minh City Software Testing Club
 
Integrating risk with earned value
Integrating risk with earned valueIntegrating risk with earned value
Integrating risk with earned value
Glen Alleman
 
rryghg.ppt
rryghg.pptrryghg.ppt
rryghg.ppt
ReenaSharma833185
 

Similar to Podium_20190115TRB (20)

Due diligence reviews of mineral resource estimates
Due diligence reviews of mineral resource estimatesDue diligence reviews of mineral resource estimates
Due diligence reviews of mineral resource estimates
 
7 Deadly Sins of AB Testing - Webinar
7 Deadly Sins of AB Testing - Webinar7 Deadly Sins of AB Testing - Webinar
7 Deadly Sins of AB Testing - Webinar
 
Charles Cotter's PhD research findings & recommendations_Strategic L&D
Charles Cotter's PhD research findings & recommendations_Strategic L&DCharles Cotter's PhD research findings & recommendations_Strategic L&D
Charles Cotter's PhD research findings & recommendations_Strategic L&D
 
Leveraging Siebel CTMS for Risk-Based Monitoring
Leveraging Siebel CTMS for Risk-Based MonitoringLeveraging Siebel CTMS for Risk-Based Monitoring
Leveraging Siebel CTMS for Risk-Based Monitoring
 
Risk based monitoring presentation by triumph research intelligence january 2014
Risk based monitoring presentation by triumph research intelligence january 2014Risk based monitoring presentation by triumph research intelligence january 2014
Risk based monitoring presentation by triumph research intelligence january 2014
 
Test Case Design Techniques
Test Case Design TechniquesTest Case Design Techniques
Test Case Design Techniques
 
Risk Based Monitoring presentation by Triumph Research Intelligence January 2014
Risk Based Monitoring presentation by Triumph Research Intelligence January 2014Risk Based Monitoring presentation by Triumph Research Intelligence January 2014
Risk Based Monitoring presentation by Triumph Research Intelligence January 2014
 
How can A/B testing go wrong?
How can A/B testing go wrong?How can A/B testing go wrong?
How can A/B testing go wrong?
 
Ab test
Ab testAb test
Ab test
 
M5.pptx
M5.pptxM5.pptx
M5.pptx
 
Multi-method Evaluation in Scientific Paper Recommender Systems
Multi-method Evaluation in Scientific Paper Recommender SystemsMulti-method Evaluation in Scientific Paper Recommender Systems
Multi-method Evaluation in Scientific Paper Recommender Systems
 
SBP
SBPSBP
SBP
 
Galambos_SlidesNEAIR2015
Galambos_SlidesNEAIR2015Galambos_SlidesNEAIR2015
Galambos_SlidesNEAIR2015
 
Risk Assessment Hazardous Liquid Pipeline Integrity
Risk Assessment Hazardous Liquid Pipeline IntegrityRisk Assessment Hazardous Liquid Pipeline Integrity
Risk Assessment Hazardous Liquid Pipeline Integrity
 
Webinar on Environmental Footprint data quality
Webinar on Environmental Footprint data qualityWebinar on Environmental Footprint data quality
Webinar on Environmental Footprint data quality
 
Gaur11428
Gaur11428Gaur11428
Gaur11428
 
Design of Experiments
Design of ExperimentsDesign of Experiments
Design of Experiments
 
[HCMC STC Jan 2015] Risk-Based Software Testing Approaches
[HCMC STC Jan 2015] Risk-Based Software Testing Approaches[HCMC STC Jan 2015] Risk-Based Software Testing Approaches
[HCMC STC Jan 2015] Risk-Based Software Testing Approaches
 
Integrating risk with earned value
Integrating risk with earned valueIntegrating risk with earned value
Integrating risk with earned value
 
rryghg.ppt
rryghg.pptrryghg.ppt
rryghg.ppt
 

Recently uploaded

FULL STACK PROGRAMMING - Both Front End and Back End
FULL STACK PROGRAMMING - Both Front End and Back EndFULL STACK PROGRAMMING - Both Front End and Back End
FULL STACK PROGRAMMING - Both Front End and Back End
PreethaV16
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
uqyfuc
 
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
PriyankaKilaniya
 
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
upoux
 
Blood finder application project report (1).pdf
Blood finder application project report (1).pdfBlood finder application project report (1).pdf
Blood finder application project report (1).pdf
Kamal Acharya
 
Transformers design and coooling methods
Transformers design and coooling methodsTransformers design and coooling methods
Transformers design and coooling methods
Roger Rozario
 
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
MadhavJungKarki
 
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Transcat
 
Open Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surfaceOpen Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surface
Indrajeet sahu
 
Generative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdfGenerative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdf
mahaffeycheryld
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
Kamal Acharya
 
Supermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdfSupermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdf
Kamal Acharya
 
Unit -II Spectroscopy - EC I B.Tech.pdf
Unit -II Spectroscopy - EC  I B.Tech.pdfUnit -II Spectroscopy - EC  I B.Tech.pdf
Unit -II Spectroscopy - EC I B.Tech.pdf
TeluguBadi
 
5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf
AlvianRamadhani5
 
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
DharmaBanothu
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
ElakkiaU
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
21UME003TUSHARDEB
 
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdfAsymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
felixwold
 
Introduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.pptIntroduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.ppt
Dwarkadas J Sanghvi College of Engineering
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
Divyanshu
 

Recently uploaded (20)

FULL STACK PROGRAMMING - Both Front End and Back End
FULL STACK PROGRAMMING - Both Front End and Back EndFULL STACK PROGRAMMING - Both Front End and Back End
FULL STACK PROGRAMMING - Both Front End and Back End
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
 
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
Prediction of Electrical Energy Efficiency Using Information on Consumer's Ac...
 
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
一比一原版(osu毕业证书)美国俄勒冈州立大学毕业证如何办理
 
Blood finder application project report (1).pdf
Blood finder application project report (1).pdfBlood finder application project report (1).pdf
Blood finder application project report (1).pdf
 
Transformers design and coooling methods
Transformers design and coooling methodsTransformers design and coooling methods
Transformers design and coooling methods
 
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
1FIDIC-CONSTRUCTION-CONTRACT-2ND-ED-2017-RED-BOOK.pdf
 
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
Tools & Techniques for Commissioning and Maintaining PV Systems W-Animations ...
 
Open Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surfaceOpen Channel Flow: fluid flow with a free surface
Open Channel Flow: fluid flow with a free surface
 
Generative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdfGenerative AI Use cases applications solutions and implementation.pdf
Generative AI Use cases applications solutions and implementation.pdf
 
Accident detection system project report.pdf
Accident detection system project report.pdfAccident detection system project report.pdf
Accident detection system project report.pdf
 
Supermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdfSupermarket Management System Project Report.pdf
Supermarket Management System Project Report.pdf
 
Unit -II Spectroscopy - EC I B.Tech.pdf
Unit -II Spectroscopy - EC  I B.Tech.pdfUnit -II Spectroscopy - EC  I B.Tech.pdf
Unit -II Spectroscopy - EC I B.Tech.pdf
 
5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf5G Radio Network Througput Problem Analysis HCIA.pdf
5G Radio Network Througput Problem Analysis HCIA.pdf
 
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
A high-Speed Communication System is based on the Design of a Bi-NoC Router, ...
 
An Introduction to the Compiler Designss
An Introduction to the Compiler DesignssAn Introduction to the Compiler Designss
An Introduction to the Compiler Designss
 
Mechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdfMechanical Engineering on AAI Summer Training Report-003.pdf
Mechanical Engineering on AAI Summer Training Report-003.pdf
 
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdfAsymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
Asymmetrical Repulsion Magnet Motor Ratio 6-7.pdf
 
Introduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.pptIntroduction to Computer Networks & OSI MODEL.ppt
Introduction to Computer Networks & OSI MODEL.ppt
 
Null Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAMNull Bangalore | Pentesters Approach to AWS IAM
Null Bangalore | Pentesters Approach to AWS IAM
 

Podium_20190115TRB

  • 1. A Comparative Analysis of Empirical Bayes and Bayesian Hierarchical Models in Hotspot Identification Xiaoyu “Sky” Guo Lingtao Wu, Ph.D. Yajie Zou, Ph.D. Lee Fawcett, Ph.D. TRB 98th Annual Meeting January 15, 2019 Paper No.: 19-03519
  • 2. Background • Importance of Hotspot Identification (HSID) – Inefficient use of limited resources – Additional loss of lives • Various Methods for HSID – Crash frequency / Crash rate – Equivalent property damage only – Potential for improvement – Empirical Bayes (EB) 2
  • 3. Background • EB Limitation: Temporary Instability in Crash Data • EB Limitation: Parameter Estimation • Bayesian Hierarchical Model 0 1 2 3 4 5 6 7 8 2010 2011 2012 2013 2014 2015 Crash Year Observed Crashes EB "Real" 3
  • 4. Research Objective • Perform HSID Methods – Crash Rate – Empirical Bayes – Bayesian Hierarchical Model • Assess the Performance using Four Evaluation Tests – Site Consistency Test – Method Consistency Test – Total Rank Differences Test – Poisson Mean Differences Test 4
  • 5. Methodology • Crash Rate (CR) 𝐶𝑟𝑎𝑠ℎ 𝑅𝑎𝑡𝑒 = 𝑂𝑏𝑠𝑒𝑟𝑣𝑒𝑑 𝑐𝑟𝑎𝑠ℎ 𝐸𝑥𝑝𝑜𝑠𝑢𝑟𝑒 • Empirical Bayes (EB) 𝑦 = 𝑤 ∗ 𝐸 𝑦 + 1 − 𝑤 ∗ 𝑦 where, 𝑦 = EB estimated crash 𝑤 = weight 𝐸 𝑦 = estimated crashes by crash prediction model 𝑦 = observed crash 5
  • 6. Methodology • Bayesian Hierarchical Model (BH; see Fawcett, Thorpe et al., AAP 2017) 𝑦 𝑡 |𝜆 𝑡 ~ 𝑃𝑜𝑖 𝜆 𝑡 , 𝑡 ≥ 0; 𝑁𝐵 𝑟 = 𝜆 𝑡 𝑐 𝑡 − 1 , 𝑝 = 1 𝑐 𝑡 , 𝑡 < 0, where, 𝑦 = BH estimated crash rate 𝑡 = time period 𝜆 = adjusted mean crash rate 𝑐 = time-varying parameter to inflate the variance 6 Mean = 𝜆 𝑡 ; Variance = 𝑐 𝑡 ∗ 𝜆 𝑡
  • 7. Methodology • Adjusted Mean Crash Rate, 𝜆 𝑡 : 𝜆 𝑡 = 𝜇 ∗ 𝑎 ∗ 𝑒 𝑏𝑡 where, 𝜇 = mean crash rate estimate = f(predictor variables, t ) 𝑎 = parameter of discrepancy 𝑏 = parameter of site-specific trend Year 1 Year 2 0 1 2 3 4 5 Site 1 Site 2 Site 3 Crash 7
  • 8. Methodology • Priors – Variance inflation factor 𝒄 𝒕 : We use a prior that reflects our belief about how influential historical counts should be for making predictions – Discrepancy parameter 𝒂: In the absence of any knowledge relating to site-specific crash modification factors, we use a non-informative prior – Site-specific trend parameter 𝒃: We use a prior that enables site-specific deviations from the global trend only if there is significant evidence for this • Implementation – Use R-JAGS package to make inferences – App: https://discover.ptvgroup.com/road-safety-evaluation-prediction 8
  • 9. Period 2 Site ID Observed Crash Method A Method B Rank Estimated Crash Rank Estimated Crash #1 2.4 2 2.9 2 3.2 #2 4.4 1 3.8 1 4.2 #3 1.8 3 1.2 3 2.3 Methodology • Site Consistency Test Period 1 Site ID Observed Crash Method A Method B Rank Estimated Crash Rank Estimated Crash #1 4.3 1 3.9 2 2.5 #2 2.5 2 2.6 1 2.9 #3 3.5 3 3.2 3 2.3 Method Period 1 Period 2 Score Judgement High Risk Site Estimated Crash Sum of Period 2 Method B is more consistent than A. Method A Site #1 2.9 2.9 Method B Site #2 4.2 4.2 Score B > Score A 9
  • 10. Period 2 Site ID Observed Crash Method A Method B Rank Estimated Crash Rank Estimated Crash #1 2.4 2 2.9 2 3.2 #2 4.4 1 3.8 1 4.2 #3 1.8 3 1.2 3 2.3 Methodology • Method Consistency Test Period 1 Site ID Observed Crash Method A Method B Rank Estimated Crash Rank Estimated Crash #1 4.3 1 3.9 2 2.5 #2 2.5 2 2.6 1 2.9 #3 3.5 3 3.2 3 2.3 Method Period 1 Period 2 Score Judgement High Risk Site High Risk Site # of Similar Sites Method B is more consistent than A. Method A Site #1 Site #2 0 Method B Site #2 Site #2 1 Score B > Score A 10
  • 11. Period 2 Site ID Observed Crash Method A Method B Rank Estimated Crash Rank Estimated Crash #1 2.4 2 2.9 2 3.2 #2 4.4 1 3.8 1 4.2 #3 1.8 3 1.2 3 2.3 Methodology • Total Rank Differences Test Period 1 Site ID Observed Crash Method A Method B Rank Estimated Crash Rank Estimated Crash #1 4.3 1 3.9 2 2.5 #2 2.5 2 2.6 1 2.9 #3 3.5 3 3.2 3 2.3 Method Period 1 Period 2 Score Judgement Method A Site #1: Rank 1 Site #1: Rank 2 |1-2|=1 Method B is more consistent than A. Method B Site #2: Rank 1 Site #2: Rank 1 |1-1|=0 Score B < Score A 11
  • 12. • Poisson Mean Differences Test Period 1 Period 2 All Periods Site ID Observed Crash Method A Method B Observed Crash Method A Method B Rank Crash MeanRank Estimated Crash Rank Estimated Crash Rank Estimated Crash Rank Estimated Crash #1 4.3 1 3.9 2 2.5 2.4 2 2.9 2 3.2 2 3.35 #2 2.5 2 2.6 1 2.9 4.4 1 3.8 1 4.2 1 3.45 #3 3.5 3 3.2 3 2.3 1.8 3 1.2 3 2.3 3 2.65 Methodology Method Period 1 Period 2 Score Judgement Method A |3.35-3.45| |3.45-3.45| 0.10+0.00=0.10 Method B is more consistent than A. Method B |3.45-3.45| |3.45-3.45| 0.00+0.00=0.00 Score B < Score A Critical Crash Mean 12
  • 13. Data Description • Data sites in the city of Halle, Germany • Unsignalized intersections in urban area of 186 sites • Variables – Annual Crashes : 2004 ~ 2011 – Volume: AADT, Major Road, Minor Road – Speed Limit: 30 kmph ~ 70 kmph, with 10 kmph increments – Type of Intersection: Four Legs, Three Legs 13
  • 14. Result • Evaluation Results (Top 5% High Risk Sites) Score α = 0.050 2004 & 2005 vs. 2006 & 2007 2006 & 2007 vs. 2008 & 2009 2008 & 2009 vs. 2010 & 2011 CR EB BH CR EB BH CR EB BH Test 1 92 270 296 76 258 268 93 257 272 Test 2 6 6 8 3 6 9 5 6 9 Test 3 71 67 25 77 92 3 67 69 3 Test 4 389 24 22 391 22 8 363 18 24 Bold and underline indicate the highest performance; CR = Crash Rate; EB = Empirical Bayes; BH = Bayesian Hierarchical; Test 1: Site consistency; Test 2: Method Consistency; Test 3: Total Rank Differences; Test 4: Poisson Mean Differences 14
  • 15. Result • Evaluation Results (Top 2.5% and 7.5% High Risk Sites) Score 2004 & 2005 vs. 2006 & 2007 2006 & 2007 vs. 2008 & 2009 2008 & 2009 vs. 2010 & 2011 CR EB BH CR EB BH CR EB BH 𝛼 = 0.025 Test 1 32 144 129 27 137 152 37 138 138 Test 2 1 1 3 0 3 4 1 3 4 Test 3 36 27 20 44 23 3 47 5 4 Test 4 208 49 8 210 1 0 212 3 0 𝛼 = 0.075 Test 1 158 293 303 149 258 290 163 276 291 Test 2 7 5 11 8 6 13 8 8 11 Test 3 95 162 29 115 271 9 112 171 15 Test 4 300 81 32 321 40 15 315 30 27 15 Bold and underline indicate the highest performance; CR = Crash Rate; EB = Empirical Bayes; BH = Bayesian Hierarchical; Test 1: Site consistency; Test 2: Method Consistency; Test 3: Total Rank Differences; Test 4: Poisson Mean Differences
  • 16. Summary • Conclusion: – Bayesian hierarchical model outperformed the empirical Bayes approach in almost all the tests and periods – Crash rate is not recommended • Limitations – Limited numbers of variables included in models – HSID comparison on crash predictions 16
  • 17. Questions? Xiaoyu “Sky” Guo Graduate Research Assistant Texas A&M University Texas A&M Transportation Institute Email: xiaoyuguo@tamu.edu TRB Paper No.: 19 - 03519 17 Auckland, New Zealand. Source: http://ourauckland.aucklandcouncil.govt.nz