L2F Topological learning for early warning signals