Design a machine learning model to predict and mitigate the risk of collisions with wildlife.
Instruction: Design an animal-detection and motion-prediction evaluation within a stated driving domain. A hypothetical test has 100 animal-hazard encounters with 90 detected and 10,000 non-hazard encounters with 200 false alerts. Compute recall and precision, then explain why a balanced test sample can give a misleading alert-precision estimate.
For the arithmetic, encounters are labeled units and each produces at most one alert. The numbers are supplied observations, not evidence of an actual driving system. A balanced comparison has the same 90 detected hazards and 2 false alerts among 100 non-hazard encounters.
Updated
Worked answer
Recall is 90/100=90%. Precision in the first sample is 90/(90+200), about 31.0%. The balanced comparison has precision 90/(90+2), about 97.8%, despite the same 90% recall and 2% false-positive rate. Alert precision depends on prevalence; a balanced development sample does not establish the production alert burden.
Define the intended animal/road/weather conditions and separate detecting an animal, tracking it, predicting possible motion and evaluating a feasible response. A CNN plus a temporal model is one candidate, not evidence of accurate collision probability. Range estimates need calibrated sensor geometry and uncertainty. Unknown species, occlusion and abrupt movements require explicit tests.
Split related drives and locations appropriately to avoid leakage. Preserve representative prevalence for calibration and operational evaluation, document rare-event sampling and labeling, and report uncertainty by relevant conditions. Measure detection delay, missed encounters and false alerts alongside trajectory prediction and downstream behavior; generic F 1 alone is insufficient.
Predictions are inputs to a validated planner and controller. A false alert can provoke a hazardous response, and a lane change or stop is not universally safe. Evaluate the whole system under reviewed constraints and do not claim that the numerical detector metrics establish safe road operation.