October 09, 2026
Shear Wave Velocity Prediction by Machine Learning in North Sea Wells
Shear Wave Velocity Prediction by Machine Learning in North Sea Wells
Lucas Gabriel Silva de Aguiar; Edilson José Rodrigues
DOI: 10.22167/2675-6528-202603183
Article derived from a Course Conclusion Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.
Summary
Reservoir characterization is an essential step in the development of oil fields, optimizing drilling strategies and reducing uncertainties. Given the absence of data and the high operational costs associated with the direct acquisition of shear wave velocity (Vs) profiles, the study aimed to predict this profile in 70 wells in the Viking Graben (North Sea). The performance of machine learning algorithms, Random Forest and XGBoost, was compared with the empirical methods of Castagna et al. (1985) and Han (1986). The methodology involved the pre-processing of data from 108 wells, with treatment of anomalous values and spikes, followed by the selection of auxiliary variables based on statistical correlations and the application of cross-validation to ensure model robustness. The results indicated that the machine learning algorithms significantly outperformed conventional methods, with XGBoost standing out as the best, achieving an average coefficient of determination of 0.87. The analysis demonstrated that the exclusion of wells with inconsistent data and the hyperparameterization of the models increased the accuracy of the predictions, proving the effectiveness of the intelligent approach in the studied geological context. It was concluded that the application of machine learning provided an efficient and replicable alternative for obtaining reliable geophysical data, eliminating the need for new logging and mitigating operational risks.
Keywords: geophysics; artificial intelligence; petrophysics; regression.
1. Introduction
Reservoir characterization is an essential step in the development cycle of oil fields, as it allows for understanding the spatial distribution of petrophysical, structural, and fluid-dynamic properties through the integration of information. Due to this process, it is possible to optimize well drilling strategies, positively impact the field’s productivity level, and reduce uncertainties related to reserve projections.
Among the various tools used in this process, the density properties of the formation (RHOB), compressional wave velocity (Vp), and shear wave velocity (Vs) stand out. These are acquired from downhole measurements on the wellbore walls (logging). These attributes are essential for seismic inversion, a technique that allows for the estimation of reservoir properties on a regional scale, by modeling from well data and expanding to a production field view (Barclay et al., 2008). The Vs profile, in particular, allows for the estimation of parameters such as shear modulus and Poisson’s ratio, enhancing the understanding of seismic response and the mechanical behavior of formations (Castagna et al., 1985).
However, direct acquisition of the Vs profile is more complex, requiring sophisticated tools with broadband sources and receivers and high acoustic isolation. The shear wave signal is naturally weaker and may not propagate in unconsolidated formations, which increases logging time and the difficulty in obtaining reliable data. Obtaining new data involves high costs and significant operational risks, such as the need to suspend production, exposure to extreme pressure and temperature conditions, and the possibility of well damage, making the process expensive and sometimes unfeasible. Many fields have incomplete or outdated profiles, leading to the common use of old conventional methods to estimate missing data (Castagna et al., 1985; Han, 1986). These methods, however, were empirically developed and calibrated for specific geological conditions, which limits their applicability in other contexts.
In parallel with these operational challenges, the industry has been experiencing a paradigm shift driven by the evolution of Artificial Intelligence (AI). AI has consolidated itself as a strategic tool capable of identifying complex and non-linear patterns in massive volumes of data, surpassing the capacity of traditional statistical analysis. In the oil and gas sector, this evolution is observed in the adoption of machine learning models for optimizing reservoir management. Unlike purely deterministic approaches, machine learning techniques learn the historical variability of data, allowing for the extrapolation of behaviors in complex geological conditions, where classic empirical correlations frequently fail (Lawal et al., 2024). Recent studies demonstrate that supervised learning algorithms can predict petrophysical properties with a high degree of accuracy, based on existing data, reducing the need for new acquisitions (Anemangely et al., 2019; Feng et al., 2021).
Given the limitations of conventional methods and operational challenges, the use of machine learning techniques for well logging has gained prominence as a promising alternative. These approaches promote significant gains in efficiency and interpretive consistency of the logs, mitigating costs and operational risks, and marking a new era in intelligent reservoir characterization. In this context, this study aims to predict the shear wave velocity profile in 70 wells located in the northern part of the North Sea basin, near the coast of Norway, using different tree models (Random Forest and XGBoost) and compare the performance with conventional methods from the literature.
2. Material and Methods
The study adopted a quantitative, predictive, and comparative approach, aiming to estimate the shear wave velocity profile (Vs). The research focused on 70 wells located in the northern portion of the North Sea basin, near the coast of Norway, in the Viking Graben region. The study area is characterized by heterogeneous geological formations, as described by Halland et al. (2014). The methodology compared machine learning models with conventional methods for predicting the Vs profile.
The dataset comprised information from 108 wells, of which 38 presented the Vs profile directly acquired. These wells were used for model training, while the remaining 70 wells, without the Vs profile, were the target of prediction. In total, the database contained approximately 2.1 million samples, with 24 auxiliary geophysical logs available for each well, the selection of which depended on availability and statistical affinity with the target.
The data preprocessing step involved identifying and treating anomalous and unreliable values. Negative numbers were observed in naturally positive properties and inconsistent peaks. To mitigate these issues, any data below the lower 0.1% percentile or above the upper 99.9% percentile was replaced with a missing value. This approach resulted in the replacement of approximately 33,000 samples, avoiding the introduction of erroneous information into the models.
The selection of independent variables was based on Pearson’s statistical correlation with the target variable (Vs) and the abundance of valid samples. Variables with less than 40% of their samples filled were removed. The variables CALI, RDEP, RMED, NPHI, GR, RHOB, Z_LOC, BS, and VP were selected for model construction. The DEPTH_MD profile was excluded due to redundancy with Z_LOC, both representing depths.
For comparison purposes, two conventional methods were applied to estimate the Vs profile from compressional wave velocity (Vp). The Castagna et al. (1985) method uses the linear equation Vs = 0.862Vp – 1.172, based on laboratory experiments on clastic sedimentary rocks. The Han (1986) method adjusts this equation for a more comprehensive dataset, which incorporates a wider range of porosity and clay volume values, resulting in the equation Vs = 0.794Vp – 0.787.
The prediction of the Vs profile was performed using two tree-based machine learning algorithms: Random Forest and XGBoost. XGBoost (Extreme Gradient Boosting) operates with a set of decision trees, where each new tree is built to correct the errors of the previous ones, minimizing an objective function through gradient descent (Dietterich, 2000; Friedman, 2001; Chen & Guestrin, 2016). Random Forest is based on the “bagging” (bootstrap aggregating) technique, proposed by Breiman (1996), building multiple independent trees from random subsets of the training data, and combining their results through averaging to reduce variance (Xue et al., 2021).
The tree algorithms used have an intrinsic capability to handle missing data. Random Forest was configured to accept missing values, treating them as a type of binary histogram that the model learns to interpret (Scikit-Learn Developers, 2024). XGBoost, in turn, treats non-existent values as a separate entity, evaluating the gain by sending missing data to the left or right of a node, and choosing the direction that maximizes gain (Chen & Guestrin, 2016). This approach avoided the need for arbitrary imputations, preserving the reliability of the original data.
The performance of the algorithms was evaluated through hyperparameter tuning, using the GridSearchCV function, and cross-validation among the wells in the training set. The evaluation metrics used were the coefficient of determination (R²) and the root mean squared error (RMSE). The validation strategy used was Leave-One-Out Cross-Validation, where each training well was treated as an isolated sample for prediction and comparison with the actual value. This procedure allowed for verification of the consistency of data patterns across different wells.
All methodological steps, including quality control, preprocessing, model creation, training, validation, and prediction, were executed using the Python programming language. The development environment used was Jupyter Notebook. The Python libraries used included “os” for file manipulation, “numpy” and “pandas” for data analysis and manipulation, “lasio” for reading LAS files, “matplotlib” and “seaborn” for data visualization, and “scikit-learn” and “xgboost” for the implementation of machine learning techniques.
3. Results and Discussion
The prediction of shear wave velocity (Vs) was conducted in 70 wells in the Viking Graben, North Sea, evaluating the performance of four distinct approaches: the empirical methods of Castagna et al. (1985) and Han (1986), and the machine learning algorithms Random Forest and XGBoost. The choice of these methods allowed for a direct comparison between conventional techniques, which are widely used in the industry, and machine learning-based approaches, which represent a promising technological frontier for reservoir characterization. This comparative analysis is crucial for identifying more robust and efficient solutions in the face of operational challenges and the region’s geological complexity.
The hyperparameterization stage, applied exclusively to machine learning algorithms, proved fundamental for optimizing model performance. Although it is a process that demands considerable time due to the number of samples, a significant increase was observed in the coefficient of determination (R²), with an increase of 0.04 for Random Forest and 0.03 for XGBoost. The ideal parameters were identified using the GridSearchCV function, establishing for Random Forest a maximum depth (max_depth) of 10 and 200 estimators (n_estimators), while for XGBoost, a maximum depth of 6, 400 estimators, and a learning rate (learning_rate) of 0.01 were defined. This optimization is essential to ensure that machine learning models effectively capture data complexity, avoiding both underfitting and overfitting.
Well-to-well cross-validation, a robust technique known as Leave-One-Out Cross-Validation, clearly demonstrated the superiority of machine learning algorithms. XGBoost achieved an average coefficient of determination (R²) of 0.87, closely followed by Random Forest with R² of 0.85. In contrast, conventional methods showed significantly inferior results: Castagna et al. (1985) obtained an R² of 0.65, and Han (1986) recorded the lowest performance, with an R² of 0.41. These quantitative results highlight the ability of machine learning models to capture complex patterns in geophysical data, providing Vs predictions with greater accuracy and reliability compared to traditional empirical approaches.
Beyond cross-validation, the performance of the machine learning algorithms was evaluated using a standard split of 80% of the data for training and 20% for testing, where both algorithms achieved an R² of 0.96. This result, although obtained in a different validation scenario, reinforces the high predictive capacity of Random Forest and XGBoost under ideal training conditions. Additionally, the analysis of processing time revealed that XGBoost was the most efficient, completing training in just 3 minutes, while Random Forest took 45 minutes. The Castagna and Han methods were faster, at 0.7 and 0.6 minutes, respectively, but with substantially lower accuracy, as detailed in Table 1, which summarizes the performances and processing times of all evaluated methods.
A crucial aspect for the robustness of the models was the exclusion of six wells from the training dataset. These wells presented a very low or even negative R², indicating that their Vs profiles or auxiliary variables did not follow the expected pattern for the region. The decision to remove them was made to avoid inserting erroneous data into the training, which could compromise the models’ generalization capability. This measure resulted in a more consistent training set, composed of 32 wells and approximately 280,000 samples. From a technical standpoint, the low performance in specific wells can be attributed to measurement complications, either due to logging tool failures or well integrity issues, highlighting the importance of data quality control.
The importance analysis of the independent variables during the training of machine learning models revealed that the compressional wave velocity profile (Vp) was the most relevant. This observation is consistent with geophysical expectations, as Vp has a high positive correlation with Vs, being even the basis for the empirical methods of Castagna et al. (1985) and Han (1986). The importance of Vp for Vs prediction is fundamental knowledge in geophysics, and the machine learning models confirmed this relationship, while also integrating other auxiliary variables to further refine predictions, such as formation density (RHOB) and deep resistivity (RDEP), among others, as indicated by the variable importance analysis.
The visual comparison of predictions for an example well, 34_4-10 R, clearly illustrated the superiority of machine learning algorithms. It was observed that XGBoost and Random Forest presented a visually more accurate and consistent fit with the real Vs profile along various depths. Although the method by Castagna et al. (1985) also demonstrated considerable performance in terms of visual fit, Han’s (1986) prediction failed in several depth sections, exhibiting significant deviations from the real profile. This qualitative analysis complements the statistical results, reinforcing the effectiveness of machine learning models in reproducing the variability of the Vs profile with high fidelity.
The discrepancy in the performance of Han’s method (1986), which failed in several sections but performed better in some aspects, suggests that the empirical calculations may have “coincided” with reality due to randomness or a fortuitous similarity with the properties of the rock formations used in the author’s original approach. This observation highlights an inherent limitation of empirical methods: their calibration for specific geological conditions can restrict their applicability in other contexts. In contrast, machine learning algorithms, by learning complex patterns directly from historical data, demonstrate greater adaptability and robustness in different geological environments, overcoming the limitations of models based on pre-defined empirical relationships.
In summary, machine learning algorithms, particularly XGBoost and Random Forest, have proven to be highly effective alternatives for predicting shear wave velocity profiles in North Sea wells. They significantly outperformed conventional methods by Castagna et al. (1985) and Han (1986), offering greater accuracy and reliability. The exclusion of wells with inconsistent data and hyperparameter optimization were crucial steps for the robustness of the models. This intelligent approach not only optimizes the reservoir characterization process but also provides a replicable and efficient solution for obtaining reliable geophysical data, contributing to the reduction of operational costs and mitigation of risks associated with the direct acquisition of new Vs profiles.
4. Conclusion
The study aimed to predict the shear wave velocity profile in 70 wells located in the Viking Graben, North Sea, by comparing machine learning algorithms and conventional empirical methods. It was found that the machine learning algorithms, Random Forest and XGBoost, significantly outperformed the methods of Castagna et al. (1985) and Han (1986). XGBoost stood out as the best-performing model, achieving an average coefficient of determination of 0.87, while Random Forest obtained 0.85. In contrast, conventional methods showed inferior results, with Castagna registering 0.65 and Han 0.41. Optimization through hyperparameter tuning and the exclusion of wells with inconsistent data were crucial steps for the robustness and accuracy of the predictions. Compressional wave velocity (Vp) was identified as the independent variable of greatest relevance for the prediction of Vs.
The main contribution of this work lies in offering an efficient and replicable alternative for obtaining reliable geophysical data, optimizing reservoir characterization and mitigating the operational costs and risks associated with the direct acquisition of new Vs profiles. Although hyperparameterization may demand considerable time, the replicability and acceptable speed of the process, excluding this stage, demonstrate the viability of the approach. However, the quality of the input data and rigorous preprocessing are essential for the reliability of the models. For future studies, it is recommended to apply these algorithms to other sedimentary basins in order to validate their generalization and explore the combination of different auxiliary variables to further improve predictive performance.
Bibliographic References
Anemangely, M.; Ramezanzadeh, A.; Amiri, H.; Hoseinpour, S.A. 2019. Machine learning technique for the prediction of shear wave velocity using petrophysical logs. Journal of Petroleum Science and Engineering 174: 306–327.
Barclay, F.; Bruun, A.; Rasmussen, K.B.; Alfaro, J.C.; Cooke, A.; Cooke, D.; Roberts, R. 2008. Seismic inversion: Reading between the lines. Oilfield Review 20(1): 42–63.
Breiman, L. 1996. Bagging predictors. Machine Learning 24(2): 123–140.
Castagna, J.; Batzle, M.; Eastwood, R. 1985. Relationships between compressional-wave and shear-wave velocities in clastic silicate rocks. Geophysics 50: 571–581.
Chen, T.; Guestrin, C. 2016. XGBoost. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD’16).
Dietterich, T.G. 2000. An experimental comparison of three methods for constructing ensembles of decision trees: Bagging, boosting, and randomization. Machine Learning 40(2): 139-157.
Feng, R.; Grana, D.; Balling, N. 2021. Imputation of missing well log data by random forest and its uncertainty analysis. Computers & Geosciences 152: 104763.
Friedman, J.H. 2001. Greedy function approximation: A gradient boosting machine. The Annals of Statistics 29(5): 1189-1232.
Halland, E.K.; Mujezinovic, J.; Riis, F. 2014. CO2 Storage Atlas: Norwegian Continental Shelf. Norwegian Petroleum Directorate, Stavanger, Noruega.
Han, D.H. 1986. Effects of porosity and clay content on acoustic properties of sandstones and unconsolidated sediments. Ph.D. Thesis, Stanford University, Department of Geophysics, Stanford, EUA.
Lawal, A.; Yang, Y; He, H.; Baisa, N.L. 2024. Machine Learning in Oil and Gas Exploration – A Review. IEEE Access. PP. 1-1.
Scikit-Learn Developers. (2024). User Guide: HistGradientBoostingClassifier. In: Scikit-Learn: Machine Learning in Python.
Xue, L.; Liu, Y.; Xiong, Y.; Liu, Y.; Cui, X.; Lei, G. 2021. A data-driven shale gas production forecasting method based on the multi-objective random forest regression. Journal of Petroleum Science and Engineering 196.
Article originating from the Final Course Project of the Specialization in Data Science and Analytics of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform