AI in Autonomous Vehicles: Enhancing Safety and Efficiency