Realization of Precise Perforating Using Dynamic Threshold and Physical Plausibility Algorithm for Self-Locating Perforating in Oil and Gas Wells
Si-Yu Xiao, Guo-Hui Ren, Tian-Hao Mao, Yu-Qiao Chen, Yi-An Liu, Jun-Jie Wang, Kai Tang, Xin-Di Zhao, Zhi-Jian Yu, Shuang Liu, Tu-Pei Chen, Yang Liu

TL;DR
This paper presents a lightweight, real-time depth measurement system for oil and gas well perforating that uses dynamic thresholding and physical plausibility algorithms, enabling accurate collar recognition with minimal computational resources.
Contribution
The work introduces the DTPPMP system, a novel in situ depth calibration method combining lightweight algorithms for collar recognition and plausibility verification suitable for high-temperature downhole electronics.
Findings
Achieved 98.6% collar recognition F1 score in field tests.
Algorithm requires only 1.5 microseconds per sample, demonstrating high efficiency.
System effectively correlates CCL signals with casing tally for accurate depth measurement.
Abstract
Accurate depth measurement is critical for targeting designated perforation intervals to maximize hydrocarbon recovery. While next-generation automated wireless perforating techniques reduce reliance on costly surface infrastructure and personnel, they lack the continuous depth correlation provided by conventional wireline cables. Consequently, correlating real-time casing collar locator (CCL) signals with a pre-recorded casing tally is essential for automatic depth determination. However, implementing this measurement remains challenging: downhole instruments must process CCL signals in real-time to identify collar signatures from complex interference, a task severely restricted by the limited computational resources and power budget of high-temperature downhole electronics. To address these constraints, this work proposes the Dynamic Threshold and Physical Plausibility Depth…
| Component | Model / Type | Specifications and Description |
| MCU | STM32H725 | ARM Cortex-M7 core, , handling signal processing and logic control. |
| ADC | Built-in ADC of STM32H7 | resolution, Max. sampling rate. |
| AFE | Proposed Design (Fig. 9) | Low-noise, rail-to-rail operational amplifier for signal conditioning and gain adjustment. |
| Storage | W25Q02 | capacity for logging raw CCL data and system logs. |
| Power Supply | High-temp Li-SOCl2 | , , Max. Temp. , designed for downhole high-temperature environments. |
| CCL Sensor | Type CNLC-73-150 | = , turns, SmCo magnet () |
| TPa | FP | FN | TN | Totalb | Acc | P | R | F1 | |
| DTPPMP | 579 | 7 | 9 | 0 | 588 | 97.3% | 98.8% | 98.5% | 98.6% |
| Classification Metrics | Methods and Description | In-situ & Real-time | Method Status | |||||
| Test | Acc | P | R | F1 | ||||
| DTPPMP | 588 | 97.3% | 98.8% | 98.5% | 98.6% | CCL + Dynamic threshold + Physical plausibility | ✓ | Field Test |
| [40] | – | 99.7% | 99.7% | 99.7% | 99.7% | CCL + (TML) Random Forest (RF) | Simulation | |
| [40] | – | 99.6% | 99.6% | 99.6% | 99.6% | CCL + (TML) Adaboost | Simulation | |
| [40] | – | 99.6% | 99.6% | 99.6% | 99.6% | CCL + (TML) eXtreme Gradient Boosting (XGBoost) | Simulation | |
| [40] | – | 99.5% | 99.5% | 99.5% | 99.5% | CCL + (TML) Support Vector Machine (SVM) | Simulation | |
| [27] | 109 | – | 98.9% | 98.0% | 98.5% | CCL + (DL) BiLSTM | Field Test | |
| [13] | 269 | 97.8% | 95.9% | 99.1% | 97.5% | CCL + (DL) CNN-LSTM | Simulation | |
| [13] | 269 | 97.4% | 100.0% | 94.2% | 97.0% | CCL + (DL) CNN | Simulation | |
| [27] | 109 | – | 93.6% | 97.9% | 95.7% | CCL + Wavelet Transform + (DL) FNN | Field Test | |
| [27] | 109 | – | 94.0% | 96.3% | 95.1% | CCL + (DL) CNN | Field Test | |
| [13] | 269 | 94.8% | 100.0% | 88.4% | 93.9% | CCL + (DL) LSTM | Simulation | |
| [38] | 8 | 100.0% | – | – | – | CCL + (DL) Relative Amplitude | Field Test | |
| [24] | – | – | – | – | – | CCL + Cross Correlation + Predefined Threshold | Field Test | |
| [19] | – | – | – | – | – | CCL + Wavelet Transform | Theoretical | |
| [41] | 110 | 99.5% | 99.8% | 99.7% | 99.7% | VideoLog + (DL) YOLOv5 | Simulation | |
| [39] | 67 | 99.0% | – | – | – | VideoLog + (DL) Faster-RCNN | Simulation | |
| [14] | 103 | 86.9% | – | – | – | VideoLog + Graphical Features | Simulation | |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Realization of Precise Perforating Using Dynamic Threshold and Physical Plausibility Algorithm for Self-Locating Perforating in Oil and Gas Wells
Si-Yu Xiao , Guo-Hui Ren , Tian-Hao Mao , Yu-Qiao Chen , Yi-An Liu , Jun-Jie Wang ,Kai Tang , Xin-Di Zhao , Zhi-Jian Yu , Shuang Liu 1, Tu-Pei Chen and Yang Liu S.Y. Xiao, T.H. Mao, Y.Q. Chen, Y.A. Liu, J.J. Wang, S. Liu and Y. Liu are with the State Key Laboratory of Electronic Thin Films and Integrated Devices, University of Electronic Science and Technology of China, Chengdu 611731, China.G.H. Ren, K. Tang, X.D. Zhao are with the Southwest Branch of China National Petroleum Corporation Logging Co., Ltd., Chongqing 401100, China.Z.J. Yu is with Chengdu Original Dynamics Technology Co. Ltd., Chengdu 610041, China.T.P. Chen is with the School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore 639798.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.1Corresponding author.
Abstract
Accurate depth measurement is critical for targeting designated perforation intervals to maximize hydrocarbon recovery. While next-generation automated wireless perforating techniques reduce reliance on costly surface infrastructure and personnel, they lack the continuous depth correlation provided by conventional wireline cables. Consequently, correlating real-time casing collar locator (CCL) signals with a pre-recorded casing tally is essential for automatic depth determination. However, implementing this measurement remains challenging: downhole instruments must process CCL signals in real-time to identify collar signatures from complex interference, a task severely restricted by the limited computational resources and power budget of high-temperature downhole electronics. To address these constraints, this work proposes the Dynamic Threshold and Physical Plausibility Depth Measurement and Perforation Control (DTPPMP) system. This integrated solution enables in situ depth calibration by correlating CCL signals with the casing tally using lightweight algorithms for dynamic-threshold-based collar recognition and physical plausibility verification. Field tests demonstrate a collar recognition F1-score of at a throughput of . Notably, the algorithm requires only per sample, confirming its computational efficiency and suitability for deployment on resource-constrained, high-temperature downhole platforms.
©2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, including reprinting/republishing this material for advertising or promotional purposes, collecting new collected works for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.
I Introduction
Perforation is a pivotal operation in the development of oil and gas resources. It establishes a connection between the wellbore and the reservoir [21] by creating tunnels in the rock formations employing shaped charges [23], as shown in Fig. 1. Perforating at optimal intervals maximizes hydrocarbon recovery from subsurface reservoirs, thereby directly influencing well productivity [12, 23, 21, 8]. Consequently, the accuracy of perforation positioning is critical [21, 27]. However, accurate downhole navigation (specifically, measuring the depth of downhole equipment) presents significant challenges due to the harsh operating environment. This environment is characterized by wellbores with restricted diameters (often only a few feet) that extend thousands of meters underground [42, 31], coupled with high-temperature and high-pressure (HPHT) conditions [4, 24].
Tethered conveyance constitutes a conventional technique in downhole operations, utilizing a physical cable to connect downhole instrumentation to the surface [31]. This cable, typically composed of armored electromechanical wire, facilitates power transmission, data telemetry, and mechanical support [31]. Among these applications, wireline perforating stands out as a predominant approach in current production practices [28]. Fig. 2 depicts a typical hydrocarbon well site. During wireline perforating, a toolstring comprising various sensors and perforating guns is lowered into the wellbore via a winch located on the drilling platform. The tool depth is initially estimated by surface wheel measurement (SWM) method. Sensor signals are transmitted in real-time to the surface logging system through the cable [24, 3], allowing for depth correlation and correction. Upon reaching the target interval, the shaped charges within the gun are initiated to execute the perforation.
Wireline perforating is a well-established technique offering distinct advantages, including:
Robustness in high-temperature and high-pressure (HPHT) environments [24]; 2. 2.
Precise control over the running in hole (RIH) speed [31];
Conversely, the technique encounters several challenges:
Operational complexity due to the physical cable, necessitating heavy infrastructure such as logging trucks, lifting equipment, and specialized crews [10, 29, 30]; 2. 2.
Elevated safety risks associated with the complexity of equipment and operations [10, 5]; 3. 3.
Increased operational costs driven by logistical requirements and equipment maintenance [10, 8].
To address these limitations, untethered conveyance has emerged as a promising alternative. Extensive research has focused on untethered logging instrumentation [8, 29, 30, 31, 16] and downhole robotics [28]. In the context of perforation, ExxonMobil have proposed untethered, self-navigating, and self-destructing disposable perforating tools [10] to replace conventional wireline systems.
Wireless perforating offers compelling operational advantages:
Elimination of surface infrastructure and personnel [10, 30, 32], thereby reducing operational costs [10, 31] and safety risks [10, 5]; 2. 2.
Simplified deployment, potentially requiring only a single operator without specialized crews [30]; 3. 3.
Reduction in environmental footprint and air emissions due to the removal of heavy surface equipment [10].
However, the implementation of this technology is impeded by technical challenges:
Navigational difficulties within the wellbore due to the absence of continuous depth correlation provided by the wireline [31, 28]; 2. 2.
Challenges in real-time wireless data transmission caused by severe attenuation of electromagnetic and acoustic signals over long distances [32]; 3. 3.
Operational constraints in procedures such as pump-down perforating (e.g., Plug-and-Perf), which demand real-time localization and decision-making [1]; 4. 4.
The unavailability of SWM-based depth data, which necessitates a shift from depth-driven logging to time-driven logging paradigms.
Addressing these challenges is a prerequisite for establishing wireless perforating as a viable industrial solution.
Depth determination, also referred to as localization, is a fundamental prerequisite for effective navigation. Several methodologies have been established to address this challenge.
The SWM technique is a direct and straightforward approach for estimating the depth of downhole equipment [3, 27]. This method relies on quantifying the deployed cable length via a depth wheel (also known as a counter wheel) [2]. However, the accuracy of this approach is susceptible to errors introduced by cable slippage, elastic stretch, calibration discrepancies of the depth wheel, and thermal or viscoelastic deformations affecting both the perforating guns and the cable [27].
Natural gamma ray (GR) detection serves as another standard method for depth definition based on formation lithology [31, 28, 27]. Nevertheless, the application of GR tools is constrained by the requirement for reduced logging speeds to ensure sufficient signal integration [23]. Furthermore, high-precision GR instrumentation entails significant capital expenditure, and the retrieval of tools further escalates operational costs.
Inertial navigation utilizing inertial measurement units (IMUs) constitutes a third widely adopted technique [17, 26]. However, the IMUs are susceptible to degradation from mechanical shock, vibration, and sensor noise. Moreover, the inherent accumulation of drift errors over extended distances presents a critical challenge that is often uncorrectable without external reference [26].
A wellbore casing string is comprised of individual metal pipe segments connected by casing collars. The cumulative depth of each collar, collectively known as the “casing tally”, is derived from well completion records, which document the sequential arrangement of pipe installed [32]. As the casing structure remains static following installation, the casing tally serves as a robust fiducial reference for downhole depth measurement and navigation [19, 3, 31, 11]. The casing collar locator (CCL), a sensor frequently integrated into downhole toolstrings [32], is typically constructed with two strong permanent magnets and an induction coil [24, 2, 31]. The CCL operates by detecting variations in ferromagnetic mass at the casing collars. As the tool traverses a collar [19, 31], the resulting perturbation in magnetic flux induces an electromotive force (EMF) within the coil [19, 24, 2, 28, 27]. Consequently, the accurate identification and correlation of these collar signatures is critical for precise depth correction [27]. In wireline-conveyed operations, the CCL signal is transmitted in real-time to the surface logging system via the wireline cable [3]. Conversely, in wireless or autonomous applications, the signal must be processed in situ by the downhole equipment.
Navigation based on CCL signals is a robust and cost-effective methodology [2, 3] that has served as a primary standard in the hydrocarbon industry for decades [31]. Additionally, CCL sensors are capable of reliable operation under HPHT conditions [24]. Furthermore, the detection mechanism remains effective across varying RIH speeds, a critical feature for untethered equipment where velocity control may fluctuate [31]. However, the traditional workflow, which relies on manual visual correlation by experts, is labor-intensive, subjective, and time-consuming [27]. This manual approach often results in reduced operational efficiency and increased susceptibility to human error, primarily because raw CCL signals exhibit significant complexity and variability, necessitating analysis to discriminate genuine collar signatures from interference.
Theoretically, casing collars generate characteristic M-shaped bipolar waveforms, hereafter referred to as “casing (collar) signals” or “collar (magnetic) signatures”. Representative examples of genuine collar signatures and interference signals are presented in Figs. 3 and 4, respectively. In practical scenarios, signal interference arises from diverse sources, which can be categorized as follows:
Casing Condition and Magnetization: Mechanical wear, geometric deformation induced by formation pressure, and residual magnetization of the casing string. These factors alter the local magnetic permeability, introducing anomalous signals [3, 40]; 2. 2.
System Properties: Intrinsic characteristics of the downhole equipment (e.g., the CCL sensor) and the physical attributes of the casing (e.g., diameter, wall thickness, and material) [27]; 3. 3.
Transmission Limitations: Signal attenuation inherent to extended wireline cables [6] and degradation due to parasitic circuit parameters, which is particularly detrimental in unmodulated analog transmission systems; 4. 4.
Toolstring Dynamics: Motion artifacts resulting from the toolstring swinging, rotating, or impacting the casing wall during conveyance; 5. 5.
Operational Factors: Human errors such as inappropriate amplifier gain settings leading to signal saturation, or non-standard operating procedures [3, 40]; 6. 6.
Environmental Noise: Electromagnetic interference (EMI) and electronic disturbances, including antenna effects coupled into long wireline cables; 7. 7.
Measurement Errors: Stochastic noise and quantization errors [35].
Collectively, these factors compromise the detection accuracy of casing collars. Detection errors can lead to erroneous depth corrections, resulting in severe operational consequences [27].
It is important to distinguish this interference from stochastic noise, although the term “noise” is occasionally used colloquially in the literature to describe these artifacts [32]. Unlike stochastic noise, the physical generation mechanism of certain interference signals is analogous to that of genuine collar signatures, making them difficult to discriminate, as evidenced by the similarities observed in Figs. 3 and 4. Consequently, conventional filtering techniques are often ineffective in suppressing such interference.
To address the challenge of accurate casing collar identification, various methodologies have been proposed in recent years. These can be broadly categorized into time-frequency analysis, deterministic time-domain filtering, data-driven approaches, and image-based feature extraction.
Time-frequency analysis represents a conventional approach, utilizing techniques such as the Fourier transform [20] and wavelet transform [18, 19]. However, these methods often exhibit limited robustness against interference in complex industrial environments [40]. Furthermore, increasing scale resolution to enhance analysis accuracy imposes a significant computational burden, often exceeding the processing capabilities of standard downhole instrumentation.
Deterministic time-domain filtering constitutes another primary methodology. Threshold-based techniques, employing either fixed [37] or dynamic thresholds (DTs) [38, 7], are widely used. However, these methods rely on predefined heuristics and often fail to effectively suppress complex interference [40]. While the algorithm based on multi-hypothesis localization and Bayesian filtering demonstrate superior performance on field data [32], it necessitates multi-modal sensors. Correlation-based methods [24, 20] are also common but are computationally intensive and suffer from limited generalization due to their reliance on fixed template matching.
Data-driven approaches have emerged as a significant research direction, demonstrating efficacy in various applications [15], such as depth alignment [35, 34], resistivity log interpretation [25], perforation penetration prediction [9], and drilling rate evaluation [22]. Regarding collar identification, both traditional machine learning (TML) [40] and deep learning (DL) [27, 36] techniques have been utilized. While these methods offer improved generalization and automate feature extraction, they demand substantial computational resources and extensive training datasets. Currently, such processing is typically restricted to surface workstations, precluding real-time, in-situ application. Notably, the neural network architecture proposed in [27] incorporates bidirectional long short-term memory (Bi-LSTM) layers. Since Bi-LSTMs require access to future data points, they are inherently non-causal in a streaming context, rendering them unsuitable for real-time downhole deployment. Consequently, data-driven methods require further optimization for embedded downhole systems.
Image-based recognition constitutes another category, including visual [14, 43, 41, 39] and ultrasonic imaging [36]. Deep neural networks have also been applied to detect casing collars within such imagery [43, 41, 39]. However, these techniques often necessitate well flushing to ensure clarity, thereby increasing operational costs. Additionally, they require reduced RIH speeds to prevent motion blur, a constraint incompatible with the requirements of wireless perforating. Furthermore, the high computational overhead and extensive training datasets requirements further render these methods impractical for autonomous downhole processing without surface support.
The limitations of existing methodologies highlight the need for a novel approach. An optimal solution should:
Enable precise downhole navigation and perforation at designated intervals based on collar signatures; 2. 2.
Ensure compatibility with existing downhole equipment and operational procedures, encompassing both wireline and wireless perforating approaches; 3. 3.
Perform real-time, in-situ processing of CCL signals to discriminate collar signatures from interference directly on the downhole tool; 4. 4.
Maintain a lightweight, low-cost profile suitable for deployment on embedded platforms on the downhole tool; 5. 5.
Remain robust against variations in RIH speed and eliminate the requirement for well flushing.
To bridge this gap, this study proposes the Dynamic Threshold and Physical Plausibility Depth Measurement and Perforation Control (DTPPMP) system, as illustrated in Fig. 5. This system is integrated into a perforating gun, a standard downhole tool. It is designed to acquire and process CCL signals, distinguish collar signatures from interference, and accurately determine depth to perforate at designated intervals. All signals are automatically acquired and autonomously processed in situ within the perforating gun, eliminating the need for analog signal transmission over extended wirelines. This approach mitigates the signal degradation inherent to conventional methods. The in-situ identification of casing collars is enabled by a lightweight algorithm deployed on the STM32H725 microcontroller of the DTPPMP system. By integrating the algorithm into the downhole equipment for in-situ processing, perforation operations are simplified, making the surface equipment illustrated in Fig. 2 unnecessary. Furthermore, operational costs associated with drilling platforms, surface infrastructure, and personnel, which constitute a significant portion of total expenses, can be substantially reduced through the use of autonomous, disposable perforating guns [10].
The DTPPMP system was validated through field trials in a vertical oil well in Sichuan, China. Experimental results demonstrate that the system accurately identifies collar signatures, performs real-time depth measurement, and executes perforation at target intervals.
The main contributions of this work are summarized as follows:
We propose the DTPPMP system, a cost-effective solution integrated into the perforating gun. This system enables precise, real-time, and in-situ depth measurement for perforation at designated intervals. 2. 2.
We develop a computationally efficient algorithm for CCL signal recognition and depth measurement based on correlating CCL signals with the casing tally. And we analyze the meaning and impact of parameters in the algorithm. 3. 3.
We validate the feasibility and accuracy of the DTPPMP system through field experiments and benchmark its performance against existing methods.
This applied research paper focuses on the signal processing, depth measurement, and system design of self-locating perforating systems. The remainder of this paper is organized as follows: Section II presents an analysis of the CCL signal characteristics. Section III describes the signal processing and control algorithms, including dynamic-threshold-based collar recognition, physical plausibility verification, kinematic state calculation, and initiation determination. Section IV details the design and implementation of the DTPPMP system, encompassing both hardware and software architectures. Section V presents the experimental methods and results. Section VI provides a discussion of these results, including a sensitivity analysis, field test evaluations, and comparisons with existing methods. Finally, Section VII concludes the paper.
II CCL Signal Analysis
As previously established, the raw signal acquired from the CCL is an analog waveform comprising collar signatures, interference signals, and noise, as illustrated in Figs. 3 and 4. Frequency-domain analysis reveals that both casing collar signatures and interference signals typically occupy the frequency band of , whereas noise is predominantly concentrated in the higher frequency spectrum. Furthermore, based on the characterization of CCL signals in [33], the temporal width of the collar signatures is inversely proportional to the logging speed, negatively correlated with the CCL coil length, and independent of the casing collar length.
Each recognizable collar signature, as shown in Fig. 3, features a main peak with a significantly larger amplitude than the prevalent signals. To identify these main peaks, the CCL waveform is first normalized; subsequently, the collar signatures and non-collar signals are color-coded gold and sky-blue, respectively, as shown in Fig. 5(a). To simplify the analysis, all adjacent waveform segments corresponding to actual collar locations are classified as part of the collar signatures. Because Fourier transform analysis yields suboptimal results for this differentiation, signal amplitude and statistical distribution are utilized as the primary distinguishing features between collar signatures and interference signals.
Fig. 5(b) and (c) present a violin plot and a histogram, respectively, illustrating the probability densities of the two signal types. Specifically, the violin plot in Fig. 5(b) displays the absolute values of the normalized waveforms for both collar signatures and non-collar signals. To provide greater detail, a partial enlargement of Fig. 5(c) is shown in Fig. 5(d). As indicated by Fig. 5(c), collar signatures constitute a marginal fraction of the total signal data. Furthermore, Fig. 5(b) and (d) reveals that collar signature samples predominantly fall outside three standard deviations () from the mean, a characteristic rarely exhibited by non-collar signals. These statistical characteristics suggest that collar signatures can be reliably identified from streaming data by detecting relative amplitudes that exceed a high threshold of statistical significance.
III Processing Algorithm
To ensure precise perforation based on accurate depth measurement, the overall procedure is divided into four primary stages: casing collar recognition, physical plausibility verification, kinematic state calculation, and initiation determination, as illustrated in Fig. 6(g).
Initially, the casing collar recognition algorithm processes the streaming CCL signal to identify collar signature candidates, as depicted in Fig. 7. These candidates are subsequently evaluated through a physical plausibility verification process; invalid candidates are discarded, as shown in Fig. 8. The retained valid candidates are then utilized to calculate the kinematic state (specifically its depth, velocity, and acceleration) of the downhole toolstring by correlating them with the casing tally, which facilitates further depth calibration. Real-time depth is continuously updated based on the latest kinematic state. Finally, the initiation determination algorithm monitors this depth and issues initiation commands upon reaching the designated perforation intervals.
III-A Dynamic-Threshold-Based Collar Recognition
To identify the main peaks of the collar signatures, a dynamic amplitude threshold is calculated using the standard deviation of the signal samples within a recognition window. The upper and lower thresholds are defined as:
[TABLE]
where denotes the CCL signal sample at discrete time index ; is the width of the recognition window; and is the significance coefficient. To calculate the thresholds efficiently, the integer sample values are pushed into a circular buffer acting as a circular queue, as illustrated in Fig. 7. In each iteration, the sums of and are updated using the newly acquired sample and the discarded sample, while floating-point operations are deferred to the final step. Because the raw samples are integers, this arithmetic rearrangement is exact and valid. This optimization eliminates redundant calculations, thereby reducing the time complexity from to .
Signal samples falling outside the range defined by the upper and lower thresholds are considered potential collar signals, represented by a binary sequence termed the potential mask. This mask, , is determined as follows:
[TABLE]
To eliminate glitches, the potential mask is smoothed using a moving average filter with a window width of . Omitting the initial scaling factor, the expression simplifies to:
[TABLE]
A continuous potential collar mask, , is then obtained via:
[TABLE]
where is a predefined threshold for the smoothed score. Through standard pulse detection, the temporal centroid of the mask is extracted and identified as the collar candidate, denoted generally as . The computational optimization for this filtering process mirrors that of the threshold calculation. It should be noted that the moving average filter inherently introduces a delay of samples.
III-B Physical Plausibility Verification and Depth Calibration
In the worst-case scenario, the amplitude of an interference signal may be as large as that of a genuine collar signature (hereafter referred to as a “real collar”), as illustrated in Fig. 4. These misleading signals, termed “fake collars”, must be excluded to prevent measurement inaccuracies.
Due to the large mass of the perforating gun, abrupt changes in its velocity are physically implausible. Therefore, fake collars can be excluded by calculating the average velocity associated with a collar candidate and verifying that this velocity falls within a reasonable range.
For the -th valid collar, the average velocity is given by:
[TABLE]
where and represent the depth and time of the -th valid collar, respectively; denotes the average velocity between the -th and -th valid collars; and is the change in average velocity compared to the preceding interval. Notably, is derived from the casing tally, and is the timestamp of the verified collar. For a collar candidate, the average velocity is calculated as:
[TABLE]
where represents the hypothetical average velocity if the candidate were the -th valid collar, and denotes the difference between this candidate’s velocity and the preceding valid average velocity.
There are three possible classifications for a collar candidate: a newly recognized real collar, a replacement for a patch collar, and a fake collar (an invalid collar), as illustrated in Fig. 8. The candidate is classified as a newly recognized real collar if the following condition is satisfied:
[TABLE]
where denotes a fixed threshold for the relative change in the average velocity difference. When a candidate is recognized as a new real collar, its timestamp is recorded as , and its depth is derived from the casing tally. The index for the subsequent real collar is then incremented to .
If condition (6) is not satisfied and the most recent collar is a patch collar, the following criterion is applied to determine whether the candidate corresponds to the patch collar predicted during the previous verification step:
[TABLE]
where is derived from the corresponding patch collar. Upon such recognition, the candidate replaces the previous patch collar as a verified real collar, and the previous patch collar item is invalidated.
If conditions (6) and (7) are not satisfied, the candidate is classified as a fake collar and subsequently discarded.
To determine the kinematic state of the downhole toolstring during the subsequent collar interval (between the latest verified collar and the next) using the timestamps and depths of latest verified collars, the differential equations governing velocity and acceleration are formulated as follows:
[TABLE]
where , , , and represent the depth, velocity, acceleration, and time, respectively. To simplify the model, it is assumed that the forces acting between consecutive collars remain unchanged, resulting in a constant acceleration. The corresponding boundary conditions are given by:
[TABLE]
where , , and represent the timestamps of three consecutive real collars (note that this indexing differs from the definition of ); and , , and represent their corresponding depths. Assuming is the most recent timestamp, the remaining kinematic state of this collar, denoted by and , can be determined. Subsequently, the depth and velocity at any given time are calculated using the following equations:
[TABLE]
The equation coefficients are updated upon the verification of a new real collar.
By substituting the depth of the next real collar, , the arrival time of the next real collar can be predicted using the following equation:
[TABLE]
where represents the predicted timestamp of the next real collar. The positive root of the quadratic equation is selected to ensure that .
If a collar candidate does not appear at the predicted time, which may be due to missed detection or unexpected deceleration, a patch collar is inserted at the predicted timestamp, as shown in Fig. 8. In a deceleration scenario, the patch collar is invalidated once the corresponding real collar is detected; in a missed detection scenario, adding a patch collar prevents indexing misalignments within the casing tally.
In summary, physical plausibility verification is applied to correct potential errors in casing collar identification, thereby improving the overall accuracy of the depth measurement.
III-C Initiation Determination
Based on (10), the initiation time is calculated using the latest kinematic state and the depth of the target interval. To ensure safety, the initiation time is established only if the most recently detected collar is verified as a real collar. Additionally, a software lockout mechanism based on depth and time is implemented to prevent accidental initiation.
IV System Design and Implementation
IV-A System Architecture
The DTPPMP system is integrated into a perforating gun, as illustrated in Fig. 6. The perforating gun comprises three primary components: a control capsule, a CCL, and a gun carrier serving as the payload, as shown in Fig. 6(c) and (d). Unlike typical perforating gun structures, the gun carrier, on which the shaped charges are installed, is positioned at the head rather than the middle, as shown in Fig. 6(b). The CCL is located in the middle and is identical to the conventional Type CNLC-73-150 model. Its structure is depicted in Fig. 6(a). The control capsule, situated at the tail, contains the system module, battery, and top sub-assembly. For wireline perforating, the top sub-assembly is equipped with a cable head; for wireless perforating, it features a buoyant body or a fishing neck for recovery operations. The key hardware specifications of the DTPPMP system are summarized in Table I.
IV-B System Module Overview
As depicted in Fig. 6(e), the system module housed within the control capsule comprises several submodules, including an analog front-end (AFE) module, a signal processing and control module, a data storage module, an initiation module, and other auxiliary modules (e.g., an I/O module). The signal processing and control module is built around the STM32H725, a high-performance microcontroller unit (MCU) featuring a 32-bit ARM Cortex-M7 core operating at a clock speed of . The MCU governs the overall operation of the system, including the acquisition and processing of raw digitized CCL signals, collar identification, depth measurement, and initiation module control. Additionally, the STM32H725 features two integrated 16-bit analog-to-digital converters (ADCs) with a maximum sampling rate of .
IV-C AFE Module
As the perforating gun descends into the well via a winch or gravity, the AFE module acquires the analog CCL signals and converts them into a digital format. As detailed in Fig. 9, the AFE comprises a programmable gain amplifier (PGA), an anti-aliasing filter (AAF), and the integrated ADC of the MCU. The PGA scales the signal amplitude to match the required dynamic range. The AAF acts as a low-pass filter to attenuate high-frequency noise. The ADC digitizes the conditioned CCL signal at a sampling rate of with 16-bit resolution, and the resulting digital stream is transferred to the MCU core for subsequent processing. Given the low-frequency characteristics of the signals analyzed previously, this streamlined hardware architecture is sufficient.
IV-D Signal Processing and Control Module
The collar identification and depth measurement algorithms, executed by the MCU, identify genuine collar signatures, filter out interference, and calculate the kinematic state (including descent depth) in real time, as illustrated in Fig. 6(g). Upon reaching the target perforation intervals, the initiation module triggers the detonation of the shaped charges, as shown in Fig. 1(b) and (c). Log data generated during sampling and algorithmic processing are stored in the data storage module. Following the perforation operations, the control capsule is recovered.
To realize these functionalities, the firmware is designed to fully utilize the platform’s capabilities, as illustrated in Fig. 6(f). FreeRTOS, a real-time operating system (RTOS), manages system tasks, including sampling, processing, and logging. Triggered by a hardware timer interrupt to ensure precise sampling intervals, the sampling task acquires the digitized CCL data from the ADC and transmits the corresponding timestamps and ADC values to the processing task via a message queue. Upon receiving this message, the processing task executes the identification algorithms and caches the resulting log data in a buffer. Once the buffer reaches capacity, the logging task writes the data to the storage module via direct memory access (DMA).
IV-E Workflow of the DTPPMP System
Based on the system design, the operational workflow of the DTPPMP system proceeds as follows:
System Initialization: This phase includes the assembly of the perforating gun, configuration input, and pre-deployment surface checks. 2. 2.
Activation: The DTPPMP system is activated upon entry into the wellbore. For wireline perforating, the gun is lowered via a winch; for wireless perforating, it may descent by gravity. 3. 3.
Depth Measurement: The system recognizes casing collar signatures using physical plausibility verification and calculates the kinematic state to continuously calibrate depth measurements as the gun descends. Notably, unlike traditional methods that perform collar identification and perforation during the ascent, the proposed method executes these processes during the descent. 4. 4.
Initiation: The system initiates the detonation of the shaped charges upon reaching the target perforation interval. 5. 5.
Recovery: The perforating gun is retrieved from the wellbore. In wireline systems, retrieval is performed using a winch, whereas in wireless systems, the gun is recovered utilizing a fishing neck or buoyancy mechanisms.
This complete workflow is illustrated in Fig. 2.
V Evaluation and Results
V-A Parameter Selection
To determine the optimal parameters for the casing collar recognition and physical plausibility verification algorithms, historical logging data are utilized to conduct a sensitivity analysis and an ablation study. To rigorously evaluate the effectiveness of the proposed methods, logs exhibiting interference are specifically selected. Parameter sensitivity is assessed by varying a single parameter while keeping the others constant.
The recognition results are compared against the casing tally, which serves as the ground truth. Specifically, recognized collar signatures that align with the casing tally are defined as true positives (TPs); recognized collars that do not match the casing tally are defined as false positives (FPs); and undetected actual collars are defined as false negatives (FNs). Accuracy, precision, recall, and the F1-score are subsequently calculated to evaluate the performance of the DTPPMP system.
The evaluation results are presented in Fig. 10, which compares the performance of the standalone dynamic threshold (DT) collar recognition against the DT method combined with physical plausibility verification (DTPP). Based on these experimental results, the system parameters are configured as follows:
[TABLE]
V-B Field Test
An operational oil well in Sichuan, China, depicted in Fig. 11(a), was utilized to verify the feasibility and reliability of the DTPPMP system. Prior to the downhole experiment, a comprehensive pre-deployment check was conducted on the surface, as illustrated in Fig. 11(b).
During the downhole experiment, the perforating gun equipped with the DTPPMP system was deployed into the wellbore via a winch from the drilling platform, and the system was activated upon entry. The descent velocity accelerated from [math] to a constant speed of . The target perforating interval was set at from the wellhead. To ensure operational safety, live shaped charges were omitted; only detonators were installed. Following the test, the tool string was retrieved to the surface for data extraction. The entire operational sequence was recorded by the onboard storage module and subsequently exported to a computer for analysis. Such experimental procedure was repeated multiple times to ensure consistency. The data log from a representative experiment is presented in Fig. 12.
In this evaluation, the recognition results were compared against the casing tally to quantify the occurrences of false positives and false negatives. Accuracy, precision, recall, and the F1-score were subsequently calculated to comprehensively assess the performance of the DTPPMP system. The resulting confusion matrix and the corresponding evaluation metrics are detailed in Table II.
VI Discussion
VI-A Sensitivity Analysis and Ablation Study
Fig. 10(a) illustrates the sensitivity of the detection metrics, including precision, recall, and the F1-score, to the width of the recognition window, . The results indicate that the system maintains stable performance and a high F1-score when exceeds , demonstrating the robustness of the proposed method against variations in . However, cannot be arbitrarily large. First, because the data within the recognition window must be buffered, a larger inherently demands increased memory consumption. Second, an excessively large causes large-amplitude signals to persist for a longer duration, potentially obscuring the recognition of small-amplitude collar signatures. Therefore, is set to .
Fig. 10(b) illustrates the sensitivity of the detection metrics to the significance coefficient, . The results indicate that the system maintains stable performance and a high F1-score for values ranging from . Considering the definition of alongside the statistical distributions presented in Fig. 5(d), is fundamentally constrained by the statistical characteristics of the signal. Specifically, an overly large leads to missed detections, whereas a small increases the likelihood of incorrectly identifications. Therefore, is set to .
Fig. 10(c) illustrates the sensitivity of the detection metrics to the moving average filter window width, . The system maintains stable performance and a high F1-score when ranges from , confirming the method’s robustness to variations in . Similar to the constraints on , cannot be excessively large. Furthermore, a large introduces significant latency into the system, which is detrimental to real-time applications. Therefore, is set to .
Fig. 10(d) illustrates the sensitivity of the detection metrics to the smoothed potential collar score threshold, . The performance remains stable with a high F1-score for values between , indicating robustness against variations in this parameter. The RIH speed influences the temporal distribution of the smoothed potential collar scores generated by the collar signatures. Consequently, a high threshold results in missed detections at elevated RIH speeds, whereas a low threshold incorrectly classifies interference as valid collar signatures. As a result, is set to .
Finally, Fig. 10(e) illustrates the sensitivity of the detection metrics to the threshold for the relative change in the average velocity difference, . The system exhibits stable performance and a high F1-score when ranges from , verifying its robustness to variations in . Because represents the permissible degree of velocity fluctuation, its optimal value is physically constrained by the mass of the perforating gun and the prevailing wellbore conditions. An excessively high diminishes the system’s ability to filter out false positives, while an excessively low value mistakenly rejects correct identifications. Therefore, is set to .
To validate the contribution of each module, the results of the ablation study are illustrated in Fig. 10(a)–(d). It can be observed that, within a reasonable range of parameter values, the physical plausibility verification algorithm improves the recognition F1-score by approximately . This demonstrates that the physical plausibility verification algorithm is effective in filtering out false positives and mitigating false negatives.
Interestingly, the overall recognition performance coupled with physical plausibility verification may even degrade compared to the baseline without physical plausibility verification if the initial performance of the dynamic threshold recognition algorithm is suboptimal. This indicates that the physical plausibility verification algorithm relies on the preceding algorithm achieving a sufficiently high baseline performance to yield further improvements. Therefore, optimizing the primary collar recognition algorithm remains a necessary prerequisite.
VI-B Complexity Analysis
We analyze the computational complexity of the proposed algorithm across four primary stages: casing collar recognition, physical plausibility verification, kinematic state calculation, and initiation determination. Casing collar recognition involves summation operations that are optimized using a circular buffer, resulting in time and space complexities. Physical plausibility verification computes the average velocity, which is cached in memory, similarly requiring time and space. The kinematic state calculation relies on solving a quadratic equation, taking time and space. Finally, initiation determination is a constant-time operation requiring time and space. Consequently, the overall time complexity of the proposed algorithm is per sample, and the space complexity is .
When deployed on an embedded platform during our experiments, the average processing time for a single sample is , which comfortably satisfies the requirements for real-time applications operating with a sampling period. This substantial processing margin demonstrates that the proposed algorithm is highly efficient and suitable for deployment on platforms with limited computing resources. Consequently, it facilitates a reduction in overall system costs, a critical consideration for disposable applications. This computational advantage is sufficient to offset the slight shortcomings observed in the recognition metrics.
VI-C Field Test Analysis
Furthermore, the experimental log data were analyzed. As depicted in the experimental record in Fig. 12, manual analysis of the CCL logs confirmed that the initiation signal was transmitted between the 110th and 111th casing collars, located at and from the casing tally, respectively. This corresponds to the designated perforating interval, demonstrating an error margin of less than one collar length. These field test results verify that the system operated accurately and efficiently during the experiment.
The detailed procedures of the remaining experiments are omitted for brevity; however, their comprehensive performance statistics are summarized in Table II.
Table III presents a comparison between the recognition performance of the proposed DTPPMP and that of existing methods. Within the category of non-machine learning approaches, DTPPMP consistently achieves top-tier performance in terms of both accuracy and F1-score. Although methods utilizing neural networks yield an improvement of approximately in F1-score, they demand significantly higher computational resources. Furthermore, the reported F1-score of DTPPMP surpasses the metrics reported for the neural network-based CCL signal identification methods reported in [27, 13]. Significantly, among the methods listed in Table III, DTPPMP is the only approach capable of performing real-time, in-situ recognition and depth measurement.
However, establishing a direct, unified benchmark presents critical challenges due to the diversity of methodological paradigms in the literature, the frequent unavailability of algorithmic implementation details, and the inaccessibility of proprietary datasets utilized in related works. Table III systematically compiles the available reported performance metrics of existing methods, thereby providing a comparative overview. Even when accounting for variations in experimental setups, the proposed DTPPMP system exhibits distinct advantages in recognition performance, parameter efficiency, and computational economy relative to the existing literature.
VI-D Effects of Operation Configurations
Although the field validation was conducted on a specific well, the proposed method is designed based on the fundamental physical characteristics of casing collars. As discussed in [33], the effects of various well conditions and operational parameters are summarized as follows:
- •
Casing inner diameter: Inversely affects the amplitude of the collar signature.
- •
Casing thickness: Exhibits no significant effect.
- •
Annular clearance: Inversely affects the amplitude of the collar signature.
- •
CCL coil turns: Directly proportional to the amplitude of the collar signature.
- •
CCL coil length: Alters the morphology of the collar signature.
- •
CCL magnet size: Exhibits no significant effect.
- •
RIH speed: Directly proportional to the amplitude of the collar signature, but inversely proportional to its temporal width.
Under varying well conditions, the proposed method remains applicable by adjusting the gain of the PGA, as the fundamental characteristics of the collar signatures remain consistent across different wells. However, the algorithmic parameters must be calibrated to accommodate different CCL coil lengths and RIH speeds, as these operational factors directly influence the morphological characteristics of the signature.
VI-E Application Scope
Governed by the fundamental principles of collar signature generation, the proposed DTPPMP system is strictly applicable to cased-hole oil and gas wells equipped with ferromagnetic casing strings. Because the method relies solely on these material properties rather than gravity or orientation, it supports operations across diverse well types, including vertical, deviated, and horizontal wells. Furthermore, relying on the principles of depth correlation, an accurate casing tally for the target well is indispensable. Additionally, while the proposed method is specifically designed for compatibility with both wireline and wireless perforating systems, it can be adapted for other tethered or untethered conveyance methods by adjusting the algorithmic parameters. Finally, the system requires an RIH speed of approximately , as the dynamic thresholding is optimized for this specific range. Significantly higher speeds may necessitate further calibration of the algorithm parameters.
The proposed method eliminates the reliance on surface equipment, thereby reducing both equipment footprint and personnel requirements. This characteristic is particularly advantageous for integration into self-destructing, disposable perforating tools. Moreover, the proposed approach contributes to enhancing the automation and intelligent execution of perforating operations, ultimately reducing operational costs, safety risks, and potential environmental impacts.
Notably, the proposed physical plausibility verification algorithm is orthogonal to specific collar recognition techniques. Therefore, it can be integrated with various collar-based depth measurement methods to further reduce false positive and false negative rates, ultimately improving the overall accuracy of collar recognition and depth measurement.
VI-F Limitations and Future Work
The availability of historical and field test data is currently limited due to the logistical challenges of securing access to operational wells. Additionally, the casing collar recognition and physical plausibility verification algorithms present opportunities for further optimization, which could ultimately enhance the overall performance of the system.
Future research should focus on conducting additional field tests and expanding the dataset to further refine the algorithmic performance. Moreover, improving the speed adaptability of the system and implementing adaptive parameter adjustment mechanisms represent key priorities for subsequent development. Furthermore, the integration of tiny machine learning (TinyML) techniques offers a promising approach to optimizing both casing collar recognition and physical plausibility verification, thereby increasing depth measurement accuracy. Finally, as autonomous perforating technologies continue to evolve, the incorporation of sensor fusion and multi-sensor arrays constitutes a highly valuable direction for future investigation.
VII Conclusions
This work proposes the DTPPMP system, a novel automatic self-locating perforating system powered by an ARM Cortex-M7-based microcontroller. The system enables real-time, in-situ, and precise depth measurements for perforating at designated perforating intervals. These capabilities are achieved by processing CCL signals and identifying collar signatures using a lightweight, dynamic-threshold-based collar recognition algorithm coupled with a physical plausibility verification algorithm. Within this framework, the physical plausibility verification algorithm is orthogonal to the collar recognition algorithm. This orthogonality allows it to be integrated with various collar recognition methods, yielding an expected improvement of approximately points in the F1-score of the collar recognition task.
Field tests have verified the system’s capability to perform accurate depth measurements and execute perforations at designated intervals. The system successfully recognizes casing collar signatures with an F1-score of at a throughput of . The recognition time requires only per sample while maintaining robust performance, representing a practical step toward automatic self-locating perforating operations.
Ultimately, this work presents a methodology that contributes to the realization of automatic self-locating perforating systems. These developments represent a meaningful step toward the automation and intelligent control of perforating operations, with the potential to reduce reliance on surface equipment and mitigate associated operational costs and safety risks.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] U. Ahmed, Z. Zhang, and R. Ortega Alfonzo (2021-11) Case study – real time downhole telemetry CCL and tension compression, a differentiator for successful manipulation of ICD’s in horizontal wells . In SPE Middle East Oil & Gas Show and Conference , Richardson, TX, USA , pp. D 031S 026R 006 . External Links: Document Cited by: item 3 . · doi ↗
- 2[2] J. O. Alvarez, E. Buzi, R. Adams, and M. Deffenbaugh (2017) Design, realization and field results of an inductive casing collar locator . In IEEE Sensors Applications Symposium (SAS) , Piscataway, NJ, USA , pp. 1–4 . External Links: Document Cited by: §I , §I , §I . · doi ↗
- 3[3] J. O. Alvarez, E. Buzi, R. W. Adams, and M. Deffenbaugh (2018) Theory, design, realization, and field results of an inductive casing collar locator . IEEE Transactions on Instrumentation and Measurement 67 ( 4 ), pp. 760–766 . External Links: Document Cited by: item 1 , item 5 , §I , §I , §I , §I . · doi ↗
- 4[4] D. Ambrus, V. Bilas, and D. Vasic (2005) A digital tachometer for high-temperature telemetry utilizing thermally uprated commercial electronic components . IEEE Transactions on Instrumentation and Measurement 54 ( 4 ), pp. 1361–1365 . External Links: ISSN 1557-9662 , Document Cited by: §I . · doi ↗
- 5[5] R. Angeles, R. Tolman, W. El-Rabaa, S. Jackson, and K. Nygaard (2012-03) Just-in-time perforating for controlled, cost-effective stimulation and production uplift of unconventional reservoirs . In SPE/EAGE European Unconventional Resources Conference and Exhibition , Richardson, TX, USA , pp. SPE–153112–MS . External Links: Document Cited by: item 2 , item 1 . · doi ↗
- 6[6] J. Brown (1990) The effects of cable on signal quality . Sound and Video Contractor , pp. 22–33 . Cited by: item 3 .
- 7[7] Y. Cong (2022) Perforating depth control method based on casing hoop automatic tracking and recognition technology . Automation in Petro-Chemical Industry 58 ( 5 ), pp. 29–33 . External Links: ISSN 1007-7324 Cited by: §I .
- 8[8] M. Deffenbaugh, E. Buzi, L. Al-Maghrabi, G. Ham, H. Seren, and G. Bernero (2017-03) An untethered sensor for well logging . In IEEE Sensors Applications Symposium (SAS) , Piscataway, NJ, USA , pp. 1–5 . External Links: Document Cited by: item 3 , §I , §I . · doi ↗
