Militaries and startups use artificial intelligence to sift through vast amounts of data and power autonomous underwater vehicles, boosting efforts to surveil the seabed.