Next Article in Journal
A Study on the Grip Force of Ski Gloves with Feature Data Fusion Based on GWO—BPNN Deep Learning
Previous Article in Journal
V-PTP-IC: End-to-End Joint Modeling of Dynamic Scenes and Social Interactions for Pedestrian Trajectory Prediction from Vehicle-Mounted Cameras
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Underground Ferromagnetic Pipeline Detection Using a Rotable Magnetic Sensor Array

School of Electronics, Peking University, Beijing 100871, China
*
Author to whom correspondence should be addressed.
Sensors 2025, 25(23), 7153; https://doi.org/10.3390/s25237153 (registering DOI)
Submission received: 23 October 2025 / Revised: 12 November 2025 / Accepted: 19 November 2025 / Published: 23 November 2025
(This article belongs to the Section Physical Sensors)

Abstract

To eliminate the risk of damage to buried pipelines during excavation, a survey in advance or on the spot is necessary. Here we propose a wireless rotable magnetic sensor array to detect underground ferromagnetic pipelines. It consists of several sensing nodes placed on a rail, which can rotate automatically or manually. We adopted rotating rather than translating the array since translation is difficult on uneven or muddy ground. Moreover, we could judge the existence and orientation of a pipeline by simply checking the periodic variation of measured data without resorting to complex inversion algorithms. Field experiments showed that the equipment could provide a decimeter-level locating accuracy for both the horizontal offset and buried depth, and a strike angle error of a few degrees, which meet general engineering application requirements.

1. Introduction

Damage to underground utilities, such as gas and sewer pipelines, can result in costly financial losses, service interruptions, and even serious injury or loss of life [1]. As urbanization accelerates, underground space is increasingly used, and the layout of facilities with different buried depths and texture of materials is intricate, which increases the difficulty of positioning and protection. Especially in old urban areas, the lack of accurate archives makes the risk of excavation damage higher [2]. According to the latest report from the Common Ground Alliance (CGA), approximately 189,549 underground facility damage incidents occurred in 2023, with sewer-related construction accounting for the largest proportion [3]. Therefore, developing effective methods for detection and location of underground pipelines is critical to preventing accidents at construction sites.
Ground-penetrating radar (GPR) may be the preferred approach for locating and mapping underground objects and pipelines [4]. It works by emitting, receiving, and processing high-frequency electromagnetic (EM) waves. However, it barely operates in adverse environments such as muddy or uneven ground and wet soil, which seriously weaken the EM wave penetration ability. Moreover, the active detection manner makes the system bulk and costly. So alternative methods such us passive magnetic detection technique is indispensable, which is immune to non-magnetic media and their boundaries. In fact, magnetic detection techniques have been extensively applied in various domains, including geological exploration [5], target identification [6], archaeological exploration [7], and airborne magnetic surveying for both military and civilian purposes [8,9,10].
Due to the presence of ferromagnetic materials in most underground pipelines, magnetic detection technology has been widely applied to detect various pipeline types [11,12,13], including those transporting crude oil, refined oil, natural gas, and water [14]. This technology does not require excitation and has a fast detection speed, making it suitable for the rapid detection of long-distance pipelines [15]. Magnetic flux leakage detection represents an important application of magnetic sensing technology for ferromagnetic pipelines, primarily serving the purpose of structural damage assessment and defect localization [16,17,18].
Some forward-modeling schemes have been proposed to analyze the magnetic anomalies generated by pipelines, such as the magnetic dipole reconstruction (MDR) method presented in [19,20,21]. To accelerate the computation and enhance the accuracy of the MRD method, a few segmented partitioning strategies were suggested [22,23]. Another modeling approach involves calculating the magnetic anomalies of ferromagnetic pipelines based on the Poisson equation, which governs the gravitational field and magnetic field. In [24], the characteristics of gravity and magnetic anomaly curves for parallel pipelines were analyzed, while in [25], deep learning neural networks were utilized to extract the magnetic anomalies of individual pipelines. In [26], a theoretical model for calculating the total-field magnetic anomalies of submarine pipelines was developed based on Poisson’s equation. The analysis showed a minor dependence on geomagnetic declination and a strong sensitivity to the pipeline azimuth.
Built on forward modeling, the adaptive mutation particle swarm optimization (AM-PSO) algorithm was applied in [27] to invert the parameters and burial depth of underground pipelines. In [28], an inversion scheme was established based on MDR using both piecewise segmentation and sectional segmentation methods for comparative analysis. Furthermore, a magnetic data-based method was developed for positioning buried pipelines by combining tilt angle analysis with downward continuation [29].
Considering the influence of the detection height on magnetic signals, relevant studies have been conducted. In [30], the magnetic field produced by a steel pipeline was measured at different internal pressures and detection heights, and the results show that the magnetic signals exhibited a second-order power attenuation with increasing detection height within 0.1–1.0 m. In [31], a spatial model for non-contact magnetic signals above ferromagnetic pipelines was established, and a correction method to eliminate the influence of detection height was proposed. In [32], a magnetic gradient method was developed to detect the buried depth of underground pipelines. In [33], magnetic field sensors were employed to remotely detect the horizontal position and vertical depth of underground power cables. The deployment of sensors for these conventional row or line scanning is usually sparse, resulting in limited spatial resolution and localization accuracy.
From the aforementioned works above, we notice that the forward modeling methods rely on a critical assumption: the magnetic moment distribution of ferromagnetic pipelines is uniform along the axial direction. However, this is not the general case due to factors such as pipeline manufacturing processes and complex local geomagnetic environments. Moreover, pipelines exhibit magnetic anisotropy such that the easier magnetization axis aligns along the axial direction [34], further complicating accurate modeling of pipeline magnetization. We also notice that their inversion methods are computationally complex and time-consuming, making it difficult to provide real-time location results at excavation sites. To meet real-time application, low-cost magnetometer sensors were suggested for installation on excavators, but only a principal demonstration in laboratory settings was presented, without verification of the entire system in real field scenarios [35,36].
Regarding the acquisition of magnetic field data, existing measurements usually adopt point-by-point or line-by-line scanning by translationally moving the sensors, which is inefficient and hard to operate on uneven or muddy ground. A more efficient circular scanning mode should be worth trying, which may also bring out novel localization methods.
In this study, we aim to develop a viable magnetic sensing system for detection of underground ferromagnetic pipelines and live cables. It is supposed to be low-cost but highly efficient in measuring operation and locating method. To meet the low-cost requirement, we used cheaper fluxgates instead of expensive atomic magnetometers. To facilitate the measuring operation, we adopted rotating scanning rather than row or line scanning. To avoid a complex location algorithm that requires reliable forward modeling and accurate measured data, we estimated the horizontal offset and strike angle of a possible pipeline by simply checking the periodic variation of the measured values due to the circular measurement course. Specifically, the main innovative points of this paper are the following:
(1)
Integration of sensor nodes: Each node can in real time collect the magnetic field at the node place, as well as the position and attitude information of the node, and wirelessly transmit all collected data to a working laptop.
(2)
Rotating scanning mode: Instead of the commonly used row or line scanning mode, we adopted rotating scanning, which is much more efficient to probe a specified area and applies to uneven or muddy ground.
(3)
Simple localization method: We did not need complex forward modeling or accurate measured values but simply inspected the periodic variations of measured data to obtain the horizontal offset and strike angle, which was very fast and robust.

2. Methodology

This section describes the composition and operation of the measurement system, the theoretical analysis of pipeline magnetic anomalies, and the method to estimate the location and strike angle of a possible pipeline.

2.1. Composition of Measurement System

The proposed measurement system is illustrated in Figure 1. It contains (1) at least one sensor node, while four nodes are shown in the figure; (2) a nonmagnetic rotable supporting structure that permits the sensor nodes to circularly measure the magnetic anomaly caused by a possible underground pipeline; and (3) a working laptop that wirelessly receives the data from each node and performs data analyses.
As shown in Figure 2, each node includes three main components: (i) a fluxgate, such as MAG649FLL (Bartington Instruments Ltd., Oxford, UK), to sense the magnetic field; (ii) a GNSS/INS fusion chip to record the position and attitudes of each node, which may use a RTK (real-time kinematic) reference station to increase the precision; and (iii) a combined data acquisition and wireless communication card to collect the data and transmit them to the laptop. In addition, a 3S lithium battery pack is integrated as the power supply. The specifications of components are summarized in Table 1.

2.2. Theoretical Analysis of Pipeline Magnetic Anomalies

First, we derive the magnetic anomaly distribution of the pipeline to provide a theoretical basis for the subsequent positioning algorithm. As illustrated in Figure 1, a right-handed coordinate system is established with the x-axis pointing north, the y-axis pointing east, and the z-axis downward. The pipeline is assumed to be horizontally laid and infinitely long. Given that the pipe diameter is much smaller than the distance between the pipeline and the measurement point, the pipeline can be considered as a straight line, i.e, its diameter is negligible. The pipeline is buried at a depth H below the surface, with a strike angle χ relative to geographic north and a horizontal offset ρ . Letting r 0 = ( x 0 , y 0 , z 0 ) be the center point of the pipeline, we have
x 0 = ρ sin χ , y 0 = ρ cos χ , z 0 = H .
Let m 0 denote the magnetic moment per unit length, not matter of the pipeline material. At the observation point r = ( x , y , z ) , the magnetic-type Hertz potential generated by the pipeline is
Π m r ; r 0 = μ 0 4 π m 0 d l R
where R is the distance from the elemental source point r = r 0 + l ( x ^ cos χ + y ^ sin χ ) to the observation point r , i.e.,
R = r r 0 x ^ cos χ + y ^ sin χ l
R = | R | = ( l d ) 2 + | r r 0 | 2 d 2
d = ( x x 0 ) cos χ + ( y y 0 ) sin χ
in which d is the projection of ( r r 0 ) along the pipeline direction ( x ^ cos χ + y ^ sin χ ) . The corresponding magnetic induction intensity can be found to be
B p i p e r ; r 0 = · Π m = μ 0 4 π G ¯ ( r ; r 0 ) · m 0
with
G ¯ ( r ; r 0 ) = 2 D 2 ( 2 D 2 D x D x D x D y D x D z D y D x D y D y D y D z D z D x D z D y D z D z 1 cos 2 χ cos χ sin χ 0 cos χ sin χ 1 sin 2 χ 0 0 0 1 )
and
D x = x x 0 d cos χ D y = y y 0 d sin χ D z = z z 0
D 2 = D x 2 + D y 2 + D z 2 = r r 0 2 d 2 .
The measured magnetic field vector and its magnitude are
B m = B g e o + B p i p e , | B m | | B g e o | + B ^ g e o · B p i p e
where B g e o is the local geomagnetic field, with B ^ g e o denoting its direction, and | B g e o | | B p i p e | is assumed.
Based on the formulae above, a series of simulation experiments were carried out to compute the magnetic anomaly distribution induced by the pipeline. The pipeline was placed centered at r 0 = ( x 0 , y 0 , z 0 ) = ( 0.15 , 0.26 , 0.5 ) m, with a horizontal offset ρ = 0.3 m and strike angle χ = 30 ° . We set B g e o = [ 2.78 , 0.39 , 4.72 ] × 10 4 nT (geomagnetic field in Beijing area), and assumed m 0 = 10 4 × B g e o + | B g e o | ( x ^ cos χ + y ^ sin χ ) , where the two terms represent the geomagnetic-induced and permanent magnetizations of the pipeline, respectively. The resulting magnetic distribution on the ground surface is shown in Figure 3, where the gray line denotes the true projection of the pipeline on the ground surface, and the black dashed line is drawn along the maximum value of magnetic anomaly. It can be seen that the maximum value is not situated directly above the pipeline but shifts a bit because of the last term in (10), which reflects the complex effects of the magnetic moment m 0 , the horizontal offset ρ and strike angle χ , the radius vector R , and the direction of the geomagnetic field B ^ g e o .

2.3. Rotating Scanning Measurement

Referring to Figure 4a, when a node is measuring the magnetic field cyclically along a circular course, the measured values varies cyclically, too. It is apparent that the extreme values in one turn will appear roughly at the four A, B, C, and D positions. Because the measured values include both the local geomagnetic field and the magnetic anomaly caused by the pipe, the extreme values should not be exactly but roughly at the four positions. By connecting the points B and D, the strike angle of the pipe, as well as its offset from the center of the rotating rail, can be estimated. We can estimate them just using the cyclically varying property without accurate magnetic field values, so we can use a low-cost fluxgate rather than an expensive atomic magnetometer. To increase the reliability, multiple sensor nodes may be employed to form an array, as illustrated in Figure 1.
In addition, based on the rotational measurement scheme and the simulation parameters given in Section 2.2, a single sensor is placed on the ground and rotates two full turns around the origin with a radius of 1 m. To simulate the environmental magnetic noise, zero-mean Gaussian white noise with a standard deviation of 100 nT was added to the clean signal. Subsequently, an adaptive soft-thresholding denoising method based on wavelet decomposition was applied. The signal was decomposed into five levels using the “db4” wavelet to extract its multi-scale features, which effectively suppressed noise while preserving the main signal components. The denoising performances were quantitatively evaluated using the signal-to-noise ratio (SNR) and the correlation coefficient (CC), defined as
SNR = 10 log 10 i = 1 N s i 2 i = 1 N ( s i x i ) 2
CC = i = 1 N ( s i s ¯ ) ( x i x ¯ ) i = 1 N ( s i s ¯ ) 2 i = 1 N ( x i x ¯ ) 2
where N is the total number of samples; s i is the clean signal sample; x i denotes the noisy or denoised signal sample before or after processing, respectively; and s ¯ and x ¯ are their corresponding mean values.
The simulation results are shown in Figure 4b, where the black solid line represents the noisy total magnetic field, the blue dashed line represents the clean signal, and the orange solid line indicates the denoised signal. After denoising, the SNR increases from 11.0 dB to 24.9 dB, and the CC improves from 0.963 to 0.998, demonstrating a significant enhancement in signal quality. The local maxima of the total magnetic field were extracted from the denoised signal (blue points) and connected, then displayed on the scanning plane z = 0 , as shown in Figure 4c. The gray solid line represents the true pipeline placement. It can be observed that the maxima positions are situated almost directly above the pipeline, with a strike angle error of 0.54° and an offset error of 0.034 m.
To further evaluate the robustness of the wavelet-based denoising method under different noise levels, Gaussian white noise with varying standard deviations was added to the clean signal. As shown in Figure 5a with 1000 realizations, as the noise intensity increases, the improvement in SNR remains stable at approximately 14 dB, while the improvement in CC also increases significantly; of course, the location errors of the strike angle and horizontal offset increase mildly as well, as shown in Figure 5b.
We may emphasize that adopting rotating rather than translational scanning is advantageous for two reasons. First, the efficiency is much higher when scanning the same area, not to mention the difficulty in moving the nodes on rough or muddy ground. Second, we can judge the existence and strike angle of a pipeline based on the periodic variations without using accurate magnetic anomaly data that are hard to separate from a complex background geomagnetic field and measurement errors.
Another point worth noting is that in the analysis above, the measured values at points B and D in Figure 4 should be the same if the magnetization along the pipeline is uniform. However, this may not be the general case, that is, the pipeline is not uniformly magnetized during the manufacturing process. So the measured values at the points B and D are usually not equal. To verify this fact, an experiment was conducted, as illustrated in Figure 6a. A long ferromagnetic pipeline was pulled to move near an optical-pumping magnetometer (Cs-3 Cesium Magnetometer, Scintrex Ltd., Concord, ON, Canada) with a sensitivity of approximately 0.0006 nT / Hz (rms) and a dynamic range of 15 , 000 105 , 000 nT (please note, we used a high-precision atomic magnetometer instead of a low-precision fluxgate solely for this verification). The measured values when the nine points on the pipeline were closest to the magnetometer are plotted in Figure 6b. The slant distance from the magnetometer to the pipe was 46 cm, while the spacing of the nine points was 25 cm. The results show that the maximum value at point 9 is greater than the minimum value at the point 6 by 2062 nT, which reflects a pronounced non-uniformity in the magnetization along the pipe. This finding indicates that any inversion algorithm based on forward modeling with a uniformly magnetized assumption may not align with real ferromagnetic pipelines.

2.4. Estimate of Pipeline Location and Strike Angle

2.4.1. Horizontal Placement Estimation

When a ferromagnetic pipeline is present underground, the magnetic field time series collected by the rotating magnetic sensor nodes typically exhibit periodic characteristics. The prominent extreme points in the data correspond to the positions where the sensor attains the closest proximity to the pipeline during its rotational course. These periodic variations are directly related to the number of rotations. By recording the rotated angles corresponding to the extreme points, the approximate orientation of the underground pipeline can be quickly inferred.
By extracting the latitude and longitude information of the detection nodes at the occurrence of these extreme points, which is obtained by the real-time kinematic (RTK) module installed on the nodes, hidden pipeline locations beneath the nodes can be identified. Subsequently, fitting all candidate points where pipelines are suspected underneath into a straight line allows for determinations of the pipeline’s orientation and horizontal offset coordinates.
Let the coordinates of all candidate points be denoted as V = { ( x 1 , y 1 ) , ( x 2 , y 2 ) , , ( x C , y C ) } , where each ( x i , y i ) corresponds to a position where the magnetic field reaches an extreme value. The linear fitting procedure is based on the least squares method, aiming to find the best-fit line y = a x + b , where a is the slope and b is the intercept. The parameters a and b are determined by minimizing the sum of the squared errors:
min a , b i = 1 C y i ( a x j + b ) 2 .
This optimization problem can be solved using standard linear regression techniques to obtain the optimal values of a and b. The resulting fitted line determines the pipeline strike angle χ and the pipeline offset coordinates:
χ = tan 1 ( a )
( x 0 , y 0 ) = a b 1 + a 2 , b 1 + a 2 .
The quality of the linear fit can be evaluated using the coefficient of determination R 2 , defined as
R 2 = 1 i = 1 C y i y ^ i 2 i = 1 C y i y ¯ 2
where y ^ i denotes the predicted value from the fitted line, and y ¯ represents the mean of the observed values. The value of R 2 ranges between 0 and 1, with a value closer to 1 indicating a better fitting.
The magnetic sensor array continuously rotates around a central point to capture magnetic anomalies from underground pipelines. We may display the measured values at the positions where they are collected by the nodes to form a diagram, using a color bar to indicate the intensities. The extreme values of magnetic fields will fall in a belt that should roughly show the pipeline’s orientation.

2.4.2. Buried Depth Estimation

For a horizontally buried pipeline within the measurement area, the burial depth d ( d > 0 ) can be estimated by measuring magnetic field variations at M distinct heights h i ( i = 1 , 2 , , M , h i > 0 ) above the ground. The total magnetic field response of the pipeline at height h i is defined as
Δ T i = T i extreme T geo , i = 1 , 2 , , M
where T i extreme represents the extreme value of the total field at height h i obtained through averaging multiple rotation cycle extrema to improve the measurement stability, and T geo denotes the background geomagnetic field measured as the mean value in pipeline-free regions.
The depth estimation follows from the magnetic field decay relationship
Δ T i = k h i + d α , i = 1 , 2 , , M
where k is a proportionality constant that reflects the material properties and dimensional characteristic of the pipeline, h i + d represents the vertical distance between the sensor measurement point and the pipeline, and α reflects the rate at which the magnetic field gradient changes with the vertical distance between the measurement point and the pipeline. Each node independently measures the magnetic field gradient at its corresponding location without interference between the nodes.
By applying a nonlinear fitting method, the values of k and d can be determined by minimizing the following objective function:
min k , d i = 1 M Δ T i k h i + d α 2 .
This optimization problem can be solved using intelligent optimization algorithms, and here the Particle Swarm Optimization (PSO) [37] was used. Based on the simulation parameters presented in Section 2.2, the magnetic field at the point ( x 0 , y 0 , 0 ) was computed for various burial depths ranging from 0.1 m to 3 m. The resulting values were then fitted using the model of (18), as shown in Figure 7, yielding an optimal factor α = 2 to indicate second-order power attenuation behavior.

3. Field Experimental Results

This section evaluates the designed rotating magnetic sensor array through field experiments. First, we took an iron pipe as the detection target, with various target and sensor positions. Multiple measurements were conducted, and the proposed methods were applied to give the localization results. Last, the integrated system and algorithm were validated through detecting a real ferroconcrete pipeline.

3.1. Experimental Setup

The experiments were conducted at an outer suburban place of Beijing (N 40°01’, E 117°08’), where the local geomagnetic field strength was 54,586 nT, with a gentle fluctuation of 1 nT during one minute caused by the undulating ionosphere. The target was a square iron pipe that measured 6 m in length and 0.05 m in outer diameter, which was employed to simulate an underground ferromagnetic pipeline. To facilitate the measurement and repositioning, the pipe was placed directly on the flat ground rather than buried underground.
As illustrated in Figure 8, the coordinate system was established with the projection of the array center on the ground as the origin O. The x-axis aligned with geographic north, the y-axis pointed east, and the z-axis was downward, while the ground plane corresponded to z = 0 . Initially, the background magnetic field environment was recorded in the absence of the target as a reference baseline. Subsequently, the array was fixed at a height of h = 0.55 m above the ground to measure the magnetic field distribution when the target pipe was positioned at three different locations. Specifically, the pipe was oriented at a fixed strike angle χ = 15° (relative to geographic north), with its central axis initially passing through the origin of the coordinate system. The pipe was then shifted 0.5 m to the east and west, respectively. Finally, the height of the array above the ground was adjusted to study the variation of magnetic field distribution with height, which was used to estimate the pipe’s burial depth. Through these experimental procedures, a total of nine measurements were performed (the pipe was placed at three positions, and for each place, the measurements were carried out at three heights).

3.2. Pipeline Location Results

When no pipeline was present, the outputs of the measurement nodes predominantly reflected the variations in the background magnetic gradients, as shown in Figure 9. Due to the manual operation, the non-uniform rotational speed introduced significant spikes, but no periodicity was observed in the three turns, indicating no pipe exists.
In the presence of a pipeline target, the magnetic field data acquired by the nodes exhibit clear periodic variations, as shown in Figure 10. Several prominent extrema appear in the magnetic field curves when the nodes pass the position almost directly above the pipeline. For instance, when the rotation angles of Node 1 are 16°, 10°, 17°, and 18°, the magnetic field intensity reaches local maxima, and the corresponding node positions are in close proximity to the pipeline. The dispersion in these angles is mainly caused by GPS positioning errors, fluxgate measurement errors, and asynchronous sampling; in practice, we usually perform several cycles and take the average to reduce the error.
In the localization experiment, the coordinates of all significant extrema points from the four sensor nodes were recorded. A linear fitting was then applied in the XOY plane to estimate the pipeline orientation and offset coordinates. All the extrema points for each node at three heights and rotating for four turns are included in the fitting. The results are shown in Figure 11. The points are colored according to the magnetic field intensities at the measurement positions. The small white circles denote the magnetic field extrema recorded by the four nodes. The estimated pipeline is shown as a gray solid line, while the actual pipeline is indicated by a magenta dashed line. Though some orientation discrepancy exists, it meets common engineering application needs.
Similarly, the localization results for the pipe shifted to the west and east a distance are displayed in Figure 12 and Figure 13, respectively. The results demonstrate a high consistency between the estimated and actual positions (orientation and offset) of the pipeline. It should be pointed out that in Figure 12 and Figure 13, the points for magnetic anomaly extrema occurring at Node 4 should be excluded from the linear fitting process because the node does not pass directly above the estimated pipeline even if the points are included in the fitting.
To measure the reliability of the linear fitting, the regression model coefficients a and b and the R 2 values are summarized in Table 2. The results show an average R 2 of 0.913, indicating a strong fitting performance and high stability and accuracy of the localization results.
To estimate the buried depth, we took the data in Figure 11 as an example, i.e., the obtained extrema points at three heights were substituted into (3) and (18) to solve for k and d. The nonlinear fitting results are given in Figure 14, where the red dots denote measured points, and the blue curve represents the fitted relation between the height h and the magnetic field gradient Δ T . Table 3 lists the coefficients of the nonlinear regression models and the R 2 values for each node, with an average R 2 of 0.9933, indicating an excellent fitting performance. The burial depth was estimated by each node independently, while the final pipeline depth was obtained by averaging the estimates from four nodes as the pipeline is was assumed to be horizontally placed.
Table 4 summarizes the pipeline localization inversion parameters under different experimental conditions. The measurements were carried out for three pipeline locations and for each location at three different heights above the ground. The inversion parameters include the pipeline strike angle χ (defined as the angle between the pipeline direction and geographic north), horizontal offset coordinates ( x 0 , y 0 ) , and burial depth d. The results indicate a strike angle error of 2.68°, horizontal position errors of 0.016 m in the x-direction and 0.031 m in the y-direction, a burial depth error of 0.017 m, and a spatial slant-range error of 0.039 m. These results confirm that the proposed pipeline localization algorithm achieves satisfactory accuracy and stability.

3.3. Real-World Pipeline Localization Case

To verify the applicability of the proposed system and localization algorithm in real pipeline environments, an underground reinforced concrete pipe with a diameter of 1.2 m and a burial depth of 3.0 m was selected as the detection target. The experiment was conducted on a service road along Yanhui Road, Dongtou District, Wenzhou (N 27°56’, E 120°56’). Four measurement configurations at different heights were selected, as illustrated in Figure 15.
The experimental data show that the total magnetic field values measured by Nodes 1 and 2 rotating for four turns at the height of 0.1 m above the ground exhibit a pronounced periodic variation, as shown in Figure 16, indicating the presence of a linearly distributed magnetic anomaly target. The nonlinear fitting results for the burial depth estimation are shown in Figure 17. The fitted coefficients and R 2 values of the nonlinear regression model are listed in Table 5, with an average R 2 value of 0.9869, demonstrating an excellent fitting performance. Due to the large pipeline diameter and deep burial depth, magnetic field data from Nodes 1 and 2 with larger rotation radii were used for the linear fitting. As a rule of thumb, we require the rotation radius of a node to be greater than the half distance to the pipeline. Since the maxima from Node 2 are not distinguishable, the fitting ultimately incorporates both the maxima and minima from Node 1, and only the minima from Node 2. The horizontal localization result at h = 0.10 m, as shown in Figure 18, indicates that the overall distribution remains approximately consistent with the pipeline’s orientation.
Table 6 summarizes the inversion parameters and errors at the four measurement heights, where the pipeline strike angle error is 5.21°, the horizontal localization errors are 0.144 m in the x-direction and 0.059 m in the y-direction, and the burial depth error is 0.15 m. The overall spatial slant-range localization error is 0.216 m, or a relative error of 7.2% compared with the buried depth of 3 m. These experimental results confirm that the proposed pipeline localization algorithm exhibits robust applicability and acceptable accuracy in real-world pipeline environments.

4. Concluding Remarks

This paper presents a portable wireless magnetic detection system for localization of underground ferromagnetic pipelines. The tripod and rail are retractable and lightweight at only a few kilograms. An integrated sensor node takes up about 30 × 10 × 10 cm 3 and weighs 1.5 kg. It performs rotating scanning measurements driven by a micro motor, has a high measuring efficiency, and tolerates complex ground conditions. Moreover, the localization methods are simple and robust, as we only need to gather the coordinates on circular scanning courses where the measured magnetic field reaches extreme values. By fitting these coordinates with a straight line, we obtain the estimated pipeline placement. Both simulated and field experiments confirm the viability to give applicable localization results in real time. The realized localization errors of slant range and strike angle are a few decimeters and several degrees, respectively. Future works may follow regarding multiple aspects: first, improve the localization accuracy by incorporating some prior knowledge of pipelines and local environments; second, extend the application to multiple pipelines, armored cables, and discrete targets; third, accelerate the detection process by utilizing drones to carry the nodes; fourth, acquire high-precision data by using atomic magnetometers at increased cost to meet special demands.

Author Contributions

Conceptualization, M.X.; Methodology, X.L.; Software, X.L.; Validation, X.L. and Z.Y.; Formal analysis, X.L. and Z.Y.; Investigation, X.L. and Z.Y.; Experimental data, X.L. and Z.Y.; Writing—original draft preparation, X.L.; Writing—review and editing, M.X.; Supervision, M.X.; Funding acquisition, M.X. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the National Natural Science Foundation of China under grants No. 62231001 and No. 61531001, and in part by Longwan District Science and Technology Bureau, Wenzhou, Zhejiang Province, under grant No. 2023ZG0378.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Makana, L.; Metje, N.; Jefferson, I.; Sackey, M.; Rogers, C. Cost estimation of utility strikes: Towards proactive management of street works. Infrastruct. Asset Manag. 2018, 7, 64–76. [Google Scholar] [CrossRef]
  2. der Tann, L.V.; Sterling, R.; Zhou, Y.; Metje, N. Systems approaches to urban underground space planning and management—A review. Undergr. Space 2020, 5, 144–166. [Google Scholar] [CrossRef]
  3. Alliance, C.G. 2023 Damage Information Reporting Tool (DIRT) Report. 2024. Available online: https://commongroundalliance.com/Tools-Resources/Resources-Library (accessed on 24 November 2024).
  4. Xiao, X.; Chen, S.; Xu, Y.; Ge, L.; Wu, J. Ground-penetrating radar (GPR)-based mapping of underground pipeline network distribution. IEEE Sens. J. 2024, 24, 19562–19576. [Google Scholar] [CrossRef]
  5. Jia, Z.; Li, Y.; Wang, Y.; Li, Y.; Jin, S.; Li, Y.; Lu, W. Deep learning for 3-D magnetic inversion. IEEE Trans. Geosci. Remote Sens. 2023, 61, 5905410. [Google Scholar] [CrossRef]
  6. Alimi, R.; Weiss, E.; Ram-Cohen, T.; Geron, N.; Yogev, I. A dedicated genetic algorithm for localization of moving magnetic objects. Sensors 2015, 15, 23788–23804. [Google Scholar] [CrossRef]
  7. Yu, J.; Li, J.; Du, C.; Peng, X.; Guo, H. An unmanned aerial vehicle magnetic detection system for archaeological exploration. Electromagn. Sci. 2025, 3, 0110122. [Google Scholar] [CrossRef]
  8. Yoo, L.; Lee, Y.; Lee, B.; Lee, S.; Jung, S.; Choi, Y. Unmanned aerial vehicle for magnetic detection of metallic landmines in military applications. Instrum. Sci. Technol. 2025, 53, 515–537. [Google Scholar] [CrossRef]
  9. Yoo, L.S.; Lee, J.H.; Lee, Y.K.; Jung, S.K.; Choi, Y. Application of a drone magnetometer system to military mine detection in the demilitarized zone. Sensors 2021, 21, 3175. [Google Scholar] [CrossRef] [PubMed]
  10. Shen, Y.; Ge, X.; Gao, J.; Li, Z.; Zhang, H.; Wang, J. Speedy aeromagnetic detection technology for underwater heritage sites: A case study of the flying tigers P40 wrecked aircraft. IEEE Geosci. Remote Sens. Lett. 2025, 22, 7507605. [Google Scholar] [CrossRef]
  11. Bhadran, V.; Shukla, A.; Karki, H. Non-contact flaw detection and condition monitoring of subsurface metallic pipelines using magnetometric method. Mater. Today Proc. 2020, 28, 860–864. [Google Scholar] [CrossRef]
  12. Zhao, Y.; Wang, X.; Sun, T.; Chen, Y.; Yang, L.; Zhang, T.; Ju, H. Non-contact harmonic magnetic field detection for parallel steel pipeline localization and defects recognition. Measurement 2021, 180, 109534. [Google Scholar] [CrossRef]
  13. Zeng, W.; Dang, X.; Li, S.; Wang, H.; Wang, H.; Wang, B. Application of non-contact magnetic corresponding on the detection for natural gas pipeline. E3S Web Conf. 2020, 185, 01090. [Google Scholar] [CrossRef]
  14. Liu, B.; Ma, Z.; He, L.; Wang, D.; Zhang, H.; Ren, J. Quantitative study on the propagation characteristics of MMM signal for stress internal detection of long distance oil and gas pipeline. NDT E Int. 2018, 100, 40–47. [Google Scholar] [CrossRef]
  15. Zhou, Z.M.; Zhang, J.; Wang, C.; Wan, F.; He, S.; Yu, R.Q. Non-magnetization detection of arbitrary direction defects in coiled tubing based on fluxgate sensor. IEEE Sens. J. 2020, 20, 7661–7668. [Google Scholar] [CrossRef]
  16. Dutta, S.M.; Ghorbel, F.H.; Stanley, R.K. Simulation and analysis of 3-D magnetic flux leakage. IEEE Trans. Magn. 2009, 45, 1966–1972. [Google Scholar] [CrossRef]
  17. Zhang, S.; Li, H.; Zhao, C. Magnetic-charge element method for magnetic flux leakage inspection. IEEE Trans. Instrum. Meas. 2022, 71, 6007910. [Google Scholar] [CrossRef]
  18. Zhang, L.; Bian, Y.; Jiang, P.; Huang, Y.; Liu, Y. Improving pipeline magnetic flux leakage (MFL) detection performance with mixed attention mechanisms (AMs) and deep residual shrinkage networks (DRSNs). IEEE Sens. J. 2024, 24, 5162–5171. [Google Scholar] [CrossRef]
  19. Guo, Z.Y.; Liu, D.J.; Pan, Q.; Zhang, Y.Y. Forward modeling of total magnetic anomaly over a pseudo-2D underground ferromagnetic pipeline. J. Appl. Geophys. 2015, 113, 14–30. [Google Scholar] [CrossRef]
  20. Guo, Z.; Liu, D.; Pan, Q.; Zhang, Y.; Li, Y.; Wang, Z. Vertical magnetic field and its analytic signal applicability in oil field underground pipeline detection. J. Geophys. Eng. 2015, 12, 340–350. [Google Scholar] [CrossRef]
  21. Zhao, D.; Guo, Z.; Du, J.; Liu, Z.; Xu, W.; Liu, G. Geometric modeling of underground ferromagnetic pipelines for magnetic dipole reconstruction-based magnetic anomaly detection. Petroleum 2020, 6, 189–197. [Google Scholar] [CrossRef]
  22. Liu, D.J.; Guo, Z.Y.; Zhu, H.H.; Pan, Q.; Ai, Q.H. Voxel partitioning strategy of magnetic dipole reconstruction for underground ferrous pipeline magnetic anomaly. Prog. Geophys. 2016, 31, 2756–2761. [Google Scholar] [CrossRef]
  23. Feng, S.; Liu, D.; Cheng, X.; Fang, H.; Li, C. A new segmentation strategy for processing magnetic anomaly detection data of shallow depth ferromagnetic pipeline. J. Appl. Geophys. 2017, 139, 65–72. [Google Scholar] [CrossRef]
  24. Li, C.F.; Liu, D.J.; Zhai, Y.; Xie, Y.; Sun, Y. The effect of parallel pipeline parameters on the characteristics of gravity and magnetic surveys. J. Appl. Geophys. 2019, 166, 77–88. [Google Scholar] [CrossRef]
  25. Sun, T.; Wang, X.; Wang, J.; Yang, X.; Meng, T.; Shuai, Y.; Chen, Y. Magnetic anomaly detection of adjacent parallel pipelines using deep learning neural networks. Comput. Geosci. 2022, 159, 104987. [Google Scholar] [CrossRef]
  26. Wang, F.; Song, Y.; Dong, L.; Tao, C.; Lin, X. Magnetic anomalies of submarine pipeline based on theoretical calculation and actual measurement. IEEE Trans. Magn. 2019, 55, 6500410. [Google Scholar] [CrossRef]
  27. Wu, P.; Guo, Z. High-precision inversion of buried depth in urban underground iron pipelines based on AM-PSO algorithm for magnetic anomaly. Prog. Electromagn. Res. C 2020, 100, 17–30. [Google Scholar] [CrossRef]
  28. Pan, Q.; Liu, D.J.; Guo, Z.Y.; Fang, H.F.; Feng, M.Q. Magnetic anomaly inversion using magnetic dipole reconstruction based on the pipeline section segmentation method. J. Geophys. Eng. 2016, 13, 242–258. [Google Scholar] [CrossRef]
  29. Li, C.; Liu, D.; Meng, J.; Liu, J.; Zhang, Y. The positioning of buried pipelines from magnetic data. Geophysics 2020, 85, J111–J120. [Google Scholar] [CrossRef]
  30. He, G.; He, T.; Liao, K.; Deng, S.; Chen, D. Experimental and numerical analysis of non-contact magnetic detecting signal of girth welds on steel pipelines. ISA Trans. 2022, 125, 681–698. [Google Scholar] [CrossRef]
  31. He, T.; Liao, K.; Tang, J.; He, G.; Deng, S.; Qin, M. Quantitative study of sensor-pipe distance in noncontact magnetic detection of ferromagnetic pipelines. IEEE Sens. J. 2023, 23, 7879–7894. [Google Scholar] [CrossRef]
  32. Xi, J.; Cui, D. Technology of detecting deep underground metal pipeline by magnetic gradient method. IOP Conf. Ser. Earth Environ. Sci. 2021, 660, 012074. [Google Scholar] [CrossRef]
  33. Sun, X.; Lee, W.K.; Hou, Y.; Pong, P.W. Underground power cable detection and inspection technology based on magnetic field sensing at ground surface level. IEEE Trans. Magn. 2014, 50, 6200605. [Google Scholar] [CrossRef]
  34. Grossinger, R.; Keplinger, F.; Mehmood, N.; Espina-Hernandez, J.H.; Araujo, J.; Eisenmenger, C.; Poppenberger, K.; Hallen, J.M. Magnetic and microstructural investigations of pipeline steels. IEEE Trans. Magn. 2008, 44, 3277–3280. [Google Scholar] [CrossRef]
  35. Kim, J.; Ham, Y.; Park, H. Underground metal pipeline localization using low-cost wireless magnetic sensors mounted on an excavator. IEEE Trans. Ind. Electron. 2022, 69, 10674–10683. [Google Scholar] [CrossRef]
  36. Khiyavi, O.A.; Seo, J.; Lin, X. Three-dimensional metal pipe detection for autonomous excavators using inexpensive magnetometer sensors. IEEE Sens. J. 2023, 23, 24383–24392. [Google Scholar] [CrossRef]
  37. Wang, D.; Tan, D.; Liu, L. Particle swarm optimization algorithm: An overview. Soft Comput. 2018, 22, 387–408. [Google Scholar] [CrossRef]
Figure 1. Illustration of the underground ferromagnetic pipe detection using a rotable magnetic sensor array.
Figure 1. Illustration of the underground ferromagnetic pipe detection using a rotable magnetic sensor array.
Sensors 25 07153 g001
Figure 2. Specific components of the rotating magnetic sensors array survey system.
Figure 2. Specific components of the rotating magnetic sensors array survey system.
Sensors 25 07153 g002
Figure 3. Simulated magnetic anomaly distribution of the pipeline.
Figure 3. Simulated magnetic anomaly distribution of the pipeline.
Sensors 25 07153 g003
Figure 4. (a) Illustration of the detection operation and estimates of strike angle and offset of a pipe. (b) Comparison of noisy, clean, and denoised total magnetic field signals. (c) Localization result of the pipeline using denoised signal maxima.
Figure 4. (a) Illustration of the detection operation and estimates of strike angle and offset of a pipe. (b) Comparison of noisy, clean, and denoised total magnetic field signals. (c) Localization result of the pipeline using denoised signal maxima.
Sensors 25 07153 g004
Figure 5. Effect of noise on magnetic signal denoising and pipeline localization. (a) Signal quality (SNR and CC) before and after denoising. (b) Localization error (strike angle and offset).
Figure 5. Effect of noise on magnetic signal denoising and pipeline localization. (a) Signal quality (SNR and CC) before and after denoising. (b) Localization error (strike angle and offset).
Sensors 25 07153 g005
Figure 6. Experimental verification of non-uniform magnetization of a general ferromagnetic pipe. (a) Field measurement scene. (b) Measured magnetic anomalies at nine positions along the pipe.
Figure 6. Experimental verification of non-uniform magnetization of a general ferromagnetic pipe. (a) Field measurement scene. (b) Measured magnetic anomalies at nine positions along the pipe.
Sensors 25 07153 g006
Figure 7. Simulated magnetic field attenuation versus vertical distance, with α = 2 .
Figure 7. Simulated magnetic field attenuation versus vertical distance, with α = 2 .
Sensors 25 07153 g007
Figure 8. Experimental setup using a square steel tube with an outer diameter of 5 cm to simulate an underground pipeline.
Figure 8. Experimental setup using a square steel tube with an outer diameter of 5 cm to simulate an underground pipeline.
Sensors 25 07153 g008
Figure 9. Time-domain diagram of the total magnetic field output from two nodes in the absence of pipeline target. (a) Node 1. (b) Node 2.
Figure 9. Time-domain diagram of the total magnetic field output from two nodes in the absence of pipeline target. (a) Node 1. (b) Node 2.
Sensors 25 07153 g009
Figure 10. Time-domain diagram of the total magnetic field output from two nodes with the pipeline target at the center (h = 0.55 m). (a) Node 1. (b) Node 2.
Figure 10. Time-domain diagram of the total magnetic field output from two nodes with the pipeline target at the center (h = 0.55 m). (a) Node 1. (b) Node 2.
Sensors 25 07153 g010
Figure 11. Localization results with the pipeline target at the center (h = 0.55 m). The colored points indicate the coordinates where the four nodes collect data along circular courses, where the color reflects the magnetic field intensity at the positions. The small white circles mark the coordinates where the magnetic anomaly reach extreme values. The gray solid line and magenta dashed line show the estimated and true pipeline placements, respectively.
Figure 11. Localization results with the pipeline target at the center (h = 0.55 m). The colored points indicate the coordinates where the four nodes collect data along circular courses, where the color reflects the magnetic field intensity at the positions. The small white circles mark the coordinates where the magnetic anomaly reach extreme values. The gray solid line and magenta dashed line show the estimated and true pipeline placements, respectively.
Sensors 25 07153 g011
Figure 12. Localization results with the pipeline on the west side (h = 0.25 m).
Figure 12. Localization results with the pipeline on the west side (h = 0.25 m).
Sensors 25 07153 g012
Figure 13. Localization results with the pipeline on the east side (h = 0.40 m).
Figure 13. Localization results with the pipeline on the east side (h = 0.40 m).
Sensors 25 07153 g013
Figure 14. Curve-fitting results of burial depth estimation with the pipeline at the center. (a) Node 1. (b) Node 2.
Figure 14. Curve-fitting results of burial depth estimation with the pipeline at the center. (a) Node 1. (b) Node 2.
Sensors 25 07153 g014
Figure 15. Real pipeline detection site.
Figure 15. Real pipeline detection site.
Sensors 25 07153 g015
Figure 16. Time-domain diagram of the total magnetic field output from two nodes with the real pipeline (h = 0.1 m). (a) Node 1. (b) Node 2.
Figure 16. Time-domain diagram of the total magnetic field output from two nodes with the real pipeline (h = 0.1 m). (a) Node 1. (b) Node 2.
Sensors 25 07153 g016
Figure 17. Curve-fitting results of burial depth estimation with the real pipeline. (a) Node 1. (b) Node 2.
Figure 17. Curve-fitting results of burial depth estimation with the real pipeline. (a) Node 1. (b) Node 2.
Sensors 25 07153 g017
Figure 18. Localization result with the real pipeline (h = 0.1 m).
Figure 18. Localization result with the real pipeline (h = 0.1 m).
Sensors 25 07153 g018
Table 1. System hardware specifications.
Table 1. System hardware specifications.
SpecificationValue
Magnetometer Module
SensorsBartington Mag649FLL
Measuring Range±100 T
Orthogonality Error<1° error between axes
Magnetic Field Resolution0.01 nT
GNSS/Inertial Measurement Unit (IMU) Modules
SensorsBT-B201E
Accelerometer±16 g
Gyroscope±1000 deg/s
Satellite SystemBeidou, GPS, Gallileo, Glonass
Horizontal Accuracy≤8 mm ± 1 ppm
Roll/Pitch Accuracy≤0.02° (1 σ )
Yaw Accuracy≤0.2° (1 σ )
Data Acquisition and Communication Card
Sampling Rate10 Hz
Wireless ModuleESP32-WROOM-32 Wi-Fi
Table 2. Linear regression model coefficients using measurement values at three heights for three placements of the pipeline.
Table 2. Linear regression model coefficients using measurement values at three heights for three placements of the pipeline.
Height of Nodes Above Ground (m)ab (m) R 2
0.554.6553.1414.676−0.1691.539−2.5410.94790.85580.8694
0.404.4642.9904.663−0.1781.554−2.2380.88500.92880.9142
0.254.1933.2834.866−0.1761.577−2.5170.94030.91320.9620
Overall4.5013.1384.735−0.1741.557−2.4320.913
Table 3. Nonlinear regression model coefficients for different nodes with the pipeline at the center.
Table 3. Nonlinear regression model coefficients for different nodes with the pipeline at the center.
Node Indexk ( nT · m α )d (m) R 2
11000.070.0200.9895
21185.990.0410.9945
31027.840.0000.9947
41112.650.0100.9945
Overall1081.640.01770.9933
Table 4. Simulation pipeline experimental inversion parameters and errors.
Table 4. Simulation pipeline experimental inversion parameters and errors.
Experiment IndexInversion Parameters
χ (°)x0 (m)y0 (m)d (m)
1True15000
Estimate12.1212.6213.41−0.007−0.009−0.0090.0350.0380.0400.018
Error2.882.371.590.0070.0090.0090.0340.0380.0400.018
2True150.129−0.4830
Estimate17.6618.4916.940.1420.1560.134−0.445−0.467−0.4400.014
Error2.663.501.940.0130.0270.0050.0380.0150.0430.014
3True15−0.1290.4830
Estimate12.0712.1011.61−0.111−0.098−0.1020.5200.4590.4960.018
Error2.932.903.390.0180.0310.0270.0370.0240.0130.018
Average error2.68 ± 0.630.016 ± 0.0100.031 ± 0.0110.017 ± 0.002
0.039 ± 0.015
Note: Each column of χ , x 0 , and y 0 corresponds to one of the three pipeline placements.
Table 5. Nonlinear regression model coefficients for different nodes with the real pipeline.
Table 5. Nonlinear regression model coefficients for different nodes with the real pipeline.
Node Indexk ( nT · m α )d (m) R 2
125,318.392.820.9802
220,025.932.880.9936
Overall22,672.162.850.9869
Table 6. Inversion parameters and errors of real pipeline experiments.
Table 6. Inversion parameters and errors of real pipeline experiments.
Experiment IndexInversion Parameters
χ (°)x0 (m)y0 (m)d (m)
1True32.140.204−0.2083.00
Estimate34.5537.6338.3938.820.3220.3470.3600.364−0.222−0.268−0.286−0.2932.85
Error2.415.496.256.680.1180.1430.1560.1600.0140.0600.0780.0850.15
Average error5.21 ± 1.930.144 ± 0.0190.059 ± 0.0320.15
0.216
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Liu, X.; Yuan, Z.; Xia, M. Underground Ferromagnetic Pipeline Detection Using a Rotable Magnetic Sensor Array. Sensors 2025, 25, 7153. https://doi.org/10.3390/s25237153

AMA Style

Liu X, Yuan Z, Xia M. Underground Ferromagnetic Pipeline Detection Using a Rotable Magnetic Sensor Array. Sensors. 2025; 25(23):7153. https://doi.org/10.3390/s25237153

Chicago/Turabian Style

Liu, Xingen, Zifan Yuan, and Mingyao Xia. 2025. "Underground Ferromagnetic Pipeline Detection Using a Rotable Magnetic Sensor Array" Sensors 25, no. 23: 7153. https://doi.org/10.3390/s25237153

APA Style

Liu, X., Yuan, Z., & Xia, M. (2025). Underground Ferromagnetic Pipeline Detection Using a Rotable Magnetic Sensor Array. Sensors, 25(23), 7153. https://doi.org/10.3390/s25237153

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

Article Metrics

Back to TopTop