Text this: Inferring topological transitions in pattern-forming processes with self-supervised learning.