Artificial intelligence is revolutionizing our understanding of complex systems by uncovering simple rules that govern seemingly chaotic phenomena.