Machine learning used to predict earthquakes in a lab setting