A Multi-Stage Data-Driven Process for Magnetic Azimuth Error Compensation in Horizontal Wells Under Complex Magnetic Environments
Open Access
Abstract
With the increasing use of horizontal wells in oil and gas development, measurement-while-drilling (MWD) systems require higher magnetic azimuth accuracy to ensure precise trajectory control. This study proposes a three-stage magnetic azimuth error compensation method based on multi-station analysis (MSA). First, the OPTICS clustering algorithm is utilized to identify and remove noise points, and ellipse fitting is applied to suppress radial magnetic interference. Second, an improved MSA model incorporating wellbore trajectory constraints is developed to minimize axial interference and enhance correction stability. Finally, a Gaussian Process Regression (GPR) model, using accelerometer and magnetometer data as features, is introduced to model and compensate for residual nonlinear errors. Experimental validation under simulated complex magnetic conditions shows that OPTICS-based preprocessing significantly improves ellipse fitting and reduces hard magnetic interference. The improved MSA lowers the mean azimuth error to approximately 2.5°, while integrating GPR further decreases it to below 0.04°. The proposed GPR model achieves an R2 of 0.99972 and an RMSE of 0.02928° on the test set, confirming its strong nonlinear compensation capability. Overall, the proposed framework effectively suppresses magnetic interference and enhances azimuth accuracy, providing a robust solution for high-precision MWD applications in horizontal wells.Keywords
Funding Information
- Wuhan Science and Technology Achievement Transformation Project (2024030803010164)
- Major Science and Technology Project of Tibet Autonomous Region (XZ202402ZD0008)
- Open Research Fund of Hubei Key Laboratory of Oil and Gas Drilling and Production Engineering (YQZC202514)
This publication has 34 references indexed in Scilit:
- Azimuth calibration based on equal angle balance correction algorithm for measurement-while-drilling systemMeasurement, 2023
- Near-Vertical Attitude Determination Based on Balance CorrectionIEEE Transactions on Instrumentation and Measurement, 2021
- Magnetization influence analysis of the casing and drill pipe in shale gas dual horizontal well Rotating Magnet Ranging System drilling processEnergy Science & Engineering, 2020
- Soft sensing of magnetic bearing system based on support vector regression and extended Kalman filterMechatronics, 2014
- Unconventional oil and gas resource development – Let’s do it rightJournal of Unconventional Oil and Gas Resources, 2013
- Density-based community detection in social networks2011
- Gaussian process regression bootstrapping: exploring the effects of uncertainty in time course dataBioinformatics, 2009
- Calibration of Strapdown Magnetometers in Magnetic Field DomainJournal of Aerospace Engineering, 2006
- A low-cost GPS/inertial attitude heading reference system (AHRS) for general aviation applications2002
- Direct least square fitting of ellipsesIEEE Transactions on Pattern Analysis and Machine Intelligence, 1999