Autonomous underwater vehicle guidance by integrating neural networks and geometric reasoning