Abstract:To address the nonlinear drift of carbon–oxygen ratio energy spectra caused by high-temperature, high-pressure, and low signal-to-noise ratio (SNR) conditions in deep open-hole wells, as well as the limitations of traditional correction methods that rely on fixed reference peaks and exhibit insufficient robustness in weak spectral peak identification, a spectral drift correction method integrating dual-domain feature analysis and an Adaptive Sand Cat Swarm Optimization (ASCSO)-optimized Siamese Neural Network (SNN) was proposed. First, a four-channel dual-domain fused feature was constructed using continuous wavelet transform combined with multi-scale adaptive regulation, curvature enhancement, and energy concentration modeling, thereby enhancing the structural representation capability of weak spectral peaks under low SNR conditions. Subsequently, the sand cat swarm optimization algorithm was improved by introducing reverse learning initialization, adaptive weighting, and stochastic perturbation mechanisms, enabling global optimization of SNN hyperparameters. Finally, model training and validation were performed using field-measured oilfield data, achieving full-spectrum nonlinear drift correction without relying on fixed reference peaks. The results show that, based on 768 groups of field spectral peak samples, the ASCSO-SNN model achieves a spectral peak matching accuracy of 95.27%, a channel shift RMSE of only 0.32 channels, a full-spectrum correlation coefficient of 0.961, and a Micro-ROC AUC value of 0.963. Compared with traditional single-peak and dual-peak stabilization methods, the CWT-based peak detection method, and the original SCSO-SNN model, the proposed method demonstrates significantly improved accuracy and effectively adapts to complex open-hole logging conditions.