Machine learning for analysing ab initio molecular dynamics simulations