基于KNN-Transformer算法的密度测井曲线重构方法OA
Density Logging Curve Reconstruction Method Based on KNN-Transformer Algorithm
密度测井是计算储层物性参数、识别岩性及评价油气储量的关键技术.受井眼环境、仪器贴壁状况等因素影响,密度曲线常出现局部缺失、数据失真或噪声干扰等问题.为此,提出一种融合 K 近邻(K-Nearest Neighbors,KNN)算法与Transformer算法的密度测井曲线重构方法KNN-Transformer.该方法首先利用KNN在多元测井特征空间中检索与目标段时间序列沉积特征相似的样本,通过计算目标段与历史样本在声波时差、自然伽马、电阻率等多维特征上的欧氏距离,筛选出最相似的K个邻域样本,构建增强的地质先验输入集,增强输入数据的地质代表性,进而采用 Transformer 算法的多头自注意力机制,建立深度序列间任意位置的长程依赖关系,有效融合局部相似性约束与全局序列模式,实现局部特征与全局结构的协同表达.实验结果表明,KNN-Transformer算法密度测井曲线重构的结果平均绝对误差为 0.017 0,决定系数R2达 0.953 3,其与支持向量回归、线性回归及长短期记忆(Long Short-Term Memory,LSTM)网络等典型算法相比,平均绝对误差降低30%~60%,对密度测井曲线总体趋势与局部细节均具有更高的重构精度,并在岩性界面及复杂层段表现出更好的稳定性与正确性.该方法有效修复了密度曲线的局部缺失,校正了数据失真并抑制了噪声干扰,显著提升了重构曲线的数值精度与地质合理性,为复杂储层条件下的测井数据高质量重建提供了可靠的技术途径.
Density logging is a key technique for calculating reservoir physical parameters,identifying lithology,and evaluating oil and gas reserves.Due to factors such as borehole conditions and poor tool contact,density curves often suffer from local data gaps,distortion,or noise interference.To address these issues,this paper proposes a density logging curve reconstruction method that integrates the K-nearest neighbors algorithm and the Transformer algorithm(KNN-Transformer).The method first employs KNN to retrieve samples with temporal sedimentary characteristics similar to the target segment within a multi-dimensional logging feature space.By calculating the Euclidean distance between the target segment and historical samples across multi-dimensional features such as acoustic travel time,natural gamma ray,and resistivity,the K most similar neighboring samples are selected to construct an enhanced geological prior input set,thereby improving the geological representativeness of the input data.Subsequently,the multi-head self-attention mechanism of the Transformer algorithm is utilized to establish long-range dependencies between arbitrary positions in the depth sequence,effectively integrating local similarity constraints with global sequential patterns.This achieves a synergistic representation of local features and global structures.Experimental results show that the KNN-Transformer algorithm achieves a mean absolute error(MAE)of 0.017 0 and a coefficient of determination(R2)of 0.953 3 for density curve reconstruction.Compared to typical algorithms such as support vector regression(SVR),linear regression,and long short-term memory(LSTM),the value of MAE is reduced by 30%to 60%.The method demonstrates higher reconstruction accuracy for both the overall trend and local details of the density logging curve,along with better stability and correctness at lithological interfaces and in complex intervals.This approach effectively recovers missing sections,corrects distortions,and suppresses noise,significantly improving both the numerical accuracy and geological plausibility of the reconstructed curves.It provides a reliable technical pathway for high-quality logging data reconstruction under complex reservoir conditions.
苏俊磊;董旭;曾渝;史文祺;石雪莹;刘沛东;刘坤
页岩油气富集机理与高效开发全国重点实验室,北京 102206||中国石油化工股份有限公司石油勘探开发研究院,北京 102206东北石油大学非常规油气研究院,黑龙江 大庆 163318||多资源协同陆相页岩油绿色开采全国重点实验室,黑龙江 大庆 163318东北石油大学非常规油气研究院,黑龙江 大庆 163318东北石油大学非常规油气研究院,黑龙江 大庆 163318东北石油大学非常规油气研究院,黑龙江 大庆 163318东北石油大学非常规油气研究院,黑龙江 大庆 163318页岩油气富集机理与高效开发全国重点实验室,北京 102206||中国石油化工股份有限公司石油勘探开发研究院,北京 102206
天文与地球科学
密度测井K近邻Transformer曲线重构深度学习注意力机制序列建模
density loggingKNN(K-nearest neighbors)Transformercurve reconstructiondeep learningattention mechanismsequence modeling
《测井技术》 2026 (1)
87-96,10
国家自然科学基金青年基金项目"孔隙流体赋存状态对回注气高效动用页岩油的影响机理研究"(42204131)国家科技重大专项课题"煤岩气富集规律与地质工程甜点评价"(2025ZD1404202)黑龙江省优秀青年基金项目"CO2-油-水耦合作用下的古龙页岩油动用规律研究"(YQ2023D004)
评论