On-Board Collision Avoidance Applications Based on Machine Learning and Analytical Methods