Deep beneath the Ordos Basin of north-central China, in a slice of Triassic rock known as the Chang 73 Sub-Member, geologists have long struggled with a deceptively simple question: what kind of rock are we looking at? Now, a team of Chinese researchers has demonstrated that artificial intelligence, combined with clever image repair and texture analysis, can answer that question with unprecedented reliability, even in some of the most geologically messy conditions imaginable. The study, published in Earth Science Informatics, describes an automated workflow that accurately identifies rock types from electrical image logs in a lacustrine shale oil reservoir notorious for its thin, interbedded layers and widespread volcanic ash contamination.
The challenge the researchers set out to solve is one of the persistent bottlenecks in reservoir evaluation. Conventional well logs, which measure properties such as gamma radiation, resistivity, and density along a borehole, offer broad coverage but suffer from limited vertical resolution. In a formation like the Chang 73 Sub-Member, where individual layers can be only centimeters thick and where volcanic ash has altered the chemical signatures of many rocks, these coarse measurements simply cannot keep pace with the geological complexity. Electrical image logging offers a way out. By pressing arrays of electrodes against the borehole wall, these tools produce high-resolution maps of electrical conductivity that reveal fine-scale textures, bedding features, and structural details invisible to conventional logs. The images are, in effect, a photographic record of the rock one millimeter at a time.
Yet even electrical image logs come with a catch. The electrode pads do not cover the entire circumference of the wellbore, leaving vertical blank strips in every image, gaps where no data were recorded. These blanks degrade image quality and can badly mislead any automated classification system that relies on texture, since the missing regions interrupt the very patterns the algorithm needs to learn. The research team, led by Jiaqi Li of Northwest University and including collaborators from PetroChina Changqing Oilfield, China National Logging Corporation, and Tangshan University, tackled this problem head-on with generative adversarial networks, or GANs. First introduced in 2014, GANs pit two neural networks against each other: one generates synthetic content while the other tries to distinguish it from real data. In this application, the generative network learned to fill in the blank strips of the electrical images with plausible synthetic textures, effectively repairing the damaged images before any analysis began.
With repaired images in hand, the team moved to the heart of the workflow: extracting quantitative texture descriptors. Rather than feeding raw pixels into a classifier, the researchers translated each image into a set of numerical features drawn from three complementary families of texture analysis. The gray-level co-occurrence matrix, a technique dating back to a landmark 1973 paper by Haralick and colleagues, captures statistical relationships between neighboring pixels, quantifying properties such as contrast, homogeneity, and entropy that distinguish smooth shale from rougher volcanic tuff. Tamura features, developed in 1978 to mimic human visual perception, add measures of coarseness, directionality, and regularity that correspond to how a geologist’s eye would perceive the rock fabric. Local binary patterns, introduced in 1996, encode fine-scale texture by comparing each pixel with its neighbors and recording the resulting binary code, providing robustness to changes in illumination and contrast.
This initial feature extraction produced a large pool of candidate descriptors, but more variables are not always better. Redundant or highly correlated features can confuse machine learning models and inflate the apparent importance of what are essentially duplicate pieces of information. The researchers applied correlation analysis and variance inflation factor analysis, a standard statistical technique for detecting multicollinearity, to prune the feature set down to six optimized texture descriptors. These six variables became the final inputs to the classification engine, a lean and focused representation of each rock’s electrical texture that captured the essential differences between shale, tuff, sandstone, and the other lithologies present in the interval.
The classification architecture itself is where the study makes its most distinctive contribution. The team built a stacking ensemble, a strategy in which multiple different machine learning models are trained on the same data and a second-level model learns to combine their predictions optimally. Stacked generalization was first formalized by David Wolpert in 1992, and it remains one of the most reliable ways to squeeze extra accuracy from a collection of otherwise ordinary classifiers. As base learners, the researchers deployed Random Forest, an ensemble of decision trees known for its robustness; eXtreme Gradient Boosting, or XGBoost, a highly efficient boosting algorithm that has dominated structured-data competitions; and a Multilayer Perceptron, a classic feedforward neural network. LightGBM, a fast gradient boosting framework, served as the meta-learner, receiving the outputs of the three base models and producing the final lithology decision.
Before the stacked ensemble even saw the data, however, the six texture descriptors passed through one more stage: a lightweight attention module inspired by the Convolutional Block Attention Module, or CBAM, published in 2018. Attention mechanisms have transformed deep learning by allowing networks to dynamically emphasize the features that matter most for a given decision while suppressing those that do not. In this study, the CBAM-inspired module adaptively reweighted the six texture descriptors for each sample, effectively teaching the model that, for example, coarseness might be decisive for separating shale from tuff in one depth interval while contrast carries the diagnostic weight in another. The researchers describe the module as lightweight precisely because it operates on a handful of features rather than on raw images, keeping computational cost low while still delivering the benefits of adaptive attention.
The performance results are striking. Tested on an independent field well, data the model had never seen during training, the proposed workflow achieved an overall accuracy of 0.81, outperforming the best individual base learner by roughly three percentage points. That margin may sound modest, but in lithology classification, where the distinction between adjacent thin beds can determine whether a reservoir interval is deemed productive, even a few percentage points translate into substantial economic and scientific value. More importantly, the model proved especially reliable for two of the most challenging rock types in the formation: shale and tuff. Tuff, formed from compacted volcanic ash, presents textures that overlap with other fine-grained rocks, and its presence signals the volcanic-ash interference that has complicated conventional log interpretation throughout the basin. The system’s ability to consistently distinguish ash-affected lithologies suggests that it has learned genuinely diagnostic texture signatures rather than superficial image quirks.
The geological setting explains why this matters far beyond a single borehole. The Ordos Basin hosts one of China’s most important continental shale oil systems, and the Chang 7 Member of the Triassic Yanchang Formation is its principal source rock. Within this member, the Chang 73 Sub-Member records a complex lacustrine history in which organic-rich shales accumulated alongside volcanic ash falls, turbidite sands, and thin interbedded layers of varying composition. Understanding exactly where each lithology lies is essential for evaluating the reservoir, because rock type controls porosity, permeability, brittleness, and oil content. Misidentifying a tuff as shale, or missing a thin sand interbed, can lead exploration teams astray. Previous efforts to apply machine learning to electrical image logs had achieved promising results in other basins, including the Jiyang Depression, but the combination of volcanic-ash contamination and extreme thin-bedding in the Chang 73 interval had remained a stubbornly difficult case.
The workflow’s design reflects a broader trend in applied geoscience: rather than replacing human expertise with a single monolithic deep learning model, the most successful systems combine domain-informed feature engineering with carefully chosen algorithmic tools. By explicitly repairing the known weakness of electrical image data through GAN-based inpainting, by selecting texture features with clear physical and perceptual meaning, and by using statistical rigor to eliminate redundant variables before classification, the researchers built a pipeline in which each step addresses a specific, well-understood problem. The stacking architecture then extracts maximum value from the curated features, while the attention module adds adaptability without computational burden. The result is a workflow that the authors present as effective and fully automated for lithology identification in volcanic-ash-influenced lacustrine shale oil reservoirs.
The implications extend well beyond the East Gansu region. Electrical image logging is used worldwide, and blank strips from incomplete borehole coverage are a universal artifact of the technology. Any operational setting, from carbonate platforms to volcanic gas fields, faces similar challenges of thin interbedding and texturally similar lithologies. A framework that combines image repair, multi-scale texture quantification, and attention-weighted ensemble classification could be adapted to these contexts with relatively modest retraining. As shale oil exploration intensifies in continental basins across Asia and beyond, tools that can reliably read the fine-grained story written in borehole images will become increasingly valuable. This study demonstrates that the combination of generative image restoration and modern machine learning is not merely a laboratory curiosity but a practical instrument for decoding the subsurface, one centimeter of rock texture at a time.
Cite Scienmag News
Violet Maxwell. (September 10, 2026). Machine learning identifies rock types from electrical image logs in Ordos Basin. Scienmag. https://scienmag.com/machine-learning-identifies-rock-types-from-electrical-image-logs-in-ordos-basin/
Violet Maxwell. "Machine learning identifies rock types from electrical image logs in Ordos Basin." Scienmag, 10 September 2026, https://scienmag.com/machine-learning-identifies-rock-types-from-electrical-image-logs-in-ordos-basin/. Accessed 10 September 2026.
Violet Maxwell. "Machine learning identifies rock types from electrical image logs in Ordos Basin." Scienmag. September 10, 2026. https://scienmag.com/machine-learning-identifies-rock-types-from-electrical-image-logs-in-ordos-basin/

