Lithofacies Identification in Carbonate Reservoirs Using an Improved KNN Algorithm: A Case Study of the Mishrif Formation in the Halfaya Oilfield, Iraq

Accurate lithofacies identification in carbonate reservoirs is essential for reservoir characterization and development decision-making. However, the strong heterogeneity of carbonate rocks, nonlinear responses of well logging parameters, and imbalance among lithofacies samples significantly limit the performance of conventional machine learning methods. To address these challenges, an improved K-Nearest Neighbor (KNN) lithofacies identification method is proposed in this study using logging data from the Mishrif Formation in the Halfaya Oilfield, Iraq. A total of 600 samples from five wells (X1–X5) were used for model construction and validation. Four carbonate lithofacies types, including grainstone, packstone, wackestone, and marl, were identified based on core observation and thin-section analysis. Five logging parameters, including GR, AC, CNL, DEN, and RT, were selected to construct the feature space. A hybrid SMOTE–NearMiss-1 sampling strategy was introduced to alleviate class imbalance, while a feature-weighted Manhattan distance and distance-weighted voting mechanism were developed to improve the discrimination capability of KNN. The results show that the improved KNN model achieved an overall accuracy of 84.44%, outperforming the baseline KNN model (78.89%) as well as other comparison models, including Random Forest (RF, 76.67%) and Backpropagation Neural Network (BPNN, 75.56%). The area under the ROC curve (AUC) values for all lithofacies classes range from 0.917 to 0.989, indicating robust classification performance. In addition, balanced accuracy and macro-F1 score demonstrate improved recognition performance for minority lithofacies. The predicted lithofacies profiles show good agreement with the core interpretation results and effectively capture vertical lithofacies variations. This study demonstrates that the improved KNN method provides an effective data-driven approach for carbonate reservoir lithofacies characterization, especially under conditions of heterogeneous geological environments and limited labeled samples.

Authors

Institutions

Publication Details

Journal
Processes
Published
2026-07-24
DOI
https://doi.org/10.3390/pr14152389
Primary Topic
Hydrocarbon exploration and reservoir analysis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Lithofacies Identification in Carbonate Reservoirs Using an Improved KNN Algorithm: A Case Study of the Mishrif Formation in the Halfaya Oilfield, Iraq

Junhui Guo, Xiaodong Fan, Heng Guan, Shuyan Wei et al.
Processes
Hydrocarbon exploration and reservoir analysis
article

Lithofacies Identification in Carbonate Reservoirs Using an Improved KNN Algorithm: A Case Study of the Mishrif Formation in the Halfaya Oilfield, Iraq

Junhui Guo, Xiaodong Fan, Heng Guan, Shuyan Wei, Peng Zhu, Xiaobo Guo, Xin He, Keyong Chen
article en

Abstract

Accurate lithofacies identification in carbonate reservoirs is essential for reservoir characterization and development decision-making. However, the strong heterogeneity of carbonate rocks, nonlinear responses of well logging parameters, and imbalance among lithofacies samples significantly limit the performance of conventional machine learning methods. To address these challenges, an improved K-Nearest Neighbor (KNN) lithofacies identification method is proposed in this study using logging data from the Mishrif Formation in the Halfaya Oilfield, Iraq. A total of 600 samples from five wells (X1–X5) were used for model construction and validation. Four carbonate lithofacies types, including grainstone, packstone, wackestone, and marl, were identified based on core observation and thin-section analysis. Five logging parameters, including GR, AC, CNL, DEN, and RT, were selected to construct the feature space. A hybrid SMOTE–NearMiss-1 sampling strategy was introduced to alleviate class imbalance, while a feature-weighted Manhattan distance and distance-weighted voting mechanism were developed to improve the discrimination capability of KNN. The results show that the improved KNN model achieved an overall accuracy of 84.44%, outperforming the baseline KNN model (78.89%) as well as other comparison models, including Random Forest (RF, 76.67%) and Backpropagation Neural Network (BPNN, 75.56%). The area under the ROC curve (AUC) values for all lithofacies classes range from 0.917 to 0.989, indicating robust classification performance. In addition, balanced accuracy and macro-F1 score demonstrate improved recognition performance for minority lithofacies. The predicted lithofacies profiles show good agreement with the core interpretation results and effectively capture vertical lithofacies variations. This study demonstrates that the improved KNN method provides an effective data-driven approach for carbonate reservoir lithofacies characterization, especially under conditions of heterogeneous geological environments and limited labeled samples.

ProcessesVol. 14(15)
Chengdu University of Technology (CN), Daqing Oilfield General Hospital (CN)
Peace, Justice and strong institutions
Openalex Percentile: Top 14%
Hydrocarbon exploration and reservoir analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.