Summary Operators often require real-time measurement of fluid flow rates in each well of their fields, which allows better control of production. However, petroleum is a complex multiphase mixture composed of water, gas, oil, and other sediments, which makes its flow challenging to measure and monitor. A critical issue is how the liquid component interacts with the gaseous phase, also known as the flow pattern. For example, sometimes liquids can accumulate in the lower part of the pipeline and block the flow completely, causing a gas pressure buildup that can lead to unstable flow regimes or even accidents (blowouts). On the other hand, some flow patterns can also facilitate sediment deposition, leading to obstructions and reduced production. Thus, this work aims to show that deep neural networks can act as a virtual flowmeter (VFM) using only a history of production, pressure, and temperature telemetry, accurately estimating the flow of all fluids in real time. In addition, these networks can also use the same input data to detect and recognize flow patterns that can harm the regular operation of the wells, allowing greater control without requiring additional costs or the installation of any new equipment. To demonstrate the feasibility of this approach and provide data to train the neural networks, a water-air loop was constructed to resemble an oil well. This setup featured inclined and vertical transparent pipes to generate and observe different flow patterns and sensors to record temperature, pressure, and volumetric flow rates. The results show that deep neural networks achieved up to 98% accuracy in flow pattern prediction and 1% mean absolute prediction error (MAPE) in flow rates, highlighting the capability of this technique to provide crucial insights into the behavior of multiphase flow in risers and pipelines.