Predictive hazard detection and risk analysis