Unsupervised Learning in Complex Systems