Next Article in Journal
A Safe Maritime Path Planning Fusion Algorithm for USVs Based on Reinforcement Learning A* and LSTM-Enhanced DWA
Previous Article in Journal
Attention-Guided Track-Pulse-Sequence Target Association Network
Previous Article in Special Issue
Multi-Scale Adaptive Light Stripe Center Extraction for Line-Structured Light Vision Based Online Wheelset Measurement
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Data-Augmented Deep Learning for Downhole Depth Sensing and Validation

by
Si-Yu Xiao
1,
Xin-Di Zhao
2,
Tian-Hao Mao
1,
Yi-Wei Wang
1,
Yu-Qiao Chen
1,
Hong-Yun Zhang
2,
Jian Wang
2,
Jun-Jie Wang
1,
Shuang Liu
1,
Tu-Pei Chen
3 and
Yang Liu
1,*
1
Micro-nano Integrated Circuit and System Laboratory, University of Electronic Science and Technology of China, Chengdu 611731, China
2
Southwest Branch of China National Petroleum Corporation Logging Co., Ltd., Chongqing 401100, China
3
School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore 639798, Singapore
*
Author to whom correspondence should be addressed.
Sensors 2026, 26(3), 775; https://doi.org/10.3390/s26030775
Submission received: 8 December 2025 / Revised: 16 January 2026 / Accepted: 17 January 2026 / Published: 23 January 2026
(This article belongs to the Special Issue Intelligent Sensors and Signal Processing in Industry)

Abstract

Accurate downhole depth measurement is essential for oil and gas well operations, directly influencing reservoir contact, production efficiency, and operational safety. Collar correlation using a casing collar locator (CCL) is fundamental for precise depth calibration. While neural network has achieved significant progress in collar recognition, preprocessing methods for such applications remain underdeveloped. Moreover, the limited availability of real well data poses substantial challenges for training neural network models that require extensive datasets. This paper presents a system integrated into a downhole toolstring for CCL log acquisition to facilitate dataset construction. Comprehensive preprocessing methods for data augmentation are proposed, and their effectiveness is evaluated using baseline neural network models. Through systematic experimentation across diverse configurations, the contribution of each augmentation method is analyzed. Results demonstrate that standardization, label distribution smoothing (LDS), and random cropping are fundamental prerequisites for model training, while label smoothing regularization (LSR), time scaling, and multiple sampling significantly enhance model generalization capabilities. Incorporating the proposed augmentation methods into the two baseline models results in maximum F1 score improvements of 0.027 and 0.024 for the TAN and MAN models, respectively. Furthermore, applying these techniques yields F1 score gains of up to 0.045 for the TAN model and 0.057 for the MAN model compared to prior studies. Performance evaluation on real CCL waveforms confirms the effectiveness and practical applicability of our approach. This work addresses the existing gaps in data augmentation methodologies for training casing collar recognition models under CCL data-limited conditions, and provides a technical foundation for the future automation of downhole operations.

1. Introduction

Accurately positioning downhole toolstrings (including perforating guns, bridge plugs, and packers) is essential in modern oil and gas well operations, directly affecting maximum productivity and operational safety [1]. Central to this task is precise downhole depth measurement, a challenge compounded by the extreme geometries of wellbores, as shown in Figure 1 organized from [2], which often span thousands of meters in length while maintaining diameters of only a few inches [3].
While surface wheel measurement (SWM) method offers a cost-effective means of estimating depth via a depth measuring head (DMH) as the toolstring descends during wireline intervention operations, it is susceptible to errors induced by cable slippage and elastic stretch. Furthermore, SWM is inapplicable to emerging operations such as wireless perforating. Consequently, to achieve accurate depth measurement in the absence of a DMH, depth correction using a casing collar locator (CCL, a magnetic downhole positioning tool that detects magnetic anomalies at the casing collars of wellbores or pipes) is fundamental [4]. The CCL produces a characteristic magnetic response as an electrical signal when passing through each collar [4,5,6], termed a “CCL response” or “collar (magnetic) signature”. The characteristic magnetic response pattern typically exhibits a bipolar signature, as illustrated by dark blue waveforms in Figure 1. Through collar correlation, which refers to tying-in CCL logs with casing tally, depth reference markers are established, enabling actual and accurate depth measurement [6,7]. The casing tally, also known as the list of collars or casing string reference depths, records the depths of casing collars and is commonly extracted from cementing quality data.
While collar correlation using CCL logs is an established method, collar signature recognition presents significant challenges. CCL signal integrity can be severely compromised by multiple factors, including cable effects, wellbore conditions [8], toolstring motion (swing or rotation), amplifier saturation, and environmental noise [7,9]. Consequently, collar signature waveforms become increasingly ambiguous, necessitating robust recognition of collar signatures amid various interferences, as illustrated by dark green waveforms in Figure 1.
Various signal processing techniques have been developed to identify collar signatures under interference conditions. Traditional methods include fixed or dynamic thresholding [2,10], digital filters and template-based cross-correlation [11], time–frequency domain techniques such as Fourier or wavelet transforms [12], and physical plausibility filters [2,4]. However, these approaches exhibit limited generalizability [9,13]. With the emergence of machine learning, researchers have increasingly employed deep neural networks to automate collar signature recognition. These developments include convolutional neural networks (CNNs) and long short-term memory networks (LSTMs) [14,15,16], Additionally, advanced architectures such as transformer models [17] and physics-informed neural networks (PINNs) [18] have been proposed for related fields such as downhole signal classification, anomaly detection, and denoising tasks [13,19,20,21,22].
Nevertheless, significant challenges persist. Neural networks require substantial volumes of labeled training data, which are often unavailable or difficult to obtain in downhole environments [14,23]. This scarcity means that the available data for training collar recognition neural networks are considerably less than those for other tasks such as face recognition or image classification. Therefore, efficiently utilization of existing data is indispensable.
The limited sample amount and unique characteristics of CCL log data necessitate specialized preprocessing methods for neural network training. However, research on preprocessing methods remain scarce, despite extensive work on collar signature recognition [4,9,11,12,13,14,17,18,19]. Fortunately, extensive work exists on data augmentation for preventing overfitting and improving generalizability when training on small datasets. Data normalization methods—including min–max scaling, Z-score normalization (standardization), and robust scaling—demonstrate important roles in stabilizing input distributions and gradients, preventing vanishing and exploding gradients, and ultimately accelerating training convergence [24,25,26,27]. Label smoothing regularization (LSR) and label distribution smoothing (LDS) discourage overconfident predictions, thereby enhancing model generalizability [28,29]. Similarly, employing probability maps for boundary prediction instead of one-hot encoding (OHE) labels through boundary probabilization transforms the training objective from single-point prediction to probability distribution estimation, enabling models learn smooth and fuzzy decision boundaries that are more resistant to noise or perturbations [15,28,30]. Notably, Gaussian kernel often deliver optimal results in LDS applications [28]. Furthermore, graph augmentation techniques including randomly cropping, scaling, translation, and noise injection expand training datasets while improving model generalizability and robustness [31,32].
The main contributions of this paper are as follows:
  • We develop a system integrated into downhole toolstring, called the Signal Collecting Vessel (SCV), illustrated in Figure 2. The SCV samples raw CCL signals downhole and converts them to digital format, and stores them as waveforms for dataset construction.
  • We propose two neural networks models for collar signature recognition that serve as baselines for evaluating data preprocessing methods, as illustrated in Figure 3. The first model, Thin AlexNet (TAN), is modified from AlexNet—a classic and proven architecture in pattern recognition. The second model, Miniaturized AlexNet (MAN), is a simplified version of TAN with fewer layers.
  • We propose several data augmentation methods for preprocessing original waveforms to enhance model training performance, including normalization, label distribution smoothing (LDS), label smoothing regularization (LSR), time scaling, cropping and translation, amplitude jittering, noise injection, and multiple sampling.
  • We conduct extensive experiments across various configuration combinations with filed CCL logs to validate our methods. Results demonstrate that standardization, LDS, and random cropping are fundamental requirements for models training, while LSR, time scaling, and multiple sampling significantly enhance model generalization capability.

2. Methods

2.1. Problem Transformation

As previously discussed, accurate downhole toolstring positioning via collar correlation relies on the correct identification of bipolar patterns (i.e., collar signatures) within CCL logs. The centroid of each bipolar pattern is typically designated as the instant the CCL coincides with a casing collar. In the absence of DMH assistance (specifically, without the depth indexing commonly utilized in wireline logging), time-series CCL logging becomes the requisite approach.
Field practice demonstrates that collar signatures are identifiable primarily through local waveform characteristics in the vicinity of the collar, rendering distant signal features negligible. Consequently, analyzing CCL log fragments via an appropriately sized sliding window is an effective strategy, aligning with methodologies proposed in [15,16]. Furthermore, when raw CCL signals are sampled at a fixed frequency, absolute timestamps within the sliding windows become redundant; that is, the raw waveform sequence alone conveys sufficient information.
As shown in Figure 1, the casing tally, which provides a series of depths, correlates to the centroids of collar signatures (hereafter referred to as “collar marks”) on the temporal axis. The most direct representation of collar marks in CCL waveforms is one-hot encoding (OHE), where a value of 1 indicates the presence of a collar mark and 0 indicates its absence. This formulation frames collar mark prediction as a binary classification task.
However, collar marks exhibit extreme sparsity: background samples (0s) outnumber target samples (1s) by several orders of magnitude, resulting in severe class imbalance. In backpropagation neural networks (BPNNs), this imbalance leads to sparse gradients and uneven penalty distribution, causing training instability and slow convergence. Consequently, training an effective classifier becomes computationally challenging. To mitigate this, OHE is replaced by a probability map [15,33], wherein labels represent the probability of boundary occurrence. Interestingly, consistent with the theory in [33], the label reflects the distribution of relative importance across possible categories (i.e., “the presence of a collar mark”). This transformation shifts the problem from hard binary classification to boundary membership estimation, providing denser feedback during backpropagation and facilitating stable and efficient network training.
In summary, the problem of collar signature recognition is transformed into a boundary membership estimation task, where the input is a windowed temporal CCL waveform and the output is a temporal probability map.

2.2. Acquisition of Raw CCL Waveforms

To eliminate signal degradation associated with long cable transmission and preserve signal integrity, a Signal Collection Vehicle (SCV) was developed, as shown in Figure 2. The SCV is designed to be integrated into downhole toolstring and enable the real-time logging of raw CCL signals downhole.
The SCV comprises of the analog frontend (AFE) module, the signal processing and control module, the data storage module, the input–output (I/O) module, and auxiliary modules. As the SCV is lowered with downhole toolstring, the AFE module samples raw CCL signal at a sampling rate of 1 kHz via a 16-bit resolution analog-to-digital converter (ADC). The resulting digital data is recorded in the storage module. Upon completion of downhole operations, the SCV is salvaged, and data is exported via the I/O module.
The raw temporal CCL logs acquired by the SCV are designated as “original CCL waveforms”. Typically, a single log contains approximately 50 to 200 collar signatures, corresponding to a well depth ranging from 500 m to 2 km.

2.3. Dataset Construction and Augmentation

Collar marks within the field-acquired original CCL waveforms were manually annotated through expert analysis. To construct the dataset, waveforms surrounding each collar mark were fragmented into fixed-length fragments, while non-informative sections distant from the collars were excluded. As illustrated in Figure 3a, each fragment is centered on a collar mark, which is initially represented using one-hot encoding.
To enhance training effectiveness, maximize data utilization, and avoid overfitting, we present various data augmentation methods for preprocessing original CCL data. These methods encompass data normalization, regularization, transformation, and multiple sampling, which can be applied independently or in combination, as illustrated in Figure 3b.
After preprocessing, the augmented waveform fragments and target labels constitute the datasets used for model training and evaluation.

2.3.1. Normalization of Waveforms

The original CCL waveform represents raw data from the ADC in unsigned integer format. Theoretically, raw data requires normalization to enhance training performance, particularly convergence speed [34]. Both min–max scaling and z-score normalization warrant investigation. For min–max scaling, waveforms are transformed to either [ 0 ,   1 ] or [ 1 ,   1 ] . The minimum and maximum values derive from either the waveform’s dynamic range or the ADC specifications.

2.3.2. Label Distribution Smoothing (LDS)

Convolving a kernel with the empirical density distribution produces a kernel-smoothed version. The effective label density distribution is defined as [28]:
p ( y ) Y k ( y , y ) p ( y ) d y
where p ( y ) is the label of y in the training data; p is the effective density of label y ; and k ( y , y ) is the kernel function.
One-hot encoding of collars along the timeline constitutes a validity probability distribution that proves challenging for training. Convolution smooths these hard labels, enabling each label in the validity probability distribution to incorporate information from neighboring labels [28].
While Gaussian kernels reportedly achieve optimal results among all kernel types [28], other research cautions that Gaussian assumptions may not accommodate complex real-world datasets [33]. This work employs a Gaussian kernel is employed, yielding the following label formulation:
p ( t ) = i t e ( t t i ) 2 2 σ 2 , i f < 1 1 , o t h e r w i s e
where σ is the Gaussian root mean square (RMS) width; and t i is the moment when the ith collar occurs.

2.3.3. Label Smoothing Regularization (LSR)

LSR softens labels by redistributing a small probability portion from the correct class evenly among all classes. The distribution relationship follows [29]:
p ( k ) = δ k , i p ( k ) = ( 1 ϵ ) δ k , i + ϵ K δ k , i = 1 , k = i 0 , k i
where p ( k ) is the ground-truth distribution over the kth class; p ( k ) is the training distribution over the kth class; i denotes the correct class; K is the total number of classes; δ is the Kronecker delta function; and ϵ is the smoothing parameter.
When employing the sigmoid function, the parameter ϵ effectively constrains the magnitude of the output logits. This mechanism discourages overconfident predictions by preventing the largest logit from becoming disproportionately larger than others, thereby regularizing the model and enhancing its generalization capability [29]. In this study, given K = 2 , the training distribution simplifies to
p ( k ) = ( 1 ϵ ) p ( k ) + ϵ 2
where an ϵ value of 0.1 is recommended to strike a balance between accuracy and generalization capability.

2.3.4. Geometric Transformations

The dataset undergoes expansion through various geometric transformations, as illustrated in Figure 3b. Transformations are employed as follows:
  • Time Scaling: Waveform fragments are scaled along the time axis by random factors and subsequently resampled to restore the original sampling rate. The resampling process employs Hann-windowed sinc interpolation, the default resampling method in the TorchAudio library, to mitigate spectral artifacts, including ringing and aliasing, while ensuring effective high-frequency attenuation.
  • Randomly Cropping and Translation: These transformations waveform fragments into sub-samples that match both the sliding window length and the neural network model’s input length.
  • Amplitude Jittering: Waveform fragments are multiplied by random gain factors to enhance the model’s robustness and generalization capability.
  • Noise Injection: Gaussian noise is added to original fragments to improve model robustness against noise.
  • Flipping: Voltage or time axis flipping is excluded as such transformations would violate the physical principles governing CCL magnetic response.

2.3.5. Multiple Sampling

To maximize dataset utilization, each fragment undergoes the multiple random augmentation process to generate diverse sub-samples variants, as illustrated in Figure 3e. This approach theoretically accelerates convergence and enhance augmentation effectiveness.

2.4. Neural Network

The proposed model, Thin AlexNet (TAN), is a time-series version of the classical AlexNet architecture. The input and output dimensions are reduced from 2D to 1D to adapt CCL waveforms. Since AlexNet has demonstrated success in image classification [31,32] and possesses sufficient simplicity to clearly demonstrate the effects of data augmentation, the TAN model serves as an appropriate baseline.
The TAN model comprises five convolutional layers with ReLU activation, three max pooling layers, and three fully connected (FC) layers, with ReLU activation applied to the first two fully connected layers, as illustrated in Figure 3c. The input of model is a fixed-length segment from a waveform, and the output produces a series of logits representing scores of collar mark classification for each temporal position within the input segments. This differs from the original AlexNet. Probability for each temporal position is obtained through sigmoid function.
Based on the TAN model, we proposed a simplified version, Miniaturized AlexNet (MAN), as illustrated in Figure 3d. MAN contains fewer convolutional layers, max pooling layers, and fully connected layers than TAN. Additionally, batch normalization (BN) layers are appended in MAN to improve training stability. MAN employs the same input–output format as TAN.

3. Experiments and Results

3.1. Evaluation Measures

To evaluate the classifiers implemented by TAN and MAN, which output probability distributions for classification, metrics that measure distance and similarity between predicted and label distributions are appropriate [33]. F1 score and cross-entropy (CE) represent standard choices for such evaluation. Additionally, the area under the precision–recall curve (AUC-PR) provides objective performance assessment for binary classifiers.
To recognize collar signatures from normalized long CCL waveforms, a sliding window of width W with a strid of W / 2 is employed. This configuration produces 50% overlap between consecutive windows, ensuring that each overlapping region is captured by exactly two adjacent windows. The window advances through the waveform in half-width increments, balancing computational efficiency with temporal resolution while maintaining analytical continuity. The probability map segments inferenced from overlapping regions of adjacent windows are averaged to produce the complete probability map, as illustrated in Figure 3f.
Through sliding window progression, the complete probability map for the entire CCL waveform is generated. Continuous intervals with probabilities exceeding the threshold are identified as valid regions, with their center positions designated as collar marks. This procedure constitutes the “post-processing” stage. The complete casing collar recognition process from waveform comprises a neural network-based classifier and a post-processor for probability map analysis, as illustrated in Figure 3f. Collar recognition performance is evaluated by comparing recognized collar positions with manually annotated reference positions. Recognized collars within the neighborhood of annotated collars are classified as true positives, while those elsewhere are classified as false positives. Missed collars are considered as false negatives. Precision, recall and F1 score are calculated for evaluation.

3.2. Training and Validation

The CCL waveforms utilized in the experiments were acquired from field operations in Sichuan Province, China, ensuring that the results are representative of actual downhole conditions. The dataset was partitioned into training and validation subsets using a 3:1 ratio based on the CCL logs, yielding 288 and 50 original waveform fragments, respectively. To mitigate the limitations (including funds) imposed by the restricted dataset size, a multiple sampling strategy was employed to augment the training set. The training and validation procedures were conducted offline on a workstation equipped with an AMD Ryzen 3960X CPU and dual NVIDIA RTX 3080 GPUs, utilizing the PyTorch 2.0.1 framework.
The models are trained with a batch size of 16 for 100 epochs utilizing cross-entropy loss (CE loss) with an adaptive moment estimation (Adam) optimizer. Key configurations (Cfgs.) are presented in Table 1 and Table 2. The training progress and the optimal model performance for each configuration are illustrated in Figure 4. Additionally, model inference and post-processing were evaluated on two full-length waveforms characterized by mild and moderate interference, respectively. The mild interference waveform contains 52 collars with maximum depth of 512.2   m , while the moderate interference waveform contains 77 collars with maximum depth of 771.1   m . Crucially, the waveform fragments from these evaluation waveforms were excluded from the training set. The precision, recall, and F1 score results are tabulated in Table 1 and Table 2, with the aggregated results for both waveforms are tabulated in Table 3.

3.3. Results and Analysis

To explore the validity and importance of augmentation methods, several real and complete waveforms are experimented to verify the models’ ability of predicting collar positions. The experimental results are indexed and divided into three groups, as illustrated in Figure 4, with curve indexes corresponding to those in Table 1 and Table 2. The first group (Cfgs. 1–6) examines normalization methods, label distribution methods, and cropping methods. The second group (Cfgs. 7–12) investigates label smoothing, noise injection, amplitude jittering, and time scaling. The final group (Cfgs. 13–18) explores optimal combination configurations.

3.3.1. Fundamental Preprocessing Requirements

A comparison of Cfgs. 1 and 3, which differ in label distribution method, confirms that F1 score for both classifier and recognition using one-hot encoding approaches 0, despite the CE loss decreasing more rapidly than with LDS. The probability maps corroborate this observation, as illustrated in Figure 5a,c. This indicates that one-hot encoded collar labels are difficult for models to learn, as the loss function reaches a local minimum when models consistently output negative predictions, as illustrated in Figure 4a.
Similar phenomena occur with min–max normalization versus standardization (corresponding to Cfgs. 3–5), and fixed cropping versus random cropping (corresponding to Cfgs. 2 and 3), as illustrated in Figure 5b,c. Waveforms processed with min–max normalization prove challenging for model training. Furthermore, models using fixed cropping learn only sliding window positions rather than waveform characteristics.
Comparison of Cfgs. 3 and 6 clearly demonstrates that both TAN and MAN module have the ability to estimate collar positions when using LDS, standardization, and random cropping, as illustrated in Figure 5c,d. However, MAN training proceeds more slowly than TAN training, with slightly inferior performance, as MAN contains approximately half the parameters of TAN. These findings establish that LDS, standardization, and random cropping are fundamental requirements for collar recognition model training.

3.3.2. Generalization Enhancement Methods

To investigate the effects of LSR, noise injection, amplitude jittering, and time scaling, Cfgs. 7–10 based on Cfg. 3 are experimented. A comparison of curves in Figure 4d–i reveals that (a) the final CE loss for Cfgs. 8–10 is lower than that for control Cfg. 3, while Cfg. 7 shows higher loss; (b) the classifier F1 scores of Cfgs. 7–9 are similar, while Cfg. 10 shows slightly lower performance; and (c) LSR convergence is slower than others. Performance comparison between Cfgs. 7–10 and control Cfg. 3, as tableted in Table 2, demonstrates that (a) LSR exhibits higher CE loss but superior F1 score in waveform evaluation, with 0.024 improvement on the moderate inference waveform; (b) although amplitude jittering and time scaling show lower F1 scores on validation set evaluation is compared to the control configuration, their waveform evaluation F1 scores are higher, with improvements of 0.012 and 0.037, respectively, on the moderate inference waveform. These results suggest that LSR enhances generalization capability at the cost of convergence speed, while amplitude jittering and time scaling also improve generalization. However, noise injection performs worse than all other configurations. Additional experiments reveal that small noise provides limited benefits to performance, while large noise impairs performance. This likely occurs because real-world waveforms inherently contain small noise, and additional large noise hinders model learning waveform characteristics.
To investigate the effects of multiple sampling, Cfgs. 11–12 based on Cfg. 3 are experimented. Configurations with multiple sampling converge substantially faster than the control configuration, as shown in Figure 4d–i, because multiple sampling increases iterations per epoch. The F1 score improves up to 0.045 in evaluation.
In summary, LSR, amplitude jittering, time scaling, and multiple sampling significantly enhance generalization capability, while noise injection provides limited benefits. By comparing Cfg. 13 and Cfg. 14 with Cfg. 3 and Cfg. 6, respectively, these data augmentation methods achieve F1 score improvements of up to 0.027 for the TAN model and 0.024 for the MAN model.

3.3.3. Optimal Configuration Identification

Based on these conclusions, Cfgs. 13–18 are experimented to identify optimal combinations while comparing with Cfgs. 3, 6 and 7, as illustrated in Figure 4j–o and Figure 5c–e and tabulated in Table 2. Several noteworthy phenomena emerge from these experiments.
First, metrics of configurations with 100× multiple sampling fluctuate more dramatically than those with 20×, suggesting the need for smaller initial learning rates when applying extensive multiple sampling. Second, simultaneous use of amplitude jittering and time scaling unexpectedly reduces the performance. We hypothesize that amplitude scaling compromises standardization benefits while improving generalization, as the relative amplitude of waveforms contains critical information. Third, Cfg. 13 achieves the highest CE loss and validation set F1 score among all TAN model configurations, yet its F1 score on the moderate interference waveform does not show corresponding improvement, as illustrated in Figure 4m–o. This occurs because multiple sampling introduces more randomly preprocessed samples, enhancing generalization capability.
Notably, both full-length evaluation waveforms contain several dozens of collar signatures, effectively functioning as a small-scale evaluation set. Consequently, it is plausible to achieve near-perfect or perfect results (an F1 score of 1.0) provided the model possesses sufficient accuracy. Furthermore, in the case of waveforms with mild interference, the collar signatures exhibit greater separability, thereby facilitating the attainment of perfect identification performance.
Most significantly, MAN performance does not degrade substantially compared to TAN, and MAN exhibits less performance degradation on moderate interference waveform than TAN, despite containing approximately half the parameters, as tabulated in Table 2. These findings suggest that (a) TAN may experience overfitting in certain dimensions; (b) collar classification could potentially be achieved with more compact networks warranting future investigation; and (c) practical applications can consider the trade-off between accuracy and parameter count.

3.3.4. Performance Validation and Key Findings

The results of Cfg. 14 are illustrated in Figure 5f as an example, while the details of other experiments are not repeated here. Casing collars recognized by MAN model and collars labeled manually are marked in green and red, respectively. The casing collar positions are correctly recognized and align completely with manual annotations, providing the essential foundation for precise depth measurement.
These findings establish that the standardization, LDS, and random cropping are fundamental preprocessing requirements for collar recognition model training, while LSR, time scaling, and multiple sampling significantly enhance model generalization capability. The data augmentation methods achieve F1 score improvements of up to 0.063 for the TAN model waveform evaluation and up to 0.048 for the MAN model evaluation, compared to configurations using only fundamental methods, representing notable performance enhancements. Furthermore, the baseline models TAN and MAN exhibit performance comparable to prior works, as tabulated in Table 3. However, applying the proposed data augmentation methods yields F1 score improvements of up to 0.045 for the TAN model and 0.057 for the MAN model relative to other approaches. This observation demonstrates that the proposed data augmentation methods are effective even when the underlying model architecture is not optimal.

4. Conclusions

This work developed the SCV to acquire raw downhole CCL signals for dataset construction. The contributions of various data augmentation methods were systematically analyzed through baseline evaluations using the proposed neural network recognition methodology. Experimental validation with field CCL logs confirms the effectiveness and validity of proposed approaches. Results indicate that standardization, LDS, and random cropping are fundamental preprocessing prerequisites for training collar recognition models, while LSR, time scaling, and multiple sampling significantly enhance model generalization capabilities. Incorporating the proposed augmentation methods into the two baseline models results in maximum F1 score improvements of 0.027 and 0.024 for the TAN and MAN models, respectively. Furthermore, applying these techniques yields F1 score gains of up to 0.045 for the TAN model and 0.057 for the MAN model compared to prior studies. This research addresses the existing gaps in data augmentation methodologies for training casing collar recognition models under CCL data-limited conditions, and provides a technical foundation for the future automation of downhole operations.

Author Contributions

Conceptualization, S.-Y.X. and X.-D.Z.; Methodology, S.-Y.X., T.-H.M. and Y.-W.W.; Software, S.-Y.X., T.-H.M., Y.-W.W. and Y.-Q.C.; Validation, S.-Y.X. and T.-H.M.; Formal analysis, J.-J.W., S.L., T.-P.C. and Y.L.; Investigation, X.-D.Z., Y.-W.W. and Y.-Q.C.; Resources, X.-D.Z., H.-Y.Z. and J.W.; Data curation, X.-D.Z., T.-H.M., H.-Y.Z. and J.W.; Writing—original draft, S.-Y.X. and Y.-Q.C.; Writing—review & editing, S.-Y.X., J.-J.W., S.L., T.-P.C. and Y.L.; Visualization, S.-Y.X.; Supervision, J.-J.W. and S.L.; Project administration, S.-Y.X., J.-J.W., S.L. and Y.L.; Funding acquisition, Y.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by NSFC under project No. 62404033 and 62404034. This work is also supported by China National Petroleum Corporation Logging Co., Ltd. (CNLC) under project No. CNLC2023-7A01.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author due to confidentiality agreements with the data provider.

Conflicts of Interest

Authors Xin-Di Zhao, Hong-Yun Zhang and Jian Wang are employed by the company Southwest Branch of China National Petroleum Corporation Logging Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Harris, M.H. The effect of perforating oil well productivity. J. Pet. Technol. 1966, 18, 518–528. [Google Scholar] [CrossRef]
  2. Xiao, S.Y.; Ren, G.H.; Mao, T.H.; Chen, Y.Q.; Liu, Y.A.; Wang, J.J.; Tang, K.; Zhao, X.D.; Yu, Z.J.; Liu, S.; et al. Realization of Precise Perforating Using Dynamic Threshold and Physical Plausibility Algorithm for Self-Locating Perforating in Oil and Gas Wells. arXiv 2025, arXiv:2509.00608. [Google Scholar] [CrossRef]
  3. Seren, H.R.; Deffenbaugh, M. Miniaturized casing collar locator for small downhole robots. IEEE Sens. Lett. 2022, 6, 6000804. [Google Scholar] [CrossRef]
  4. Alvarez, J.O.; Buzi, E.; Adams, R.W.; Deffenbaugh, M. Theory, design, realization, and field results of an inductive casing collar locator. IEEE Trans. Instrum. Meas. 2018, 67, 760–766. [Google Scholar] [CrossRef]
  5. Gidado, A.; Ekesiobi, C.; Kpone-Tonwe, H.; Adesun, J. Well diagnostic of new underperforming wells using downhole log tool [SNT & MDT]. In Proceedings of the SPE Nigeria Annual International Conference and Exhibition, Lagos, Nigeria, 31 July–2 August 2023; p. D021S012R001. [Google Scholar]
  6. Li, H.; Tang, T.; Wang, Y. Casing state detection methods based on the CCL signal of the tractor for horizontal wells. In Proceedings of the 2013 IEEE 11th International Conference on Electronic Measurement & Instruments, Harbin, China, 16–19 August 2013; Volume 2, pp. 568–573. [Google Scholar]
  7. Mijarez, R.; Pascacio, D.; Guevara, R.; Tello, C.; Pacheco, O.; Rodríguez, J. HPHT cased-hole CCL tool enhancement via DSP techniques for accurate depth control in wire-line well interventions. Addit. Pap. Present. 2014, 2014, 000305–000310. [Google Scholar] [CrossRef]
  8. Brown, J. The Effects Of Cable On Signal Quality. Sound and Video Contractor. 1990, pp. 22–33. Available online: http://audiosystemsgroup.com/CableCapacitance.pdf (accessed on 7 September 2025).
  9. Wang, H.; Tang, W. Application of Computer Automatic Discriminating Technology to the Depth Control of Perforation. Well Logging Technol. 2006, 30, 378. [Google Scholar]
  10. Wang, H.; Lv, H.; Pan, J.; Li, G.; Gao, X. Study on collar depth identification based on relative amplitude method. J. Harbin Univ. Commer. (Nat. Sci. Ed.) 2003, 28, 435–438. [Google Scholar]
  11. Li, J.; Liu, Y.; Zhang, J.; Wang, J.; Zhang, Y. Application of cross-correlation function method in locating perforation depth. J. Southwest Pet. Univ. (Nat. Sci. Ed.) 2020, 42, 42–48. [Google Scholar]
  12. Li, H.; Chen, J.; Xiao, Y.; Liu, X.; Wu, J. Study on extracting traction device magnetic positioning information features based on anti-aliasing wavelet time entropy in the frequency domain. Chin. High Technol. Lett. 2010, 20, 538–543. [Google Scholar]
  13. Yang, Y.P.; Luan, G.H.; Zhang, L.F.; Niu, M.Y.; Zou, G.G.; Zhang, X.L.; Wang, J.Y.; Yang, J.F.; Li, M.S. Leak Identification and Positioning Strategies for Downhole Tubing in Gas Wells. Processes 2025, 13, 1708. [Google Scholar] [CrossRef]
  14. Jing, J.; Qin, Y.; Zhu, X.; Shan, H.; Peng, P. Identification and Prediction of Casing Collar Signal Based on CNN-LSTM. Arab. J. Sci. Eng. 2024, 50, 4897–4911. [Google Scholar] [CrossRef]
  15. Ross, Z.E.; Meier, M.A.; Hauksson, E.; Heaton, T.H. Generalized seismic phase detection with deep learning. Bull. Seismol. Soc. Am. 2018, 108, 2894–2901. [Google Scholar] [CrossRef]
  16. Le Guennec, A.; Malinowski, S.; Tavenard, R. Data augmentation for time series classification using convolutional neural networks. In Proceedings of the ECML/PKDD Workshop on Advanced Analytics and Learning on Temporal Data, Riva Del Garda, Italy, 19–23 September 2016. [Google Scholar]
  17. Wen, Q.; Zhou, T.; Zhang, C.; Chen, W.; Ma, Z.; Yan, J.; Sun, L. Transformers in time series: A survey. arXiv 2022, arXiv:2202.07125. [Google Scholar]
  18. Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef]
  19. Noh, K.; Pardo, D.; Torres-Verdín, C. Deep-learning inversion method for the interpretation of noisy logging-while-drilling resistivity measurements. arXiv 2021, arXiv:2111.07490. [Google Scholar] [CrossRef]
  20. Brazell, S.; Bayeh, A.; Ashby, M.; Burton, D. A Machine-Learning-Based Approach to Assistive Well-Log Correlation. Petrophys.-SPWLA J. 2019, 60, 469–479. [Google Scholar] [CrossRef]
  21. Elhadidy, A.; Helmy, A.; Heikal, M.; Hany, W. Optimizing Well Perforation with Machine Learning: A Breakthrough in Predictive Modeling. In Proceedings of the SPE Gas & Oil Technology Showcase and Conference, Dubai City, United Arab Emirates, 21–23 April 2025; p. D022S002R002. [Google Scholar]
  22. Viggen, E.M.; Grønsberg, S.; Brekke, S.; Hicks, B.; Wifstad, S.V. Improving pipe perforation estimates from ultrasonic imaging using subpixel machine learning trained on optical data. Geoenergy Sci. Eng. 2025, 246, 213541. [Google Scholar] [CrossRef]
  23. Murugan, P.; Durairaj, S. Regularization and optimization strategies in deep convolutional neural network. arXiv 2017, arXiv:1712.04711. [Google Scholar] [CrossRef]
  24. Ioffe, S.; Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In Proceedings of the 32nd International Conference on Machine Learning (ICML 2015), Lille, France, 7–9 July 2015; pp. 448–456. [Google Scholar]
  25. Santurkar, S.; Tsipras, D.; Ilyas, A.; Madry, A. How does batch normalization help optimization? In Proceedings of the 32nd Conference on Neural Information Processing Systems (NeurIPS 2018), Montréal, QC, Canada, 3–8 December 2018; Volume 31, pp. 2488–2498. [Google Scholar]
  26. Bjorck, N.; Gomes, C.P.; Selman, B.; Weinberger, K.Q. Understanding batch normalization. In Proceedings of the 32nd Conference on Neural Information Processing Systems (NeurIPS 2018), Montréal, QC, Canada, 3–8 December 2018; Volume 31, pp. 7705–7716. [Google Scholar]
  27. Asif, M.R.; Bording, T.S.; Barfod, A.S.; Auken, E.; Larsen, J.J. Effect of Data Normalization on Neural Networks for the Forward Modelling of Transient Electromagnetic Data. In Proceedings of the NSG2020 26th European Meeting of Environmental and Engineering Geophysics. European Association of Geoscientists & Engineers, Online, 7–8 December 2020; Volume 2020, pp. 1–5. [Google Scholar]
  28. Yang, Y.; Zha, K.; Chen, Y.; Wang, H.; Katabi, D. Delving into deep imbalanced regression. In Proceedings of the 38th International Conference on Machine Learning (ICML 2021), Online, 18–24 July 2021; pp. 11842–11851. [Google Scholar]
  29. Szegedy, C.; Vanhoucke, V.; Ioffe, S.; Shlens, J.; Wojna, Z. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR 2016), Las Vegas, NV, USA, 27 June–1 July 2016; pp. 2818–2826. [Google Scholar]
  30. Stoller, D.; Ewert, S.; Dixon, S. Wave-U-net: A multi-scale neural network for end-to-end audio source separation. arXiv 2018, arXiv:1806.03185. [Google Scholar]
  31. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet classification with deep convolutional neural networks. Commun. ACM 2017, 60, 84–90. [Google Scholar] [CrossRef]
  32. Krizhevsky, A. One weird trick for parallelizing convolutional neural networks. arXiv 2014, arXiv:1404.5997. [Google Scholar] [CrossRef]
  33. Geng, X. Label distribution learning. IEEE Trans. Knowl. Data Eng. 2016, 28, 1734–1748. [Google Scholar] [CrossRef]
  34. LeCun, Y.; Bottou, L.; Orr, G.B.; Müller, K.R. Efficient backprop. In Neural Networks: Tricks of the Trade; Springer: Berlin/Heidelberg, Germany, 2002; pp. 9–50. [Google Scholar]
Figure 1. Cross-sectional illustration of a typical oil and gas well structure. Representative casing collar signatures from magnetic response are illustrated in dark blue near the corresponding casing collar, while typical interference signals are illustrated in dark green. Organized from [2].
Figure 1. Cross-sectional illustration of a typical oil and gas well structure. Representative casing collar signatures from magnetic response are illustrated in dark blue near the corresponding casing collar, while typical interference signals are illustrated in dark green. Organized from [2].
Sensors 26 00775 g001
Figure 2. Structure of downhole toolstring integrated with the Signal Collection Vehicle (SCV): (a) schematic diagram of the internal structure of the perforating gun employed in this work; (b) functional structure diagram of the SCV; and (c) a SCV circuit board.
Figure 2. Structure of downhole toolstring integrated with the Signal Collection Vehicle (SCV): (a) schematic diagram of the internal structure of the perforating gun employed in this work; (b) functional structure diagram of the SCV; and (c) a SCV circuit board.
Sensors 26 00775 g002
Figure 3. The train and inference process of this work: (a) fragment the normalized CCL waveform based on manually labeled collar marks, each fragment containing a collar mark at its center (waveform shapes in boxes are illustrative only); (b) augmentation methods for preprocessing waveform fragments and their labels; (c,d) baseline neural network architectures employed in this work; (e) multiple random augmentations applied to each fragment to generate diverse sub-samples variants for training and testing datasets; and (f) the procedure of casing collar recognition from CCL waveforms using sliding windows with overlap.
Figure 3. The train and inference process of this work: (a) fragment the normalized CCL waveform based on manually labeled collar marks, each fragment containing a collar mark at its center (waveform shapes in boxes are illustrative only); (b) augmentation methods for preprocessing waveform fragments and their labels; (c,d) baseline neural network architectures employed in this work; (e) multiple random augmentations applied to each fragment to generate diverse sub-samples variants for training and testing datasets; and (f) the procedure of casing collar recognition from CCL waveforms using sliding windows with overlap.
Sensors 26 00775 g003
Figure 4. Evaluation metrics of training progress under different configurations, including cross-entropy loss, F1 score, and area under the precision–recall curve (AUC-PR). The curve indexes correspond to configurations in Table 1 and Table 2. The meanings of abbreviations refer to Table 1 and Table 2. (ac) Evaluation metrics for Group 1 configurations. (df) Evaluation metrics for Group 2 configurations. (gi) Enlarged sections of (df). (jl) Evaluation metrics for Group 3 configurations. (mo) Enlarged sections of (jl). (pr) Legends for (ac), (di), and (jo), respectively.
Figure 4. Evaluation metrics of training progress under different configurations, including cross-entropy loss, F1 score, and area under the precision–recall curve (AUC-PR). The curve indexes correspond to configurations in Table 1 and Table 2. The meanings of abbreviations refer to Table 1 and Table 2. (ac) Evaluation metrics for Group 1 configurations. (df) Evaluation metrics for Group 2 configurations. (gi) Enlarged sections of (df). (jl) Evaluation metrics for Group 3 configurations. (mo) Enlarged sections of (jl). (pr) Legends for (ac), (di), and (jo), respectively.
Sensors 26 00775 g004
Figure 5. Probability maps and recognition results for various configurations. (a) Cfg. 1 (using OHE); (b) Cfg. 2 (using fixed cropping); (c) Cfg. 3 (using LDS and random cropping); (d) Cfg. 6 (using fundamental methods with MAN model); (e) Cfg. 13 (optimal combination candidate using TAN model); and (f) full results of Cfg. 14 (optimal combination candidate using MAN model).
Figure 5. Probability maps and recognition results for various configurations. (a) Cfg. 1 (using OHE); (b) Cfg. 2 (using fixed cropping); (c) Cfg. 3 (using LDS and random cropping); (d) Cfg. 6 (using fundamental methods with MAN model); (e) Cfg. 13 (optimal combination candidate using TAN model); and (f) full results of Cfg. 14 (optimal combination candidate using MAN model).
Sensors 26 00775 g005
Table 1. Experimental results for various combinations of normalization, label distribution, and cropping methods.
Table 1. Experimental results for various combinations of normalization, label distribution, and cropping methods.
Cfg.
No.
ModelNormalizationLbl.
Dis.
CropEvaluation by Validation
Set During Training
Evaluation by Moderate
Interference Waveform
Evaluation by Mild
Interference Waveform
CE F1 AUC-PR P R F1 P R F1
1TANStandardizationOHERand0.073600.0350000000
2TANStandardizationLDSFix0.294310.9987000000
3TANStandardizationLDSRand0.23910.91340.98890.91360.96100.93670.981110.9905
4TANMinMax [ 0, +1]LDSRand0.507400.4051000000
5TANMinMax [−1, +1]LDSRand0.30550.82050.92340.03960.11690.05920.03350.13460.0536
6MANStandardizationLDSRand0.28520.88210.961910.90910.9524111
All configurations use a batch size of 16, with no additional data augmentation methods applied. Configuration numbers are color-coded to match the corresponding curves in Figure 4. Abbreviations: Cfg. No. = configuration number; Lbl. Dis. = label distribution; CE = cross-entropy; F1 = F1 score; AUC-PR = area under the precision–recall curve; P = precision; R = recall; OHE = one-hot encoding; LDS = label distribution smoothing; Rand = random.
Table 2. Experimental results for various combinations of soft label, geometric transformations, and multiple sampling methods.
Table 2. Experimental results for various combinations of soft label, geometric transformations, and multiple sampling methods.
Cfg.
No.
ModelSoft
Label
Noise
Inj.
Amp.
Jit.
Time
Scale
Multi.
Samp.
Evaluation by Validation
Set During Training
Evaluation by Moderate
Interference Waveform
Evaluation by Mild
Interference Waveform
CE F1 AUC-PR P R F1 P R F1
3TAN10.23910.91340.98890.91360.96100.93670.981110.9905
6MAN10.28520.88210.961910.90910.9524111
7TANLSR10.35960.92170.98710.96100.96100.96100.981110.9905
8TAN+10.22090.90980.98690.81520.97400.88760.963010.9811
9TAN+10.18640.90850.98430.93670.96100.94870.981110.9905
10TAN+10.21700.87260.95920.97400.97400.9740111
11TAN200.19660.95770.99390.939010.9686111
12TAN1000.19490.95890.99370.987210.9935111
13TANLSR200.32700.94390.99020.950610.9747111
14MANLSR200.32880.93790.98881110.981110.9905
15TANLSR1000.32850.93770.98830.962510.9809111
16MANLSR1000.32940.93480.98900.97440.98700.98060.98080.98080.9808
17TANLSR+1000.32850.93810.98840.96200.98700.97440.981110.9905
18MANLSR+1000.32930.93550.98890.97440.98700.98060.98080.98080.9808
All configurations employ standardization for normalization, LDS for label distribution, random cropping, and a batch size of 16. Configuration numbers are color-coded to match the corresponding curves in Figure 4. Additional abbreviations: Inj. = injection; Amp. Jit. = amplitude jittering; Multi. Samp. = multiple sampling; LSR = label smoothing regularization; + = method applied; − = method not applied.
Table 3. Comparison of performance with other works.
Table 3. Comparison of performance with other works.
NetworkPerformanceMethod
Tests Acc P R F1
Cfg. 31290.9200.9400.9770.958CCL + TAN + LDS
Cfg. 61290.94610.9460.972CCL + MAN + LDS
Cfg. 131290.97010.9700.985CCL + TAN + LDS + Data Augmentation
Cfg. 141290.99210.9920.996CCL + MAN + LDS + Data Augmentation
[14]2690.97410.9420.970CCL + CNN
[14]2690.94810.8840.939CCL + LSTM
[14]2690.9780.9590.9910.975CCL + CNN-LSTM
[2]5790.9730.9880.9850.986CCL + Dynamic amplitude threshold + Physical plausibility
[10]81CCL + Relative amplitude
[7]CCL + Cross correlation + Predifined threshold
[6]CCL + Wavelet transform
“–” indicates “Not mentioned”; “P”, “R” are precision and recall, respectively. Configuration numbers are color-coded to match the corresponding curves in Figure 4.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Xiao, S.-Y.; Zhao, X.-D.; Mao, T.-H.; Wang, Y.-W.; Chen, Y.-Q.; Zhang, H.-Y.; Wang, J.; Wang, J.-J.; Liu, S.; Chen, T.-P.; et al. Data-Augmented Deep Learning for Downhole Depth Sensing and Validation. Sensors 2026, 26, 775. https://doi.org/10.3390/s26030775

AMA Style

Xiao S-Y, Zhao X-D, Mao T-H, Wang Y-W, Chen Y-Q, Zhang H-Y, Wang J, Wang J-J, Liu S, Chen T-P, et al. Data-Augmented Deep Learning for Downhole Depth Sensing and Validation. Sensors. 2026; 26(3):775. https://doi.org/10.3390/s26030775

Chicago/Turabian Style

Xiao, Si-Yu, Xin-Di Zhao, Tian-Hao Mao, Yi-Wei Wang, Yu-Qiao Chen, Hong-Yun Zhang, Jian Wang, Jun-Jie Wang, Shuang Liu, Tu-Pei Chen, and et al. 2026. "Data-Augmented Deep Learning for Downhole Depth Sensing and Validation" Sensors 26, no. 3: 775. https://doi.org/10.3390/s26030775

APA Style

Xiao, S.-Y., Zhao, X.-D., Mao, T.-H., Wang, Y.-W., Chen, Y.-Q., Zhang, H.-Y., Wang, J., Wang, J.-J., Liu, S., Chen, T.-P., & Liu, Y. (2026). Data-Augmented Deep Learning for Downhole Depth Sensing and Validation. Sensors, 26(3), 775. https://doi.org/10.3390/s26030775

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop