Skip to Content
Applied SciencesApplied Sciences
  • Article
  • Open Access

12 June 2026

22 Pages

Detection of Lost Circulation Zones in the Oil Fields of the Middle East Through the Application of Neural Network Techniques

,
and
Petroleum Engineering Department, College of Engineering, The American University of Kurdistan, Zakho Road, Duhok 42001, Iraq
*
Author to whom correspondence should be addressed.

Abstract

One of the most common problems in drilling operations is lost circulation, which can significantly increase well costs and lead to issues such as pipe sticking, blowouts, and even well closures. Identifying thief zones using analytical models is especially difficult, and there are no robust equations available in the literature due to a wide range of influential parameters, both controllable and uncontrollable. These parameters include operational factors, as well as the physical properties of the rock and drilling fluid. This study presents an artificial intelligence-based model designed to predict lost circulation zones. It investigates the underexplored potential of WV-curves for feature selection. Traditionally used to represent the spectral characteristics of training data, their role in feature selection has not been widely examined in the literature. The presentation of WV-curves is modified, and their effectiveness in identifying the optimal number of input and hidden neurons is evaluated. In this research study, a total of 15,000 data points were used and collected from oil wells in the Middle East. The artificial neural network (ANN) model exhibited a remarkable ability to accurately predict the locations of lost circulation zones based on the collected data, achieving an impressive accuracy of 94.5%. This is a significant achievement when compared to existing ANN models in the literature. The results highlight the strength of the ANN model in predicting lost circulation locations across a wide range of data collected from various wells in the Middle East. In addition, this model takes into account a diverse set of drilling operational parameters, as well as rock characteristics and fluid properties, offering a broader approach compared to other available ANN models. This advancement will also greatly facilitate future studies, enabling the prediction of lost circulation zones, and enabling advanced planning of appropriate prevention and remediation methods during the well planning phase to reduce the risk of lost circulation. Nevertheless, it should be noted that one limitation of the proposed methodology relates to data availability, as comprehensive formation parameters were not fully accessible; the inclusion of additional formation data may offer opportunities for further improvement in future studies.

1. Introduction

The drilling industry is associated with significant challenges due to downhole problems that arise during oil and gas extraction. These issues often lead to substantial drilling costs, primarily due to the lost circulation and the complex treatment of the circulating system. Effective planning and quick action by the rig crew are crucial to mitigating subsurface lost circulation and preventing further complications. The impact of downhole lost circulation can be extensive, triggering issues such as well control difficulties and pipe sticking incidents, both of which are costly and time-consuming. Moreover, inappropriate action solutions can lead to wellbore instability and potential damage to the formation. This may result in blocked reservoir pores, ultimately constraining production [1]. The lost circulation is characterized by the loss of drilling mud through subsurface formations and varies in severity. The severity ranges from minimal seepage to complete loss of drilling fluid, each requiring specific attention and solutions. Given the industry’s focus on innovation and efficiency, exploring advanced technologies and methodologies to address these challenges is essential.
Lost circulation during drilling operations is a complex issue, often arising when the wellbore pressure surpasses the pore pressure of the surrounding formations or when large subsurface voids are encountered. These voids, whether naturally occurring or induced, can severely impact drilling efficiency by consuming wellbore fluids. The phenomenon is typically associated with natural fractures and poorly consolidated lithologies. The severity of lost circulation can range from minor disruptions, where drilling continues with caution, to severe losses that necessitate immediate intervention to safeguard the well. In overbalanced pressure scenarios, these voids and fractures become critical points of fluid loss, especially when the drilling bit interacts with such formations.
In many offshore operations, the common approach is to continue drilling in blind mode until the planned depth is reached. At that point, the lost zone is typically plugged. However, this method can lead to severe fluid losses, which are conventionally managed by setting a cement plug or applying a gunk pill across the thief zone. The root cause often lies in the inappropriate selection of mud weight or unexpected formation anomalies. These factors can induce fractures, leading to further fluid loss. Addressing this requires an understanding of formation strength and pressure dynamics to optimize drilling fluid management [2,3].
Lost circulation materials (LCMs) play a vital role in this process. These materials are designed to react promptly, block fractures, and form a bridge that effectively seals the affected zones. The nature of these seals can vary, serving as either temporary or permanent solutions. Permanent seals are typically for blocking thief zones in non-producing intervals, while temporary seals are more suited for loss of circulation zones in pay intervals [4].
LCMs can be categorized into granular, flake, and fibrous types, each offering unique benefits for specific formation conditions. Granular LCMs, comprising materials like ground walnut, pecan, or almond shells, and calcium carbonate, form two types of bridges: one at the formation face and a more permanent one within the formation matrix. Fibrous LCMs include materials such as rice hulls, peanut hulls, and wood fibers. This type is ideal for porous and highly permeable formations, as they create a mat-like bridge that reduces pore opening sizes, allowing for rapid filter cake deposition. Flake LCMs are made from ground mica, plastic laminate, and cellophane [5]. Lost circulation in fractured formations can be one of the most significant challenges during the drilling process. The losses can arise from either pre-existing natural fracture, which might be permanently open, or induced fractures resulting from exceeding the fracture resistance pressure of the formation due to the required mud weight for well control. Understanding the type of fracture causing these losses is crucial. It influences the approach to mitigate the lost returns effectively [6].
This study presents ANN-based modeling to analyze a substantial drilling dataset from Middle East oil fields, with the aim of improving the prediction of lost circulation zones. In our research, the uncharted potential of WV-curves in feature selection has been explored. Traditionally, these curves have been used to represent the spectral character of training data, but their role in selecting features has not been thoroughly examined in published literature. This study modifies the presentation style of WV-curves and evaluates their effectiveness in determining the optimal number of input and hidden neurons. The proposed approach extends existing studies by improving the prediction of lost circulation zones and facilitating proactive prevention and remediation planning during the well design stage.

2. Loss of Circulation Models

2.1. Analytical Models

Understanding the harshness of downhole fluid losses is crucial for selecting the most effective treatment method. Recent studies have explored various ways to predict these fluid losses accurately. Darcy’s law to estimate the volume of drilling fluid that infiltrates into rock formations. Formations with natural fractures are particularly susceptible to lost circulation, with varying degrees of severity. While numerous studies have attempted to quantify lost circulation volumes in fractured media using quantitative approaches, a simplified formula has been developed [7,8]. This formula uses the Yield Power Law, also known as the Heschel–Bulkley formula, to describe lost volume in drilling fluids within naturally fractured formations. It assumes a constant fracture width and overlooks the ballooning effect [9]. Despite these advancements, the complex mechanism of total lost circulation—especially in formations with intricate structures, like caverns or extensive fractured networks, that are often found in carbonates—remains without a comprehensive quantitative formulation.

2.2. Machine Learning Models

The prediction of downhole problems is crucial for optimizing drilling operations. To achieve this, accessing offset well data and maintaining comprehensive data records is essential for ensuring statistical confidence. Over the past decade, machine learning (ML) has emerged as a transformative tool in the oil and gas sector. Researchers have extensively explored its application in areas like reservoir simulation, history matching, and production optimization. In the drilling industry, ML’s potential has been recognized for enhancing performance across various aspects. By analyzing industry trends, it is evident that ML can significantly improve decision-making processes and operational efficiency. Given the industry’s focus on innovation, integrating ML could provide a competitive edge by reducing downtime and optimizing resource allocation.
A study by ref. [10] utilized a feed-forward network, trained with backpropagation, to predict loss of circulation events in Maroun oil field’s Asmari formation. This model, based on data from 350 wells, demonstrated strong predictive capabilities with a linear correlation coefficient (R) of 0.95 for training, 0.76 for testing, and 0.82 for validation. However, its performance was notably less effective in cases of severe mud losses. Further advancing this research, Jahanbakhshi et al. (2014) [11] developed a multi-layer perceptron model. They explored the impact of geomechanical parameters, such as minimum horizontal stress and uniaxial compressive strength, on drilling fluid losses. Their findings revealed that incorporating geomechanical data significantly enhanced prediction accuracy, achieving a correlation coefficient of 0.94 compared to 0.75 for models using only non-geomechanical parameters. Additionally, ref. [12] introduced two Modular Neural Network (MNN) models, optimized using a particle swarm algorithm, which achieved impressive prediction accuracies of 94% and 98%. These models provide a promising approach to minimizing circulation losses through parameter optimization.
Aljubran et al. (2017) [13] evaluated several ML and DL models, including random forest, artificial neural networks, Convolutional Neural Networks (CNNs), and Long Short-Term Memory (LSTM), using data from 200 wells experiencing significant losses. Their analysis revealed that the CNN model excelled in detecting early signs of seepage and partial losses, demonstrating its effectiveness in this context. Similarly, Sabah et al. (2019) [14] focused on the Maroun oil field, employing smart systems like multi-layer perceptron, Radial Basis Function, genetic algorithm MLP, decision trees (DTs), and Adaptive Neuro-Fuzzy Inference System. Among these, the decision tree model stood out with an impressive correlation coefficient (R) of 0.9034 and a root mean square error (RMSE) of 0.091, indicating its robustness in prediction. Moreover, Abbas et al. (2019) [14] developed two intelligent models for Southern Iraqi oil fields. Their findings showed that the support vector machine (SVM) model outperformed the artificial neural network (ANN), achieving an accuracy of 92% and 91% during training and testing phases, respectively. Lastly, Geng et al. (2019) [15] applied ML algorithms such as SVM, logistic regression, and random forest to connect loss risks with seismic data. Their predictive results achieved a cross-validation accuracy of 0.8, underscoring the potential of these methods in enhancing predictive capabilities.
Recent research by Alkinani et al. (2020) [16] explored the use of artificial neural networks (ANNs) to estimate losses in induced fracture formations. The study utilized drilling operation parameters and drilling fluid properties from 1500 wells. The data was divided into training, testing, and implementation sets, with the Levenberg–Marquardt algorithm proving to be the most effective for training the ANN, achieving an impressive R2 value of 0.92. Similarly, Agin et al. (2019) [10] developed an Adaptive Neuro-Fuzzy Inference System (ANFIS) to predict drilling fluid losses in the Maroun oil field. This model incorporated drilling data, fluid properties, and total lost circulation amounts. The ANFIS model demonstrated strong predictive capabilities with root mean square errors of 0.08, 0.09, and 0.15 for training, testing, and validation phases, respectively. These findings highlight the potential of leveraging machine learning and fuzzy logic systems to enhance our predictive accuracy and operational efficiency. Given the growing complexity of drilling operations, integrating such advanced models could provide significant value. Toreifi et al. (2014) [17] have compared the efficacy of the SVM algorithm against multi-layer perceptron (MLP) in predicting loss events, specifically in fractured formations. Their findings appear to support SVM’s advantages in this context. Similarly, Mohammadinia et al. [18] explored several machine learning techniques to evaluate the effectiveness of different loss of circulation materials (LCMs) within a deep-water pre-salt basin off the coast of Brazil, concluding that a hybrid approach combining neural networks with an instance-based algorithm yields superior predictive performance. Moreover, two additional studies have highlighted SVM’s commendable prediction accuracy in anticipating lost circulation events during underbalanced drilling.
Hou et al. [19] developed an artificial neural network (ANN) model to forecast the loss of circulation in this region. The model was trained using a comprehensive dataset, including drilling parameters, fluid properties, and formation characteristics. Impressively, it achieved an accuracy of 93% during training and 92% in testing, effectively predicting six types of losses, ranging from micro to severe. This model serves as a robust tool for drilling engineers, offering valuable guidance in assessing circulation risks before drilling commences.
Notably, Azim et al. [20,21] used regression analysis to formulate a statistical model that accounts for various drilling parameters influencing lost circulation.
In a similar vein, refs. [22,23,24] explored three artificial intelligence techniques—ANN, fuzzy logic, and functional network—to address circulation losses in HTHP wells. Their ANN model stood out with a remarkable correlation coefficient of 0.99 and a root mean square error (RMSE) of 0.05. This model not only performed well on the initial training wells but also accurately predicted lost circulation zones in additional wells.

3. Neural Network Model

Machine learning offers a variety of approaches to tackle complex problems, and understanding these can significantly enhance predictive capabilities [25,26,27,28]. There are two primary types of machine learning algorithms: supervised and unsupervised. In supervised learning, particularly regression, we aim to predict continuous values based on input variables. For instance, predicting how much gas can be adsorbed onto a shale rock surface using variables like rock porosity, surface area, and gas composition. Several algorithms can be employed for this purpose, such as linear regression, support vector machines, and decision trees. The choice of the best algorithm largely depends on the data characteristics. Ensemble learning methods, like XGBoost and random forests, combine multiple decision trees to form a robust model. These ensembles are less prone to overfitting and can effectively learn complex relationships, even with non-linear data. Advantages of regression ensembles include the following:
-
Ability to capture intricate relationships between inputs and outputs.
-
Robustness to noise in the data.
-
Ease of training and interpretation.
However, a notable downside is the computational intensity required for training, especially with large datasets. Understanding these methodologies can significantly impact the accuracy and reliability of predictions in various applications. Two popular machine learning models are random forest (RF) and artificial neural networks (ANNs). Both offer unique advantages in handling complex data, but they also come with their own challenges. Random forests can construct multiple decision trees using random subsets of training data and features, reduce overfitting and enhance model generalization by averaging predictions from individual trees, effectively learn complex, non-linear relationships between input and output variables. Artificial neural networks utilize the backpropagation algorithm to train by adjusting weights based on the error between actual and predicted outputs. They are capable of making predictions on new data by feeding them through the network.
Artificial neural networks require careful tuning of hyperparameters like learning rate and momentum for optimal performance.
Therefore, in this study, the backpropagation learning algorithm is used to classify the loss of circulation zones for wells drilled in the Middle East by improving the convergence speed of the network using a new acceleration method, in which the speed of the point is modified in the weight space instead of its position, as Equation (1) shows [16,17]:
w t + 1 = w ( t ) + β Δ w ( t ) + α w ( t − 1 )
where α is the energy constant, w is the weight, ∆ w is the weight difference, t is incremented by 1 for each epoch, and β is the learning constant.
The log sigmoid function is pivotal in both function approximation and classification tasks, where normalizing target values to this range is crucial before initiating training.
The neural network operates through two key processes: forward and backward propagation. During the forward step, signals traverse through neurons to compute output targets. The backward step, also known as backpropagation, involves calculating the error vector by comparing actual and target outputs. This error is quantified using a quadratic cost function, which helps refine the network’s learning.
The error value at the output neurons for a training pattern can be defined by a quadratic cost function (Abdel-Azim et al., 2022 [15] and Azim 2020 [20]):
E p = 1 2 ∑ n 1 n 2 x p − y p 2
where n1 is the number of training patterns, n2 is the number of output neurons in the output layer, and xp and yp are the target and calculated output values, respectively.
In addition, it is important to develop a new approximate model with an equation to predict the loss of circulation zones and depth, as no robust equations are available in the literature and the available methods are often inaccurate and do not provide a clear understanding of underlying physics. Table 1 shows all data used in the mentioned AI models.
Table 1. Models used for lost circulation detection.
In this study, the uncharted potential of WV-curves in feature selection has been explored. Traditionally, these curves have been used to represent the spectral character of training data, but their role in selecting features has not been thoroughly examined in the published literature. Our study modifies the presentation style of WV-curves and evaluates their effectiveness in determining the optimal number of input and hidden neurons.
The primary objective is to leverage WV-curves to enhance the performance of networks used for genetic classification. By considering non-linear inputs, our methodology utilizes WV-curves to identify the most impactful inputs and ascertain the appropriate size of the hidden layer. This is achieved by analyzing the learning behavior of various network configurations. We employ the following equation to measure the average contribution of an input variable to the hidden layer.
The Weight Visualization Curves (WV-curves) technique was employed to identify the most appropriate input patterns for the ANN training process in order to reduce computational time and improve model efficiency. Since the application of the WV-curves method in lost circulation prediction has not been previously reported, this study further modifies and extends the WV approach to optimize the ANN architecture parameters, including the determination of the optimal number of input neurons and hidden neurons.
In the proposed framework, the WV-curves technique analyzes the non-linear relationships between input variables and network responses to identify the most influential parameters based on the learning behavior of different ANN configurations. The method evaluates the sensitivity and contribution of each input variable through the distribution and magnitude of connection weights between the input layer and the hidden layer. Accordingly, weakly contributing or insignificant variables can be eliminated, resulting in a simplified and more efficient network structure.
The average contribution of each input variable to the hidden layer is calculated using the following equation:
A i = ∑ j = 1 n 2 ∣ W i j ∣ ∑ k = 1 n 1 ∑ j = 1 n 2 ∣ W k j ∣
where A i denotes the average contribution of the i th input variable to the hidden layer; n 1 and n 2 represent the number of neurons in the input layer and hidden layer, respectively; and W i j is the connection weight between the i th input neuron and the j th hidden neuron.
Based on Equation (1), the contribution of each input parameter is quantified according to the relative magnitude of its connection weights within the ANN structure. Larger values of (Ai) indicate stronger influence of the corresponding input variable on the hidden layer response and, consequently, on the prediction capability of the network. Conversely, variables associated with lower contribution values are considered less significant and may be excluded from the input dataset without substantially affecting prediction performance.
The WV-curves are then generated by plotting the calculated contribution values for all candidate input variables under different ANN configurations. By analyzing the trend and distribution of these curves, the optimal combination of input variables and hidden neurons can be identified. This procedure enables the selection of compact and efficient ANN architecture with reduced computational complexity while maintaining high prediction accuracy and model generalization capability.
It was observed that five neurons in the hidden layer exhibited similar contributions across all output neurons, indicating redundancy in their representations. Consequently, these neurons were considered non-essential and were removed from the network architecture. As a result, the neural network configuration was simplified to a 11–25–1 structure, where the input layer consists of followed by a hidden layer of 25 neurons and a single output neuron for loss of circulation.

4. Data Description

The primary and most important phase in enhancing a data-driven model is the organization of the dataset. The dataset utilized in this research includes reservoir features, geomechanical attributes, and fracture stimulation. In this research, a total of 15,000 data points were collected from Middle East oil wells and utilized. Splitting the data into training and validation sets is crucial to avoid overfitting. Overfitting happens when the model becomes overly familiar with the training data and struggles to apply this knowledge to unfamiliar data. In this research, 30% of the data was allocated for testing and 70% for training. The learning rate, momentum, and weight are the parameters that have been used in feed-forward and backpropagation algorithms that support and regulate the convergence of the algorithm. It is crucial to understand that there is no universal method for determining these criteria.
The best values for the learning rate, momentum, and weight will differ based on the problem being addressed and the data characteristics. In this research, the backpropagation algorithm is created using the FORTRAN language, and 15,000 points of data that were gathered from the Middle East oil fields are used for the development and validation of the proposed artificial intelligence method. The information comprises 12 inputs utilized during the training process, including hole size (inch), ROP (m/hr), weight on bit (klbs), rotation (RPM), torque (klbs-ft), standpipe pressure (psi), flow in (gpm), mud weight (pcf), plastic viscosity (cp), yield point (lb/100 ft2), and solid%. Table 2 displays the statistical data of the input information. The input and output data are standardized on a scale from 0 to 1 in the following manner.
Table 2. Statistics of the input data.
The dataset from 350 wells captures mechanical and drilling fluid parameters. This extensive data, gathered from daily drilling and mud logging reports, is crucial for understanding lost circulation events. By applying robust developed ANN algorithms, we aim to predict drilling issues with high precision.
Loss rates from daily drilling reports for each meter of the drilled depth are recorded and subsequently categorized into four classes, ranging from “no loss” to “loss”. The degree of loss has been coded 0 for “no loss” and 1 for “loss”. Hence, this study uses neural network to classify the severity of losses during the drilling operation and allow rapid, appropriate remedial action.
As can be seen in Figure 1, most of the variables exhibit poor correlations, as indicated by R2 in the heatmap (see Figure 1 and Figure 2a). This suggests that the relationship between the data features and labels is quite complex. Given this, it seems that regression analysis may not adequately capture these intricacies. To address this challenge, this study recommends considering machine learning or neural network approaches to enhance the fluid loss classification. These methods could provide a more robust framework for modeling the relationships observed in the data.
Figure 1. Correlation matrix for input and output loss severity using MATLAB R2025b function.
Figure 2. (a) Correlation matrix the input and output loss severity using Excel function and (b) SHAP chart to show how parameters are correlated.
Figure 2b show SHAP chart and the relationship between a single feature’s value and its impact on the prediction.
SHAP (Shapley Additive explanations) values are instrumental in interpreting machine learning models by attributing the prediction of a particular instance to its feature values. Understanding the implications of positive and negative SHAP values will enhance our ability to evaluate feature contributions effectively.
To begin, a positive SHAP value for a feature indicates that the feature contributes to increasing the prediction above the model’s baseline, also known as the expected value. This baseline is essentially the average model output computed over the training dataset. When a feature has a positive SHAP value, it implies that the feature has a positive effect on the outcome, pushing the prediction higher than the baseline.
Conversely, a negative SHAP value signifies that the feature contributes to lowering the prediction relative to the baseline. This means the feature exerts a negative influence on the prediction outcome, pulling it below the expected value derived from the training data. Essentially, each feature’s SHAP value reflects its direct impact on the prediction, either by enhancing or diminishing it.
Understanding these SHAP value implications is vital for accurate model interpretation and subsequent decision-making. It allows us to diagnose model behavior, identify important features, and ensure that our models are reliable and aligned with our objectives.
The most effective filtration techniques for real-time data processing, particularly focusing on the movmean method. This technique is highly recommended because it preserves the integrity of most data without causing significant alterations.
Optimization of Dataset Splitting Strategy.
The original random data splitting approach introduces to reduce the risk of inter-well data leakage, which can lead to overly optimistic prediction performance. To address this issue, the dataset is restructured and divided based on well numbers rather than random sampling. Specifically, data from individual wells will be exclusively assigned to either the training set or the testing set to ensure complete separation between wells during model development and evaluation. This strategy will better simulate real-field prediction scenarios and provide a more reliable assessment of model generalization capability.
Hyperparameter Optimization and Selection Basis.
A dedicated subsection will be added to describe:
  • The selection criteria for the number of hidden layers and hidden neurons;
  • The optimization process for learning rate, activation functions, training epochs, and stopping criteria;
  • The role of the WV-curves technique in determining the optimal network architecture;
  • The evaluation metrics used during hyperparameter tuning.
In addition, the ranges of tested hyperparameters and the rationale for selecting the final ANN configuration will be clearly presented to improve transparency and reproducibility.
The dataset was initially divided into 70% for training, 30% for testing. To improve the reliability of the developed model and minimize the possibility of data leakage, the revised study adopts a well-based dataset splitting strategy, in which data from individual wells are assigned exclusively to either the training or testing subsets. This approach ensures complete separation between wells and provides a more realistic evaluation of the model generalization capability under field conditions.
The backpropagation (BP) learning algorithm was employed to minimize the prediction error between the actual and target outputs using the log-sigmoid activation function. The performance of the BP algorithm was compared with other optimization approaches, including Gradient Descent (GD) and Stochastic Gradient Descent (SGD). The BP algorithm demonstrated superior predictive performance, achieving an (R2) value of 0.99 and a Mean Squared Error (MSE) of 0.024, whereas the GD and SGD algorithms yielded higher MSE values of 0.25 and 0.39, respectively. The improved performance of the BP algorithm is attributed to its efficient gradient propagation and enhanced convergence behavior during network training.
To further enhance model robustness and verify prediction stability, additional 5-fold and 10-fold cross-validation procedures were incorporated into the revised workflow. The average performance metrics and corresponding standard deviations obtained from the cross-validation experiments confirmed the consistency and reliability of the proposed ANN framework.
The ANN architecture parameters, including the number of hidden layers, hidden neurons, learning rate, training epochs, and training/testing ratios, were systematically optimized to maximize prediction accuracy while reducing model complexity. The WV-curves technique was additionally utilized to determine the optimal input parameter combinations and hidden neuron configurations based on the learning behavior of different network structures.
During the training process, the overall prediction error was iteratively minimized through continuous updating of the connection weights. Two weight updating approaches were considered: epoch updating and stochastic updating. In the epoch updating approach, all weight adjustments corresponding to the input patterns were accumulated prior to updating the network weights. This approach provided improved training stability and reliable convergence characteristics while reducing oscillatory behavior during the learning process. In contrast, stochastic updating performed weight modification after each individual training sample, leading to faster but potentially less stable convergence behavior.
Figure 2 presents the comprehensive workflow of the proposed ANN model, including data preprocessing, WV-curve-based feature selection, network optimization, training, validation, and testing procedures. The optimized ANN parameters adopted in this study are summarized in Table 3.
Table 3. Parameters used in ANN architecture.
Table 3 summarizes the optimization ranges and the final selected ANN hyperparameters used in this study. Several network configurations were systematically evaluated to determine the optimal architecture capable of achieving high prediction accuracy while maintaining computational efficiency and model stability.
The optimization process demonstrated that a single hidden layer containing 25 neurons provided the most stable convergence behavior and the highest prediction performance. Increasing the number of hidden layers beyond one did not significantly improve the predictive capability of the network and, in some cases, resulted in overfitting and increased computational complexity. Furthermore, the log-sigmoid (logsig) activation function achieved better non-linear mapping performance and lower prediction error compared with the tangent sigmoid (tansig) function.
The learning rate was optimized through iterative testing over a wide range of values from 0.001 to 0.8. A learning rate of 0.08 was selected as the optimal value because it provided the best balance between convergence speed and training stability while avoiding oscillatory learning behavior. The final optimized ANN architecture therefore ensured reliable prediction performance with reduced computational cost and improved model generalization capability.

5. Results and Discussion

One of the key challenges in neural network training is determining the optimal configuration of input variables, initial weights, and hidden layers. While selecting the number of inputs is relatively straightforward, optimizing the hidden layer structure requires careful consideration of non-linear inputs to minimize the need for multiple hidden layers.
To address this, the weight visualization curve technique is used to determine the number of input and hidden neurons. This method calculates the average contribution of neurons between layers, ensuring architecture efficiency. Additionally, the dataset analysis from various wells located in the Middle East has yielded significant findings regarding the loss of circulation zones.
In total, 30 neurons and one hidden layer are used in the training and testing process with optimized settings; 70% of the dataset is used for training, and 30% is used for testing. The relationship between drilling parameters, including WOB, torque, and ROP used in the ANN, and well depth is shown in Figure 3a–c. The cross plots of loss of circulation zones identification for the training and testing procedures are displayed in Figure 4 and Figure 5. Training has an average absolute percent relative error (AAPRE) of 94%, and testing has an AAPRE of 92.5%. These outcomes demonstrate the ANN model’s dependability.
Figure 3. Drilling parameters vs depth (a) ROP, (b) WOB and (c) torque used for training and validation processes.
Figure 4. ANN vs. actual loss of circulation zones for training with R2 of 94.5%; circled zones indicate that ANN algorithm could not match with actual data.
Figure 5. ANN vs. actual loss of circulation zones for testing with R2 of 99.3%; circled zones indicate that ANN algorithm could not match with actual data.
With an emphasis on the training set performance shown in Figure 4, the findings are compiled in a confusion matrix. With an accuracy of 94.5%, the ANN model showed an appropriate capacity to predict 9450 out of 10,000 sites of lost circulation zones. Given that only 550 locations—or 5.5% of the predictions—were incorrectly classified, this is a noteworthy achievement. Remarkably, the ANN model correctly predicted all 300 locations in the loss-free zones. With only 0.7% of predictions being wrong, the model demonstrated an outstanding 99.3% accuracy when we looked at every area of lost circulation in the two zones. Further demonstrating the model’s effectiveness are the testing dataset results, which are shown in Figure 5.
Among the 5000 locations for testing process are identified within the lost circulation zones, the ANN model effectively predicted 4920 of them, resulting in an accuracy rate of 94.5%. Only 80 points were predicted incorrectly, representing 1.6%. Additionally, in regions where losses do not take place, the model accurately predicted all 90 locations. These findings highlight the reliability of the ANN model in precisely forecasting lost circulation locations, which could greatly benefit our upcoming projects.
Upon reviewing the model training and evaluation process, we have identified a few potential factors that might have contributed to this unexpectedly high performance:
  • It is possible that information from the test set inadvertently influenced the training process. This could occur if data preprocessing steps, such as normalization, feature selection, or PCA, were applied to the entire dataset rather than being restricted to the training split. This would result in the model having prior knowledge about the test set, thereby inflating its accuracy.
  • The presence of duplicate or highly correlated samples across the training and test sets might artificially boost the model’s performance. This can happen if the dataset contains repeated entries or if there is an overlap between the training and testing data.
Lost circulation is a multifaceted issue predominantly affected by mud weight or equivalent circulating density (ECD). When ECD surpasses the formation’s fracture pressure, it can induce or propagate fractures, thereby exacerbating fluid loss severity. This highlights the critical need for precise ECD management during drilling operations.
The second key factor is wellbore pressure fluctuations, primarily driven by pump rate and drilling hydraulics. Higher flow rates increase annular pressure losses and surge pressures, which can trigger losses in weaker formations. Therefore, careful control of flow rates is essential to prevent unintended circulation losses.
Rheological properties of drilling fluids, such as viscosity and gel strength, also play a significant role. While their impact is moderate, they are crucial in controlling fluid invasion depth and loss rate. Low viscosity can lead to seepage losses, whereas excessive viscosity may exacerbate fracture losses.
Drill string movement, including tripping speed and rotation, has a lesser but still notable influence. Rapid movements can generate surge and swab pressures, potentially initiating losses in formations near the fracture gradient. Finally, wellbore geometry and hole size, while having the least direct impact, affect pressure distribution and hydraulics, acting as secondary contributors.
Although the developed ANN model demonstrated high prediction capability with an overall testing accuracy exceeding 99%, a detailed investigation of the misclassified samples was conducted to better understand the limitations and operational boundaries of the model. The analysis revealed that most of the incorrectly predicted samples were concentrated near transition intervals between “loss” and “no-loss” conditions, where drilling parameters exhibited overlapping patterns. Fluctuations in mud weight, standpipe pressure, and flow rate created ambiguous operational signatures that reduced the model discrimination capability. Furthermore, several misclassified cases corresponded to wells drilled in highly heterogeneous fractured carbonate formations, where sudden formation pressure variations and localized vug systems were not fully represented in the training dataset. These observations indicate that the prediction uncertainty increases in formations with rapidly changing geological characteristics or incomplete formation-property information.
The developed model is therefore most applicable under drilling environments like those represented in the training database, namely in the Middle East’s carbonate formations with conventional rotary drilling operations and surface-measured drilling parameters. The application boundary of the model is associated with the range of operational parameters used during training, including mud weight, flow rate, standpipe pressure, torque, and rate of penetration. Extrapolation beyond these ranges or application to unconventional drilling environments, such as managed-pressure drilling or geothermal wells, may reduce prediction reliability. In addition, the absence of comprehensive geomechanical and image log data limits the model capability in accurately characterizing naturally fractured reservoirs with highly complex fracture networks.
A quantitative evaluation was also conducted to assess the contribution of the WV-curve methodology to model performance. Without WV-based feature optimization, the ANN model produced an R 2 value of approximately 0.89 with an MSE of 0.061 during testing. After applying the WV-curve technique for optimal feature selection and hidden neuron configuration, the testing performance improved significantly to an R 2 value of 0.994 and an MSE of 0.024. This corresponds to approximately 60% reduction in prediction errors and nearly 5% improvement in prediction accuracy. The WV-curves additionally reduced unnecessary hidden neuron complexity and improved network convergence stability, thereby minimizing overfitting tendencies. These findings confirm that WV-curves provide a systematic and quantitative framework for ANN architecture optimization rather than relying on empirical trial-and-error procedures commonly used in previous studies.
To further evaluate the proposed model, its performance was compared with several recent high-level studies reported in the literature. Compared with the ANN model developed by Hou et al. [19], which achieved testing accuracy of approximately 92%, the present model achieved higher prediction reliability while using a broader dataset collected from multiple Middle East wells. Similarly, the proposed ANN model outperformed several conventional machine learning approaches reported by Otchere et al. [4], where random forest and XGBoost models achieved R 2 values of 0.9239 and 0.9214, respectively.
From an engineering application perspective, the developed ANN model can be integrated into real-time drilling monitoring systems to provide early warning indicators for potential lost circulation events. During drilling operations, real-time surface parameters including WOB, RPM, standpipe pressure, flow rate, torque, mud properties, and rate of penetration can be continuously fed into the trained ANN model. The predicted loss-risk output can then assist drilling engineers in identifying vulnerable intervals before severe circulation losses occur. Based on the model predictions, proactive mitigation measures such as adjusting mud density, reducing pump rate, optimizing equivalent circulating density (ECD), or preparing suitable lost circulation materials (LCMs) can be implemented before entering high-risk formations. This capability offers significant operational value by reducing non-productive time (NPT), minimizing drilling fluid losses, lowering well control risks, and improving overall drilling efficiency.

6. Conclusions

This research assessed an artificial intelligence method to forecast the zones of lost circulation, relying solely on 12 mechanical surface drilling parameters. The method evaluated was an artificial neural network (ANN). The 12 parameters consist of real-time measurements of flow pump, rate of penetration (ROP), string rotation speed (RPM), standpipe pressure (SPP), drilling torque (TORQUE), and weight on bit (WOB), etc. which are included during the testing and training procedures. Over 15,000 real-field data points from 350 wells were utilized in the assessment. The following conclusions can be drawn from the findings of this research:
(i)
The AI method was trained and validated to accurately predict the lost circulation zones.
(ii)
The performance of the ANN was recorded with an R value of 0.945 and RMSE of 0.0511 during training, and an R value of 0.96 and RMSE of 0.063 during testing.
(iii)
The primary benefit of the AI method lies in their simplicity, enabling the prediction of lost circulation areas based solely on the mechanical surface drilling parameters that are easily accessible in every well.
(iv)
It is worth noting that the proposed methodology is influenced by data availability, as comprehensive formation parameters were not fully accessible. Future studies may benefit from the inclusion of additional formation data to further improve the methodology.

Author Contributions

Conceptualization R.A.A.; methodology, R.A.A.; software, R.A.A.; validation, R.A.A. and M.A.N.; formal analysis, R.A.A. and A.G.; investigation, M.A.N.; resources, R.A.A.; data curation, R.A.A. and A.G.; writing—original draft preparation, R.A.A., A.G. and M.A.N.; writing—review and editing, R.A.A. and M.A.N.; supervision, R.A.A. and M.A.N. All authors have read and agreed to the published version of the manuscript.

Funding

American University of Kurdistan assist with the preparation of this manuscript, grant number 1.7.2.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The datasets generated and/or analyzed during the current study are available from the corresponding author on reasonable request.

Conflicts of Interest

The authors declare no competing interests.

References

  1. Wang, Z.; Yang, M.; Du, P.; Zhou, Y. Prediction model of lost circulation based on drilling parameters with PSO-BP neural network. Sci. Rep. 2026, 16, 13976. [Google Scholar] [CrossRef] [Scilit]
  2. Elmousalami, H.; Sakr, I. Artificial intelligence for drilling lost circulation: A systematic literature review. Geoenergy Sci. Eng. 2024, 239, 212837. [Google Scholar] [CrossRef] [Scilit]
  3. Salih, A.K.; Abdul Hussein, H.A.; Hamza, S.H. Artificial Neural Networks to Predict Lost Circulation Zones at Southern Iraq Oilfield. J. Pet. Res. Stud. 2023, 38, 16–31. [Google Scholar] [CrossRef] [Scilit]
  4. Otchere, D.A.; Aboagye, M.; Mohammed, M.A.A.; Boakye, T.B. Enhancing drilling fluid lost-circulation prediction using model agnostic and supervised machine learning. SSRN Electron. J. 2022. [Google Scholar] [CrossRef] [Scilit]
  5. Pilehvari, A.A.; Nyshadham, V.R. Effect of material type and size distribution on performance of loss/seepage control material. In SPE International Conference and Exhibition on Formation Damage Control; SPE: Lafayette, LA, USA, 2002; p. SPE-73791. [Google Scholar]
  6. Feng, Y.; Jones, J.F.; Gray, K.E. A review on fracture-initiation and-propagation pressures for lost circulation and wellbore strengthening. SPE Drill. Complet. 2016, 31, 134–144. [Google Scholar] [CrossRef] [Scilit]
  7. Agin, F.; Khosravanian, R.; Karimifard, M.; Jahanshahi, A. Application of adaptive neuro-fuzzy inference system and data mining approach to predict lost circulation using DOE technique (case study: Maroon oilfield). Petroleum 2018, 6, 423–437. [Google Scholar] [CrossRef] [Scilit]
  8. Mardanirad, S.; Wood, D.A.; Zakeri, H. The application of deep learning algorithms to classify subsurface drilling lost circulation severity in large oil field datasets. SN Appl. Sci. 2021, 3, 785. [Google Scholar] [CrossRef] [Scilit]
  9. Moazzeni, A.R.; Nabaei, M.; Jegarluei, S.G. Prediction of Lost Circulation Using Virtual Intelligence in One of Iranian Oilfields. Presented at the Nigeria Annual International Conference and Exhibition, Calabar, Nigeria, 31 July–7 August 2010. [Google Scholar]
  10. Jahanbakhshi, R.; Keshavarzi, R.; Jalili, S. Artificial neural network-based prediction and geomechanical analysis of lost circulation in naturally fractured reservoirs: A case study. Eur. J. Environ. Civ. Eng. 2013, 18, 320–335. [Google Scholar] [CrossRef] [Scilit]
  11. Cheng, S.; Wu, B.; Huppert, H.E.; Ma, T.; Chen, Z.; Tan, P. Modeling transport and bridging behavior of lost circulation materials in a hydraulic fracture. J. Rock Mech. Geotech. Eng. 2025, 17, 2650–2664. [Google Scholar] [CrossRef] [Scilit]
  12. Aljubran, M.J.; Al-Yami, A.S.; Madan, M.A. Best practices to prevent stuck pipe incidents in offshore shaly formations. In SPE Middle East Oil and Gas Show and Conference; SPE: Lafayette, LA, USA, 2017; p. D031S031R005. [Google Scholar]
  13. Sabah, M.; Ghorbani, H.; Khezri, M. Hybrid machine learning algorithms to enhance lost-circulation prediction and management in the Marun oil field. J. Pet. Sci. Eng. 2020, 185, 106606. [Google Scholar] [CrossRef] [Scilit]
  14. Geng, Q.; He, F.; Ma, M.; Liu, X.; Wang, X.; Zhang, Z.; Ye, M. Application of full-scale experimental cutterhead system to study penetration performance of tunnel boring machines (TBMs). Rock Mech. Rock Eng. 2022, 55, 4673–4696. [Google Scholar] [CrossRef] [Scilit]
  15. Abdel Azim, R.; Aljehani, A. Neural network model for permeability prediction from reservoir well logs. Processes 2022, 10, 2587. [Google Scholar] [CrossRef] [Scilit]
  16. Alkinani, H.H.; Al-Hameedi, A.T.T.; Dunn-Norman, S. Data–driven decision–making for lost circulation treatments: A machine learning approach. Energy AI 2020, 2, 100031. [Google Scholar] [CrossRef] [Scilit]
  17. Toreifi, H.; Rostami, H.; Khaksar Manshad, A. New method for prediction and solving the problem of drilling fluid loss using modular neural network and particle swarm optimization algorithm. J. Pet. Explor. Prod. Technol. 2014, 4, 371–379. [Google Scholar] [CrossRef] [Scilit]
  18. Mohammadinia, F.; Ranjbar, A.; Ghazi, F.; Hosseini, S.T. Rate of penetration prediction in drilling operations: A comparative study of AI models and meta-heuristic approaches. J. Pet. Explor. Prod. Technol. 2025, 15, 115. [Google Scholar] [CrossRef] [Scilit]
  19. Hou, X.; Yang, J.; Yin, Q.; Liu, H.; Chen, H.; Zheng, J.; Wang, J.; Cao, B.; Zhao, X.; Hao, M.; et al. Lost circulation prediction in South China Sea using machine learning and big data technology (OTC-30653-MS). In Proceedings of the Offshore Technology Conference, Houston, TX, USA, 4–7 May 2020. [Google Scholar]
  20. Abdel Azim, R. Application of artificial neural network in optimizing the drilling rate of penetration of western desert Egyptian wells. SN Appl. Sci. 2020, 2, 1177. [Google Scholar] [CrossRef] [Scilit]
  21. Azim, R.A. Estimation of fracture network properties from FMI and conventional well logs data using artificial neural network. Upstream Oil Gas Technol. 2021, 7, 100044. [Google Scholar] [CrossRef] [Scilit]
  22. Al-Hameedi, A.T.T.; Alkinani, H.H.; Dunn-Norman, S.; Flori, R.E.; Hilgedick, S.A.; Amer, A.S.; Alsaba, M. Mud loss estimation using machine learning approach. J. Pet. Explor. Prod. Technol. 2019, 9, 1339–1354. [Google Scholar] [CrossRef] [Scilit]
  23. Cristofaro, R.A.L.; Longhin, G.; Waldmann, A.A.; Martins, A.L. Artificial intelligence strategy minimizes lost circulation non-productive time in Brazilian deep-water pre-salt. Proc. Offshore Technol. Conf. Bras. 2017, 17, D031S024R005. [Google Scholar]
  24. Zhou, D.; Zhou, C.; Zhang, Z.; Zhou, M.; Zhang, C.; Zhu, L.; Li, Q.; Wang, C. Intelligent Lost Circulation Monitoring Method Based on Data Augmentation and Temporal Models. Processes 2024, 12, 2184. [Google Scholar] [CrossRef] [Scilit]
  25. Behnoud far, P.; Hosseini, P. Estimation of lost circulation amount occurs during underbalanced drilling using drilling data and neural network. Egypt. J. Pet. 2016, 26, 627–634. [Google Scholar] [CrossRef] [Scilit]
  26. Deng, S.; Pei, C.; Hao, H.; Peng, H.; Peng, M.; Cai, C.; Shi, Y. A lost circulation prediction method of support vector machine model improved by fruit fly optimization algorithm. SSRN Electron. J. 2023. [Google Scholar] [CrossRef] [Scilit]
  27. Liang, L.; Deng, H.; Yang, Z.; Su, J.; Jiao, Y.; Xie, Y.; Wu, C. Stack: Stacked Gradient Boost Machine for Accurate Lost Circulation Prediction. In Proceedings of the 2nd International Conference on Intelligent Design and Innovative Technology (ICIDIT 2023); Atlantis Press: Dordrecht, The Netherlands, 2023; pp. 225–233. [Google Scholar]
  28. Lu, X.; Altalbawy, F.M.A.; Vora, T.; Manjunatha, R.; Shit, D.; Shomurotova, S.; Kumar, A.; Pramanik, A.; Sharma, A.; Alfilh, R.H.C.; et al. Reliable estimation via hybrid gradient boosting machine for mud loss volume in drilling operations. Sci. Rep. 2025, 15, 27525. [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.