Researchers use dynamical systems and machine learning to add spontaneity to AI