Detects and mitigates risks of collision