Predicting the motion of a high-Q pendulum subject to seismic perturbations using machine learning