Steerable Optics with Prediction for Adverse Conditions Detection