Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Mech. Eng.

Sec. Fluid Mechanics

Application of transformer neural networks for the classification of two-phase oil-water flow patterns in horizontal pipelines

Provisionally accepted
Leider  QuinteroLeider Quintero1Carlos  Mauricio Ruiz DiazCarlos Mauricio Ruiz Diaz2July  Andrea Gomez-CamperosJuly Andrea Gomez-Camperos1*Oscar  Mauricio Hernández RodríguezOscar Mauricio Hernández Rodríguez2Aldo  Pardo GarciaAldo Pardo Garcia3
  • 1Francisco de Paula University Santander Ocaña, Ocaña, Colombia
  • 2Universidade Federal de Sao Carlos, São Carlos, Brazil
  • 3Universidad de Pamplona, Pamplona, Colombia

The final, formatted version of the article will be published soon.

The identification of flow patterns in multiphase systems is crucial in hydrocarbon production engineering, as it determines the behavior of crude oil transport through pipelines and flowlines in oil fields. Proper classification of these patterns contributes to improved hydraulic design, optimal selection of separation equipment, and effective field operation strategies. This study proposes a model based on a Transformer Neural Network for identifying flow patterns in two-phase liquid-liquid (water-oil) systems in horizontal pipelines. A database containing 2,146 data points was used, including variables such as pipe diameter, mixture velocity, superficial velocities of each phase, and oil viscosity. The results show excellent model performance, with accuracies of 95.55% during training, 91.28% in validation, and 90% in the final test. These findings demonstrate the model's ability to capture complex relationships between hydrodynamic variables and flow topologies, thus presenting it as a promising alternative tool for the analysis, monitoring, and optimization of multiphase transport in the oil industry.

Keywords: TNN, Flow pattern identification, Two-phase flow, Liquid-liquid flow, Horizontal pipelines

Received: 24 Sep 2025; Accepted: 27 Nov 2025.

Copyright: © 2025 Quintero, Ruiz Diaz, Gomez-Camperos, Hernández Rodríguez and Pardo Garcia. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: July Andrea Gomez-Camperos

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.