1. Introduction
As the oil and gas industry transitions to digitalisation and intelligent operations, the real-time, accurate acquisition of multiphase flow data within the wellbore has become a critical requirement for optimising production strategies, identifying water-bearing zones, and ensuring safe operations [
1]. In comparison with vertical wells, horizontal wells demonstrate a markedly asymmetrical distribution of oil and water phases across the cross-section. This is due to the fact that gravity is perpendicular to the wellbore axis, resulting in more complex and variable flow patterns [
2,
3]. In horizontal pipelines, oil–water two-phase flow can manifest in various flow patterns, including stratified flow, stratified wavy flow, stratified flow with interfacial mixing, and dispersed flow [
4,
5]. The mechanisms governing these transitions are driven by the coupling of flow velocity, water cut, pipe diameter, and fluid properties [
6], which pose significant challenges for interpreting logging data and reconstructing water cut spatially within the wellbore cross-section [
7].
The physical evolution of subsurface systems, such as the non-linear response of dry hot rocks to thermal cycling [
8] or the bifurcation dynamics in fractured rock seepage [
9], is heavily state-dependent. Similarly, oil–water two-phase flow in horizontal wellbores is strongly state-dependent. When the dominant flow mechanism shifts, the spatial distribution of the cross-sectional flow field changes fundamentally.
In order to overcome the measurement errors associated with traditional centre-sampling instruments in non-vertical wells, production logging technology has evolved from single-point measurements to spatially distributed array measurements. Multi-array production logging (MAPS) tool strings, centred on array capacitance water-in-oil-phase-ratio (CAT), array vortex flowmeters (SAT), and full-borehole flowmeters, have been widely applied in the evaluation of multiphase flow in horizontal wells [
10,
11,
12]. It has been demonstrated that capacitance methods [
13] and electrical tomography [
14] are effective in visualising flow within horizontal pipelines. Advancements in hardware technology have facilitated the acquisition of data from spatially distributed sensors. Building on this, two-dimensional cross-sectional imaging techniques have been developed, utilising various spatial interpolation algorithms. Furthermore, recent advancements in three-dimensional wellbore visualisation techniques have been made.
Current interpretation workflows primarily rely on deterministic spatial interpolation algorithms to reconstruct continuous cross-sections from discrete sampling points. Wu et al. [
15] systematically compared the performance of inverse distance weighting (IDW), radial basis function (RBF), and ordinary Kriging (OK) methods in water-in-oil ratio imaging in horizontal wells, whilst Zhang et al. [
16] further evaluated the three-dimensional imaging characteristics of linear interpolation, cubic splines, and natural neighbourhood interpolation under different flow rates and water-in-oil ratios. However, these methods suffer from two fundamental limitations: firstly, deterministic models are based on global static assumptions and cannot adapt to dynamic changes in flow patterns; under turbulent and complex mixing conditions, sensor responses exhibit high non-linearity and contain significant noise, and standard water-content calculation models may sometimes produce local water-content values that exceed the physical boundary [
17,
18]; secondly, as a least-squares estimator, Kriging exhibits an inherent ‘smoothing effect’. Yamamoto [
19] noted that Kriging reduces estimation variance by overestimating low values and underestimating high values, leading to poor reproduction of the sample histogram; Bai and Tahmasebi [
20] further confirmed that this smoothing effect severely erodes spatial texture features. In horizontal well scenarios, high-frequency textures of chaotic flow patterns such as bubble flows are smoothed out, resulting in reconstructed images that, whilst statistically valid, lack physical realism. Olea and Pawlowsky [
21] also confirmed that smoothing is an inherent characteristic of all least-squares spatial estimators.
In order to address the smoothing effect of Kriging, Sequential Gaussian Simulation (SGS) introduces statistically compliant random perturbations to recover lost high-frequency texture information. While the model has been successfully validated in the context of reservoir modelling [
22,
23], it has not yet been introduced to multiphase flow imaging. Furthermore, due to the random nature of the perturbations applied by SGS, there is a risk of overlaying physically unjustified textures onto organised, spatially continuous stratified flows, which could potentially distort the spatial structures that SGS aims to reconstruct.
Despite substantial advancements in cross-sectional reconstruction, a gap remains between imaging methodologies and flow-pattern recognition. As is evidenced by the works of [
24,
25,
26,
27], deep learning frameworks frequently depend on dense sensor arrays and static training datasets. This renders their application to the sparse radial arrangements that are typical in downhole logging difficult. Concurrently, spatial interpolation algorithms are being subjected to continuous optimisation. Contemporary methodologies, such as Gaussian Process Regression (GPR) [
28,
29,
30] or machine-learning-coupled Kriging [
31], have been demonstrated to provide enhanced spatial variability capture in scenarios where data is sparse. However, as single-model approaches, they are still unable to overcome their inherent limitations. They inevitably either oversmooth heterogeneous chaotic regions or introduce unnecessary random fluctuations into stable flow fields.
Concurrently, data-driven flow pattern recognition using machine learning [
11,
32,
33,
34,
35] has become increasingly mature. However, the majority of extant studies treat classification as an isolated task, outputting discrete labels without feeding the results back into the reconstruction process. Consequently, even when chaotic flow patterns are accurately identified, the subsequent imaging stage incorrectly continues to employ interpolation logic suited only for laminar flow.
To address these issues, this paper proposes a Flow-Regime-driven Framework for Adaptive Cross-sectional Imaging (FR-FACI), which couples the identification of flow regimes with image reconstruction in a closed-loop process (see
Figure 1). Physically meaningful features drive support vector machine (SVM)-based regime classification, and a chaos weight mechanism converts the classifier’s probabilistic output into continuous blending weights between detrended ordinary kriging (DOK) and sequential Gaussian simulation (SGS). The core contributions are: (1) the FR-FACI coupled framework, which adapts the reconstruction strategy according to the flow conditions and thus overcomes the limitations of single interpolation models; (2) the Chaos Weight continuous control mechanism, which eliminates artefacts caused by abrupt changes and whose robustness is validated through sensitivity analysis; and (3) quantitative variogram analysis across 12 conditions and three regimes, which demonstrates order-of-magnitude differences in spatial correlation structure and establishes the physical necessity of dual-path reconstruction.
4. Results and Discussion
4.1. Flow Regime Classification
As shown in
Table 5, the SVM achieved 95.83% overall accuracy and a Macro-F1 of 0.958 under LOCO cross-validation, outperforming both LogReg (90.28%) and XGBoost (84.72%). XGBoost exhibited the greatest variance across folds (standard deviation = 0.315), consistent with the recognised instability of greedy splitting in small-sample regimes [
11]; the SVM’s margin-based decision boundary proved more robust to training-set perturbations.
The confusion matrix (
Figure 11, left) shows no misclassifications for SF and SFF, with only three out of 24 FR samples misclassified as SFF. When the original four-class labels are retained (
Figure 11 on the right), ST and SW exhibit near-random cross-classification (6/12 and 5/12, respectively). This confirms that their merger into SF is both necessary and effective at the classifier level, as three-class accuracy improved from 75% to 95.83%.
4.2. Spatial Statistical Structure Across Flow Regimes
Figure 12 shows the experimental variograms and fitted models for the three regimes. The FR model reaches its sill at a lag of approximately 40 mm, the SFF model rises gradually without reaching its sill within the observation range, and the SF model continues to increase over the entire range, with a fitted range of 1100.9 mm. This 26-fold difference confirms the presence of regime-dependent spatial structure. The sill values likewise reflect the intensity of phase mixing: SF exhibits the highest sill value (0.488) due to the bimodal oil–water contrast across a sharp interface. In contrast, FR shows the lowest sill value (0.006) because turbulent mixing homogenises local readings. However, the low FR sill does not imply spatial uniformity. Rather, the characteristic scale falls below the sensor spacing—precisely the sub-resolution gap that the SGS path is designed to fill. The physical origin of these differences lies in the governing flow mechanisms. In SF, gravity dominates: the denser water phase settles to the pipe bottom, producing a stable, continuous interface whose spatial correlation extends over distances comparable to the pipe diameter (range ≈ 9D). In FR, turbulent inertia overcomes gravitational segregation, fragmenting the oil–water interface into droplets and patches at scales governed by local energy dissipation. This confines spatial correlation to ~40 mm, consistent with the measured FR range. SFF represents the transitional regime where gravitational and inertial forces are of comparable magnitude, producing an interface that is globally discernible but locally disrupted—hence its intermediate variogram behaviour.
4.3. Cross-Sectional Imaging Performance
Figure 13 compares the cross-sectional images produced by seven methods under SF, SFF and FR conditions. Under SF conditions, most methods produce similar results, except for the Nearest method, which exhibits Voronoi artefacts. Differences become more pronounced with increasing flow complexity: Linear, RBF, DOK and GPR all oversmooth the interface mixing zone under SFF and FR conditions, whereas SGS recovers texture, but applies perturbations indiscriminately to all regimes. The FR-FACI method adapts according to the chaos weight. Under SF conditions (W ≈ 0), imaging is DOK-controlled. Under SFF conditions (intermediate W), interface regions exhibit localised texture, while bulk regions remain smooth. Under FR conditions (W ≈ 1), the SGS path dominates, recovering chaotic oil–water patch structures.
Table 6 quantifies the LOSO cross-validation errors. DOK and FR-FACI both achieve the lowest overall mean absolute error (MAE) (0.105) and root mean square error (RMSE) (0.160). Under FR conditions, the MAE of FR-FACI (0.056) is lower than that of DOK (0.069), indicating that the SGS path recovers texture while reducing pointwise error. GPR achieves an overall MAE of 0.108 and the lowest FR-MAE (0.054), which confirms the flexibility of hyperparameters based on data. However, as a single model, it cannot match the performance of FR-FACI in adapting to different regimes. Unconstrained SGS shows severe bias (FR-MAE = 0.579), which highlights the importance of regulating the Chaos Weight.
4.4. SGS Boost Parameter Sensitivity
The theoretical quality of FR-FACI is contingent not only on the path selection process, but also on the influence of the texture enhancement parameter (boost) within the SGS path. The boost functions to regulate the amplitude of random perturbations; if the boost is insufficient, texture recovery is inadequate, whilst if the boost is excessive, this results in the introduction of unnecessary noise. The SF operating condition corresponds to track A (W < 0.2), which uses a pure DOK path and does not involve the SGS step. Therefore, the boost parameter is ineffective in this case, and the selection of boost is relevant only to SFF and FR.
Table 7 presents the mean and maximum values of the
for SFF and FR under various levels of boost. The error for FR tends to level off after b = 2.0, with only a 0.008 improvement from b = 2.0 to 4.0, whilst the error for SFF continues to decrease as the boost increases. However, MAE measures the average deviation in water content across the cross-section; it is insensitive to spatial texture, and under high boost levels, physical boundary constraints truncate extreme-value pixels, causing a spurious pull-back in the mean. Consequently, it cannot be regarded as the exclusive foundation for selection.
Combined with a visual assessment of the cross-sectional images, the SFF begins to reveal the texture of the interface mixing zone at b = 1.5 without a significant increase in error; however, at b ≥ 2.0, the texture becomes too pronounced, obscuring the underlying layered structure. For FR, the moisture content colour gradient transition is complete at b = 2.0; however, when b ≥ 3.0, the intermediate transition colours disappear, and the pixel-level discontinuities (approximately 2.5 mm per pixel) do not match the droplet scale of the foam flow, which ranges from a few millimetres to a few centimetres. The selection of SFF was made with a value of b set at 1.5, whilst that of FR was set at 2.0.
As demonstrated in
Figure 14, even when the global boost is set to 3.0, the imaging under SF conditions remains smooth. The Chaos Weight in the SF region has been demonstrated to suppress W(x) to a negligible level, thereby effectively isolating the contribution of the SGS path. This, in turn, serves to reduce the engineering burden associated with the fine-tuning of parameters on a per-flow basis. The boost values were selected using a two-criterion procedure: first, identifying the MAE plateau point beyond which further increases yield diminishing error reduction (<0.01 in mean ΔYw); second, verifying through visual assessment that the reconstructed texture scale remains physically consistent with the expected droplet or mixing-zone dimensions for each regime. This semi-quantitative approach was adopted because no independent high-resolution ground truth (e.g., ECT cross-sectional imaging) was available to define an objective texture-fidelity metric. The boost values used throughout
Section 4.3 and
Section 4.6 are 1.5 for SFF and 2.0 for FR.
4.5. Uncertainty and Generalisability
FR-FACI provides a natural uncertainty estimate through the fusion variance defined in Equation (9). The DOK path contributes the Kriging variance , while the SGS path provides the inter-realisation variance derived from the 40-run ensemble. The first two terms of that expression, and , represent the weighted prediction variances of the DOK and SGS paths, respectively. The third term, , captures the divergence between the two paths. This term reaches its maximum at W ≈ 0.5, which is typical of the SFF transition zone. It accordingly highlights regions with the greatest reconstruction ambiguity. Even so, the current framework fails to propagate such pixel-level variance to derived quantities including volumetric water holdup and three-dimensional fields. Rigorous uncertainty propagation can be implemented by performing Monte Carlo sampling on classifier probability and SGS realisations. This approach can deliver confidence intervals for integrated production parameters and merits further investigation in future research.
The SVM classification process is estimated to require approximately 0.15 milliseconds per window, while the DOK interpolation process takes around 5.6 milliseconds per cross-section. However, these times are considered negligible when compared with conventional logging speeds of one frame every one to two seconds. The SGS workflow necessitates a processing time of 66 s per cross-section when generating 40 realisations, and this has become the primary computational bottleneck due to its sequential Python -3.14 loop structure. Compiled inner loops and multi-core parallelisation of independent realisations are expected to reduce this cost substantially.
The current validation covers three flow regimes in a 124 mm horizontal pipe. Two aspects of generalisability warrant discussion. First, regarding transitional flow regimes: the continuous nature of the Chaos Weight inherently provides interpolation for regimes not explicitly trained, such as dispersed-droplet or annular flow. Nevertheless, extending the classifier to additional regime labels and validating the weight response across a broader regime map remain necessary before field deployment. Second, regarding pipe diameter: the variogram parameters (range, sill, nugget) are expected to scale with pipe geometry. In larger-diameter wells, the sensor spacing-to-diameter ratio decreases, potentially improving spatial resolution; however, the number and arrangement of sensors may also change, affecting the variogram structure. Transfer learning or diameter-normalised feature engineering could mitigate the need for full retraining, but experimental validation on alternative pipe sizes is required to confirm this hypothesis.
4.6. 3D Visualization and Experimental Validation
As illustrated in
Table 8, a comparative analysis is presented of the 3D visualisation models for the three typical operating conditions (SF, SFF and FR) alongside photographs captured during the transparent tube experiments. The SF photographs show clear oil–water stratification with a continuous horizontal interface, which the 3D model reproduces faithfully. Under SFF conditions, the model captures both the overall layered structure and the localised mixing-zone texture at the interface, reflecting the Chaos Weight’s intermediate blending of DOK and SGS paths. Under FR conditions, the characteristic ‘milky white’ chaotic appearance observed experimentally is matched by the heterogeneous oil–water patch distribution in the 3D reconstruction, with texture evolving naturally along the axial direction.
To quantify the volumetric deviation between the reconstructed field and the sensor reference, the volume deviation and relative deviation were defined as:
where
is the volume-averaged water holdup of the FR-FACI reconstructed field, and
is the reference value obtained from the 12 CAT probes weighted by Voronoi area.
Table 9 presents the results for nine operating conditions. The SF conditions show relative deviations of +7.88% to +9.09%, indicating a slight overestimation of water volume by the reconstructed field. The SFF conditions exhibit negative deviations of −12.22% to −14.51%, reflecting systematic underestimation due to interface mixing and SGS boundary truncation. The FR conditions show positive deviations of +13.93% to +15.86%. The absolute relative deviations across all conditions remain within 16%, which can be attributed to the combined effects of the sparse sensor layout (12 CAT probes covering less than 40% of the 124 mm cross-sectional area) and the Voronoi weighting approximation (estimated model error ± 5%). The total water volume in the reconstructed field is consistent with sensor observations within an engineering-acceptable range.
5. Conclusions and Outlook
This paper presents FR-FACI (Flow-Regime-Driven Dual-Path Adaptive Framework), a method for cross-sectional imaging of two-phase oil–water flow in horizontal wells. The main findings are as follows: (1) an SVM classifier using six physically meaningful features achieves 95.83% accuracy under LOCO validation, with Chaos Weight converting probabilistic outputs into continuous imaging control; (2) variogram analysis reveals order-of-magnitude differences in spatial correlation across regimes, providing a physical basis for dual-path reconstruction; and (3) FR-FACI matches DOK in terms of structural accuracy (with an overall MAE of 0.105), while also recovering chaotic textures that all single-model methods, including GPR, fail to reproduce.
Several limitations and future directions are identified. Firstly, while the fusion variance provides an indicator of uncertainty at a pixel level, the current framework does not propagate this uncertainty into derived volumetric or production parameters. Incorporating Monte Carlo-based uncertainty propagation would provide confidence bounds that are essential for decision-making. Secondly, validation has been conducted exclusively on laboratory-scale data using a 124 mm pipe. Application to field-scale horizontal wells with different diameters, fluid properties and sensor configurations is necessary to confirm generalisability. Thirdly, the present workflow operates in post-processing mode. Integration with real-time monitoring systems, where streaming sensor data feeds continuous regime classification and adaptive imaging, would enable dynamic production surveillance and would be a natural extension of the FR-FACI architecture.