Optimization Methods Incorporating Statistical And Machine Learning Models In Traffic Safety