Learning-based event response for marine robotics