Skip to Content
EnergiesEnergies
  • Article
  • Open Access

1 December 2026

38 Pages

Application of Machine Learning in Monitoring of the Hydrate Formation in Real Wells

,
,
and
Centro de Tecnologia, Campus Universitário Lagoa Nova, Universidade Federal do Rio Grande do Norte—UFRN, Natal 59078-970, Brazil
*
Author to whom correspondence should be addressed.

Abstract

Motivated by the imperative to ensure flow assurance and mitigate economic losses in subsea production systems, this study proposes a machine learning-based approach for the early detection of hydrate formation in offshore oil wells. Utilizing time-series thermohydraulic data (pressure and temperature) from the 3W dataset, the methodology integrated rigorous statistical analyses (Wilcoxon and Mann–Whitney U tests) to validate the physical signatures of hydrate plugging, followed by the comparative evaluation of LSTM (Long Short-Term Memory), XGBoost, and SVM (Support Vector Machine) predictive models. The results revealed that sequence-based modeling is essential for capturing the complex, non-linear dynamics of multiphase flow anomalies. The LSTM network significantly outperformed the traditional static algorithms a superiority statistically confirmed by the McNemar test achieving an F1-Score of 0.9017, a sensitivity (recall) of 0.9382, and an R2 of 0.9903. Crucially, operational monitoring demonstrated the LSTM’s capability to accurately anticipate severe pressure buildups at the wellhead prior to critical blockages, providing a viable early-warning window. This work demonstrates that time-resolved artificial intelligence can effectively support decision-making in flow assurance, enabling proactive risk mitigation, optimized chemical inhibitor injection, and advancements in the intelligent monitoring of subsea infrastructure.

1. Introduction

The global economy relies heavily on petroleum and natural gas as primary energy sources [1]. As conventional onshore reserves decline and energy demand continues to increase, the hydrocarbon industry has shifted toward offshore exploration, particularly in deepwater and ultra-deepwater regions that contain vast untapped resources [2]. However, these environments substantially increase the technical and operational complexity of subsea production systems, requiring advanced probabilistic and economic approaches to ensure safe and efficient resource exploration and extraction [3].
Offshore operations also present significant environmental risks, as failures such as well blowouts caused by abnormal formation pressures may result in uncontrolled hydrocarbon releases, fires, and severe marine ecosystem damage [4]. Consequently, ensuring the structural and operational reliability of offshore systems under extreme thermodynamic conditions is essential. Within this context, Flow Assurance plays a fundamental role in maintaining the reliable transport of multiphase fluids from subsea wells to surface facilities [5].
Its primary objective is to preserve system integrity by preventing operational disruptions, particularly during transient conditions such as shutdowns and restarts, when pipelines experience significant temperature and pressure variations [6]. These conditions promote the formation of solid deposits that restrict fluid flow, reduce production efficiency, increase safety risks, and generate substantial intervention costs.
Among Flow Assurance challenges including paraffin wax, asphaltene, and inorganic scale deposition gas hydrate formation is one of the most critical in deepwater operations. Gas hydrates are ice-like crystalline compounds formed when water molecules trap light hydrocarbons, such as methane and ethane, or carbon dioxide under high-pressure and low-temperature conditions [7,8]. The thermodynamic conditions of ultra-deepwater systems naturally favor hydrate formation, and the resulting solids can rapidly accumulate inside pipelines, severely restricting flow or causing complete blockages [9]. Removing these blockages often requires prolonged shutdowns, complex chemical treatments, and significant economic losses. Conventional prediction methods, largely based on laboratory experiments and empirical approaches, are costly, time-consuming, and unsuitable for real-time operational monitoring.
To address these limitations, Artificial Intelligence (AI) and Machine Learning (ML) have become key technologies for intelligent monitoring, automation, and decision support in the petroleum industry [3,10,11]. ML models efficiently process large volumes of operational data, enabling early anomaly detection, equipment failure prediction, and process optimization [12]. They have also demonstrated high accuracy in modeling gas hydrate equilibria by capturing complex nonlinear thermodynamic relationships. Using variables such as fluid composition, pressure, and temperature, these models accurately predict hydrate equilibrium boundaries, reducing the risk of pipeline blockage and costly corrective interventions [8,13,14,15].
Although predictive modeling is essential for reliable decision support in flow assurance, comparative studies evaluating distinct Machine Learning (ML) algorithms using authentic offshore operational data remain limited. Ref. [14] employed an ensemble of Long Short-Term Memory (LSTM) networks to successfully forecast pipeline blockages. Leveraging real-time sensor data, ref. [15] applied LSTM models for binary classification, achieving over 90% accuracy and outperforming traditional analytical PVT methods by significantly reducing false-negative rates. To predict hydrate formation pressure, ref. [15] demonstrated the superior stability and accuracy of Extreme Gradient Boosting (XGBoost), achieving a robust testing R2 of 0.9972. Finally, ref. [16] compared Decision Tree and Support Vector Machine (SVM) algorithms to model methane hydrate equilibrium; the SVM approach delivered the highest precision, predicting phase boundaries with a 0.26% Mean Absolute Percentage Error (MAPE).
Therefore, this study applies Machine Learning techniques to predict gas hydrate formation using real offshore production data. The predictive performance of Long Short-Term Memory (LSTM), Extreme Gradient Boosting (XGBoost), and Support Vector Machines (SVM) is systematically evaluated and compared. By assessing their ability to accurately identify hydrate formation boundaries, this work contributes to the development of robust and cost-effective predictive frameworks that improve the safety, operational continuity, and economic performance of deepwater hydrocarbon production.

2. Materials and Methods

2.1. The Mathematical Formulations of the Models

The combination of traditional mathematical models and advanced machine learning architectures is essential for predicting complex events and mitigating risks [17]. While phenomenological and thermodynamic equations provide a rigorous physical foundation for describing system behavior, data-driven approaches significantly enhance predictive capabilities by identifying hidden patterns within large volumes of variables [18]. Neural network algorithms, such as Long Short-Term Memory (LSTM), are highly effective at capturing temporal dependencies and dynamics in historical time series [19]. Concurrently, methods like XGBoost and Support Vector Machine (SVM) stand out for their precision in mapping non-linear relationships and classifying critical states [20,21].

2.1.1. Long Short-Term Memory (LSTM)

The core of the Long Short-Term Memory (LSTM) architecture is the cell state: a horizontal pathway that traverses the entire temporal sequence with minimal linear interactions, preserving information and mitigating the vanishing gradient problem [19]. Data flow within this state is strictly regulated by logical gates. Utilizing sigmoid activation functions, these gates output values between zero and one to precisely control the addition or removal of information, as illustrated in Figure 1.
Figure 1. LSTM cell structure [22].
To address the intricate dynamics and extended temporal dependencies associated with multiphase flow, this study implements LSTM networks, utilizing their sophisticated internal structure to overcome the vanishing gradient issue. As depicted in Figure 1, the cell’s operations are governed by three interacting regulatory gates. Initially, the forget gate employs a sigmoid activation to systematically eliminate obsolete data from the cellular memory. Following this, the input gate integrates newly relevant information by combining a sigmoid decision layer with a hyperbolic tangent (tanh) vector of candidate values. Finally, the output gate filters the updated, tanh-scaled cell state through an additional sigmoid function, transmitting only the critical features required to compute the subsequent hidden state [22].
The LSTM architecture preserves long- and short-term temporal dependencies through a memory cell ( C t ) and a hidden state ( h t ), which are recursively updated using a gating mechanism [23]. The forget gate determines which information from the previous memory state should be retained (Equation (1)):
f t   =   σ ( W f   ×   [ h t − 1 ,     x t ]   +   b f )
The input gate selects the relevant information to update the memory (Equation (2)):
i t   =   σ ( W i   ×   [ h t − 1 ,     x t ]   +   b i )
The candidate cell state is computed as (Equation (3)):
C ~ t   =   t a n h ( W C   ×   [ h t − 1 ,     x t ]   +   b C )
The cell memory is then updated according to (Equation (4)):
C t   =   f t   ⨀   C t − 1   + i t   ⨀   C ~ t
The output gate controls the information propagated to the next layer (Equation (5)).
o t = σ ( W o × [ h t − 1 ,     x t ] + b o )
Finally, the hidden state is obtained (Equation (6)).
h t = o t   ⨀   t a n h ( C t )
where   x t is the input vector at time step t ; h t − 1 is the previous hidden state; C t − 1 is the previous cell state; f t , i t , and o t denote the forget, input, and output gate activations, respectively; W f , W i , W C , and W o are the trainable weight matrices; b f , b i , b C , and b o are the corresponding bias vectors; σ is the sigmoid activation function; tanh denotes the hyperbolic tangent activation; and ⨀ represents element-wise (Hadamard) multiplication.

2.1.2. eXtreme Gradient Boosting (XGBoost)

eXtreme Gradient Boosting (XGBoost), originally proposed by Chen and Guestrin [24], is an optimized ensemble learning method that integrates multiple weak decision trees into a single strong predictor by sequentially minimizing residual errors to enhance overall accuracy and stability [25]. The algorithm extends conventional Gradient Boosting Decision Trees (GBDT) by applying a second-order Taylor expansion to optimize the objective function, and it strategically utilizes parallel computation during split evaluation to substantially reduce training time while maintaining high predictive performance [24]. Furthermore, the incorporation of explicit regularization, stochastic sampling, and second-order gradient optimization significantly improves model generalization, mitigates overfitting, and ensures robustness when processing noisy and high-dimensional datasets [26,27].
The prediction for the i-th sample from the training is obtained by summing the outputs of all decision trees [28], as show in Equation (7):
y ^ i =   ϕ   x i =   ∑ k = 1 K f k   ( x i ) ,            f k ∈ F
where x i is the input feature vector of sample i; y ^ i is the predicted output; ϕ   x i represents the overall prediction function that aggregates the contributions of all decision trees; f k denotes the prediction function of the k-th decision tree; F = f x = w q x is the functional space containing all possible regression or classification trees; q ( x ) maps an input sample to its corresponding leaf node; w represents the leaf weights; t is the total number of leaves in a tree; and K is the total number of trees in the ensemble [28]. The objective function optimized at iteration t is defined as show in Equation (8):
L ( t ) =   ∑ i n l ( y i ,   y ^ i t − 1 +   f t ( x i ) ) +   Ω ( f t )
where L ( t ) is the objective function at iteration t ; n is the number of training samples; y i is the observed value; y ^ i t − 1 is the prediction obtained in the previous iteration; f t ( x i ) is the prediction generated by the new tree; l (   ) denotes the training loss function; and Ω ( f t ) is the regularization term controlling model complexity [28].
To reduce overfitting, XGBoost introduces the following regularization function, as show in Equation (9):
Ω f =   γ T +   1 2   λ ‖ w ‖ 2
where Ω f represents the regularization penalty; γ is the complexity penalty assigned to each leaf node; T is the number of leaves in the tree; λ is the L2 regularization coefficient applied to the leaf weights; w is the vector of leaf weights; and ‖ w ‖ 2 denotes the squared L2 norm of the weight vector [28].
The objective function combines prediction error with model complexity, enabling XGBoost to achieve high predictive accuracy while maintaining strong generalization capability [29]. These characteristics have made XGBoost one of the most widely adopted machine learning algorithms for classification and regression tasks involving complex industrial datasets [25,26,27].

2.1.3. Support Vector Machine (SVM)

Originally developed by Vapnik, the Support Vector Machine (SVM) is a robust supervised algorithm capable of modeling complex nonlinear decision boundaries in high-dimensional spaces for both classification and regression tasks [30,31].
For this study, the classification formulation, Support Vector Classification (SVC), was employed to distinguish between normal operations and undesirable operational events. The SVC algorithm seeks the optimal decision boundary (hyperplane) that maximizes the margin between different classes in the feature space. To handle the complex, nonlinear topology separating normal operating regimes from anomalous states, the Kernel Trick was applied using the Radial Basis Function (RBF). The SVC optimization problem is formulated as shown in Equation (10).
Minimize :   1 2   ‖ w ‖ 2 + C ∑ i = 1 n ξ i
Subject   to :   y i w T   ϕ x i + b   ≥ 1 − ξ i   and   ξ i   ≥ 0
where w is the weight vector, C is the regularization parameter controlling the trade-off between margin maximization and classification error, ξ i are slack variables permitting misclassifications for non-linearly separable data, y i   ∈   − 1 ,    1 represents the class labels, and ϕ x i is the mapping function to a higher-dimensional space. The resulting decision function relies on the RBF kernel (Equation (11)) [16,32]:
G ( x i ,   x j )   =   e x p − γ   ‖ x i   −   x j ‖ 2   
where G ( x i ,   x j ) measures the similarity between samples x i and x j , and γ determines the spatial influence of individual support vectors. By mapping the input data into this higher-dimensional space, SVC effectively establishes robust boundaries for binary anomaly detection.
The RBF kernel enables the SVR model to capture complex nonlinear relationships commonly observed in industrial process data, making it particularly suitable for hydrate detection problems [33]. Although SVR generally provides high predictive accuracy, its computational cost may increase considerably when applied to large or highly noisy datasets [16,33].

2.2. Workflow

This study adopts a quantitative, data-driven, and experimental-computational methodology to develop predictive models for hydrate formation in offshore oil production systems. Utilizing advanced machine learning algorithms, the proposed framework aims to identify anomalous temporal patterns associated with hydrate formation, thereby supporting proactive flow assurance strategies. The entire computational pipeline was implemented in Python using high-performance scientific libraries, including TensorFlow/Keras, Scikit-learn, and Pandas, ensuring computational efficiency, methodological robustness, and full reproducibility of the experimental workflow (Figure 2).
Figure 2. Workflow.
As illustrated in Figure 2, the proposed methodology follows a structured and sequential workflow comprising three main phases: data preparation, model development, and predictive performance evaluation. Initially, pressure and temperature measurements acquired from strategically positioned production sensors undergo rigorous preprocessing, including data cleaning, normalization, and temporal structuring to generate representative time-series datasets. These datasets are subsequently partitioned into training, validation, and testing subsets for model construction and optimization. Finally, LSTM, XGBoost and Support Vector Machine SVM models are trained, optimized, and statistically validated through a comprehensive performance assessment to quantify their predictive accuracy, robustness, and capability for real-time hydrate detection.

2.2.1. Diagnostic

To establish the theoretical basis of this study, a comprehensive literature review was conducted using major academic databases, including Scopus, Google Scholar, and the Periodicals CAPES portal. The review focused on peer-reviewed studies addressing gas hydrate formation, crystallization mechanisms, and the thermodynamic conditions governing phase transitions in offshore production systems. The literature provided a basis for identifying the main variables associated with hydrate stability and highlighted the importance of monitoring thermodynamic conditions to detect and anticipate hydrate-related anomalies.
Based on the findings of the literature review, pressure and temperature were identified as the key variables for characterizing the conditions associated with hydrate formation. Continuous monitoring of these variables is therefore essential for the reliable diagnosis and prediction of this phenomenon. Accordingly, the proposed methodology applies supervised machine learning and deep learning techniques to analyze pressure and temperature patterns and identify operational conditions associated with hydrate formation. This data-driven approach connects the thermodynamic understanding of hydrate stability with computational modeling, providing a systematic framework for detecting and predicting hydrate-related anomalies and supporting flow assurance in subsea production systems.

2.2.2. Data Acquisition

The empirical foundation of this study relies on the publicly available 3W repository (Version 2.0), a dataset curated by Petrobras flow assurance specialists to represent realistic operational anomalies in offshore oil facilities [34]. To accurately capture rare occurrences and mitigate the class imbalance typical of real-world industrial datasets a critical requirement for robust supervised learning [35] the repository employs a hybrid architecture. It integrates historical telemetry from subsea production wells with transient multiphase flow simulations generated via the OLGA software (version Olga 2026.2). In the consolidated subset analyzed in this study, the series comprised approximately 60% real operational records and 40% simulated data; the inclusion of simulated instances was deliberate, aiming to mitigate systematic errors associated with missing and/or frozen sensor signals, which are frequent in real subsea telemetry. Importantly, undesirable-event labels, including hydrate formation, are provided by flow-assurance specialists for both real and simulated instances, so that the classification classes adopted in this study are defined by the expert-verified event labels rather than by the origin of the data. During data acquisition, the independent CSV files were read and their data were sequentially consolidated to compose a unified dataframe. The temporal sequence of the measurements was preserved through the timestamp variable, which records the date and time of each measurement at one-second intervals. For the subsequent analysis and monitoring of operating conditions, the temporal results are presented in minutes (min), allowing the evolution of the process variables to be evaluated consistently over time. The extracted dataset encompasses four continuous process variables alongside the temporal marker, focusing on critical measurements at two strategic production nodes. Specifically, the data contain the pressure and temperature at the pump head or wellhead (P-TPT [Pa] and T-TPT [°C]), as well as the upstream pressure (P-MON-CKP [Pa]) and downstream temperature (T-JUS-CKP [°C]) at the platform’s choke valve. These variables and their respective measurement locations are illustrated in Figure 3. The figure was generated using Google’s Imagen 3 image-generation model, accessed through the Gemini ecosystem, based on the offshore production system representation and technical information reported by Vargas et al. [34].
Figure 3. Schematic representation of the offshore production system and locations of the process variables used in this study. Generated using Google’s Imagen 3 image-generation model, based on Vargas et al. [34].
Within subsea oil and gas production, gas hydrate crystallization represents a primary flow assurance challenge capable of causing severe pipeline blockages and operational disruptions. The onset and subsequent agglomeration of these solid structures are strictly dictated by the thermodynamic behavior of the multiphase fluid, which responds dynamically to changes in the surrounding subsea environment. Consequently, the reliable diagnosis and prediction of this phenomenon demand continuous assessment of the specific physical parameters governing hydrate stability. By tracking time-series operational shifts from the beginning of the subsea flowline to the surface platform, it is possible to map how anomalous fluid behaviors manifest and propagate throughout the production infrastructure. Identifying the precise variables capable of indicating this mechanism is therefore critical for transitioning from reactive mitigation to proactive predictive monitoring.
To effectively capture the hydrate formation mechanism, this study progressively focused on pressure and temperature as the principal indicator variables, where Pearson’s correlation analysis was applied in all variables. The selection of P-TPT, T-TPT, P-MON-CKP, and T-JUS-CKP was not the result of statistical dimensionality reduction procedures, but was instead fundamentally grounded in domain expertise associated with the 3W project. Scientifically, gas hydrates are thermodynamically stable only under synergistic conditions of elevated pressure and reduced temperature. Therefore, continuously monitoring these specific physical parameters at both the subsea wellhead and the topside choke point enables a comprehensive thermal and hydraulic evaluation across the entire fluid flow path.

2.2.3. Data Preprocessing

The methodological implementation was conducted using Python (version 3.14.7), the scikit-learn library (version 1.9.0) and the keras library (version 3.15.0), chosen for their robust capabilities in developing machine learning classifiers. To ensure data quality and temporal consistency, a rigorous preprocessing pipeline was established for the raw industrial telemetry, which frequently exhibits packet losses, frozen signals, and noise. The initial data inspection involved evaluating the independent CSV files to identify inconsistent records, missing observations, and potential duplicates. Prior to data concatenation, a local variance analysis was applied to each file to detect sensor failures and classify frozen signals. Subsequently, invalid records were removed, temporal experiments were chronologically ordered, timestamps were converted into minutes, and physical units were standardized.
To minimize the influence of anomalous observations on subsequent preprocessing and machine learning procedures, an outlier detection and data-cleaning protocol was applied individually to each CSV file (per-file basis). This procedure was performed before the interpolation of missing values to preserve the specific operational characteristics of each well and prevent the mixing of measurements from wells with distinct physical and operational ranges. Such an approach was essential because applying global filtering and imputation across the entire dataset could introduce artificial relationships between wells and produce physically unrealistic values during the treatment of missing observations.
For each file, potential instrumental and non-operational anomalies were identified using a univariate statistical approach based on the Interquartile Range (IQR), supported by boxplot analysis. For each continuous variable, the first quartile (Q1) and third quartile (Q3) were calculated to define the interquartile range (IQR = Q3  − Q1). Data points falling outside the statistical boundary of [Q1  − 1.5 × IQR, Q3 + 1.5 × IQR] were classified as statistical outliers and removed. This procedure provides a robust criterion for identifying atypical observations without assuming a normal distribution of the process variables.
As a complementary procedure, a standard-score ( Z -score) criterion was also applied individually within each file. Observations with an absolute Z-score greater than three ( | Z | > 3) were considered potential anomalous measurements and excluded. The combination of IQR- and Z-score-based filtering was used to reduce the influence of extreme instrumental readings and atypical operational fluctuations while preserving the temporal characteristics of genuine process events, including those associated with gas hydrate formation.
To distinguish sensor electrical signal faults from genuine physical process mutations during the cleaning procedure, three complementary criteria were applied. First, the local variance analysis performed prior to data concatenation classifies frozen or flat-lined signals, which are characteristic of sensor and telemetry failures: these segments exhibit constant readings with near-zero variance over extended intervals, a behavior incompatible with the dynamic fluctuations expected in multiphase flow. Second, the IQR and Z-score criteria remove only isolated readings lying outside fixed statistical boundaries ([Q1 − 1.5 × IQR, Q3 + 1.5 × IQR] and |z| > 3), whereas physical transients associated with the early stages of hydrate formation consist of sustained, temporally coherent, and multivariate shifts rather than single-point extremes; genuine process mutations are therefore not flagged as outliers by these univariate criteria. Third, the values removed by these criteria were replaced only in a subsequent per-file imputation step, which preserves the chronological order of the records and the physical consistency of each well’s time series. The effectiveness of this protocol can also be assessed from the results: the boxplots in Figure 4 confirm the attenuation of spurious values while preserving the physical variability characteristic of transient and anomalous flow regimes. These observations indicate that the cleaning procedure removed instrumental noise without suppressing the temporal signatures of real physical process mutations.
Figure 4. Boxplots of the monitored pressure and temperature variables in the dataset.
Following the outlier-removal procedure, missing values were treated separately for each file, rather than through global interpolation across the complete dataset. This per-file imputation strategy ensured that missing observations were estimated only from measurements belonging to the same well and operational series, thereby avoiding the propagation of values from wells exhibiting substantially different physical operating ranges. Consequently, the cleaning and imputation procedures maintained the physical consistency of each well’s time series and minimized the risk of introducing artificial patterns that could affect subsequent statistical analyses and machine learning model training.
To clarify how these unsupervised steps were safeguarded against information leakage between the training and test partitions, three points are relevant. First, the outlier-removal criteria (IQR and Z-score boundaries) and the imputation statistics are computed independently for each file and for each variable, without any access to the class labels; the removed observations are isolated readings lying outside fixed univariate boundaries, and the procedure therefore cannot propagate outcome information from the test partition into the training observations. Second, every value inserted during imputation is estimated exclusively from temporally adjacent measurements of the same well series, through linear interpolation, directional propagation, or the mean of the same file, so that no measurement is transferred across wells or across distinct operational contexts. Third, all parameters learned from the data and subsequently used during model fitting, namely the StandardScaler and MinMaxScaler statistics, the Youden’s J operating threshold, and the hyperparameters governed by early stopping, were estimated strictly from the training blocks and then applied unchanged to the test observations, as described in Section 2.2.4 and Section 2.2.6. The residual effect of applying label-free preprocessing to the complete series is therefore limited to the local numeric filling of removed or missing timestamps within each well and does not involve any information from the test labels. A sensitivity analysis repeating the entire pipeline with the outlier and imputation statistics estimated exclusively within the training blocks is recommended in Section 4.3 as a complementary validation step.
Following the removal of anomalous values, the dataset required stabilization to address sporadic nulls and ensure the temporal continuity demanded by sequential models. Missing values (NaN) were initially treated using linear interpolation. To stabilize the records specifically for the downstream choke temperature variable (T-JUS-CKP), directional propagation techniques namely forward fill and backward fill were applied. Once temporal continuity was secured, any remaining missing entries were handled via a mean-imputation strategy utilizing the SimpleImputer class (with strategy = ‘mean’), which successfully preserved the underlying statistical structure of each feature. To improve the predictive capacity of the models and provide greater methodological, a systematic feature engineering process was conducted. This step constructed new indicators derived from the original operational variables, allowing the machine learning algorithms to capture more complex physical relationships and thereby improve diagnostic accuracy [36]. The newly engineered attributes included:
•
Simple Thermodynamic Attributes: Pressure and temperature gradients calculated between the wellhead and the platform choke valve (∆P = P-TPT − P-MON-CKP; ∆T = T-TPT − T-JUS-CKP).
•
Temporal (Statistical) Attributes: Moving averages and moving standard deviations computed over different time windows (e.g., 5 min, 10 min) for each variable.
•
Lag Attributes: Time-delayed observations to capture system memory (e.g., P-TPT at t   −   1, t   −   5, t   −   10).
To ensure that all physical variables contributed equally during model training and to minimize weighting biases arising from differences in thermal, pressure, and operational scales, feature scaling was applied prior to model development. For the Support Vector Machine (SVM) and Extreme Gradient Boosting (XGBoost) models, the input features were standardized using the StandardScaler based on z-score transformation, centering each variable around a zero mean with unit variance and thereby providing a common scale for spatial and tabular features. In contrast, the temporal features used as inputs to the Long Short-Term Memory (LSTM) network were normalized using the MinMaxScaler, which linearly transformed the data to the [0, 1] interval according to Equation (12) [37].
x ′ =   x − x m i n x m a x − x m i n
This normalization is particularly suitable for recurrent neural networks because it limits the magnitude of input values and helps mitigate numerical instability, including vanishing or exploding gradients, during temporal backpropagation. Thus, the use of StandardScaler for SVM and XGBoost and MinMaxScaler for LSTM was adopted according to the characteristics and computational requirements of each modeling approach, ensuring greater numerical stability and comparability among the input variables [37].

2.2.4. Dataset Construction

To prevent temporal data leakage and ensure a robust and consistent evaluation, the dataset was chronologically partitioned using an interleaved block strategy applied uniformly across all machine learning models (LSTM, XGBoost, and SVM). Random shuffling was strictly avoided, as it can cause temporal leakage in time-series data by placing adjacent temporal samples into both training and testing sets. Instead, each individual well’s time series was divided into 10 contiguous chronological blocks. Blocks 2, 5, and 8, comprising approximately 30% of the available observations, were strictly reserved as the independent test set, while the remaining blocks, representing approximately 70% of the data, constituted the training set. This procedure was applied independently to each well, preserving the temporal order and the specific operational characteristics of each production series while providing the same temporal evaluation framework for all three models. The use of interleaved chronological blocks also allowed the models to be evaluated on previously unseen temporal segments distributed throughout the monitoring period, thereby reducing the risk that the evaluation would be dominated by a single continuous operating interval. All preprocessing procedures described in Section 2.2.3 were performed on a per-file (per-well) basis using exclusively unsupervised statistics, without any use of class-label information, and were completed before the chronological partitioning of each series. The parameters of the StandardScaler and MinMaxScaler transformations were estimated strictly from the training blocks and subsequently applied, unchanged, to the test observations. The 70/30 training/test proportion was fixed a priori and applied identically to LSTM, XGBoost, and SVM to ensure a strictly comparable evaluation framework.
Due to the high computational cost associated with the RBF kernel, the SVM model was trained using a stratified subsample of 10,000 instances selected exclusively from the training blocks. This computational reduction was restricted to the model-development stage and did not alter the independent test set, which remained unchanged. Furthermore, class imbalance was addressed through algorithmic class-weighting strategies, including class_weight = ‘balanced’ where applicable, during model formulation. Synthetic over-sampling techniques, such as SMOTE, were not employed because the generation of synthetic observations in multivariate industrial time-series data could introduce physically unrealistic combinations of process variables.
Accordingly, all three models were evaluated using the same independent chronological test framework, ensuring a comparable basis for performance assessment. For LSTM, the chronological sequences were subsequently organized using the sliding-window procedure described previously, while XGBoost and SVM received the corresponding observations according to their respective input requirements. In all cases, the test observations remained temporally isolated from the training data, preserving the integrity of the monitoring series and providing a rigorous assessment of model performance under previously unseen chronological segments of the same wells (Table 1).
It is worth stating explicitly the scope of this design. Because the reserved blocks are drawn from the same wells as the training blocks, under the same sensor configuration and operating context, the interleaved-block protocol evaluates generalization in time within each well: the reported metrics quantify the ability of the models to predict previously unseen chronological segments of known wells. The protocol does not, by itself, establish generalization to entirely unseen wells or to future operating periods, a limitation that is stated explicitly in Section 4.3, where well-independent and forward-chaining validation schemes are identified as required steps for future work.
Table 1. Data partitioning strategy adopted for the machine learning analyses.
The chronological partitioning was performed individually for each well, with Blocks 2, 5, and 8 reserved exclusively for testing and the remaining blocks used for training. Consequently, the same temporal partitioning principle was maintained across LSTM, XGBoost, and SVM, allowing their predictive performance to be compared under equivalent and temporally consistent evaluation conditions.

2.2.5. Predictive Modeling

To establish an optimal analytical architecture for the identification of flow perturbations and progressive hydrate agglomeration, three distinct predictive paradigms were employed: a deep recurrent network for temporal dependency modeling, a tree-based ensemble approach for structured nonlinearities, and a kernel-based maximum margin classifier. An integrated overview of the adopted learning paradigms, model architectures, and principal hyperparameter configurations is provided in Table 2.
Table 2. Overview of the predictive modeling paradigms and hyperparameter configurations.
Long Short-Term Memory (LSTM) Network
In this study, the LSTM model was implemented via the TensorFlow/Keras framework to explicitly process the historical memory component of the industrial time series [38]. The network was configured to receive three-dimensional tensors structured by an empirically defined sliding window of 10 timesteps, reshaping the input to (samples, 10, features). After evaluating various architectural complexities, the optimal topology consolidated into a three-layer stacked configuration featuring 64, 64, and 32 hidden units, respectively. The initial and intermediate LSTM layers were parameterized to return the complete sequence (return_sequences = True) to facilitate hierarchical temporal feature extraction, while the terminal LSTM layer produced the final hidden representation. The hyperbolic tangent (tanh) activation function was employed within the recurrent layers to model nonlinear temporal relationships.
To control overfitting, stochastic regularization was introduced through Dropout layers with a rate of 20% (Dropout (0.2)) after the recurrent layers. Because hydrate detection was formulated as a binary classification problem, the output layer consisted of a single neuron with a sigmoid activation function, and Binary Cross-Entropy was adopted as the loss function. The optimization process was performed using the Adam optimizer with an initial learning rate of 0.005. Training was conducted for a maximum of 30 epochs with a batch size of 64 (batch_size = 64), using an internal validation split of 10% (validation_split = 0.1) within the training data. Early stopping was employed to limit overfitting and improve generalization, with the training process stopped when the validation loss ceased to improve for five consecutive epochs and the model weights restored to those corresponding to the best validation performance.
The performance of the LSTM relative to the classical machine-learning algorithms, XGBoost and SVM, is associated with its ability to explicitly process sequential dependencies and extract temporal features from the operational time series. In contrast, XGBoost and SVM evaluate the input observations as individual feature vectors without an explicit recurrent memory mechanism. The LSTM was configured to capture the dynamic evolution of the multiphase flow through a sliding time window (lookback window) of 10 timesteps. Thus, the operational state at time t was predicted using the preceding sequence of observations within the defined temporal window, providing contextual information from the recent evolution of the process variables. This configuration enables the recurrent gates to integrate temporal information associated with pressure and temperature variations that may precede the development of an undesirable operating condition. Accordingly, the use of sequential information provides a methodological basis for the observed differences in classification performance between the LSTM and the static machine-learning approaches.
eXtreme Gradient Boosting (XGBoost)
To provide a predictive framework based on structured process variables without requiring recurrent temporal windowing, the XGBoost algorithm was employed [24,39]. The implementation used the gbtree booster. To control the complexity of the individual decision trees and reduce the risk of learning noise, the maximum tree depth was constrained to max_depth = 6. In addition, stochastic sampling was applied to both observations and features, with subsample = 0.8 and colsample_bytree = 0.8, respectively. These parameters introduce controlled variability among the boosting iterations and help reduce overfitting.
The learning process was smoothed by a learning rate of 0.05, and convergence was controlled using an early stopping criterion with a patience of 50 rounds. To strictly prevent data leakage, the early stopping metric (logloss) was evaluated exclusively on a 10% internal validation subset extracted from the training data. Thus, the final hold-out test set remained completely unseen throughout the model-training and hyperparameter-selection process. This procedure ensured that the test data were reserved exclusively for the final assessment of predictive performance.
Support Vector Machine (SVM)
For modeling based on nonlinear spatial separability, an SVM classifier was implemented. The SVM seeks an optimal decision boundary, or hyperplane, that maximizes the margin between different classes [40]. Due to the nonlinear relationships among the monitored operational variables and the complex boundaries between nominal operating conditions and hydrate-related events, the Kernel Trick was employed using the Radial Basis Function (kernel = ‘rbf’). This transformation allows the standardized input variables to be represented in a higher-dimensional feature space, where nonlinear class boundaries can be modeled effectively.
Because of the computational complexity associated with the RBF kernel, particularly when processing the large number of observations generated by the monitoring dataset, the SVM was trained using balanced, stratified subsamples of 10,000 instances drawn exclusively from the training set. The subsampling procedure preserved the representation of the relevant classes while reducing the computational burden of kernel-based optimization. Importantly, the independent test set was not used during this subsampling or model-fitting procedure.
To address class imbalance associated with hydrate formation events, the SVM formulation incorporated algorithmic class weighting (class_weight = ‘balanced’), which adjusts the penalty assigned to each class according to its frequency. The decision boundary was controlled through two principal hyperparameters: the penalty parameter C = 1.0, which regulates the trade-off between maximizing the margin and allowing classification errors, and the kernel coefficient gamma = ‘scale’, which determines the influence of individual training observations in the RBF feature space based on the variance of the input data.
The model-development procedure was performed exclusively within the training data, while the previously defined chronological hold-out blocks were preserved for the final independent evaluation. This separation ensured that the optimization and fitting procedures did not incorporate information from the test observations and maintained the temporal integrity of the experimental design.

2.2.6. Model Evaluation

The predictive models were evaluated using an integrated framework combining threshold-dependent classification metrics, threshold-independent ROC analysis, paired inferential statistical testing, and continuous prediction-error metrics. Because the detection of undesirable operational events is inherently affected by class imbalance, model performance was not assessed using accuracy alone. Instead, Precision, Recall (Sensitivity), F1-score, and Receiver Operating Characteristic (ROC) analysis were jointly considered to characterize positive-event detection, discrimination across decision thresholds, and the reliability of the classification results. In addition, McNemar’s test was used for paired comparisons among the models, while regression-oriented indicators were employed to quantify the agreement between predicted and experimentally observed continuous values.
Classification Assessment and Confusion Matrix
The primary classification task consisted of identifying the occurrence of hydrate formation. Normal Operation was assigned to the negative class (0), whereas Hydrate Formation was designated as the positive class (1). Based on the comparison between predicted and actual classes, True Positives (TP) corresponded to hydrate-formation events correctly identified by the model, whereas True Negatives (TN) represented normal-operation observations correctly classified as such. False Positives (FP) corresponded to normal-operation observations incorrectly identified as hydrate formation, while False Negatives (FN) represented actual hydrate-formation events that were incorrectly classified as normal operation [41].
The resulting confusion matrix provided the basis for calculating the principal classification metrics. Accuracy represents the overall proportion of correctly classified observations and is defined by Equation (13):
A c c u r a c y   =   T P   +   T N T P   +   T N   +   F P   +   F N
Although Accuracy provides an overall measure of classification correctness, it can provide an overly favorable interpretation when the class distribution is imbalanced because it is strongly influenced by the number of True Negatives. Therefore, additional metrics were considered to provide a more representative evaluation of undesirable-event detection. Precision quantifies the reliability of positive predictions by measuring the proportion of observations classified as hydrate formation that correspond to actual positive events, as expressed in Equation (14):
P r e c i s i o n   =   T P T P + F P
Recall, also referred to as Sensitivity or the True Positive Rate (TPR), quantifies the proportion of actual undesirable events correctly detected by the model and is therefore particularly relevant to the identification of critical operating conditions (Equation (15)).
R e c a l l = S e n s i t i v i t y = T P R = T P T P + F N
A low Recall indicates that a substantial proportion of actual hydrate-formation events remain undetected, thereby increasing the number of False Negatives. To complement the confusion-matrix metrics, Receiver Operating Characteristic (ROC) curves were constructed to evaluate the global discriminative capacity of the LSTM, XGBoost, and SVM models across the complete range of possible classification thresholds. The ROC curve represents the relationship between the True Positive Rate (TPR) and the False Positive Rate (FPR), with the latter defined as show in Equation (16).
F P R = F P F P + T N
The TPR, which forms the vertical axis of the ROC curve, is equivalent to Sensitivity or Recall and is given by Equation (20). The ROC curves were generated from the continuous prediction scores ( y s c o r e ) provided by each algorithm rather than from a single binary classification threshold. The corresponding area under the ROC curve (ROC-AUC) was used as a threshold-independent measure of overall class-discrimination capability. Finally, the F1-score combines Precision and Recall through their harmonic mean and is defined by Equation (17).
F 1 - S c o r e = 2 × P r e c i s i o n × R e c a l l P r e c i s i o n + R e c a l l
Taken together, Precision, Recall, and F1-score provide complementary measures of classification performance. Because hydrate formation is the minority class, the F1-score was adopted as the primary threshold-dependent metric, as it balances missed events and false alarms and is therefore more informative than accuracy alone [42]. The operating threshold for the final predictions was determined using Youden’s J statistic, J = Sensitivity + Specificity − 1, where Specificity = TN/(TN + FP). The threshold that maximized J was selected to provide a balance between event detection and false-positive reduction, ensuring consistency between the ROC analysis and the confusion-matrix results. The threshold optimization was performed exclusively within the training data, using the internal validation split of 10% of the training observations, following the same protocol adopted for early stopping and hyperparameter selection. The independent test set was not used at any stage of threshold selection and remained completely unseen until the final evaluation.
Statistical Evaluation of Operational Variables
Before assessing model performance, the discriminative behavior and temporal evolution of the monitored thermohydraulic variables (P-TPT, P-MON-CKP, T-TPT, and T-JUS-CKP) were statistically investigated. Because industrial sensor time-series may exhibit non-normal distributions as a result of changing operating regimes, process variability, and measurement noise, non-parametric statistical procedures were employed. The Mann–Whitney U test was used to compare the distributions of each monitored variable between the Normal Operation and Undesirable Event classes [43]. For two independent samples, the Mann–Whitney statistics are defined as show in Equations (18) and (19).
U 1 = n 1 n 2 + n 1   n 1 + 1 2 − R 1
U 2 = n 1 n 2 + n 2   n 2 + 1 2 − R 2
where n 1 and n 2 are the sample sizes of the two operational classes and R 1 and R 2 are the corresponding sums of ranks.
The test statistic is obtained as U = m i n ( U 1 , U 2 ) . A significance level of 5% was adopted; therefore, a p-value below 0.05 was interpreted as evidence against the null hypothesis of equivalent distributions between the compared operational states. This analysis was used to determine whether the monitored variables exhibited statistically distinguishable distributions during undesirable events, thereby supporting their relevance as predictive features.
In addition, the Wilcoxon signed-rank test was applied to consecutive temporal changes within each operational state to assess whether the monitored signals exhibited systematic directional variation rather than fluctuations centered around zero. For consecutive observations, the differences were calculated as d i = X t + 1 − X t , excluding zero differences [44]. The absolute values of the remaining differences were ranked, and the signed-rank statistic was obtained as show in Equation (20).
W = ∑ i = 1 N r s g n d i × R i
where N r is the number of non-zero temporal differences, s g n d i is the sign of each difference, and R i is the rank assigned to its absolute magnitude.
This procedure was used to characterize systematic temporal changes in the monitored signals and to assess whether consecutive variations were consistent with directional process evolution during the onset or development of undesirable operating conditions.
Statistical Analysis and Model Comparison
To determine whether the classification results of the LSTM, XGBoost, and SVM models differed significantly when evaluated on the same observations, McNemar’s test with continuity correction was applied [45]. This non-parametric test is appropriate for paired nominal predictions because it evaluates the disagreement between two classifiers applied to the same observations. For each pair of models, the resulting 2   ×   2 contingency table distinguishes observations classified correctly or incorrectly by each classifier. The discordant cells, b and c , represent the observations correctly classified by one model but incorrectly classified by the other. The continuity-corrected McNemar statistic was calculated as:
χ 2   =   ( | b   −   c |   −   1 ) 2 b   +   c
where b and c denote the two discordant classification counts. A significance level of 5% ( α   = 0.05) was adopted. A p-value below 0.05 indicates that the disagreement pattern between the two models is statistically significant and unlikely to be explained solely by random variation among the paired observations.
Regression Model Evaluation
In addition to the discrete classification assessment, regression performance was evaluated using statistical measures designed to quantify the agreement between predicted and experimentally observed values. This complementary analysis provides a continuous assessment of prediction quality and enables the magnitude and direction of model errors to be characterized. The principal metrics comprised the coefficient of determination ( R 2 ), root mean square error ( RMSE ), average relative deviation ( ARD ), and average absolute relative deviation ( AARD ) [46].
The coefficient of determination ( R 2 ), presented in Equation (22), quantifies the proportion of the variability explained by the model.
R 2 = 1 − ∑ i = 1 n ( y i − y ^ i ) 2 ∑ i = 1 n ( y i − y ¯ ) 2
Where higher values indicate greater agreement between predicted and observed values. The root mean square error, defined in Equation (23), measures the magnitude of prediction errors in the same units as the response variable while assigning greater weight to larger deviations.
R M S E = ∑ i = 1 n ( y i − y ^ i ) 2 n
The average relative deviation, given in Equation (24), quantifies the directional tendency of the predictions and indicates whether the model systematically overestimates or underestimates the observed values.
A R D   % = 100 n × ∑ i = 1 n y ^ i − y i   y i  
Finally, the average absolute relative deviation, defined in Equation (25), quantifies the mean relative magnitude of the prediction errors irrespective of their direction.
A A R D % = 100 n × ∑ i = 1 n | y ^ i − y i   y i |  
In these equations, y ^ i represents the model-predicted value for observation i - t h , y i denotes the corresponding experimentally observed value, y ¯ is the arithmetic mean of the observed values, and n is the total number of observations in the evaluated subset. The simultaneous use of R 2 , R M S E , A R D , and A A R D provides a comprehensive characterization of continuous prediction performance by accounting for goodness of fit, absolute error magnitude, directional bias, and relative error, respectively. Collectively, these indicators provide a quantitative basis for identifying residual discrepancies and supporting subsequent model refinement and hyperparameter optimization [33].
Operational Monitoring Visualization
To assess the practical applicability of the models for chronological operational monitoring, continuous time-series visualization was also performed. The wellhead pressure (P-TPT) was selected as the primary variable for graphical monitoring and was plotted against elapsed time expressed in minutes, owing to its direct physical relevance to variations in flow conditions. The reference well used for visualization was selected systematically according to the well exhibiting the highest operational variability in P-TPT, as indicated by its standard deviation, while excluding wells affected by frozen sensor signals that would compromise the interpretability of the monitoring plots.
For the final validation visualizations, the time series was organized as a continuous concatenation in which the initial 70% of the displayed timeline corresponded to normal operational data, followed by a continuous 30% segment containing labeled undesirable-event data from the 3W repository, which may originate from either real operational records or simulated instances, in accordance with the instance metadata of the repository. The use of a continuous block structure, rather than random point-wise insertion of anomalous observations, was adopted to preserve graphical interpretability and maintain temporal continuity. This representation also provides a visually clear indication of the transition into the undesirable operating condition and facilitates the qualitative assessment of the models’ ability to recognize the onset and persistence of the event.

3. Results

3.1. Data Processing and Distribution of Thermohydraulic Variables

Prior to predictive model training and correlation analysis, the operational data were evaluated and filtered to characterize their distributions and identify potential anomalies. Figure 4 presents the univariate distributions of the four thermohydraulic variables after the combined application of the Interquartile Range (IQR) and Z-score criteria. The boxplots provide a visual assessment of data dispersion and extreme observations, confirming the attenuation of spurious values associated with instrumental noise while preserving the physical variability characteristic of transient and anomalous flow regimes [47].
The pressure and temperature variables exhibit markedly different statistical profiles across the production system. P-TPT is centered at approximately 1.5 × 10 7 Pa, indicating the pressure conditions at the wellhead, whereas P-MON-CKP has a lower median of approximately 0.1 × 10 7 Pa and greater relative dispersion, reflecting substantial pressure variation upstream of the platform choke. T-TPT remains concentrated around 5 °C, with a comparatively symmetric distribution, while T-JUS-CKP is centered near 35 °C and exhibits broader tails, indicating greater thermal variability downstream of the choke.
From a physical perspective, these distributions are consistent with the changing thermodynamic conditions experienced by the multiphase flow along the production system. Pressure variations arise from fluid transport, elevation effects, and the strong flow restriction imposed by the choke, while temperature changes are associated with heat transfer and phase behavior during production. The broader dispersion observed in T-JUS-CKP and P-MON-CKP therefore reflects transient operating conditions that are relevant to flow-assurance analysis, including the identification of instability patterns associated with undesirable events [34].

3.2. Linear Correlation Analysis Among Production Variables

Pearson correlation analysis was performed to quantify the linear associations among the pressure and temperature variables measured at the subsea wellhead and platform choke, providing an initial assessment of their thermohydraulic interactions along the production system. Pearson’s coefficient ranges from −1 to +1, with positive and negative values indicating direct and inverse linear associations, respectively; however, it does not imply causality and may not capture the nonlinear and regime-dependent behavior typical of multiphase flow [48]. This is particularly relevant to hydrate formation, whose stability depends on pressure, temperature, water availability, and gas composition, with higher pressures and lower temperatures generally favoring hydrate stability [49,50]. Figure 5 presents the Pearson correlation matrix for T-TPT and P-TPT at the subsea wellhead, representing upstream conditions, and P-MON-CKP and T-JUS-CKP at the platform choke, representing downstream conditions. This spatial arrangement enables the overall linear relationships among the monitored variables to be assessed and provides a preliminary statistical basis for interpreting the thermohydraulic behavior associated with undesirable events in the 3W Dataset [34].
Figure 5. Pearson correlation matrix of the primary thermohydraulic variables.
Figure 5 shows that the monitored pressure and temperature variables exhibit predominantly weak linear associations across the analyzed dataset. The strongest relationship occurs between P-TPT and P-MON-CKP ( r = 0.28 ), followed by T-TPT and P-TPT ( r = 0.25 ); however, both remain weak, indicating limited global linear co-variation. The relationship between P-MON-CKP and T-TPT is also negligible ( r = 0.04 ), while the downstream temperature T-JUS-CKP shows practically no linear association with the upstream variables, with r = − 0.03 with P-TPT, r = − 0.06 with P-MON-CKP, and r = 0.00 with T-TPT. These results indicate that the thermohydraulic conditions at different locations along the production system do not evolve proportionally over the entire dataset. In particular, the weak association between the two pressure measurements can be attributed to pressure losses, liquid holdup, elevation effects, phase redistribution, and local flow restrictions between the wellhead and platform, whereas the downstream temperature is additionally influenced by pressure reduction, phase expansion, Joule–Thomson cooling, and heat exchange with the surrounding environment.
From a flow-assurance perspective, these weak global correlations do not imply the absence of physical coupling between the variables; rather, they indicate that their relationships are nonlinear, localized, and dependent on the operational regime. This is particularly relevant to hydrate formation, which occurs within a specific pressure–temperature stability region and is favored by relatively high pressure and low temperature when water and hydrate-forming gas are available [49,50]. Therefore, an individual Pearson coefficient may not capture the transient thermodynamic conditions preceding or accompanying hydrate formation. The near-zero correlation involving T-JUS-CKP, in particular, suggests that downstream thermal behavior cannot be adequately explained by a single upstream pressure or temperature variable, reinforcing the need to analyze pressure and temperature jointly in their spatial and temporal context. Accordingly, the correlation matrix provides an exploratory statistical assessment, while the identification of hydrate-related anomalies requires complementary multivariate and time-resolved analyses [34].

3.3. Statistical Evaluation of Operational Conditions (Normal Operation vs. Hydrate Formation)

To assess whether the monitored thermohydraulic variables exhibit statistically distinguishable behavior during normal operation and hydrate formation, the non-parametric Mann–Whitney U and Wilcoxon signed-rank tests were applied. The Mann–Whitney U test was used to compare the distributions of the variables between the Normal Operation and Hydrate Formation classes, whereas the Wilcoxon signed-rank test evaluated consecutive temporal changes within each operational condition (Table 3). This complementary analysis provides an independent statistical assessment of both the differences between operational states and the temporal behavior of the sensor signals, supporting the physical relevance of the variables used in the predictive models.
Table 3. Results of the Wilcoxon signed-rank and Mann–Whitney U tests for the Normal Operation and Hydrate Formation conditions.
The Mann–Whitney U results indicate highly significant differences between the Normal Operation and Hydrate Formation distributions for all four thermohydraulic variables. This finding demonstrates that the pressure and temperature measurements exhibit distinct statistical signatures between the two operational states, supporting their use as discriminative features in the classification models. The Wilcoxon analysis further indicates that temporal variations become statistically significant during hydrate formation for P-TPT ( p = 0.04743 ) and P-MON-CKP ( p = 0.00029 ), whereas no statistically significant consecutive change was detected for these variables during normal operation ( p = 0.13296 and p = 0.30248 , respectively). For T-TPT and T-JUS-CKP, the very small p-values during hydrate formation indicate significant temporal changes in the corresponding temperature signals.
These results indicate that hydrate formation is associated with a measurable alteration in the thermohydraulic state of the production system rather than being represented solely by random sensor fluctuations. As hydrate accumulates within the flow path, the effective flow area can decrease, increasing hydraulic resistance and modifying the pressure and temperature fields. The statistically significant temporal changes observed during the hydrate condition are therefore consistent with the development of an evolving flow disturbance. Importantly, however, the statistical tests establish significant distributional and temporal differences but do not, by themselves, demonstrate causality. Their principal contribution to the present study is to provide independent statistical evidence that the monitored pressure and temperature variables contain information capable of distinguishing normal operation from hydrate-related conditions, thereby strengthening the physical and statistical justification for their use in the predictive modeling framework.

3.4. Predictive Performance of Machine Learning Models

Following model training, the final predictions were evaluated on the independent chronological test set using confusion matrices, threshold-dependent classification metrics, and ROC analysis. In the adopted classification scheme, class 0 represents Normal Operation and class 1 represents Hydrate Formation. The confusion matrices provide a direct assessment of the distribution of correct and incorrect predictions and therefore allow the ability of each model to detect hydrate events, avoid false alarms, and preserve normal operating conditions to be evaluated. The resulting confusion matrices for LSTM, XGBoost, and SVM are shown in Figure 6.
Figure 6. Confusion matrices of the LSTM, XGBoost, and SVM models for Normal Operation (class 0) and Hydrate Formation (class 1).
The results show a consistent performance hierarchy of LSTM > XGBoost > SVM. LSTM correctly classified 159,502 of 172,639 observations, including 60,250 hydrate-formation events and 99,252 normal-operation observations. XGBoost correctly classified 157,020 observations, while SVM correctly classified 148,228. The corresponding accuracies were 92.39%, 90.95%, and 85.86%, respectively. More importantly, the models differed substantially in their ability to identify the positive class. LSTM yielded the highest Recall (93.82%) and the lowest number of false negatives (3966), followed by XGBoost with 90.29% Recall and 6235 false negatives, and SVM with 85.62% Recall and 9236 false negatives (Table 4). For hydrate monitoring, this distinction is particularly relevant because false-negative predictions correspond to actual hydrate events being interpreted as normal operation.
Table 4. Classification performance of the LSTM, XGBoost, and SVM models on the independent test set.
The classification metrics reinforce the differences observed in the confusion matrices. LSTM achieved the highest Precision (86.79%), indicating that most observations classified as hydrate formation corresponded to actual events, while its Recall of 93.82% demonstrates the greatest ability to detect existing hydrate conditions. Consequently, its F1-score of 0.9017 represents the best balance between missed events and false alarms. XGBoost produced a closely related profile, with Precision of 86.07%, Recall of 90.29%, and F1-score of 0.8812. In contrast, SVM exhibited lower Precision (78.37%) and Recall (85.62%), resulting in an F1-score of 0.8183. The FPR values provide an additional operational perspective: LSTM and XGBoost generated comparable false-positive rates of 8.46% and 8.65%, respectively, whereas SVM reached 14.00%. Thus, LSTM achieved a higher detection rate than XGBoost with essentially the same false-alarm rate, indicating a more favorable operating point for hydrate-event monitoring.
Because the dataset contains an imbalance between Normal Operation and Hydrate Formation observations, the F1-score was adopted as the primary metric for evaluating model efficiency. Unlike accuracy, which can be disproportionately influenced by the majority class, the F1-score is based exclusively on the balance between Precision and Recall for the positive class. This is particularly important in hydrate monitoring because both false negatives, which represent undetected hydrate events, and false positives, which represent unnecessary alarms, directly affect the reliability of the monitoring system. Accordingly, a high F1-score indicates that the model can simultaneously detect a large proportion of actual hydrate events while limiting incorrect positive classifications. ROC analysis was therefore used as a complementary, threshold-independent measure of overall discrimination, but its interpretation was made cautiously because ROC performance can appear comparatively favorable in imbalanced datasets due to the influence of the majority class [51]. Thus, the F1-score represents the principal criterion for comparing model efficiency, while Precision, Recall, and ROC-AUC provide complementary information on the specific strengths and overall discriminative capability of each classifier.

3.4.1. ROC Curve Analysis

To complement the single operating-point metrics, the continuous prediction scores were used to construct the Receiver Operating Characteristic (ROC) curves for the three models. Figure 7 shows the relationship between the False Positive Rate (FPR) and True Positive Rate (TPR) across the range of classification thresholds. The dashed diagonal represents random discrimination, corresponding to an AUC of 0.500. The markers indicate the operating points associated with the final classifications presented in Figure 6.
Figure 7. Receiver Operating Characteristic (ROC) curves for the LSTM, XGBoost, and SVM models.
The ROC analysis confirms the same performance ranking identified by the confusion matrices. LSTM achieved the highest ROC-AUC of 0.9604, followed by XGBoost (0.9408) and SVM (0.8985). All three curves remain substantially above the random-classification diagonal, indicating strong discriminatory capability; however, LSTM maintains the greatest TPR across a broad range of FPR values. At the selected operating points, LSTM achieved TPR = 0.9382 at FPR = 0.0846, whereas XGBoost reached TPR = 0.9029 at FPR = 0.0865. Therefore, the two models operate at a similar false-alarm level, but LSTM detects approximately 3.5 percentage points more hydrate events. SVM, in contrast, required a substantially higher FPR (0.1400) while achieving a lower TPR (0.8562), further demonstrating its comparatively weaker separation between the two operational states.
These results are consistent with studies applying machine learning to gas-hydrate-related prediction and identification, although numerical comparisons should be made cautiously because the datasets, input variables, and prediction objectives differ among studies. Ref. [52], for example, compared several machine-learning algorithms for hydrate identification and demonstrated that classification performance varied substantially among algorithms and evaluation metrics, reinforcing the importance of multi-metric assessment rather than relying on a single indicator. Similarly, recent reviews of artificial-intelligence applications in gas-hydrate systems identify recurrent neural networks, ensemble tree methods such as XGBoost, and kernel-based approaches among the principal machine-learning families used for hydrate-related prediction, while emphasizing the strong dependence of model performance on the specific physical problem and dataset [1416,53,,54,55].

3.4.2. Regression Performance

The comparative performance of the LSTM aligns with expectations for this application, given that the model explicitly incorporates temporal information derived from monitored production signals. This is particularly relevant to hydrate formation, which is a dynamic process rather than an instantaneous static state. Ref. [56] developed recurrent-neural-network approaches for hydrate dynamics using multivariate time-series information and reported that their LSTM-based architecture was particularly effective in predicting hydrate transitions and sloughing events, supporting the advantage of recurrent models when temporal evolution is informative. In addition to the classification results, the models were evaluated with respect to their continuous predictive performance using the coefficient of determination R2, RMSE, ARD, and AARD, as shown in Table 5. No separate regression models were developed in this study. The continuous quantity evaluated in Table 5 corresponds to the class-probability estimate generated by each classification model, that is, the sigmoid output associated with the positive class (hydrate formation), compared against the corresponding observed binary labels (0 = Normal Operation; 1 = Hydrate Formation). Accordingly, R2, RMSE, ARD, and AARD should be interpreted as complementary measures of the agreement between the predicted event scores and the observed labels, rather than as descriptors of an independent regression task with a distinct physical target.
Table 5. Regression performance of the LSTM, XGBoost, and SVM models on the independent test set.
The regression results provide further evidence of the strong predictive consistency of the LSTM model, which achieved the highest R2 (0.9903) and the lowest RMSE (0.0082) and AARD (0.7845%). These values indicate that LSTM explains the largest proportion of the variability in the observed data while producing the smallest prediction errors among the evaluated models. XGBoost also exhibited strong performance, with R2 = 0.9892, RMSE = 0.0087, and AARD = 0.8510%, closely approaching the LSTM results. SVM presented the lowest continuous prediction performance, although it still achieved a relatively high R2 of 0.9714, with RMSE = 0.0142 and AARD = 1.3820%. The consistent relationship between R2 and RMSE across the three models further supports the internal coherence of the regression results, with higher coefficients of determination associated with lower prediction errors.
The ARD results provide additional information regarding the directional bias of the predictions. LSTM presented an ARD of −0.0185%, indicating a nearly negligible overall bias with a slight tendency toward underestimation, whereas XGBoost showed a small positive bias of 0.0450%, indicating a marginal tendency toward overestimation. SVM exhibited the highest positive ARD (0.1250%), reflecting a slightly greater tendency toward overprediction. In all cases, the absolute ARD values remained substantially lower than the corresponding AARD values, indicating that the overall directional bias was small relative to the total magnitude of the prediction errors. Taken together, R2, RMSE, ARD, and AARD consistently indicate that LSTM provided the most accurate and balanced continuous predictions, closely followed by XGBoost, while SVM exhibited comparatively greater residual error and directional bias.
This pattern aligns with the hydrate-prediction literature, which demonstrates the strong capability of nonlinear machine-learning approaches to capture complex thermodynamic interactions among pressure, temperature, and fluid composition. Specifically, the robust performance of XGBoost is consistent with previous studies on hydrate equilibrium and formation conditions. For instance, ref. [57] identified XGBoost as the most accurate model for estimating hydrate equilibrium (R2 > 0.97), while [33] reported exceptional accuracy (R2 = 0.998, AARD = 0.074%) using gradient-boosting regression for methane-hydrate formation. Rather than implying that XGBoost universally outperforms sequential models like LSTM, these findings corroborate that boosting methods are highly effective at representing non-linear thermodynamic relationships, though the optimal algorithm ultimately remains task-dependent.

3.5. Statistical Comparison of the Predictive Models

To assess whether the differences in classification performance among LSTM, XGBoost, and SVM were statistically meaningful, McNemar’s test with Yates’ continuity correction was applied to the paired predictions obtained from the same 172,639 test observations (Table 6). Unlike comparisons based only on aggregate accuracy, this test evaluates the disagreement between two classifiers on the same observations and therefore focuses on the cases in which one model is correct while the other is incorrect [58,59]. This approach provides a complementary assessment of model performance and is particularly appropriate when comparing classifiers under an identical experimental condition.
Table 6. Pairwise McNemar test with Yates’ continuity correction for the predictive models (α = 0.05).
The results in Table 6 demonstrate statistically significant differences in the paired classification behavior of all three model combinations. For the LSTM–XGBoost comparison, LSTM correctly classified 5177 observations that were misclassified by XGBoost, whereas the opposite occurred in 2695 cases. Consequently, the discordant outcomes favored LSTM by 2482 observations, exactly matching the difference in their total numbers of correct predictions (159,502 − 157,020 = 2482). The resulting McNemar statistic was χ2 = 781.931, with p = 4.58   ×   10−172, providing very strong evidence against the null hypothesis of equivalent paired classification performance.
The difference is considerably larger in the comparison between LSTM and SVM. LSTM was correct and SVM incorrect in 13,148 observations, whereas SVM was correct and LSTM incorrect in only 1874 cases. Thus, 87.5% of the discordant observations favored LSTM. The corresponding statistic, χ2 = 8459.628, and extremely small p-value (p = 8.98   ×   10−1840) indicate a highly significant difference between the two classifiers. This result is consistent with the substantially higher classification performance previously obtained for LSTM, particularly its Recall of 0.9382 and F1-score of 0.9017, compared with 0.8562 and 0.8183, respectively, for SVM.
A significant difference was also observed between XGBoost and SVM. XGBoost correctly classified 12,035 observations that SVM misclassified, while the reverse occurred in only 3243 cases. Therefore, 78.8% of the discordant observations favored XGBoost, resulting in χ2 = 5058.364 and p = 4.37 × 10−1101. This finding is consistent with the superior Accuracy, Precision, Recall, and F1-score obtained by XGBoost relative to SVM.
The McNemar results are particularly meaningful when interpreted jointly with the descriptive performance metrics. LSTM achieved the highest Accuracy (0.9239), Precision (0.8679), Recall (0.9382), and F1-score (0.9017), followed by XGBoost and SVM. The same ordering was observed in the continuous prediction analysis, where LSTM achieved the highest R2 (0.9903), and the lowest RMSE (0.0082), followed by XGBoost (R2 = 0.9892, RMSE = 0.0087) and SVM (R2 = 0.9714, RMSE = 0.0142). Thus, the inferential analysis does not stand in isolation: the statistically significant differences identified by McNemar’s test are accompanied by consistent differences in classification and regression performance.
This consistency increases confidence that the observed ranking of the models is not attributable solely to small fluctuations in the test sample. McNemar’s test is especially valuable in this context because it evaluates the paired predictions directly rather than comparing aggregate accuracy values independently. However, the test should be interpreted appropriately: a significant McNemar result demonstrates that the paired classification behaviors differ statistically, but it does not by itself establish the physical or algorithmic cause of that difference [58,59]. The interpretation of model superiority therefore relies on the convergence of several independent indicators.
From a modeling perspective, the results support the effectiveness of incorporating temporal information into the prediction of hydrate-related events. The superior performance of LSTM is consistent with the nature of hydrate formation as a dynamic phenomenon in which pressure, temperature, phase behavior, and flow conditions evolve over time. Previous studies have shown that recurrent neural networks can effectively represent temporal patterns associated with hydrate dynamics and other flow-assurance phenomena, reinforcing the suitability of sequence-based models for problems in which recent operating history carries predictive information [56]. In contrast, XGBoost also showed strong performance, confirming the ability of nonlinear tree-based methods to capture complex relationships among process variables, while SVM exhibited the largest number of discordant errors and the weakest overall performance.
The statistical comparison therefore strengthens, rather than independently creates, the evidence for the observed performance hierarchy of LSTM > XGBoost > SVM. The agreement among the confusion matrices, F1-score, Accuracy, Precision, Recall, regression indicators, and McNemar test suggests that the LSTM model provides the most consistent predictive behavior for the present hydrate-monitoring problem. This interpretation is also compatible with previous studies demonstrating that machine-learning approaches can effectively identify nonlinear patterns in hydrate-related systems, while model performance depends on the temporal structure and formulation of the prediction problem [52,56].

3.6. Physical Interpretability and Variable Importance

Because machine-learning models can exhibit limited transparency, an interpretability analysis was performed to identify which input variables contributed most strongly to the XGBoost classification of Normal Operation and Hydrate Formation (Figure 8). The native XGBoost feature-importance metric based on Gain was adopted because it quantifies the average improvement in the objective function produced by splits involving each feature across the ensemble of trees. Higher Gain values therefore indicate that a feature contributed more strongly to reducing the model loss during tree construction; however, this metric should be interpreted as model-specific predictive importance rather than as evidence of causality [60,61]. This analysis is particularly relevant to the present engineering application because it provides a link between the predictive behavior of the algorithm and the physical variables governing the monitored production system.
Figure 8. XGBoost feature importance based on Gain for the 15 most influential input features in hydrate-formation detection.
The feature-importance ranking indicates a clear predominance of pressure- and temperature-related variables, with P-TPT presenting the highest Gain (0.31). This result identifies wellhead pressure as the most influential feature in the XGBoost decision process, followed by T-JUS-CKP (0.13) and the temporal descriptors P-TPT_MA_5 (0.11) and P-TPT_STD_10 (0.09). Thus, the model relies primarily on the absolute wellhead pressure, the downstream temperature, and short-term statistical descriptors of their temporal behavior. However, it should be noted that the Gain index measures only the average improvement in the objective function obtained from the splits involving each feature, i.e., the segmentation contribution of that feature to the decision trees, and it is not directly equivalent to the physical causal dominance of a variable in hydrate formation. Furthermore, because the engineered temporal features (e.g., P-TPT_MA_5 and P-TPT_STD_10) are strongly correlated with the original pressure variable, the split contribution assigned to correlated features is partially interchangeable, and the distribution of Gain can be biased toward features of higher cardinality or stronger collinearity.
This ranking is physically meaningful in the context of hydrate formation. P-TPT is measured at the subsea wellhead and represents the pressure condition near the upstream section of the production system, where pressure and phase behavior strongly influence the thermodynamic state of the produced fluids. T-JUS-CKP, measured downstream of the platform choke, provides information on the thermal condition after a major flow restriction. Gas-hydrate stability is strongly dependent on pressure and temperature, with higher pressures and lower temperatures generally favoring hydrate stability and increasing the risk of deposition under suitable water and gas conditions [49]. The prominence of these two variables in the XGBoost ranking is therefore consistent with the physical basis of hydrate-related flow-assurance problems.
The importance of the engineered temporal features provides an additional interpretation. P-TPT_MA_5 and P-TPT_STD_10 quantify recent pressure behavior rather than only its instantaneous value, indicating that short-term level and variability contain relevant information for distinguishing operating states. This finding is consistent with the formulation adopted in the study, in which transient behavior is important for identifying undesirable operating conditions. Hydrate accumulation can progressively alter the effective flow area and hydraulic resistance of a flowline, thereby modifying pressure and temperature responses as the event develops. Reviews of hydrate-associated flow assurance emphasize that hydrate formation, aggregation, deposition, and plugging are inherently coupled to multiphase-flow dynamics and changes in pressure, temperature, and flow conditions [62].
The comparatively high importance of T-JUS-CKP and T-JUS-CKP_MA_5 is also noteworthy. The downstream temperature is influenced by the local thermodynamic conditions around the choke, where pressure reduction, phase expansion, and associated thermal effects can alter the fluid state. Therefore, the model’s reliance on both the instantaneous T-JUS-CKP measurement and its moving-average representation suggests that the downstream thermal response and its recent evolution provide complementary information for identifying the anomalous state.
An important methodological implication is that the ranking does not indicate that the model is responding only to isolated sensor peaks or random noise. Instead, the leading features include both instantaneous process measurements and temporal statistics, particularly those derived from P-TPT and T-JUS-CKP. This is consistent with the study design, in which preprocessing and feature engineering were performed to preserve meaningful transient information while reducing the influence of spurious measurements. At the same time, the Gain ranking should not be interpreted as proof that a given variable independently causes hydrate formation. Feature-importance measures describe how the fitted model uses the available predictors and can be affected by correlations and interactions among features. In particular, the high collinearity between the moving-average and moving-standard-deviation descriptors and their parent variables implies that part of the Gain attributed to these features can be exchanged with that of the original variables, so the resulting ordering describes the segmentation behavior of the trees rather than the physical causal preeminence of any single variable. This distinction is central to responsible machine-learning interpretation and is one reason why more detailed attribution methods such as SHAP can be used when feature-level contributions to individual predictions are required [63].
Overall, the feature-importance analysis strengthens the physical interpretability of the XGBoost results. The dominance of P-TPT, together with the substantial contributions of T-JUS-CKP, P-TPT_MA_5, P-TPT_STD_10, and related temporal descriptors, indicates that the model is exploiting information directly associated with the pressure and thermal evolution of the production system. This interpretation is also consistent with recent research on artificial intelligence for gas-hydrate management, which identifies pressure, temperature, and operational variables as important drivers in machine-learning-based hydrate prediction and detection [54,55]. Therefore, the high predictive performance previously obtained for XGBoost is supported by a feature ranking that is physically consistent with the thermohydraulic mechanisms underlying flow assurance, providing additional evidence that the model’s predictive capability is not solely a statistical artifact of the dataset.

3.7. Temporal Monitoring of Thermohydraulic Variables

Following the quantitative evaluation of the predictive models, time-resolved monitoring was performed to examine whether the pressure and temperature signals exhibited physically interpretable changes associated with the development of the undesirable condition. This analysis is important because hydrate formation and deposition are dynamic processes whose signatures may evolve before a severe restriction is established. Continuous monitoring of pressure and temperature is therefore commonly used in flow-assurance studies to identify changes in flow resistance and thermodynamic conditions associated with hydrate formation and plugging. Experimental investigations have shown that changes in pressure and temperature can provide early indications of hydrate deposition and the progression toward blockage [64,65]. Figure 9 presents the consolidated temporal evolution of P-MON-CKP, T-JUS-CKP, T-TPT, and P-TPT over approximately 1200 min, providing a spatially distributed view of the thermohydraulic response of the production system.
Figure 9. Temporal monitoring of the thermohydraulic variables P-MON-CKP, T-JUS-CKP, T-TPT, and P-TPT during the analyzed operating period.
The temporal behavior reveals markedly different responses among the sensors, reflecting the spatially distributed nature of the production system. During the initial portion of the record, P-MON-CKP remains relatively stable near 4.07   ×   106 Pa, whereas a pronounced reduction occurs at approximately 120–200 min, after which the signal stabilizes near 4.00   ×   106 Pa. Because P-MON-CKP is located upstream of the production choke at the platform, this reduction indicates a change in the pressure condition at the downstream end of the production system. A similar transition is observed in T-JUS-CKP, whose temperature decreases progressively from approximately 100 °C to values near 30–40 °C, accompanied by increasingly pronounced oscillations. Such thermal changes are relevant to hydrate risk because hydrate stability is favored by lower temperatures in the presence of suitable pressure, water, and hydrate-forming gas [49,50].
The T-TPT signal exhibits a particularly pronounced temperature decline, falling from approximately 115–120 °C to values close to 5 °C over the early transient interval. This response indicates a strong change in the thermal state of the produced fluid near the subsea wellhead. From a flow-assurance perspective, the persistence of low temperature is important because offshore production systems are exposed to cold subsea surroundings, and heat loss during transport can progressively move the fluid toward hydrate-stable conditions. The literature identifies the combination of elevated pressure and reduced temperature as a fundamental thermodynamic requirement for hydrate formation and emphasizes the importance of monitoring the thermal evolution of the flowing multiphase mixture [8,49,50].
The most distinctive hydraulic response is observed in P-TPT, which remains relatively stable around 1.7   × 107 Pa during the earlier part of the record, with relatively small oscillations, before undergoing a series of sharp transient variations between approximately 280 and 500 min (with the greatest amplitude occurring between 350 and 400 min), followed by signal stabilization from approximately 520 min onwards. The pressure subsequently reaches a maximum close to 3.2 × 107 Pa before dropping to approximately 1.4 × 107 Pa and entering a much more stable regime. The increase in wellhead pressure followed by a substantial pressure reduction is consistent with the development and subsequent evolution of a strong flow restriction. Recent experimental work on hydrate plugging has shown that the formation and deposition of hydrates progressively increase flow resistance and can produce pronounced pressure responses during the transition from hydrate growth to plugging.
This interpretation is strongly supported by the 3W Dataset 2.0.0, whose documented example of a real Hydrate in Production Line event reports pressure increases at upstream sensors, including the TPT and PDG locations, accompanied by a pressure decrease at MON-CKP downstream of the production line [34]. This characteristic spatial pressure pattern is directly relevant to the configuration examined in the present study and provides an important physical reference for interpreting the P-TPT increase and P-MON-CKP decrease observed in Figure 9.
The temperature response also supports this interpretation, although it should not be considered an exclusive signature of hydrates. At a restriction, pressure reduction can produce cooling through expansion and Joule–Thomson effects, while multiphase flow, gas liberation, and heat transfer with the surroundings may further modify the local temperature response. Ref. [65], using a single-pass flow loop, experimentally observed that the formation of a partial hydrate restriction was accompanied by an upstream pressure increase and a localized reduction in temperature associated with additional Joule–Thomson cooling. This mechanism provides a physically plausible explanation for the coexistence of pressure disturbances and cooling in the present monitoring record.
Another relevant characteristic is the different temporal response of the four sensors. The variables do not change simultaneously or with identical amplitudes: T-TPT and T-JUS-CKP exhibit substantial thermal changes, whereas the strongest pressure escalation is observed later in P-TPT. This spatial and temporal offset is physically reasonable because a hydrate-related restriction develops within a distributed multiphase-flow system rather than at a single point. Hydrate nucleation, growth, aggregation, deposition, and eventual plugging occur progressively and can alter the flow field differently at upstream and downstream locations. The 2026 description of the 3W Dataset likewise emphasizes that the dataset is composed of multivariate time series specifically intended to capture temporal signatures associated with undesirable events in oil wells [34].
Importantly, the temporal patterns should be interpreted as evidence of consistency with hydrate-related flow disturbance rather than as independent proof of hydrate formation from any single sensor. A pressure increase, pressure decrease, or temperature decline can also result from other operational disturbances, changes in flow regime, or valve-related effects. The diagnostic strength arises from the combined spatial and temporal behavior of the variables, together with the event labels and the predictive models. This is consistent with the flow-assurance literature, which emphasizes that hydrate risk depends on the coupled pressure–temperature history and multiphase-flow conditions rather than on an isolated measurement [64].

Temporal Monitoring of P-TPT and Model Predictions

To complement the aggregate classification metrics, time-resolved monitoring was performed to verify how the model predictions behave along the actual chronological evolution of the production system. This analysis is important because a classifier may achieve high global performance while still producing temporally inconsistent predictions when applied to continuous industrial data. The monitoring procedure therefore uses selected chronological test blocks to examine whether the models can identify undesirable conditions within realistic process trajectories rather than only at isolated observations. This approach is consistent with the objectives of the 3W Dataset, which emphasizes the detection of undesirable events with sufficient anticipation to enable corrective or mitigating actions [34]. Figure 10 presents the P-TPT time series over approximately 1200 min, with the predicted undesirable-event observations highlighted for each model.
Figure 10. Temporal monitoring of wellhead pressure (P-TPT) and predicted undesirable-event ob-servations for LSTM, XGBoost, and SVM.

4. Discussion

4.1. Physical Interpretation of the Findings and Thermohydraulic Dynamics

The results consistently indicate that the thermohydraulic behavior of the subsea production system cannot be adequately described by simple linear relationships, particularly under conditions involving severe multiphase-flow transitions and hydrate-related disturbances. The Pearson correlation matrix showed weak global associations among the monitored variables, including an almost negligible relationship between the wellhead temperature and the downstream choke temperature ( r = 0.00). When interpreted together with the temporal analysis, this finding suggests that the evolution of the monitored variables is strongly dependent on operating regime, spatial location, and transient flow conditions rather than following a single proportional thermodynamic relationship. The pressure and temperature responses are influenced by frictional losses, phase redistribution, liquid holdup, local restrictions, heat transfer with the surrounding environment, and pressure changes across the choke. In particular, the simultaneous reduction in downstream pressure and temperature is consistent with the thermodynamic effects associated with throttling and fluid expansion across a flow restriction [66,67]. Under suitable pressure, temperature, water, and gas-composition conditions, such cooling may move the fluid toward the hydrate stability region, increasing the potential for hydrate nucleation and deposition. This interpretation is consistent with the established understanding that hydrate formation is governed by coupled thermodynamic and multiphase-flow conditions rather than by any single process variable [49,50,68].
The temporal monitoring results further support this interpretation. The pronounced increase in P-TPT, together with changes in the pressure and temperature variables at the platform, indicates a substantial reorganization of the thermohydraulic state during the undesirable event. As hydrate accumulates within the flow path, the effective flow area may progressively decrease and the hydraulic resistance increase, producing pressure redistribution and modifying the local thermal field. The observed evolution is therefore physically compatible with a developing flow restriction, although the sensor responses alone should not be interpreted as definitive proof of hydrate formation because similar signatures may arise from other operational disturbances. The strength of the present analysis lies in the convergence of statistical discrimination, temporal behavior, and machine-learning predictions, which together provide a more robust interpretation of the event.
The comparative results consistently ranked the models as LSTM > XGBoost > SVM across the confusion matrices, classification metrics, ROC analysis, and regression assessment. LSTM achieved the highest Accuracy (0.9239), Precision (0.8679), Recall (0.9382), F1-score (0.9017), and ROC-AUC (0.9604), together with the best continuous prediction performance (R2 = 0.9903, RMSE = 0.0082, and AARD = 0.7845%). XGBoost also showed strong performance, with R2 = 0.9892, RMSE = 0.0087, AARD = 0.8510%, and an F1-score of 0.8812, remaining close to LSTM but consistently below it. In contrast, SVM presented the lowest performance across the principal indicators. The consistency among independent evaluation criteria reduces the likelihood that the LSTM advantage resulted from a single metric or operating threshold.
The strong performance of XGBoost is consistent with its ability to capture nonlinear interactions among thermodynamic and process variables; however, its slightly lower performance suggests that, in the present time-series formulation, explicit temporal representation provides additional information that static feature engineering does not fully capture. This interpretation agrees with previous studies showing that recurrent architectures are effective for representing hydrate dynamics, while comparative investigations emphasize that algorithmic performance depends on the characteristics of the dataset and prediction task [52,56,69].

4.2. Industrial and Offshore Operational Implications

The ability to identify evolving hydrate-related disturbances before they develop into severe restrictions has direct relevance to flow assurance and offshore production reliability. In the temporal monitoring analysis, the LSTM predictions emerged during the pressure-transition interval preceding the maximum P-TPT response, providing a case-specific lead time of approximately 105 min between the onset of sustained model indication and the observed pressure maximum. This result should not be interpreted as a universal lead time for all hydrate events, but it demonstrates the potential of the proposed framework to provide an operational warning window before the most pronounced pressure disturbance develops. It should be noted that this case corresponds to a real hydrate-formation event documented in the 3W repository, whose occurrence was established independently through specialist labeling rather than being inferred from the pressure peak itself; the 105-min interval is therefore defined for the analyzed well on the basis of an independently confirmed event.
Such anticipation could support decision-making in flow-assurance operations, including the adjustment of operating conditions and the timely deployment of hydrate-mitigation measures. Chemical inhibitors such as monoethylene glycol (MEG) or methanol are commonly used to reduce hydrate risk in offshore production systems, and the economic value of predictive monitoring lies partly in enabling mitigation strategies to be applied according to the evolving risk rather than solely according to conservative fixed operating margins. The literature emphasizes the importance of early identification of hydrate deposition and blockage because progressive restriction can substantially increase hydraulic resistance and compromise production continuity [49,68]. Accordingly, the proposed model should be viewed as a decision-support component for flow-assurance management rather than as an autonomous confirmation of hydrate formation.
An additional practical advantage is the use of continuous chronological monitoring rather than isolated predictions. The selected temporal blocks preserve the physical sequence of the production data and allow the model response to be examined within the context of actual operating trajectories. This is particularly important for offshore systems, where pressure and temperature signals at different locations may respond at different times and with different magnitudes to changes in flow regime, restriction, or phase behavior. The combination of spatially distributed measurements and temporal modeling therefore provides a more informative representation of the operational state than an analysis based solely on individual instantaneous measurements. This interpretation is compatible with recent developments in data-driven flow-assurance monitoring and with the 3W Dataset framework, which was specifically developed to represent rare undesirable events in oil-well operations [34].

4.3. Limitations and Future Research

Despite the strong predictive performance obtained, several limitations should be considered when interpreting the results. The present analysis relies primarily on pressure and temperature measurements and does not include independent measurements of oil, gas, and water flow rates or detailed phase fractions. The absence of these variables limits the possibility of explicitly resolving the multiphase-flow and compositional mechanisms governing hydrate nucleation, growth, and deposition. Consequently, although the observed sensor signatures and model predictions are physically consistent with hydrate-related disturbances, the framework remains fundamentally data-driven and cannot independently reconstruct the complete physicochemical state of the flowing mixture.
Another limitation concerns model interpretability. The XGBoost feature-importance analysis identified P-TPT, T-JUS-CKP, and temporal descriptors derived from the pressure and temperature signals as the most influential predictors, providing evidence that the model relies on physically relevant variables. Nevertheless, feature-importance rankings describe the predictive behavior of the fitted model and should not be interpreted as direct causal relationships. Future studies could therefore incorporate more comprehensive explainable-artificial-intelligence techniques, including SHAP-based analyses, to quantify the contribution of individual variables to specific predictions and to examine interactions among pressure, temperature, and temporal features.
A further research direction is the development of hybrid physics-informed machine-learning frameworks, including Physics-Informed Neural Networks (PINNs), in which governing equations and physical constraints associated with multiphase flow and hydrate thermodynamics are incorporated into the learning process. Such approaches could reduce the dependence on purely empirical correlations while improving extrapolation to operating conditions that are poorly represented in the training data. Future investigations should also evaluate the proposed framework using broader datasets containing additional wells, longer operational histories, independent flow-rate measurements, and experimentally or operationally confirmed hydrate events. Finally, implementation in continuous industrial monitoring environments, including cloud-based or edge-computing architectures, would allow the computational robustness of the models and their lead-time performance to be assessed under realistic variations in operating conditions. In addition, the chronological 70/30 partition was adopted as a fixed a priori design choice applied uniformly to all models, and the systematic evaluation of alternative training/test proportions, as well as more stringent forward-chaining or well-independent (leave-one-well-out) validation schemes, remains an important direction for future work. A dedicated quantitative evaluation restricted to real operational events, together with the systematic validation of the early-warning lead time across multiple labeled events using actual event-onset times, is also required to consolidate the practical reliability of the proposed framework.
Two further points delimit the interpretation of the reported results. First, because the interleaved chronological blocks are drawn from the same wells used for training, the reported metrics reflect within-well temporal generalization and should not be read as evidence of performance on unseen wells or on future operating periods; the well-independent (leave-one-well-out) and forward-chaining schemes mentioned above are the appropriate protocols to establish that evidence. Second, since outlier detection and imputation were applied before partitioning using label-free, per-file statistics, a sensitivity analysis in which these statistics are estimated exclusively from the training blocks would allow the residual effect of this transductive preprocessing step on the reported metrics to be quantified.

5. Conclusions

This study developed and evaluated a machine-learning framework for the detection and monitoring of hydrate formation in offshore production wells using thermohydraulic time-series data from the 3W dataset. The methodological design combined per-file data cleaning and imputation, physically informed pressure and temperature variables, temporal feature engineering, and a chronological 70/30 partition applied consistently to LSTM, XGBoost, and SVM, with the same independent test framework used for comparative evaluation. The statistical analysis further demonstrated that the monitored variables contain distinct signatures under Normal Operation and Hydrate Formation, providing an independent basis for their use in predictive modeling. Overall, the results demonstrate that preserving the temporal and physical structure of the production data is essential for obtaining reliable anomaly-detection performance.
Among the evaluated algorithms, LSTM provided the most consistent overall performance, achieving an Accuracy of 0.9239, and F1-score of 0.9017, with an ROC-AUC of 0.9604. XGBoost followed closely, with Accuracy of 0.9095 and F1-score of 0.8812, whereas SVM obtained comparatively lower values. The continuous prediction analysis reinforced the same ordering, with LSTM achieving R2 = 0.9903, and AARD = 0.7845%, compared with R2 = 0.9892, and AARD = 0.8510% for XGBoost and R2 = 0.9714, and AARD = 1.3820% for SVM. These results indicate that the advantage of LSTM is not restricted to binary classification but extends to the consistency of its continuous predictions.
The study also demonstrated that the predictive framework can be translated into a time-resolved monitoring context. The temporal evaluation showed that the models identified the principal P-TPT disturbance within the chronological production trajectory, while the LSTM generated a sustained alert approximately 105 min before the observed local pressure maximum in the analyzed case, which corresponds to a real, specialist-labeled hydrate-formation event documented in the 3W repository. This result indicates that the framework has potential to move hydrate management from retrospective identification toward anticipatory monitoring, providing a measurable temporal window for operational intervention. Importantly, the XGBoost feature-importance analysis identified P-TPT (Gain = 0.31) as the feature with the highest Gain in the XGBoost decision process (a model-specific segmentation contribution rather than evidence of physical causal dominance), followed by T-JUS-CKP (0.13) and temporal descriptors derived from P-TPT, supporting the consistency between the model’s decision structure and the thermohydraulic variables selected from the production system.
The results support the use of time-resolved machine learning as a practical decision-support tool for offshore flow assurance, while also defining the limits of the present evidence. The models were evaluated using pressure and temperature information and therefore do not fully resolve the compositional and multiphase mechanisms governing hydrate nucleation and deposition. Nevertheless, the convergence of statistically significant variable discrimination, strong classification and regression performance, paired model comparisons, physical interpretability, and temporal early-warning behavior provides a coherent body of evidence for the feasibility of the proposed approach. The principal contribution of the work is therefore not merely the selection of a high-performing algorithm, but the demonstration of a reproducible framework capable of linking operational sensor data, temporal modeling, and physically meaningful indicators to support more proactive management of hydrate-related risks in subsea production systems.

Author Contributions

Conceptualization, C.W.S.P.M. and O.C.-F.; methodology, A.L.O.C. and H.G.B.; software, A.L.O.C. and H.G.B.; validation, C.W.S.P.M., O.C.-F. and A.L.O.C.; formal analysis, H.G.B. and A.L.O.C.; investigation, H.G.B.; resources, H.G.B. and C.W.S.P.M.; data curation, A.L.O.C.; writing—original draft preparation, H.G.B.; writing—review and editing, C.W.S.P.M. and O.C.-F.; visualization, O.C.-F.; supervision, C.W.S.P.M. and O.C.-F.; project administration, H.G.B.; funding acquisition, H.G.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The dataset used in the research is available in the Petrobras 3W group’s public repository: https://github.com/petrobras/3W (accessed on 11 October 2026).

Acknowledgments

The authors thank Petrobras, the 3W group and the researchers at the Petroleum Automation Laboratory (LAUT) at the Federal University of Rio Grande do Norte (UFRN), Brazil. This study has been financially supported by the Human Resources Training Program of the Brazilian National Agency for Petroleum, Natural Gas and Biofuels—PRH-ANP, under the management of the São Paulo Research Foundation (FAPESP), Brazil. Process N. 2025/02723-7. During the preparation of this manuscript, the authors used OpenAI ChatGPT (GPT-5.6 Luna) and Google Gemini (Gemini 1.5 Pro) for language refinement, grammar correction, improvement of clarity, and academic writing. Google’s Imagen 3 image-generation model was also used to generate Figure 3, based on the work of Vargas et al. [34]. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
LSTMLong Short-Term Memory
XGBoosteXtreme Gradient Boosting
SVMSupport Vector Machine
P-TPTPressure at the pump head or wellhead [Pa]
T-TPTTemperature at the pump head or wellhead [°C]
P-MON-CKPUpstream pressure at the platform’s choke valve [Pa]
T-JUS-CKPDownstream temperature at the platform’s choke valve [°C]
TPTrue Positives
TNTrue Negatives
FPFalse Positives
FNFalse Negatives
TPRTrue Positive Rate
R 2 Coefficient of determination
RMSE Root mean square error
ARD Average relative deviation
AARD Average absolute relative deviation

References

  1. Li, Y.; Chen, B.; Chen, G.; Wu, X. The global oil supply chain: The essential role of non-oil product as revealed by a comparison between physical and virtual oil trade patterns. Resour. Conserv. Recycl. 2021, 175, 105836. [Google Scholar] [CrossRef] [Scilit]
  2. Wen, Z.; Wang, J.; Wang, Z.; He, Z.; Song, C.; Liu, X.; Ji, T. Analysis of the world deepwater oil and gas exploration situation. Petrol. Explor. Dev. 2023, 50, 1060–1076. [Google Scholar] [CrossRef] [Scilit]
  3. Lawal, A.; Yang, Y.; He, H.; Baisa, N.L. Machine learning in oil and gas exploration: A review. IEEE Access. 2024, 12, 19035–19058. [Google Scholar] [CrossRef] [Scilit]
  4. Zabbey, N.; Olsson, G. Conflicts–oil exploration and water. Glob. Chall. 2017, 1, 1600015. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Nathanael, J.; Khairilmizal, S.; Samuel, C.; Sansuddin, N.; Hussin, M.F.; Hapani, M.; Musa, N.A.; Husna, K.A. Challenges in managing emergency offshore: A comparison of offshore and onshore perspectives. J. Loss Prev. Proc. Indust. 2024, 88, 105275. [Google Scholar] [CrossRef] [Scilit]
  6. Kumar, A. Perspectives of flow assurance problems in oil and gas production: A mini-review. Energy Fuels 2023, 37, 8142–8159. [Google Scholar] [CrossRef] [Scilit]
  7. Englezos, P. Applications of clathrate (gas) hydrates. Clathrate Hydrates Mol. Sci. Charact. 2022, 2, 749–781. [Google Scholar] [CrossRef] [Scilit]
  8. Xia, Z.; Zhao, Q.; Chen, Z.; Li, X.; Zhang, Y.; Xu, C.; Yan, K. Review of methods and applications for promoting gas hydrate formation process. J. Nat. Gas. Sci. Eng. 2022, 101, 104528. [Google Scholar] [CrossRef] [Scilit]
  9. Liu, Y.; Mu, H.; Lv, X.; Yu, Y.; Wang, W.; Mu, Y.; Ma, Q.; Wang, C.; Li, X.; Du, H.; et al. Toward greener flow assurance: Review of experimental and computational methods in designing and screening kinetic hydrate inhibitors. Energy Fuels 2024, 38, 17191–17223. [Google Scholar] [CrossRef] [Scilit]
  10. Hussain, M.; Alamri, A.; Zhang, T.; Jamil, I. Application of artificial intelligence in the oil and gas industry. In Engineering Applications of Artificial Intelligence (Synthesis Lectures on Engineering, Science, and Technology); Chakir, A., Andry, J.F., Ullah, A., Bansal, R., Ghazouani, M., Eds.; Springer: Cham, Switzerland, 2024. [Google Scholar] [CrossRef] [Scilit]
  11. Paramesha, M.; Rane, N.L.; Rane, J. Big data analytics, artificial intelligence, machine learning, internet of things, and blockchain for enhanced business intelligence. Partn. Univ. Multidiscipl. Res. J. 2024, 1, 110–133. [Google Scholar] [CrossRef]
  12. Nascimento, J.; Maitelli, A.; Maitelli, C.; Cavalcanti, A. Diagnostic of operation conditions and sensor faults using machine learning in sucker-rod pumping wells. Sensors 2021, 21, 4546. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Qasim, A.; Lal, B. Machine Learning Application in Gas Hydrates. In Machine Learning and Flow Assurance in Oil and Gas Production; Springer Nature: Cham, Switzerland, 2023; pp. 155–174. [Google Scholar] [CrossRef] [Scilit]
  14. Agarwal, A. Early Detection of Hydrate Formation in Deepwater Drilling Using an Ensemble of LSTM Networks. SSRN 2020. [Google Scholar] [CrossRef] [Scilit]
  15. Lopes, L.G.O.; de Almeira Vieira, T.M.; de Lima Junior, E.T.; Lira, W.W.M. Use of LSTM networks for anomaly classification in oil wells emphasizing hydrate detection. SSRN 2024. [Google Scholar] [CrossRef] [Scilit]
  16. Hsu, C.-Y.; Buñay Guaman, J.S.; Ved, A.; Yadav, A.; Ezhilarasan, G.; Rameshbabu, A.; Alkhayyat, A.; Aulakh, D.; Choudhury, S.; Sunori, S.K.; et al. Prediction of methane hydrate equilibrium in saline water solutions based on support vector machine and decision tree techniques. Sci. Rep. 2025, 15, 11723. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. Aljohani, A. Predictive analytics and machine learning for real-time supply chain risk mitigation and agility. Sustainability 2023, 15, 15088. [Google Scholar] [CrossRef] [Scilit]
  18. Dritsas, E.; Trigka, M. Machine Learning in Intelligent Networks: Architectures, Techniques, and Use Cases. IEEE Access 2025, 13, 102724–102745. [Google Scholar] [CrossRef] [Scilit]
  19. Krichen, M.; Mihoub, A. Long short-term memory networks: A comprehensive survey. AI 2025, 6, 215. [Google Scholar] [CrossRef] [Scilit]
  20. Wiens, M.; Verone-Boyle, A.; Henscheid, N.; Podichetty, J.T.; Burton, J. A tutorial and use case example of the eXtreme gradient boosting (XGBoost) artificial intelligence algorithm for drug development applications. Clin. Transl. Sci. 2025, 18, e70172. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  21. Hussain, A.; Sakhaei, A.H.; Shafiee, M. Machine learning-based constitutive modelling for material non-linearity: A review. Mech. Adv. Mater. Struct. 2026, 33, 2439557. [Google Scholar] [CrossRef] [Scilit]
  22. Araújo, J.G.; Brito, H.G.; Galvão, M.V.; Maitelli, C.W.S.P.; Neto, A.D.D. Deep learning models applied flowrate estimation in offshore wells with electric submersible pump. Energies 2025, 18, 5311. [Google Scholar] [CrossRef] [Scilit]
  23. Goodfellow, I.; Bengio, Y.; Courville, A. Deep Learning; MIT Press: Cambridge, MA, USA, 2016. [Google Scholar] [CrossRef] [Scilit]
  24. Chen, T.; Guestrin, C. Xgboost: A scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Francisco, CA, USA, 13–17 August 2016; pp. 785–794. [Google Scholar] [CrossRef] [Scilit]
  25. Dong, X.; Yu, Z.; Cao, W.; Shi, Y.; Ma, Q. A survey on ensemble learning. Front. Comput. Sci. 2020, 14, 241–258. [Google Scholar] [CrossRef] [Scilit]
  26. Jiao, Z.; Hu, P.; Xu, H.; Wang, Q. Machine learning and deep learning in chemical health and safety: A systematic review of techniques and applications. ACS Chem. Health Saf. 2020, 27, 316–334. [Google Scholar] [CrossRef] [Scilit]
  27. Goridko, K.A.; Shabonas, A.R.; Khabibullin, R.A.; Verbitsky, V.S.; Gladkov, A.V. Modelling of electric submersible pump work on gas-liquid mixture by machine learning. In Proceedings of the SPE Middle East Intelligent Oil and Gas Symposium; SPE: Houston, TX, USA, 2021; p. D022S007R001. [Google Scholar] [CrossRef] [Scilit]
  28. Pristyanto, Y.; Mukarabiman, Z.; Nugraha, A.F. Extreme gradient boosting algorithm to improve machine learning model performance on multiclass imbalanced dataset. JOIV Int. J. Inform. Vis. 2023, 7, 710–715. [Google Scholar] [CrossRef] [Scilit]
  29. Noorunnahar, M.; Chowdhury, A.H.; Mila, F.A. A tree based eXtreme Gradient Boosting (XGBoost) machine learning model to forecast the annual rice production in Bangladesh. PLoS ONE 2023, 18, e0283452. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  30. Chandra, M.A.; Bedi, S.S. Survey on SVM and their application in image classification. Int. J. Inf. Technol. 2021, 13, 1–11. [Google Scholar] [CrossRef] [Scilit]
  31. Brasil, J.; Maitelli, C.; Nascimento, J.; Chiavone-Filho, O.; Galvão, E. Diagnosis of operating conditions of the electrical submersible pump via machine learning. Sensors 2022, 23, 279. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  32. Wang, J.; Chen, Y.; Zou, Q. Inferring gene regulatory network from single-cell transcriptomes with graph autoencoder model. PLoS Genet. 2023, 19, e1010942. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  33. Xu, H.; Jiao, Z.; Zhang, Z.; Huffman, M.; Wang, Q. Prediction of methane hydrate formation conditions in salt water using machine learning algorithms. Comput. Chem. Eng. 2021, 151, 107358. [Google Scholar] [CrossRef] [Scilit]
  34. Vaz Vargas, R.E.; de Melo Junior, A.J.; de Campos Lima, C.B.; de Araújo, J.C.D.; Fernandes, M.d.A.; Pinto, R.L.A.; Barbosa, J.R.; Munaro, C.J.; Ciarelli, P.M.; Varejão, F.M.; et al. 3W Dataset 2.0.0: A realistic and public dataset with rare undesirable real events in oil wells. Sci. Data 2026, 13, 949. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  35. Krawczyk, B.; Minku, L.L.; Gama, J.; Stefanowski, J.; Woźniak, M. Ensemble learning for data stream analysis: A survey. Inf. Fusion 2017, 37, 132–156. [Google Scholar] [CrossRef] [Scilit]
  36. Domingos, P. Metacost: A general method for making classifiers cost-sensitive. In Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Diego, CA, USA, 15–18 August 1999; pp. 155–164. [Google Scholar] [CrossRef] [Scilit]
  37. Oukhouya, H.; El Himdi, K. Comparing machine learning methods—SVR, XGboost, LSTM, and MLP—For forecasting the moroccan stock market. Comput. Sci. Math. Forum 2023, 7, 39. [Google Scholar] [CrossRef] [Scilit]
  38. Torres, J.A.O.; Santiago, A.M.; García-Martínez, J.R.; López-Zapata, B.Y.; López, J.A.M.; Zapata, O.J.R.; López, J.A.A. A Data-Driven Approach Using Recurrent Neural Networks for Material Demand Forecasting in Manufacturing. Logistics 2025, 9, 130. [Google Scholar] [CrossRef] [Scilit]
  39. Lin, L.; Bai, G.; Han, T. Assessing the Relationship Between Seasonal Urban Heat Island Effects and Forest Structure in Hangzhou City Using the XGBoost Model. Forests 2026, 17, 545. [Google Scholar] [CrossRef] [Scilit]
  40. Rizwan, A.; Iqbal, N.; Ahmad, R.; Kim, D.H. WR-SVM model based on the margin radius approach for solving the minimum enclosing ball problem in support vector machine classification. Appl. Sci. 2021, 11, 4657. [Google Scholar] [CrossRef] [Scilit]
  41. Aranha, P.E.; Lopes, L.G.O.; Sobrinho, E.S.P.; Oliveira, I.M.N.; de Araújo, J.P.N.; Santos, B.B.; Junior, E.T.L.; da Silva, T.B.; Vieira, T.M.A.; Lira, W.W.M.; et al. A system to detect oilwell anomalies using deep learning and decision diagram dual approach. SPE J. 2024, 29, 1540–1553. [Google Scholar] [CrossRef] [Scilit]
  42. Sujon, K.M.; Hassan, R.; Choi, K.; Samad, A. Accuracy, precision, recall, f1-score, or MCC? empirical evidence from advanced statistics, ML, and XAI for evaluating business predictive models. J. Big Data 2025, 12, 268. [Google Scholar] [CrossRef] [Scilit]
  43. Chicco, D.; Sichenze, A.; Jurman, G. A simple guide to the use of Student’s t-test, Mann-Whitney U test, Chi-squared test, and Kruskal-Wallis test in biostatistics. BioData Min. 2025, 18, 56. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  44. Okoye, K.; Hosseini, S. Wilcoxon statistics in R: Signed-rank test and rank-sum test. In R Programming: Statistical Data Analysis in Research; Springer Nature: Singapore, 2024; pp. 279–303. [Google Scholar] [CrossRef] [Scilit]
  45. Lachenbruch, P.A. McNemar test. In Wiley Statsref: Statistics Reference Online; John Wiley and Sons: Hoboken, NJ, USA, 2014. [Google Scholar] [CrossRef] [Scilit]
  46. Zhu, P.; Kang, X.; Zhao, Y.; Latif, U.; Zhang, H. Predicting the toxicity of ionic liquids toward acetylcholinesterase enzymes using novel QSAR models. Int. J. Mol. Sci. 2019, 20, 2186. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  47. De Brito, H.G.; de Paula Maitelli, C.W.S.; Chiavone-Filho, O. Detection of obstructions in oil and gas pipelines: Machine learning techniques for hydrate classification. Braz. J. Chem. Eng. 2026, 1–12. [Google Scholar] [CrossRef] [Scilit]
  48. Saccenti, E.; Hendriks, M.H.W.B.; Smilde, A.K. Corruption of the Pearson correlation coefficient by measurement error and its estimation, bias, and correction under different error models. Sci. Rep. 2020, 10, 438. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  49. Olajire, A.A. Flow assurance issues in deep-water gas well testing and mitigation strategies with respect to gas hydrates deposition in flowlines—A review. J. Mol. Liq. 2020, 318, 114203. [Google Scholar] [CrossRef] [Scilit]
  50. Zhang, J.; Shi, L.; Li, C.; Yang, F.; Yao, B.; Sun, G. Research methods and devices for hydrate characteristics during oil and gas transportation: A review. Chin. J. Chem. Eng. 2024, 73, 130–145. [Google Scholar] [CrossRef] [Scilit]
  51. Saito, T.; Rehmsmeier, M. The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets. PLoS ONE 2015, 10, e0118432. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  52. Tian, D.; Yang, S.; Gong, Y.; Geng, M.; Li, Y.; Hu, G. A comparative study of machine learning methods for gas hydrate identification. Geoenergy Sci. Eng. 2023, 223, 211564. [Google Scholar] [CrossRef] [Scilit]
  53. Nasir, Q.; Suleman, H.; Abdul Majeed, W.S. Application of machine learning on hydrate formation prediction of pure components with water and inhibitors solution. Can. J. Chem. Eng. 2024, 102, 3953–3981. [Google Scholar] [CrossRef] [Scilit]
  54. Aleem, W.; Ahmad, S.; Qamar, S.; Hussain, M.; Ali, O.; Rauf, A. Exploring machine learning techniques for accurate prediction of methane hydrate formation temperature in brine: A comparative study. Arab. J. Sci. Eng. 2024, 49, 8983–8996. [Google Scholar] [CrossRef] [Scilit]
  55. Atta, M.R.; Al-Mahmodi, A.F.; Lal, B.; Abdulrab, H.; Khor, S.F. Artificial intelligence and machine learning in thermodynamic gas hydrate studies: A review. Energy Fuels 2025, 39, 18287–18310. [Google Scholar] [CrossRef] [Scilit]
  56. Lee, N.; Kim, H.; Jung, J.; Park, K.-H.; Linga, P.; Seo, Y. Time series prediction of hydrate dynamics on flow assurance using PCA and recurrent neural networks with iterative transfer learning. Chem. Eng. Sci. 2022, 263, 118111. [Google Scholar] [CrossRef] [Scilit]
  57. Acharya, P.V.; Bahadur, V. Thermodynamic features-driven machine learning-based predictions of clathrate hydrate equilibria in the presence of electrolytes. Fluid Phase Equilib. 2021, 530, 112894. [Google Scholar] [CrossRef] [Scilit]
  58. McNemar, Q. Note on the sampling error of the difference between correlated proportions or percentages. Psychometrika 1947, 12, 153–157. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  59. Dietterich, T.G. Approximate statistical tests for comparing supervised classification learning algorithms. Neural Comput. 1998, 10, 1895–1923. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  60. Lv, X.; Yin, Z.; Chen, S.; Liu, Y.; Yao, H.; Ma, Y.; Wang, C.; Ma, Q.; Li, X.; Zhou, S. Risk assessment model for hydrate blockage in deep-sea oil and gas multiphase pipelines based on XGBoost and SHAP. Chem. Eng. Sci. 2026, 333, 124205. [Google Scholar] [CrossRef] [Scilit]
  61. Wang, M.; Niu, W.; Liu, Y.; Lei, P.; Luo, X. Flow Prediction and Analysis of Aviation Hydraulic System Based on XGBoost and Feature Attribution. In Proceedings of the China Aeronautical Science and Technology Conference; Springer Nature: Singapore, 2023; pp. 8–17. [Google Scholar] [CrossRef] [Scilit]
  62. Xin, Z.; Jiang, Z.; Wang, F.; Zhang, Y. Review on flow assurance issues in natural gas pipeline transmission systems and solutions to hydrate deposition. Chem. Eng. Sci. 2025, 306, 121290. [Google Scholar] [CrossRef] [Scilit]
  63. Lundberg, S.M.; Lee, S.I. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems 30, Proceedings of the 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA, 4–9 December 2017; Curran Associates Inc.: Red Hook, NY, USA, 2017. [Google Scholar]
  64. Zhang, S.-W.; Shang, L.-Y.; Zhou, L.; Lv, Z.-B. Hydrate Deposition Model and Flow Assurance Technology in Gas-Dominant Pipeline Transportation Systems: A Review. Energy Fuels 2022, 36, 1747–1775. [Google Scholar] [CrossRef] [Scilit]
  65. Jeong, K.; Norris, B.W.E.; May, E.F.; Aman, Z.M. Hydrate Formation from Joule Thomson Expansion Using a Single Pass Flowloop. Energies 2023, 16, 7594. [Google Scholar] [CrossRef] [Scilit]
  66. Wang, Z.; Zhao, Y.; Zhang, J.; Pan, S.; Yu, J.; Sun, B. Flow assurance during deepwater gas well testing: Hydrate blockage prediction and prevention. J. Pet. Sci. Eng. 2018, 163, 211–216. [Google Scholar] [CrossRef] [Scilit]
  67. Meng, Y.; Han, B.; Wang, J.; Chu, J.; Yao, H.; Zhao, J.; Zhang, L.; Li, Q.; Song, Y. Hydrate Blockage in Subsea Oil/Gas Pipelines: Characterization, Detection, and Engineering Solutions. Engineering 2025, 46, 363–382. [Google Scholar] [CrossRef] [Scilit]
  68. Sun, Z.; Shi, K.; Guan, D.; Lv, X.; Wang, J.; Liu, W.; Li, Q.; Yao, H.; Yang, L.; Zhao, J. Current flow loop equipment and research in hydrate-associated flow assurance. J. Nat. Gas. Sci. Eng. 2021, 96, 104276. [Google Scholar] [CrossRef] [Scilit]
  69. Razavifar, M.; Amiri, Z.; Jahed, M.; Krishna, S.; Nikooee, E.; Riazi, M. Artificial intelligence in gas hydrate management: A comprehensive review. Pet. Res. 2026. [Google Scholar] [CrossRef] [Scilit]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.