predict rainflow based on topological data