This paper discusses the relationship between the change of flow patterns and the flow rates. Furthermore, a convolutional neural network (CNN) algorithm is proposed to predict the oil flow rate, gas flow rate, and GVF (gas void fraction, especially referring to sectional gas fraction) of the twophase flow.