Scientists are using machine learning to monitor the health of reefs through sound. Here's how it works.