Tubing internal casing damage detection device and method based on electromagnetic principle
By acquiring magnetic scanning and tubing arm opening curves within the oil well, interference factors are eliminated, and tubing damage characteristics are identified, accurate quantitative detection of casing damage in oil wells is achieved. This solves the accuracy and efficiency problems of casing damage detection in existing technologies and optimizes the oilfield development process.
Patent Information
- Application Number
- CN202611669629.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-24
AI Technical Summary
Existing electromagnetic induction-based casing damage detection methods cannot accurately determine whether there is casing damage in oil wells, nor can they precisely quantify the degree of casing damage. They are also affected by non-casing damage factors, which impacts casing damage control decisions.
The magnetic scanning curve and tubing arm opening curve of the oil well are obtained by using downhole inspection equipment. Through signal decomposition and reconstruction, interference mode components are eliminated. Abnormal sampling points are identified by combining tubing damage characteristics. The deformation amplitude ratio is calculated to assess the degree of casing damage, so as to achieve quantitative detection of the stationary tubing string.
It enables accurate identification of casing damage in oil wells without moving the tubing string, improving detection efficiency, reducing the termination rate of interventions, and optimizing oilfield development efficiency.
Smart Images

Figure CN123155649A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of casing damage detection technology, specifically to a casing damage detection device and method based on electromagnetic principles. Background Technology
[0002] As oilfields enter the later stages of high water-cut development, the deterioration of wellbore integrity becomes increasingly prominent, with the frequency and severity of casing damage (hereinafter referred to as casing damage) continuously rising. Current conventional casing damage detection operations require shutting in the well to depressurize and running downhole production tubing. This process is limited by well site conditions and complex wellbore conditions (such as wellbore leakage, sand blockage, and wax buildup), with single-well shutdown cycles typically exceeding six days. This results in high operating costs and significantly reduces normal production time. If casing damage is detected at a standard formation level, simultaneous shut-in and depressurization checks of injection wells within a 300m radius are also necessary. Regional injection shutdowns can cause a rapid drop in formation pressure, and the resulting pressure imbalance within the block can accelerate the spread of casing damage to adjacent wells, further amplifying development risks. Therefore, to prevent casing damage propagation and severely impact oilfield development efficiency, it is necessary to conduct casing damage detection within the tubing based on the principle of electromagnetic induction without moving the tubing, achieving casing damage detection without stopping the well or the tubing.
[0003] Existing electromagnetic induction-based casing damage detection methods typically utilize electromagnetic flaw detection logging tools. These tools transmit pulsed currents and receive coils that record the instantaneous changes in induced electromotive force (EMF) to determine whether casing damage has occurred in the well, thus achieving qualitative detection of casing damage. However, existing electromagnetic induction-based casing damage detection methods rely solely on the instantaneous changes in induced EMF to determine whether casing damage has occurred in the well. These changes are affected not only by casing damage factors but also by interference from non-casing damage factors, making it impossible to accurately determine whether casing damage has occurred in the well. Furthermore, they cannot precisely quantify the degree of casing damage within the well, impacting subsequent casing damage control decisions for wells with different degrees of damage. Summary of the Invention
[0004] In view of the above, it is necessary to provide an oil pipe casing damage detection device and method based on electromagnetic principles to solve the above problems.
[0005] The first aspect of this application provides a method for detecting casing damage inside oil pipes based on electromagnetic principles, the method comprising:
[0006] Downhole testing equipment is used to enter the well to be tested through the tubing without moving the tubing string, and to obtain the magnetic scan curve and tubing arm opening curve of the well to be tested.
[0007] The magnetic scan curve and tubing arm opening curve are divided. Based on the distribution characteristics of the tubing arm opening sub-curves, abnormal tubing arm opening sub-curves with tubing damage and their corresponding magnetic scan sub-curves to be verified are identified. The magnetic scan sub-curves to be verified are decomposed to obtain each modal component. The spatial synchronization characteristics between the abrupt change position of each modal component and the abnormal tubing position in the abnormal tubing arm opening sub-curve are extracted. Based on the spatial synchronization characteristics, the interfering modal components caused by tubing damage are removed and the signal is reconstructed to obtain each verified magnetic scan sub-curve.
[0008] Each verified magnetic scan sub-curve is spliced with the magnetic scan sub-curve that does not need verification to obtain the verified magnetic scan curve. Based on the peak distribution of the inherent coupling and the fluctuation difference of the magnetic response signal in the verified magnetic scan curve, the deformation amplitude ratio of the oil well to be tested is extracted, and the degree of casing damage in the oil well is quantitatively evaluated according to the deformation amplitude ratio.
[0009] After obtaining the magnetic scan curve and tubing arm opening curve of the oil well to be inspected, it is necessary to align the two curves:
[0010] The measurement velocity of the downhole inspection equipment in the well to be inspected, and the axial physical distance between the magnetic scanning device and the caliper on the downhole inspection equipment are obtained.
[0011] Divide the axial physical distance by the measurement speed to calculate the time delay of the two signal acquisitions.
[0012] Based on the time delay, the acquired initial tubing arm opening signal is shifted and compensated so that the shifted and compensated tubing arm opening curve and the magnetic scan curve correspond to the same physical depth at the same sampling index.
[0013] The specific steps for dividing the magnetic scan curve and the tubing arm opening curve are as follows:
[0014] Based on the tubing structure diagram of the oil well to be inspected, obtain the total number of tubing segments in the oil well to be inspected;
[0015] Based on the average physical length of the tubing, the long sequence of magnetic scan curves and tubing arm opening curves are equally divided according to the total number of tubing sections to obtain each magnetic scan sub-curve and tubing arm opening sub-curve that matches each independent physical tubing segment.
[0016] Specifically, the identification of abnormal tubing arm opening sub-curves with tubing damage and the corresponding magnetic scan sub-curves to be verified includes:
[0017] Anomaly detection is performed on the arm opening signal of all sampling points in each segment of the tubing arm opening sub-curve to obtain the local anomaly factor score for each sampling point.
[0018] If there are sampling points in the tubing arm opening sub-curve where the local abnormal factor score is greater than the preset score threshold, the corresponding sampling points are identified as suspected abnormal sampling points, the corresponding segment of the tubing arm opening sub-curve is recorded as an abnormal tubing arm opening sub-curve, and the corresponding magnetic scan sub-curve of the same pipe segment is recorded as the magnetic scan sub-curve to be verified.
[0019] Conversely, if there are no sampling points in the tubing arm opening sub-curve that exceed the preset score threshold, the tubing arm opening sub-curve segment is recorded as a normal tubing arm opening sub-curve.
[0020] The specific process for obtaining each verified magnetic scan sub-curve is as follows:
[0021] Based on the distribution of tubing damage characteristic values of normal tubing arm opening sub-curves, abnormal sampling points of abnormal tubing arm opening sub-curves are screened.
[0022] The magnetic scan sub-curve to be verified is decomposed to obtain each modal component and residual component, and the synchronous abnormal feature value between the abrupt change position of each modal component and the position of the abnormal sampling point is calculated.
[0023] The mean and median of the synchronization anomaly feature values of all modal components are calculated. If the mean is greater than the median, the modal component corresponding to the maximum synchronization anomaly feature value is identified as an interfering modal component and is removed. If the mean is less than or equal to the median, it is not removed. The remaining modal components that have not been removed are superimposed with the residual components to reconstruct each magnetic scan sub-curve after verification.
[0024] Specifically, the abnormal sampling points for screening abnormal tubing arm opening sub-curves are as follows:
[0025] The deformation degree of the tubing cross section at each sampling point is calculated by analyzing the distribution of multiple sensing arm opening signals at each sampling point in the abnormal tubing arm opening sub-curve.
[0026] Gain compensation is performed on the deviation of the average arm opening signal at each sampling point using the tubing cross-sectional deformation to obtain the tubing damage characteristic value at each sampling point;
[0027] Calculate the tubing damage feature values of all sampling points in all normal tubing arm opening sub-curves, and obtain the preset quantile values of the distribution of tubing damage feature values of all sampling points in all normal tubing arm opening sub-curves as the segmentation threshold.
[0028] In the abnormal tubing arm opening sub-curve, the suspected abnormal sampling points whose tubing damage characteristic values are greater than the segmentation threshold are recorded as the final abnormal sampling points.
[0029] Specifically, the calculation of the tubing cross-sectional deformation at each sampling point is as follows:
[0030] Obtain the range and mean of all sensor arm opening signals at each sampling point; divide the range by the mean to obtain the tubing cross-sectional deformation at each sampling point.
[0031] Specifically, obtaining the tubing damage characteristic value for each sampling point involves:
[0032] Calculate the overall mean of the average arm opening at all sampling points in the current tubing arm opening sub-curve; for each sampling point, calculate the deviation of the average arm opening from the overall mean.
[0033] The sum of the deformation degree of the oil pipe section at each sampling point and the value of 1 is multiplied by the deviation degree to obtain the oil pipe damage characteristic value at each sampling point.
[0034] If a normal tubing arm opening sub-curve does not exist, the preset quantile value of the same type of well in history is retrieved as the segmentation threshold.
[0035] Specifically, calculating the synchronization anomaly feature value between the abrupt change position of each modal component and the position of the abnormal sampling point involves:
[0036] Extract the index values of all abnormal sampling points in the abnormal tubing arm opening sub-curve to form an abnormal index set;
[0037] Each modal component is input into the segmentation algorithm to obtain the index values of all mutation points in each modal component, and then assembled into a mutation index set for each modal component.
[0038] For each modal component, the intersection-union ratio (IUR) between the mutation index set and the anomalous index set is calculated. The standard deviations of the elements in the mutation index set and the anomalous index set are normalized respectively. The negative exponent of the sum of the standard deviations of the two sets is multiplied by the IUR to calculate the synchronization anomalous feature value of each modal component.
[0039] Specifically, the process of extracting the deformation amplitude ratio of the oil well to be tested is as follows:
[0040] Peak detection is performed on the magnetic scan curve after verification, and the reference peak of the tubing coupling of the oil well to be tested is calculated based on the overall distribution of the peak.
[0041] In the magnetic scan curve after verification, the data segment corresponding to the inherent characteristic response of the tubing coupling is shielded, and the maximum fluctuation variation of the magnetic response signal in the remaining data segment of the magnetic scan curve is extracted as the maximum deformation amplitude of the oil well to be tested.
[0042] The ratio of the maximum deformation amplitude to the peak reference of the tubing coupling is extracted as the deformation amplitude ratio of the well to be tested.
[0043] Specifically, the process of calculating the tubing coupling peak reference of the oil well to be tested is as follows:
[0044] The peak detection algorithm is used to obtain all peak points in the magnetic scan curve after verification. Combined with the known average physical length of the tubing, the theoretical coupling positioning range of each tubing connection is determined. The local maximum peak value is extracted as the corresponding peak at the tubing coupling. The mean of all peaks is calculated as the tubing coupling peak reference for the well to be tested.
[0045] The process of obtaining the maximum deformation amplitude is as follows:
[0046] Based on the sampling point index of each selected oil pipe coupling peak, the data within a preset window width range before and after each peak index in the magnetic scan curve after verification processing are removed; the maximum absolute difference of the magnetic response signal between the remaining sampling points in the magnetic scan curve after verification processing is calculated as the maximum deformation amplitude of the oil well to be tested.
[0047] The step of quantitatively assessing the degree of casing damage in the oil well based on the deformation amplitude comparison includes: comparing the deformation amplitude ratio with multiple preset grading thresholds, and classifying the degree of casing damage in the oil well to be tested into one of the following categories: no abnormality, slight casing damage, moderate casing damage, and severe casing damage, based on the comparison results.
[0048] After obtaining the quantitative assessment results of the casing damage degree in the oil well to be tested, the process also includes: based on the well type attribute of the oil well to be tested and whether the casing damage location is located in the oil layer, matching the corresponding prevention and control strategy, and performing well shut-in and control, tubing depressurization, and controlled injection to prevent blockage operations on the oil well to be tested.
[0049] Secondly, embodiments of this application also provide an oil pipe casing damage detection device based on electromagnetic principles, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor executes the computer program to implement the steps of any of the methods described above.
[0050] The beneficial effects of the above scheme are as follows: by analyzing the significance of tubing damage characteristics at different depths on the tubing, the abnormal sampling points in the abnormal tubing arm opening sub-curves that show tubing damage can be accurately identified, and an abnormal index set of the abnormal tubing arm opening sub-curves can be constructed, which is helpful for accurately identifying which IMF modal component and tubing arm opening signal have synchronous abnormal characteristics.
[0051] By extracting the mutation index set of each modal component and considering the similarity and distribution consistency between the mutation index set and the abnormal index set, the synchronous abnormality characteristics between the magnetic response component signal and the tubing arm opening signal caused by tubing damage can be evaluated more accurately, thereby accurately eliminating the interference of non-casing damage factors on the magnetic scan curve.
[0052] In tubing damage detection technology, the ability to locate water ingress sources in standard layer damage areas and to conduct large-area well condition surveys can significantly improve operational efficiency and provide a basis for development adjustments. Applying this tubing damage detection technology before water drive pressure, replenishment, or plugging measures allows for advance assessment of the feasibility of these measures based on the detection results, effectively reducing the termination rate of such measures. Attached Figure Description
[0053] Figure 1 A flowchart illustrating the steps of an oil pipe casing damage detection method based on electromagnetic principles, provided in one embodiment of this application;
[0054] Figure 2 This is a schematic diagram of the magnetic scan curve and tubing arm opening curve before translation compensation provided in one embodiment of this application;
[0055] Figure 3 This is a schematic diagram of the magnetic scan curve and tubing arm opening curve after translation compensation provided in one embodiment of this application;
[0056] Figure 4 A bar chart showing the effect of casing damage detection in one embodiment of this application. Detailed Implementation
[0057] The following description, in conjunction with the accompanying drawings, details the specific scheme of the oil pipe casing damage detection device and method based on electromagnetic principles provided in this application.
[0058] Please see Figure 1 The diagram illustrates a flowchart of a tubing casing damage detection method based on electromagnetic principles according to an embodiment of this application. The method includes the following steps:
[0059] Step 1: Using downhole testing equipment, the equipment is inserted through the tubing into the well to be tested without moving the tubing string, to obtain the magnetic scan curve and tubing arm opening curve of the well to be tested.
[0060] To achieve casing damage detection without stopping the well or the tubing string, downhole inspection equipment is inserted into the well to be inspected through the tubing to perform casing damage detection without moving the tubing string. In this application, the downhole inspection equipment integrates a radial magnetic scanning device and an ultra-small diameter caliper. The radial magnetic scanning device operates on the principle of electromagnetic induction. It is a specialized downhole instrument for casing damage detection in high water-cut oilfields without moving the tubing string. When a low-frequency alternating current of several hundred to several thousand hertz is passed through its transmitting coil, it can form a stable alternating magnetic field with low power consumption and low intensity. This magnetic field can fully penetrate the inner production tubing and act on the outer ferromagnetic casing wall, inducing closed eddy currents in the casing metal matrix. When the casing is damaged by deformation, corrosion, perforation, etc., the electrical conductivity, geometric wall thickness, and magnetic permeability (characteristics of ferromagnetic materials) of the material at the damaged site are distorted, which will lead to characteristic changes in the distribution of induced eddy current field and secondary magnetic field. The device is equipped with a circumferential array of high-sensitivity magnetic sensors, which can collect magnetic response signals at the corresponding axial well depth position and different circumferential orientations. The ultra-small diameter caliper is a sixteen-arm caliper equipped with 16 sets of sensing arms, which can be used to measure the average arm opening signal at different depths and capture the millimeter-level deformation characteristics of the tubing.
[0061] Therefore, the downhole inspection equipment is inserted into the well to be inspected through the tubing without moving the tubing string. The equipment measures the magnetic response signal and average arm opening signal of the tubing in the well. The measurement speed and sampling frequency of the downhole inspection equipment are determined by consulting its technical specifications. In this embodiment, the measurement speed is 83.3 mm / s and the sampling frequency is 1 kHz. Simultaneously, a distance sensor is used to measure the axial physical distance between the radial magnetic scanning device and the ultra-small diameter caliper on the downhole inspection equipment. Then, based on the axial physical distance and the measurement speed of the downhole inspection equipment, the axial physical distance is divided by the measurement speed to obtain the time delay of the two signal acquisitions. The average arm opening signal is compensated for this time delay, resulting in response curves for the magnetic response signal and the average arm opening signal of the well to be inspected. These are denoted as the magnetic scanning curve and the tubing arm opening curve, respectively. Sampling points with the same index in the magnetic scanning curve and the tubing arm opening curve are at the same physical depth, thus providing a reliable data basis for subsequent tubing casing damage detection.
[0062] The schematic diagrams of the magnetic scan curve and tubing arm opening curve before translation compensation are shown below. Figure 2 As shown in the diagram, the magnetic scan curve and tubing arm opening curve after translation compensation are schematically illustrated. Figure 3 As shown.
[0063] Step 2: Divide the magnetic scan curve and the tubing arm opening curve. Based on the distribution characteristics of the tubing arm opening sub-curves, identify abnormal tubing arm opening sub-curves with tubing damage and their corresponding magnetic scan sub-curves to be verified. Perform signal decomposition on the magnetic scan sub-curves to be verified to obtain each modal component. Extract the spatial synchronization characteristics between the abrupt change position of each modal component and the abnormal tubing position in the abnormal tubing arm opening sub-curve. Based on the spatial synchronization characteristics, remove the interfering modal components caused by tubing damage and reconstruct the signal to obtain each verified magnetic scan sub-curve.
[0064] Because the magnetic response signal measured by the radial magnetic scanning device is affected not only by casing damage factors but also by non-casing damage factors, such as changes in the magnetic response signal caused by tubing damage, it can cause confusion with changes in the magnetic response signal caused by casing damage factors. This results in the superposition of magnetic response signals generated by different damage factors, making it difficult to accurately and quantitatively detect the degree of casing damage in the oil well.
[0065] Therefore, in order to effectively distinguish between tubing damage and casing damage, the total number K of tubing in the well to be inspected is obtained based on the tubing string structure diagram of the well under inspection, wherein adjacent tubing units are physically connected at the tubing coupling. Furthermore, the magnetic scan curve and tubing arm opening curve of the well under inspection are divided into K segments of magnetic scan sub-curves and K segments of tubing arm opening sub-curves according to a uniform division strategy, used to characterize the changes in magnetic response signal and average arm opening signal in K tubing regions.
[0066] Generally, if there is tubing damage, it will cause abnormal sampling points in the tubing arm opening sub-curve. At the same time, it will cause synchronous abnormality between the magnetic response component signal generated by the tubing damage and the tubing arm opening signal. However, when the casing is damaged but the tubing is not damaged, there is a large difference between the magnetic response component signal generated by the casing damage and the tubing arm opening signal.
[0067] Therefore, the arm opening signal of all sampling points in each segment of the tubing arm opening sub-curve is used as the input of the anomaly detection algorithm (Local Outlier Factor). The neighborhood parameter in the algorithm is set to 10. The anomaly detection algorithm is used to obtain the local anomaly factor score of all sampling points in each segment of the tubing arm opening sub-curve. In this application, sampling points with a local anomaly factor score greater than a preset score threshold (such as 1.5) are set as suspected anomaly sampling points.
[0068] If a suspected abnormal sampling point exists in a segment of the tubing arm opening sub-curve, it indicates that the tubing corresponding to that segment is highly likely to be damaged. The changes in magnetic response signals caused by tubing damage are easily superimposed on the changes in magnetic response signals caused by casing damage. Therefore, to eliminate the interference of non-casing damage factors on the magnetic scan curve, this segment of the tubing arm opening sub-curve is designated as an abnormal tubing arm opening sub-curve, and the corresponding magnetic scan sub-curves of the same segment are designated as magnetic scan sub-curves to be verified. Conversely, if no suspected abnormal sampling point exists in a segment of the tubing arm opening sub-curve, it is designated as a normal tubing arm opening sub-curve. Since there is no superposition of magnetic response signals in the corresponding magnetic scan sub-curves of the normal tubing arm opening sub-curve, verification of that segment of the magnetic scan sub-curve is unnecessary.
[0069] Since the inner diameter of the same tubing at different depths normally exhibits a uniform variation, the greater the difference in the arm opening signals of the 16 sensing arms measured by the 16-arm caliper at a certain sampling point, the greater the deformation characteristics on the tubing cross-section at that sampling point. At the same time, the more the average arm opening signal of that sampling point in the tubing arm opening sub-curve deviates from the average value of the average arm opening on the entire tubing, the more significant the tubing damage characteristics at that sampling point depth.
[0070] Therefore, for each segment of the abnormal tubing arm opening sub-curve, the tubing cross-sectional deformation degree at each sampling point in the abnormal tubing arm opening sub-curve is calculated by using the arm opening signals of the 16 sensing arms measured at each sampling point by the 16-arm caliper.
[0071]
[0072] in, Let the deformation of the tubing cross section be the value at the j-th sampling point. and These represent the maximum and minimum values of the arm opening signals of the 16 sensing arms at the j-th sampling point. It is the average value of the arm opening signal of the 16 sensing arms at the j-th sampling point.
[0073] The deformation degree of the tubing cross section reflects the shape deformation characteristics of the tubing cross section. Under normal circumstances, the difference in the arm opening signal measured by the 16 sensing arms is relatively large. However, under the premise of tubing deformation, the difference in the arm opening signal will become larger. The higher the significance of the tubing deformation characteristics, the more significant the damage characteristics of tubing bending deformation.
[0074] Furthermore, based on the tubing cross-sectional deformation and the deviation of the average arm opening signal, the tubing damage characteristic value of each sampling point in the abnormal tubing arm opening sub-curve is calculated to characterize the significance of tubing damage characteristics at different depths on the tubing:
[0075]
[0076] in, Let j be the characteristic value of the tubing damage at the j-th sampling point. Let j be the average arm opening at the j-th sampling point. This is the mean of the average arm opening at all sampling points in the abnormal tubing arm opening sub-curve.
[0077] Gain compensation is performed on the coefficient of deviation of the average arm opening signal by the tubing cross-sectional deformation, so that the coefficient of deviation of the average arm opening signal after gain compensation is greater than or equal to 1. The greater the tubing cross-sectional deformation, the greater the coefficient of deviation of the average arm opening signal after gain compensation, which better reflects the significance of tubing damage characteristics. Therefore, by combining the tubing cross-sectional deformation and the deviation of the average arm opening signal, the tubing damage characteristics at different depths can be evaluated more effectively. The larger the tubing damage characteristic value, the higher the significance of the tubing damage characteristics at different depths.
[0078] Because damaged and undamaged areas typically exist on tubing, and the assessment results of tubing damage characteristics differ significantly between these two areas, an abnormal sampling point indicating tubing damage is identified within the abnormal tubing arm opening sub-curve. Therefore, to accurately identify these abnormal sampling points, the same method described above is used for all normal tubing arm opening sub-curves of the well under test. The tubing damage characteristic value of each sampling point in each normal tubing arm opening sub-curve is calculated. Then, the distribution of tubing damage characteristic values across all sampling points in all normal tubing arm opening sub-curves of the well under test is statistically analyzed. The 99th percentile of the tubing damage characteristic values is used as the segmentation threshold. For each abnormal tubing arm opening sub-curve, sampling points with tubing damage characteristic values greater than the segmentation threshold are recorded as abnormal sampling points, while those with values less than or equal to the segmentation threshold are recorded as normal sampling points. This distinguishes between abnormal and normal sampling points within the abnormal tubing arm opening sub-curve.
[0079] Furthermore, in order to eliminate the interference of non-casing damage factors on the magnetic scan curve, each segment of the magnetic scan sub-curve to be verified is used as the input of Ensemble Empirical Mode Decomposition (EEMD). The amplitude of the white noise added in the algorithm is 0.2 times the standard deviation of the signal of the magnetic scan sub-curve to be verified. The EEMD is used to obtain each IMF mode component and residual component of each segment of the magnetic scan sub-curve to be verified, which are used to characterize the magnetic response component signal and residual terms generated by different damage factors in the oil well.
[0080] Therefore, to accurately eliminate interference from non-sleeve damage factors on the magnetic scanning curve, for each segment of the magnetic scanning curve to be verified, each IMF modal component is used as input to the Bernaola-Galvan segmentation algorithm. The significance level threshold is empirically set to 0.95, and the minimum segmentation scale is empirically set to 25. The Bernaola-Galvan segmentation algorithm is used to obtain the set of indices of all abrupt change points in each modal component, denoted as the abrupt change index set of each modal component. This set is used to characterize the set of data points with abnormal abrupt changes in the magnetic response component signal. If there are no abrupt change points in a modal component, the abrupt change index set of that modal component is empty.
[0081] Furthermore, to identify which IMF modal component exhibits synchronization anomalies with the tubing arm opening signal, for each anomalous tubing arm opening sub-curve and its corresponding magnetic scan sub-curve to be verified, the index values of all anomalous sampling points in the anomalous tubing arm opening sub-curve are statistically analyzed. The set of all anomalous sampling point index values is denoted as the anomalous index set of the anomalous tubing arm opening sub-curve. Notably, anomalous sampling points are necessarily present in the anomalous tubing arm opening sub-curve identified by the anomaly detection algorithm, and therefore, the anomalous index set of that anomalous tubing arm opening sub-curve is a non-empty set.
[0082] If the abrupt change index set of a certain modal component in the magnetic scan sub-curve to be verified in the same segment corresponding to the abnormal tubing arm opening sub-curve is more similar to the abnormal index set of the abnormal tubing arm opening sub-curve, and the smaller the discrete distribution state of the abrupt change index set and the abnormal index set, it indicates that the synchronous abnormal features are concentrated in a certain local area on the tubing. At this time, the more significant the synchronous abnormal features between the IMF modal component and the tubing arm opening signal, the more likely the IMF modal component is a magnetic response component signal generated by tubing damage factors.
[0083] Based on the above analysis, for the same segment of the magnetic scan sub-curve to be verified corresponding to each abnormal tubing arm opening sub-curve, the synchronous anomaly characteristic value of each IMF modal component in the magnetic scan sub-curve to be verified is calculated. This value is used to characterize the significance of the synchronous anomaly between the magnetic response component signal generated by tubing damage and the tubing arm opening signal.
[0084]
[0085] in, Let be the synchronization anomaly characteristic value of the i-th IMF modal component. Let be the intersection-union ratio between the mutation index set of the i-th IMF modal component and the anomaly index set of the anomalous tubing arm opening sub-curve. The standard deviation of the set of anomaly indices for the abnormal tubing arm opening sub-curves. Let be the standard deviation of the mutation index set for the i-th IMF mode component. If the mutation index set is empty, then the synchronization anomaly characteristic value of that IMF mode component is set to 0, indicating that there is no synchronization anomaly between that IMF mode component and the tubing arm opening signal. It should be noted that the index values in the anomaly index set and the mutation index set are normalized by dividing by the total number of sampling points of that sub-curve.
[0086] By combining the similarity and distribution consistency between the mutation index set and the anomaly index set, the synchronous anomaly characteristics between the magnetic response component signal generated by tubing damage and the tubing arm opening signal can be evaluated more accurately. The larger the synchronous anomaly characteristic value, the higher the significance of the synchronous anomaly characteristics between the magnetic response component signal generated by tubing damage and the tubing arm opening signal. In this case, the IMF mode component is more likely to be a magnetic response component signal generated by tubing damage.
[0087] Therefore, to accurately eliminate the interference of non-casing damage factors on the magnetic scanning curve, the mean and median of the synchronous anomaly eigenvalues of all IMF mode components in the magnetic scanning sub-curve to be verified are statistically analyzed. If the mean is greater than the median, it indicates that there are significant right-biased clusters in the eigenvalue distribution of different IMF mode components, meaning that the corresponding tubing anomaly has caused significant interference in the magnetic signal. In this case, the IMF mode component corresponding to the largest synchronous anomaly eigenvalue is identified as an interfering mode component and removed. If the mean is less than or equal to the median, it indicates that the magnetic response signal is not significantly interfered with by tubing anomalies. In this case, all IMF mode components are retained without removal, and signal reconstruction technology is used to reconstruct the remaining IMF mode component set. The residual components of EEMD decomposition are then superimposed to obtain the verified magnetic scanning sub-curve. The reconstruction formula is as follows:
[0088]
[0089] in, To verify the magnetic response signal at the nth sampling point in the processed magnetic scan sub-curve, Let be the signal value of the nth sampling point in the residual component of the magnetic scan sub-curve to be verified. is the signal value of the nth sampling point in the qth residual IMF mode component of the magnetic scan sub-curve to be verified.
[0090] Similarly, each segment of the magnetic scan sub-curve to be verified is processed in the same way to obtain each verified segment of the magnetic scan sub-curve, thereby eliminating the interference of non-casing damage factors on the magnetic scan curve, which is then used for more accurate quantitative detection of the casing damage degree in the oil well. It should be noted that the data processing in this application is implemented in the ground host computer, and the downhole detection equipment is only used for data acquisition and casing damage detection.
[0091] Step 3: Concatenate each verified magnetic scan sub-curve with the magnetic scan sub-curve that does not need verification to obtain the verified magnetic scan curve; Based on the peak distribution of the inherent coupling and the fluctuation difference of the magnetic response signal in the verified magnetic scan curve, extract the deformation amplitude ratio of the oil well to be tested, and quantitatively evaluate the degree of casing damage in the oil well according to the deformation amplitude ratio.
[0092] To more accurately quantify the casing damage within oil wells, all calibrated magnetic scan sub-curves and those requiring no calibration are spliced together according to the scanning sequence of the downhole detection equipment to obtain the calibrated magnetic scan curve of the oil well to be tested. Furthermore, since the tubing coupling exhibits stable and identifiable inherent response characteristics on the magnetic scan curve, the magnetic response signals of all sampling points in the calibrated magnetic scan curve of the oil well to be tested are used as input to the AMPD peak detection algorithm. The detection window length in the algorithm is set to 50. The peak points in the calibrated magnetic scan curve are obtained using the peak detection algorithm, and the theoretical coupling positioning intervals for each tubing connection are determined by combining the known average physical length of the tubing. Subsequently, local maxima are extracted within each theoretical coupling positioning interval, and the obtained local maximum peak values are selected as the spikes at the tubing couplings. The mean of these spikes is calculated as the reference value for the tubing coupling spikes of the oil well to be tested.
[0093] Furthermore, before calculation, the sampling point data of the first and last ends of each segment of the magnetic scanning sub-curve after verification are removed by a preset number (e.g., 500 before and after) to obtain the preset window width of each segment of the magnetic scanning sub-curve, thus shielding the influence of the inherent response characteristics at the coupling. Then, the maximum absolute difference of the magnetic response signal between the remaining sampling points in all magnetic scanning sub-curves is found and recorded as the maximum deformation amplitude of the oil well to be tested. The maximum deformation amplitude is divided by the oil pipe coupling peak reference and recorded as the deformation amplitude ratio of the oil well to be tested, which is used for subsequent quantitative detection of the casing damage degree in the oil well.
[0094] Therefore, based on the deformation amplitude ratio of the well under test, the degree of casing damage is quantitatively detected, distinguishing between no abnormality, slight casing damage, moderate casing damage, and severe casing damage. Specifically, for no abnormality, the deformation amplitude ratio is less than 1 / 3, in which case the tubing of the well under test usually shows no bending changes; for slight casing damage, the deformation amplitude ratio is greater than or equal to 1 / 3 and less than 1 / 2, in which case the tubing of the well under test is usually not affected by the casing damage, and the tubing of the well under test usually shows no bending changes; for moderate casing damage, the deformation amplitude ratio is greater than or equal to 1 / 2 and less than 2 / 3, in which case the tubing of the well under test is usually slightly affected by the casing damage, resulting in slight bending; for severe casing damage, the deformation amplitude ratio is greater than or equal to 2 / 3, in which case the tubing of the well under test is usually severely affected by the casing damage, resulting in obvious bending deformation.
[0095] By selecting 61 oil wells for casing damage detection and using the traditional casing damage detection method of running and pulling tubing strings to verify the results, the accuracy rate in the field application reached 85.2%, demonstrating good feasibility. The casing damage detection effect is shown in the bar chart below. Figure 4 As shown.
[0096] Step 4: Based on the well type and whether the casing damage is located in the oil layer, match the corresponding prevention and control strategy and perform well shut-in, tubing depressurization, and controlled injection to prevent blockage operations on the well to be tested.
[0097] After obtaining the quantitative assessment results of the casing damage degree of the oil well to be tested through the above steps, in order to effectively apply the test results to the production guidance in the oilfield and prevent secondary accidents caused by blind water injection or misjudgment, this embodiment of the application further constructs a new well condition investigation and control process based on the test results. Considering that the physical risks and production impacts of oil wells with different attributes vary greatly after casing damage occurs, for example, severe casing damage in water injection wells can easily lead to accidental water injection or water channeling, while oil production wells usually focus on depressurization. Therefore, on-site control cannot rely solely on the single indicator of casing damage degree, but also needs to comprehensively consider the well type of the target oil well (i.e., oil production well or water injection well), the casing damage layer (i.e., oil layer or non-oil layer), and whether there is a plan for the next step of intervention (e.g., wells with intervention or wells without intervention). Based on the above multi-dimensional combination of operating condition information, this embodiment formulates a personalized well condition control strategy matrix for different casing damage degrees, as shown in Table 1 below:
[0098] Table 1: Personalized Control Strategies for Test Results
[0099]
[0100] In existing standard waterflooding development processes in oilfields, a "shut-in, controlled injection, and investigation" (hereinafter referred to as "shut-in, controlled injection, and investigation") process is often adopted when anomalies are detected. Traditional investigation processes rely on surface observation, resulting in blind location. This application utilizes the aforementioned in-tubing magnetic scanning and arm opening alignment detection technology to accurately identify the misalignment location of the injection well during the investigation phase without tripping the tubing string. This optimizes the standard "shut-in, controlled injection, and investigation" process, enabling rapid cutoff of the source of mis-injected water, significantly shortening the lengthy shut-in time during the investigation process, accelerating the delineation of casing damage boundaries, and reducing the cost of blind construction.
[0101] Optimize the well condition prediction process before intervention. Addressing the high well termination rate in high-risk blocks, apply in-tubing inspection technology to predict downhole tubing conditions in advance, reducing the termination rate and its impact, and improving the success rate of remediation. This allows for early prediction of well conditions, optimization of well workover techniques, reduced construction costs, improved remediation efficiency, and minimized impact from termination.
[0102] Based on the same inventive concept as the above methods, this application also provides an oil pipe casing damage detection device based on electromagnetic principles, including a memory, a processor, and a computer program stored in the memory and running on the processor. When the processor executes the computer program, it implements the steps of any one of the above-described oil pipe casing damage detection methods based on electromagnetic principles.
Claims
1. A method for detecting casing damage in oil pipes based on electromagnetic principles, characterized in that, The method includes the following steps: Downhole testing equipment is used to enter the well to be tested through the tubing without moving the tubing string, and to obtain the magnetic scan curve and tubing arm opening curve of the well to be tested. The magnetic scan curve and tubing arm opening curve are divided. Based on the distribution characteristics of the tubing arm opening sub-curves, abnormal tubing arm opening sub-curves with tubing damage and their corresponding magnetic scan sub-curves to be verified are identified. The magnetic scan sub-curves to be verified are decomposed to obtain each modal component. The spatial synchronization characteristics between the abrupt change position of each modal component and the abnormal tubing position in the abnormal tubing arm opening sub-curve are extracted. Based on the spatial synchronization characteristics, the interfering modal components caused by tubing damage are removed and the signal is reconstructed to obtain each verified magnetic scan sub-curve. Each verified magnetic scan sub-curve is spliced with the magnetic scan sub-curve that does not need verification to obtain the verified magnetic scan curve. Based on the peak distribution of the inherent coupling and the fluctuation difference of the magnetic response signal in the verified magnetic scan curve, the deformation amplitude ratio of the oil well to be tested is extracted, and the degree of casing damage in the oil well is quantitatively evaluated according to the deformation amplitude ratio.
2. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 1, characterized in that, After obtaining the magnetic scan curve and tubing arm opening curve of the oil well to be inspected, the two curves need to be aligned: The measurement velocity of the downhole inspection equipment in the well to be inspected, and the axial physical distance between the magnetic scanning device and the caliper on the downhole inspection equipment are obtained. Divide the axial physical distance by the measurement speed to calculate the time delay of the two signal acquisitions. Based on the time delay, the acquired initial tubing arm opening signal is shifted and compensated so that the shifted and compensated tubing arm opening curve and the magnetic scan curve correspond to the same physical depth at the same sampling index.
3. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 1, characterized in that, The specific steps for dividing the magnetic scan curve and the tubing arm opening curve are as follows: Based on the tubing structure diagram of the oil well to be inspected, obtain the total number of tubing segments in the oil well to be inspected; Based on the average physical length of the tubing, the long sequence of magnetic scan curves and tubing arm opening curves are equally divided according to the total number of tubing sections to obtain each magnetic scan sub-curve and tubing arm opening sub-curve that matches each independent physical tubing segment.
4. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 1, characterized in that, The identification of abnormal tubing arm opening sub-curves indicating tubing damage and the corresponding magnetic scan sub-curves to be verified are specifically as follows: Anomaly detection is performed on the arm opening signal of all sampling points in each segment of the tubing arm opening sub-curve to obtain the local anomaly factor score for each sampling point. If there are sampling points in the tubing arm opening sub-curve where the local abnormal factor score is greater than the preset score threshold, the corresponding sampling points are identified as suspected abnormal sampling points, the corresponding segment of the tubing arm opening sub-curve is recorded as an abnormal tubing arm opening sub-curve, and the corresponding magnetic scan sub-curve of the same pipe segment is recorded as the magnetic scan sub-curve to be verified. Conversely, if there are no sampling points in the tubing arm opening sub-curve that exceed the preset score threshold, the tubing arm opening sub-curve segment is recorded as a normal tubing arm opening sub-curve.
5. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 4, characterized in that, The specific process for obtaining each verified magnetic scan sub-curve is as follows: Based on the distribution of tubing damage characteristic values of normal tubing arm opening sub-curves, abnormal sampling points of abnormal tubing arm opening sub-curves are screened. The magnetic scan sub-curve to be verified is decomposed to obtain each modal component and residual component, and the synchronous abnormal feature value between the abrupt change position of each modal component and the position of the abnormal sampling point is calculated. The mean and median of the synchronization anomaly feature values of all modal components are calculated. If the mean is greater than the median, the modal component corresponding to the maximum synchronization anomaly feature value is identified as an interfering modal component and is removed. If the mean is less than or equal to the median, it is not removed. The remaining modal components that have not been removed are superimposed with the residual components to reconstruct each magnetic scan sub-curve after verification.
6. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 5, characterized in that, The abnormal sampling points for screening abnormal tubing arm opening sub-curves are specifically as follows: The deformation degree of the tubing cross section at each sampling point is calculated by analyzing the distribution of multiple sensing arm opening signals at each sampling point in the abnormal tubing arm opening sub-curve. Gain compensation is performed on the deviation of the average arm opening signal at each sampling point using the tubing cross-sectional deformation to obtain the tubing damage characteristic value at each sampling point; Calculate the tubing damage feature values of all sampling points in all normal tubing arm opening sub-curves, and obtain the preset quantile values of the distribution of tubing damage feature values of all sampling points in all normal tubing arm opening sub-curves as the segmentation threshold. In the abnormal tubing arm opening sub-curve, the suspected abnormal sampling points whose tubing damage characteristic values are greater than the segmentation threshold are recorded as the final abnormal sampling points.
7. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 6, characterized in that, The calculation of the tubing cross-sectional deformation at each sampling point is specifically as follows: Obtain the range and mean of all sensor arm opening signals at each sampling point; divide the range by the mean to obtain the tubing cross-sectional deformation at each sampling point.
8. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 6, characterized in that, The oil pipe damage characteristic value obtained at each sampling point is specifically as follows: Calculate the overall mean of the average arm opening at all sampling points in the current tubing arm opening sub-curve; for each sampling point, calculate the deviation of the average arm opening from the overall mean. The sum of the deformation degree of the oil pipe section at each sampling point and the value of 1 is multiplied by the deviation degree to obtain the oil pipe damage characteristic value at each sampling point.
9. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 6, characterized in that, If a normal tubing arm opening sub-curve does not exist, retrieve the preset quantile values of similar historical wells as the segmentation threshold.
10. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 5, characterized in that, The calculation of the synchronization anomaly feature value between the abrupt change position of each modal component and the position of the anomalous sampling point is specifically as follows: Extract the index values of all abnormal sampling points in the abnormal tubing arm opening sub-curve to form an abnormal index set; Each modal component is input into the segmentation algorithm to obtain the index values of all mutation points in each modal component, and then assembled into a mutation index set for each modal component. For each modal component, the intersection-union ratio (IUR) between the mutation index set and the anomalous index set is calculated. The standard deviations of the elements in the mutation index set and the anomalous index set are normalized respectively. The negative exponent of the sum of the standard deviations of the two sets is multiplied by the IUR to calculate the synchronization anomalous feature value of each modal component.
11. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 1, characterized in that, The process of extracting the deformation amplitude ratio of the oil well to be tested is as follows: Peak detection is performed on the magnetic scan curve after verification, and the reference peak of the tubing coupling of the oil well to be tested is calculated based on the overall distribution of the peak. In the magnetic scan curve after verification, the data segment corresponding to the inherent characteristic response of the tubing coupling is shielded, and the maximum fluctuation variation of the magnetic response signal in the remaining data segment of the magnetic scan curve is extracted as the maximum deformation amplitude of the oil well to be tested. The ratio of the maximum deformation amplitude to the peak reference of the tubing coupling is extracted as the deformation amplitude ratio of the well to be tested.
12. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 11, characterized in that, The process of calculating the reference peak of the tubing coupling in the oil well to be tested is as follows: The peak detection algorithm is used to obtain all peak points in the magnetic scan curve after verification. Combined with the known average physical length of the tubing, the theoretical coupling positioning range of each tubing connection is determined. The local maximum peak value is extracted as the corresponding peak at the tubing coupling. The mean of all peaks is calculated as the tubing coupling peak reference for the well to be tested.
13. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 11, characterized in that, The process for obtaining the maximum deformation amplitude is as follows: Based on the sampling point index of each selected oil pipe coupling peak, the data within a preset window width range before and after each peak index in the magnetic scan curve after verification processing are removed. The maximum absolute difference in magnetic response signals between the remaining sampling points in the magnetic scan curve after verification is calculated and used as the maximum deformation amplitude of the oil well to be tested.
14. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 1, characterized in that, The quantitative assessment of the casing damage degree in the oil well based on the deformation amplitude comparison includes: comparing the deformation amplitude ratio with multiple preset classification thresholds, and classifying the casing damage degree of the oil well to be tested into one of the following categories: no abnormality, slight casing damage, moderate casing damage, and severe casing damage, based on the comparison results.
15. The method for detecting casing damage in tubing based on electromagnetic principles as described in claim 1, characterized in that, After obtaining the quantitative assessment results of the casing damage degree of the oil well to be tested, the following steps are also included: based on the well type attribute of the oil well to be tested and whether the casing damage location is located in the oil layer, matching the corresponding prevention and control strategy, and performing well shut-in and control, tubing depressurization, and controlled injection to prevent blockage operations on the oil well to be tested.
16. A casing damage detection device based on electromagnetic principles, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1-15.
