New tool skillfully predicts marine habitat shifts