Artificial intelligence will help with that. For high value activities like detecting underwater mines and collecting data for underwater oil spills, etc., there should be enough funding to make these autonomous.