Article

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

You may also like

Executive Mba In Leadership And Management

November 23, 2026

Improvements in the efficiency of a secondary biological sludge drying plant

The management of industrial solid waste, especially secondary biological sludge, represented an operational and strategic challenge for a company in the pulp and paper sector. A secondary biological sludge drying plant, installed to meet environmental requirements and reduce costs, operated with low efficiency and high unavailability. The objective of this study was to evaluate and propose a set of actions to increase the operational availability of the plant, ensure the integral processing of the generated sludge, and reduce treatment and transportation costs, in addition to mitigating environmental risks. To this end, an analysis of the root causes of low efficiency was carried out, using tools such as the cause-and-effect diagram (Ishikawa) and the “5 whys” analysis, and hypotheses were tested to identify the most impactful factors. Three main root causes were identified: addition of low-load effluent to the process, absence of a dedicated maintenance team, and lower consistency of dewatered sludge. The proposed countermeasures, which included stopping the addition of effluent, hiring a maintenance team, and testing polymers, had a monthly implementation cost of R$ 35,000.00. An annual reduction in operating expenses of up to R$ 1,800,000.00 and maintenance costs of R$ 600,000.00 was estimated, in addition to a 25% reduction in operational unavailability. It was concluded that the proposed measures are viable, quick to implement, and capable of ensuring the integral processing of secondary biological sludge, strengthening the company’s ESG strategy and ensuring environmental compliance.

Keywords: Operational costs; Operational efficiency; ESG; Biological sludge; Sludge drying.

Data Science And Analytics For Operations

November 19, 2026

Polyp-YOLO: an efficient, low-latency detector for polyps in colonoscopies

The early detection of colorectal polyps is crucial for the prevention of colorectal cancer, and real-time computer-aided detection (CADe) systems have shown gains in endoscopic practice. The objective was to develop and validate a lightweight colorectal polyp detector, based on the YOLO architecture, capable of operating on restricted hardware with high precision and low latency. The methodology used public datasets of endoscopic images, partitioning the Kvasir-SEG dataset for training and internal validation, and CVC-ClinicDB and ETIS-Larib Polyp DB for cross-dataset evaluation. Lightweight variants of the YOLOv8, YOLO11, and YOLO26 families with 640×640 pixel input were evaluated. A grid search tested 70 combinations of optimizers and activation functions, and identified AdaBelief and LeakyReLU as the configuration with the best generalization. The optimization pipeline applied unstructured pruning, knowledge distillation, and fine-tuning. The optimized YOLO11n-seg model outperformed the higher-capacity architecture (YOLO26m-seg) in mAP50 and showed similar performance in F1-Score, operating with approximately seven times fewer parameters. It achieved an mAP50 of 0.7929 and an F1-Score of 0.7514 on the ETIS-Larib dataset, and fast inference was demonstrated in different formats, with real-time latencies. The explainability of predictions was validated by Grad-CAM activation maps. The proposed solution demonstrated itself to be a promising experimental tool for diagnostic support, with technical feasibility for integration into environments with reduced computational power, although it requires future clinical validation.

Keywords: Computer-aided detection; Edge computing; Hyperparameter optimization; Endoscopic image segmentation; Medical computer vision.

Data Science And Analytics For Operations

November 19, 2026

Multi-touch Attribution in E-commerce: A Comparison between Markov Chains and Last-Click

The research investigated Multi-touch Attribution (MTA) Models in e-commerce, seeking to overcome the limitations of the Last-Click model, widely used in the market. The objective was to compare the performance of first-order Markov Chains with Last-Click and Position-Based approaches, identifying the value of assistance channels frequently ignored. To this end, Markov Chain algorithms were applied to a large volume of purchase journey data from the Google Merchandise Store, extracted via BigQuery. The study probabilistically mapped the purchase journey and calculated the Removal Effect to quantify channel relevance. The results demonstrated that data-driven models identified the strategic role of discovery (awareness) and assistance channels, which Last-Click neglected in 65% of complex journeys. Simulated financial analysis indicated an approximate 28% hidden efficiency in Cost Per Acquisition (CPA) for Paid Search, compared to the Last-Click model. It was concluded that Markov Chains allowed for a more accurate mapping of purchase journeys, validating the technical feasibility of the modeling and providing evidence for more efficient budget allocation in digital media, mitigating the risk of early divestment in crucial channels.

Keywords: Assistance channels; Data science; E-commerce; Digital marketing; Media optimization.

Project Management

November 19, 2026

Integrated Software for Operational Communication and Control: Practical Evidence in a Medium-Sized Company

The study analyzed the impacts of the lack of integration between commercial and operational modules of an integrated management software (ERP/CRM) in a medium-sized company in the mechanical engineering sector. The main objective was to evaluate practical evidence of communication and operational control optimization, identify bottlenecks, and formulate improvement proposals. A qualitative-quantitative approach was adopted through a single case study with documentary research, based on the extraction and filtering of historical task records from the Bitrix24 software and statistical correlation analysis between workload and allocated team. Based on the diagnosis, an action plan structured in the 5W2H tool was developed. The results revealed that 54.4% of the registered tasks consisted of duplicate, test, or practically useless records, generated by manual insertion during the scope transition between commercial CRM and engineering. It was also demonstrated that the increase in the commercial team linearly accompanied the growth of inefficient tasks, polluting the database and masking the organization’s real productive capacity. It was concluded that the automation of workflows and native integration between modules are essential to mitigate operational and financial risks, providing replicable guidelines for data governance in small and medium-sized enterprises.

Keywords: System Customization; Enterprise Resource Planning (ERP); Task Management; Management Software.

Project Management

November 19, 2026

Supervised learning in voltammetric quantification with electrochemical sensors

The application of supervised learning in the voltammetric quantification of paraquat in artificial urine was evaluated. The study aimed to quantitatively assess the predictive performance of supervised learning models compared to a univariate “baseline”, preserving independence between devices in the training and testing sets. The research was conducted as an applied case study, processing data from four physical devices, each evaluated under a blank condition and six paraquat concentration levels, totaling 28 square wave voltammetry (SWV) curves. A computational “pipeline” integrated automated file reading, organization of curves into current-potential matrices, generation of potential maps, and device-specific blank correction. Five approaches were considered: conventional univariate calibration, predictive univariate “baseline”, partial least squares (PLS) regression, support vector regression (SVR), and random forest (RF). Predictive evaluation was performed using device-grouped cross-validation. PLS showed the best predictive performance for curves from a device not used in training, with an R² of 0.7981. RF exhibited intermediate performance, while SVR and the predictive univariate “baseline” showed inferior and similar performance between themselves. It was concluded that a compact multivariate representation of the voltammetric profile was more favorable for inter-device prediction than increasing model flexibility under the studied conditions. Grouped validation preserved independence, but the limited number of devices restricts the generalization of results.

Keywords: Supervised learning; Paraquat; PLS; Electrochemical sensors; Square wave voltammetry.

Project Management

November 19, 2026

Improvement of Inventory Management via Lean Six Sigma: Study in the Paper Industry

Organizations seek methodologies to reduce waste, increase efficiency, and become more competitive, promoting sustainable improvements in their processes. In this context, the study aimed to apply the Lean Six Sigma methodology, through the DMAIC cycle, to improve inventory management in a company in the paper industry manufacturing pneumatic hoses, aiming to increase the accuracy between physical and systemic inventories and improve the visual management of parts storage. The research was developed from the collection and analysis of data extracted from the company’s ERP system. Tools such as SIPOC, Ishikawa Diagram, and 5 Whys were used to define and identify the root cause of the problem. As improvement proposals, a Digital Kanban system and an adaptation of the Two-Bin system, called the Three-Bin System, were implemented, in addition to the development of standardized operating procedures and the establishment of control mechanisms. The results demonstrated a significant improvement in inventory accuracy, raising the lowest identified index from 28% to 80%, and detected discrepancies between systemic and physical records equivalent to R$ 134,335.53. It was concluded that the application of Lean Six Sigma, combined with Project Management, represented an effective approach for conducting operational improvement projects, contributed to increased reliability of inventory information, to the improvement of material control processes, and to the strengthening of the organization’s operational management.

Keywords: Inventory accuracy; DMAIC; Visual management.

Data Science And Analytics For Operations

November 19, 2026

Predictive Analysis Methodology for Performance Optimization in E-commerce: Correlation between Public Data and Paid Media

A predictive analysis methodology was developed for e-commerce, integrating transactional data and public search trends. The objective was to develop and validate a predictive model, based on machine learning algorithms, capable of correlating organic search trends with sales performance and paid media costs in the Beauty and Health category of Brazilian e-commerce. The Brazilian E-Commerce Public Dataset by Olist and data from Google Trends were used, processed in Python with the Random Forest Regressor algorithm. A moderate inverse correlation (r = -0.43) with a seven-day lag was identified between organic search volume and purchase. Initial models, based solely on behavioral variables, presented insufficient metrics (R² = -0.47; MAE of R$ 2,120.54). The incorporation of microeconomic (average ticket and shipping) and macroeconomic (exchange rate and Ibovespa index) variables raised the R² of the final model to 0.29, with an MAE of R$ 1,489.63, representing a 24.7% reduction in error compared to the baseline. Temporal cross-validation showed that, in periods of mature operation (2018), the model achieved an R² of 0.42. It was concluded that isolated search volume explains the moment of consumer interest, but not the financial magnitude of sales, making the fusion with transactional and economic data mandatory for predictive viability.

Keywords: Beauty and Health; Consumer Behavior; Google Trends; Machine Learning; Time Series.