Hybridization of front tracking and level set for multiphase flow simulations: a machine learning approach