LAPSE:2026.0369
Published Article

LAPSE:2026.0369
Modeling Slug Flow Dynamics in Offshore Wells using Universal Differential Equations
June 12, 2026
Abstract
Slug flow in multiphase production systems is a critical challenge in the oil and gas industry, characterized by complex and oscillatory dynamics, e.g., limit cycles. First-principle (FP) models often employ physics simplification, such as a virtual valve for the slug formation. To capture complex physics poorly modeled by FP models, hybrid models combine data-driven techniques and physical knowledge, such as the architecture known as universal differential equation (UDE). This work aims to employ a hybrid model based on neural networks to enhance the modeling of multiphase oil production systems. In the UDE model, a neural network is embedded within the structure of the FP differential equations. To demonstrate the feasibility of the methodology, the model was trained based on synthetic data, employing parameters estimated from OLGA simulations. Since the system faces oscillatory behavior, we trained the UDE in two stages: the first one employs smooth collocation on data to obtain an estimation of the derivatives. The results show that the two-stage strategy was successful in addressing the resolution of an oscillatory system. In the second stage, the algorithm reached a scaled MSE of 0.009 in 502 iterations. For the testing phase, using 20%, 40%, 60%, and 80% valve openings, the scaled MSE reported was 0.088. For the 100% valve opening, outside of the training part, the MSE reported was 0.039, showing a good extrapolation capacity.
Slug flow in multiphase production systems is a critical challenge in the oil and gas industry, characterized by complex and oscillatory dynamics, e.g., limit cycles. First-principle (FP) models often employ physics simplification, such as a virtual valve for the slug formation. To capture complex physics poorly modeled by FP models, hybrid models combine data-driven techniques and physical knowledge, such as the architecture known as universal differential equation (UDE). This work aims to employ a hybrid model based on neural networks to enhance the modeling of multiphase oil production systems. In the UDE model, a neural network is embedded within the structure of the FP differential equations. To demonstrate the feasibility of the methodology, the model was trained based on synthetic data, employing parameters estimated from OLGA simulations. Since the system faces oscillatory behavior, we trained the UDE in two stages: the first one employs smooth collocation on data to obtain an estimation of the derivatives. The results show that the two-stage strategy was successful in addressing the resolution of an oscillatory system. In the second stage, the algorithm reached a scaled MSE of 0.009 in 502 iterations. For the testing phase, using 20%, 40%, 60%, and 80% valve openings, the scaled MSE reported was 0.088. For the 100% valve opening, outside of the training part, the MSE reported was 0.039, showing a good extrapolation capacity.
Record ID
Keywords
FOWM, hybrid model, neural networks, oil and gas, scientific machine learning
Subject
Suggested Citation
Caldas GLR, Gerevini G, Diehl FC, Nogueira IBR, Souza MB Jr, Secchi AR. Modeling Slug Flow Dynamics in Offshore Wells using Universal Differential Equations. Systems and Control Transactions 5:1306-1317 (2026) https://doi.org/10.69997/sct.167242
Author Affiliations
Caldas GLR: Chemical Engineering Program, PEQ/COPPE, Universidade Federal do Rio de Janeiro, Rio de Janeiro, 21941-972, Brazil. Chemical Engineering Department, Norwegian University of Science and Technology, N-7491, Trondheim, Norway [ORCID]
Gerevini G: CENPES/Petrobras, Rio de Janeiro, 21941-915, Brazil [ORCID]
Diehl FC: CENPES/Petrobras, Rio de Janeiro, 21941-915, Brazil [ORCID]
Nogueira IBR: Chemical Engineering Department, Norwegian University of Science and Technology, N-7491, Trondheim, Norway [ORCID]
Souza MB Jr: Chemical Engineering Program, PEQ/COPPE, Universidade Federal do Rio de Janeiro, Rio de Janeiro, 21941-972, Brazil. EPQB, Chemistry School, Universidade Federal do Rio de Janeiro, Rio de Janeiro, 21941-909, Brazil [ORCID]
Secchi AR: Chemical Engineering Program, PEQ/COPPE, Universidade Federal do Rio de Janeiro, Rio de Janeiro, 21941-972, Brazil [ORCID]
[Login] to see author email addresses.
Gerevini G: CENPES/Petrobras, Rio de Janeiro, 21941-915, Brazil [ORCID]
Diehl FC: CENPES/Petrobras, Rio de Janeiro, 21941-915, Brazil [ORCID]
Nogueira IBR: Chemical Engineering Department, Norwegian University of Science and Technology, N-7491, Trondheim, Norway [ORCID]
Souza MB Jr: Chemical Engineering Program, PEQ/COPPE, Universidade Federal do Rio de Janeiro, Rio de Janeiro, 21941-972, Brazil. EPQB, Chemistry School, Universidade Federal do Rio de Janeiro, Rio de Janeiro, 21941-909, Brazil [ORCID]
Secchi AR: Chemical Engineering Program, PEQ/COPPE, Universidade Federal do Rio de Janeiro, Rio de Janeiro, 21941-972, Brazil [ORCID]
[Login] to see author email addresses.
Journal Name
Systems and Control Transactions
Volume
5
First Page
1306
Last Page
1317
Year
2026
Publication Date
2026-06-12
Version Comments
Original Submission
Other Meta
PII: 1306-1317-501-SCT-5-2026, Publication Type: Journal Article
Record Map
Published Article

LAPSE:2026.0369
This Record
External Link

https://doi.org/10.69997/sct.167242
Publisher Version
Download
Meta
Record Statistics
Record Views
167
Version History
[v1] (Original Submission)
Jun 12, 2026
Verified by curator on
Jun 12, 2026
This Version Number
v1
Citations
Most Recent
This Version
URL Here
https://psecommunity.org/LAPSE:2026.0369
Record Owner
PSE Press
Links to Related Works
References Cited
- Psichogios DC, Ungar LH. A hybrid neural network?first principles approach to process modeling. AIChE Journal 38:1499-1511 (2004) https://doi.org/10.1002/aic.690381003
- Bradley W, Kim J, Kilwein Z, Blakely L, Eydenberg M, Jalvin J, Laird C, Boukouvala F. Perspectives on the integration between first-principles and data-driven modeling. Computers & Chemical Engineering 166:107898 (2022) https://doi.org/10.1016/j.compchemeng.2022.107898
- Gao L, Guan L. Interpretability of machine learning: recent advances and future prospects. IEEE MultiMedia 30:105-118 (2023) https://doi.org/10.1109/mmul.2023.3272513
- Sahimi M. Physics-informed and data-driven discovery of governing equations for complex phenomena in heterogeneous media. Phys. Rev. E 109: (2024) https://doi.org/10.1103/physreve.109.041001
- Zhu SP, Wang L, Luo C, Correia JAFO, De Jesus AMP, Berto F, Wang Q. Physics-informed machine learning and its structural integrity applications: state of the art. Phil. Trans. R. Soc. A. 381: (2023) https://doi.org/10.1098/rsta.2022.0406
- Chen RTQ, Rubanova Y, Bettencourt J, Duvenaud D. Neural ordinary differential equations. Adv Neural Inf Process Syst 32:6572-6583 (2018)
- Rackauckas C, et al. Universal differential equations for scientific machine learning. arXiv:2001.04385 (2020) https://doi.org/10.48550/arXiv.2001.04385
- Kittelsen JE, Antonelo EA, Camponogara E, Imsland LS. Physics-informed neural networks with skip connections for modeling and control of gas-lifted oil wells. Applied Soft Computing 158:111603 (2024) https://doi.org/10.1016/j.asoc.2024.111603
- Faria RR, Lima FARD, Secchi AR, de Souza MB. Enhanced hybrid model for gas-lifted oil production. IFAC-PapersOnLine 58:7-12 (2024) https://doi.org/10.1016/j.ifacol.2024.08.305
- Diehl FC, Anzai TK, Almeida CS, Von Meien OF, Neto SS, Rosa VR, Campos MCMM, Reolon F, Gerevini G, Ranzan C, Farenzena M, Trierweiler JO. Fast offshore wells model (FOWM): a practical dynamic model for multiphase oil production systems in deepwater and ultra-deepwater scenarios. Computers & Chemical Engineering 99:304-313 (2017) https://doi.org/10.1016/j.compchemeng.2017.01.036
- Clavijo NA, Diehl FC, Gerevini GG, Melo PA, Lemos T, Campos LFO, Pinto JC. Chaotic dynamics induced by anti-slug control in offshore oil production plants. Journal of Petroleum Science and Engineering 215:110716 (2022) https://doi.org/10.1016/j.petrol.2022.110716
- Apio A, Dambros JWV, Diehl FC, Farenzena M, Trierweiler JO. PDG pressure estimation in offshore oil well: extended kalman filter vs. artificial neural networks. IFAC-PapersOnLine 52:508-513 (2019) https://doi.org/10.1016/j.ifacol.2019.06.113
- Luz EML, Spina DE, Pinto JC. Application of transfer learning for modeling slugging in offshore oil production. Geoenergy Science and Engineering 255:214069 (2025) https://doi.org/10.1016/j.geoen.2025.214069
- Huang X, Kandris K, Katsou E. Training stiff neural ordinary differential equations in data-driven wastewater process modelling. Journal of Environmental Management 373:123870 (2025) https://doi.org/10.1016/j.jenvman.2024.123870
(0.09 seconds)
[0.1 s]

