Physics-Inspired Machine Learning for Multiphase Flow Modeling