Integration of Industrial Internet of Things (IIoT) and Digital Twin Technology for Intelligent Multi-Loop Oil-and-Gas Process Control
Abstract
1. Introduction
- We develop a first-principles dynamic model of a gas–liquid separator with interacting flow, pressure, and level (differential pressure) control loops, and derive a linearized state-space representation suitable for control analysis and design.
- We design decentralized PID controllers for the three-loop system and optimize their parameters using the Integral Absolute Error (IAE) performance index. Classical stability criteria (Routh–Hurwitz and Nyquist) are applied to analytically verify stability margins and to guide the tuning process for the interacting loops.
- We implement a digital twin of the process that runs in parallel with the physical system. The digital twin is continuously synchronized with the plant via a Kalman filter, ensuring that its state variables are calibrated to the real process in real time. The twin not only mirrors the process behavior but also provides state estimation and allows for what-if scenario analysis without disturbing the physical unit.
- A complete IIoT-based hardware/software architecture is developed, using an Arduino Mega 2560 microcontroller as the edge controller interfaced with industrial sensors (a MicroMotion Coriolis flowmeter for flow, pressure, and differential pressure transmitters for vessel conditions) and pneumatic control valves. The controller communicates with a supervisory PC running the digital twin and a human–machine interface (HMI) over Ethernet (using the ENC28J60 module and TCP/IP protocol), demonstrating remote monitoring and control capabilities.
- We evaluate the integrated system on an experimental testbed. The results show that the proposed IIoT–digital twin approach improves control performance compared to baseline tuning: overshoot is reduced and settling time is shortened for all loops, and the system maintains stability even under significant disturbances and parameter variations. We also use structured singular value analysis (-analysis) on the linearized model to confirm robust stability against modeling uncertainties.
- First real-time IIoT–digital-twin loop closed on a physical multi-loop oil-and-gas separator.
- Twin-assisted, on-the-fly PID re-optimization validated experimentally, cutting pressure overshoot from 15 % to 4 %.
- Formal robustness guarantee via structured singular-value () analysis—a capability not reported in comparable twin studies.
- Industrial scalability pathway demonstrated through a simulated 20-bar three-phase separator and a component-by-component mapping to SIL-rated instrumentation.
2. Literature Review
3. Reference Architecture for an IIoT-Edge Digital Twin
3.1. Cybersecurity and Fault Tolerance
3.2. 5 s Network-Outage Safety Test
4. Mathematical Formulation
4.1. Nonlinear Dynamic Model
Derivation of the Pressure Dynamics
4.2. Operating Point and Linearization
4.3. Transfer Function Matrix
4.4. Controller Design
Control Hierarchy
4.5. Stability Analysis
4.6. Robustness Analysis
4.7. Performance Indices and Optimization
5. Digital Twin Design and Implementation
5.1. Kalman Filter Design
5.1.1. Why State Estimation Is Needed
5.1.2. Kalman vs. Low-Pass Filtering
5.2. Filter Performance in Time and Frequency Domains
5.3. Implementation Cycle
- Read measurements P, H, , , and from the DCS/PLC.
- Perform Kalman prediction and update to compute .
- Advance the state using forward-Euler integration with input .
- Publish state estimates for operator display, alarms, and control loops.
- Log raw measurements and estimates for offline analysis and model validation.
5.4. Use Cases and Extensions
5.5. Quantitative Benefits of the Kalman Filter
6. Experimental Setup and Validation Methodology
6.1. Lab-Scale Testbed and Instrumentation
- Pressure sensor: range 0 to 300 , 4–20 mA output (linear, ).
- Ultrasonic level sensor: range 0 to 1.5 (linear, ).
- Liquid-outlet control valve: flow capacity 0 −1 to 10 −1, equal-percentage characteristic.
- Gas-outlet solenoid/backpressure regulator valve.
- Variable-speed feed pump: flow range 0 −1 to 5 −1.
6.2. Instrumentation Calibration
- Pressure transmitter: sensitivity of / (5 V @ 300 ), linear fit .
- Level sensor: ADC counts versus liquid height: counts ≈682 × H (m), linear .
- Feed pump: flow versus DAC command: linear response, negligible slip.
- Liquid valve: equal-percentage flow characteristic: minimal flow until opening, then approximately .
6.3. Validation Experiments
- Setpoint tracking: individual step changes in pressure, level, and feed flow; metrics: rise time, overshoot, settling time.
- Disturbance rejection: ±20% feed-flow steps, simulated air surges, and liquid inflow perturbations; measure recovery dynamics and cross-coupling effects.
- Loop interactions: simultaneous setpoint changes (e.g., +20% feed flow and +0.05 bar pressure) while maintaining constant level.
- Robustness tests: ±20% variation in vessel volume (simulating liquid holdup or gas space uncertainty), partial valve blockages, and sensor bias injection.
- Controller comparison: baseline PI controllers versus PSO-optimized PID; evaluate performance indices (IAE, ISE, ITAE).
- Digital-twin benefit: enable/disable Kalman filter for noise reduction and state prediction; compare signal fidelity and state-estimation accuracy.
7. Industrial Scalability
7.1. Hardware and Instrumentation Upgrades
7.2. Industrial-Scale Case Study
7.2.1. Plant Description
7.2.2. Linearised Twin Model
7.2.3. Controller Synthesis and Twin-Assisted Tuning
7.2.4. Closed-Loop Performance
7.3. Cloud vs. Edge Deployment
7.4. Future Work
- Model-Predictive Control (MPC): Extend the validated twin with a constraint-handling MPC layer to improve throughput during production upsets.
- Fault classification: Upgrade the anomaly-detection logic to a residual-based classifier that isolates sensor versus actuator faults and triggers SIL-3 shutdown sequences when required.
- Cyber-resilience assessment: Perform penetration testing (DoS, spoofing, man-in-the-middle) to quantify the architecture’s tolerance to malicious traffic and inform defense-in-depth hardening.
- Optimal–adaptive dual-loop control: Derive an LPV stability proof for blending twin-based feed-forward with classic PID feedback, thereby marrying robustness with offset-free optimality.
8. Results and Discussion
8.1. Closed-Loop Performance Metrics
8.2. Baseline Versus Optimized Control
8.3. Digital-Twin Fidelity and Operational Benefits
Practical Plant-Level Benefits
8.4. Robustness Assessment
9. Conclusions and Future Work
Future Work
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Fuller, A.; Fan, Z.; Day, C.; Barlow, C. Digital Twin: Enabling Technologies, Challenges and Open Research. IEEE Access 2020, 8, 108952–108971. [Google Scholar] [CrossRef]
- Lee, C.H. Application of digital twin technology in smart manufacturing: A survey. IEEE Trans. Ind. Inform. 2021, 17, 5612–5620. [Google Scholar]
- Granat, J.; Batalla, J.M.; Mavromoustakis, C.X.; Mastorakis, G.; Markakis, E.K. Digital twin intelligent system for Industrial IoT-based environments. IEEE Access 2020, 8, 118534–118541. [Google Scholar]
- Shao, H.; Zhang, X.; Xu, C.; Yan, X. Digital twin-driven remaining useful life prediction for hydraulic pump with domain adaptation. IEEE Trans. Ind. Inform. 2022, 18, 5229–5238. [Google Scholar]
- Khan, M.; Rehmani, L.; Rachedi, A. Integration of IoT and Digital Twin for Intelligent Management of Oil and Gas Industry. IEEE Commun. Surv. Tuts. 2022, 24, 1653–1687. [Google Scholar]
- Shah, S.; Srinivasan, D.; Fernando, T. Independent design of multi-loop PI controllers for interacting multivariable processes. IEEE Access 2020, 8, 222253–222265. [Google Scholar]
- Liang, X.; Yao, S.; Zhou, Q. Integration of digital twin and edge computing for IIoT: Opportunities and challenges. IEEE Internet Things J. 2021, 8, 4517–4526. [Google Scholar]
- Tan, K.; Liu, J.; Gao, F. Design of multivariable PID control scheme for interacting processes via static decoupling. IEEE Access 2020, 8, 7742–7753. [Google Scholar]
- Ali, A.; Peng, X.; Lee, M. Dynamic decoupling and multi-loop PID controller design for a TITO process using characteristic ratio assignment. IEEE Access 2022, 10, 91500–91512. [Google Scholar]
- Yang, X.; Yuan, R.; Shi, P. Model predictive control for multivariable processes: Recent achievements and industrial applications. IEEE Access 2020, 8, 123896–123908. [Google Scholar]
- García, F.; García, P.; Adam, C. Robust H∞ loop-shaping control of a coupled tank system: An experimental evaluation. IEEE Trans. Control Syst. Technol. 2021, 29, 1665–1673. [Google Scholar]
- Zhang, J.; Zhou, B.; Wang, H. Structured μ-synthesis for robust control of multivariable industrial processes. IEEE Trans. Ind. Electron. 2021, 68, 2220–2229. [Google Scholar]
- Liu, Y.; Zhang, Y. Adaptive Federated Learning and Digital Twin for Industrial Internet of Things. IEEE Trans. Ind. Inform. 2021, 17, 4679–4687. [Google Scholar]
- Xia, Y.; Han, Y.; Xie, J. Digital Twin to Improve the Virtual-Real Integration of Industrial IoT. IEEE Internet Things J. 2024, 9, 3367–3379. [Google Scholar]
- Mondal, S.; Natarajan, B.; Fuentetaja, M. Digital twin with augmented state extended Kalman filters for real-time monitoring of power systems. IEEE Trans. Ind. Inform. 2022, 18, 5596–5605. [Google Scholar]
- Zhou, X.; Xu, X.; Liang, W.; Zeng, Z.; Shimizu, S.; Yang, L.T.; Jin, Q. Intelligent small object detection for digital twin in smart manufacturing with industrial cyber-physical systems. IEEE Trans. Ind. Inform. 2021, 18, 1377–1386. [Google Scholar]
- Wang, Y.; Gao, J. Digital twin for predictive maintenance of industrial pumps. IEEE Access 2021, 9, 140041–140053. [Google Scholar]
- Chen, B.; Liu, X.; Shi, Q. Fault diagnosis in chemical processes using deep learning and digital twin. IEEE Trans. Ind. Inform. 2021, 17, 5638–5647. [Google Scholar]
- Lu, Y.; Liu, X.; Wang, K. Digital twin-driven smart manufacturing: Connotation, reference model, applications and research issues. IEEE Trans. Ind. Inform. 2020, 16, 5565–5574. [Google Scholar] [CrossRef]
- Leng, J.; Wang, D.; Shen, W. Digital twin-driven manufacturing cyber-physical systems: A review and future outlook. IEEE Trans. Ind. Inform. 2021, 17, 8409–8419. [Google Scholar]
- Zhou, Z.; Chai, X.; Huang, B. A two-layer distributed digital twin network for industrial process monitoring. IEEE Trans. Ind. Inform. 2020, 16, 4135–4143. [Google Scholar]
- Park, J.; Jang, S.; Cho, S. Real-time fault detection in IIoT-enabled manufacturing using digital twins. IEEE Trans. Ind. Inform. 2022, 18, 3148–3155. [Google Scholar]
- Mahmood, A.; Khondoker, R.A. Secure industrial IoT integration with digital twins. IEEE Internet Things J. 2021, 8, 11159–11168. [Google Scholar]
- Cárdenas, A.; Amin, S.; Sastry, S. Research Challenges for the Security of Industrial Control Systems. IEEE Trans. Ind. Electron. 2010, 57, 2205–2215. [Google Scholar]
- Santos, J.; Brito, L. Edge intelligence and digital twins for IIoT: Framework and case study. IEEE Internet Things J. 2022, 9, 22314–22325. [Google Scholar]
- Hu, J.; Zhang, L.; Wang, L. Cloud-based digital twin for cooperative control of manufacturing equipment. IEEE Trans. Autom. Sci. Eng. 2021, 18, 780–791. [Google Scholar]
- Huang, C.; Meng, X. Decentralized control of gas–liquid separation processes via improved PID controllers. IEEE Access 2020, 8, 97654–97664. [Google Scholar]
- Pavković, D.; Petrović, I. Multi-loop PID control for multivariable processes with decoupling and anti-windup. IEEE Trans. Ind. Electron. 2021, 68, 3232–3242. [Google Scholar]
- He, W.; Yan, G.; Xu, L.D. Developing efficient smart factories with a novel industrial Internet of Things architecture. IEEE Trans. Ind. Inform. 2020, 16, 7409–7419. [Google Scholar]
- Tang, X.; Jiang, Y.; Shen, X. Digital-twin-empowered resource allocation for on-demand collaborative sensing in IIoT. IEEE Internet Things J. 2022, 9, 1509–1523. [Google Scholar]
- Zhou, K.; Doyle, J.C. Essentials of Robust Control; Prentice Hall: Upper Saddle River, NJ, USA, 1998; chapter 8. [Google Scholar]
- Shi, W.; Tong, L. An overview of robust model predictive control in process industries. IEEE Trans. Ind. Inform. 2020, 16, 5331–5341. [Google Scholar]
- Shamsaei, H.; Badamchizadeh, M.A. Applying structured singular value μ for robust stability assessment of uncertain multivariable systems. IEEE Trans. Control Syst. Technol. 2022, 30, 2448–2456. [Google Scholar]
- Güven, A.F.; Baysal, O. Comparative analysis of evolutionary algorithms for multi-objective PID controller tuning in industrial processes. IEEE Access 2023, 11, 86377–86396. [Google Scholar]
- Fan, Y.; Zhang, Y.; Chai, T. Tuning PID controllers based on hybrid optimization for two-tank multivariable process control. IEEE Access 2021, 9, 75639–75650. [Google Scholar]
- Parque, V.; Khalifa, A. PID tuning using differential evolution with success-based particle swarm optimizations. IEEE Access 2023, 11, 94050–94064. [Google Scholar] [CrossRef]
- Mendel, J.; Wu, D. Perceptual computing in the IoT: An example using critical rule-based type-2 fuzzy logic systems. IEEE Internet Things J. 2020, 7, 4363–4374. [Google Scholar]
- Zhang, W.; Yang, K.; Yan, F. Toward industrial metaverse: A high-fidelity digital twin with edge-enabled optimized synchronization. IEEE Internet Things J. 2023, 10, 1402–1412. [Google Scholar]
- Zhang, X.; Li, Q.; Chen, M. Real-Time Digital Twin for Multiphase Flow Processes. IEEE Trans. Ind. Electron. 2022, 69, 8200–8210. [Google Scholar]
- Ali, M.S.; Alam, F.; Dong, G. Closed-loop Control using Digital Twins: A Hardware-in-the-loop Implementation. IEEE Access 2023, 11, 45678–45690. [Google Scholar]
- Wang, K.; Zhang, Y.; Li, D. Pipeline Digital Twin: Real-Time Monitoring and Calibration with IIoT Sensors. IEEE Internet Things J. 2021, 8, 8896–8907. [Google Scholar]
- Singh, H.; Mukherjee, L.; Verma, A.K. Digital Twin-driven Oil Pipeline Health Monitoring. In Proceedings of the Proc; IEEE ICC Industry Forum: Rome, Italy, 2023. [Google Scholar]
- Gupta, S.; Lee, Y.; Kim, H. Edge Computing Enabled Digital Twin for Smart Oilfield Operations. IEEE Internet Things J. 2024, 10, 1205–1217. [Google Scholar]
- Yao, X.; Liang, Y. Digital twin for aircraft engine health management with IoT data. IEEE Access 2020, 8, 34797–34810. [Google Scholar]
- Yan, Z.; Zhang, D. Real-time predictive control of a chemical process using digital twin and MPC. IEEE Access 2020, 8, 181303–181314. [Google Scholar]
- Xiong, H.; Zhuang, C. Digital twin-based prognostics and health management in industrial systems. IEEE Trans. Instrum. Meas. 2023, 72. [Google Scholar]
- Jiang, P.; Ding, K.; Leng, J. Integration of deep learning and digital twins for complex industrial processes. IEEE Trans. Ind. Inform. 2021, 17, 5630–5638. [Google Scholar]
Reference | RT Twin | Closed Loop | Robust Analysis | HW Demo | O&G |
---|---|---|---|---|---|
Hu et al. [26] | ✓ | ✓ | – | ✓ | – |
Mondal et al. [15] | ✓ | – | – | – | – |
Khan et al. [5] | – | – | – | – | ✓ |
Zhang et al. [38] | ✓ | – | – | – | – |
This work | ✓ | ✓ | ✓ | ✓ | ✓ |
Symbol | Description | Units |
---|---|---|
Gas pressure | ||
Liquid level (height) | ||
Inlet volumetric flow | ||
Gas outflow | ||
Liquid outflow | ||
Feed-valve opening | dimensionless (0–1) | |
Gas-valve opening | dimensionless (0–1) | |
Liquid-valve opening | dimensionless (0–1) | |
A | Vessel cross-sectional area | |
Gas-space volume | ||
Tank height | ||
Inlet gas volumetric fraction | dimensionless | |
Specific gas constant | ||
T | Absolute temperature | |
Feed-valve time constant | ||
Feed-valve steady-state gain | ||
Valve dead-time | ||
ADC/DAC and network latency | ||
Digital-twin sampling interval |
Loop (Variable) | (s) | |
---|---|---|
Pressure (P) | 1.5 | 60 |
Level (H) | 2.0 | 180 |
Parameter | Value |
---|---|
Vessel height | 2 |
Vessel diameter | |
Separator volume | 50 |
Pressure sensor range | 0 kPa to 300 kPa (4–20 mA) |
Level sensor range | 0 to 1.5 |
Feed pump flow range | 0 −1 to 5 −1 |
Liquid valve capacity | 0 −1 to 10 −1 |
ADC resolution/sampling | 16-bit @ 10 |
DAC | DAC104S085 (4 × 10-bit) |
Controller platform | Arduino Uno + ENC28J60 Ethernet |
Calibration linearity | for all sensors |
Laboratory Choice | Industrial Alternative | Rationale/Standard |
---|---|---|
Arduino Mega 2560 edge controller | SIL-2/3 PLC (Siemens S7-1500F, Rockwell GuardLogix) | IEC 61508 certified; −40 to 70 °C; dual-redundant PSU |
DAC104S085 + 0–5 V AO driver | 16-bit isolated AO module, native 4–20 mA (HART) | Eliminates external wiring; Ex ia IIC T4 |
4–20 mA shunt resistors (AI) | HART or FOUNDATION Fieldbus IS AI | Live-zero diagnostics; intrinsic-safety barriers |
ENC28J60 Ethernet MAC | Industrial Ethernet (PROFINET RT/IRT, EtherNet/IP) | <1 ms cycle, MRP/DLR ring redundancy |
VB.Net desktop HMI | SCADA + Historian (WinCC OA, Factorytalk) | 21 CFR 11 audit trail; hot-standby servers |
Proteus VSM simulation | Aspen HYSYS Dynamics/AVEVA Process Sim | Validated thermodynamics; operator training sim |
Loop/Step | Overshoot (%) | Settling (s) | IAE (unit · s) | ISE (unit2 · s) | ITAE (unit · s2) |
---|---|---|---|---|---|
Pressure () | |||||
Level () | |||||
Flow (−1) |
Loop | (s) | (s) | GM/PM (dB/°) | |
---|---|---|---|---|
Pressure (P) | 1.0 | 50 | 12 | 3.1/41 |
Level (L) | 1.5 | 150 | 0 | 5.4/64 |
Flow () | 0.6 | 8 | 1.5 | 8.9/74 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Allahloh, A.S.; Sarfraz, M.; Ghaleb, A.M.; Dabwan, A.; Ahmed, A.A.; Al-Shayea, A. Integration of Industrial Internet of Things (IIoT) and Digital Twin Technology for Intelligent Multi-Loop Oil-and-Gas Process Control. Machines 2025, 13, 940. https://doi.org/10.3390/machines13100940
Allahloh AS, Sarfraz M, Ghaleb AM, Dabwan A, Ahmed AA, Al-Shayea A. Integration of Industrial Internet of Things (IIoT) and Digital Twin Technology for Intelligent Multi-Loop Oil-and-Gas Process Control. Machines. 2025; 13(10):940. https://doi.org/10.3390/machines13100940
Chicago/Turabian StyleAllahloh, Ali Saleh, Mohammad Sarfraz, Atef M. Ghaleb, Abdulmajeed Dabwan, Adeeb A. Ahmed, and Adel Al-Shayea. 2025. "Integration of Industrial Internet of Things (IIoT) and Digital Twin Technology for Intelligent Multi-Loop Oil-and-Gas Process Control" Machines 13, no. 10: 940. https://doi.org/10.3390/machines13100940
APA StyleAllahloh, A. S., Sarfraz, M., Ghaleb, A. M., Dabwan, A., Ahmed, A. A., & Al-Shayea, A. (2025). Integration of Industrial Internet of Things (IIoT) and Digital Twin Technology for Intelligent Multi-Loop Oil-and-Gas Process Control. Machines, 13(10), 940. https://doi.org/10.3390/machines13100940