Hysteretic behavior of flow recession dynamics: Application of machine learning and learning from the machine