Development of a Digital Twin Model for Real-Time Assessment of Collision Hazards