Next Article in Journal
Deep Learning-Driven Geospatial Modeling of Elderly Care Accessibility: Disparities Across the Urban-Rural Continuum in Central China
Previous Article in Journal
Exploring Multi-Agent Debate for Zero-Shot Stance Detection: A Novel Approach
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Rectangular Toroidal Current-Based Approach for Lung Biopsy Needle Tracking

The School of Mechanical Engineering, Sichuan University, Chengdu 610065, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(9), 4613; https://doi.org/10.3390/app15094613
Submission received: 3 March 2025 / Revised: 14 April 2025 / Accepted: 18 April 2025 / Published: 22 April 2025

Abstract

:
Biopsy remains the gold standard for diagnosing lung cancer, with high-quality tissue samples being critical for accurate results. To improve puncture accuracy, reduce reliance on CT imaging, and minimize procedural complications, it is essential to address the challenges of tracking the biopsy needle’s trajectory and providing real-time positional guidance to physicians. In this study, we propose a tracking model based on a rectangular toroidal current distribution to determine the biopsy needle’s relative position within the electromagnetic tracking system. A printed circuit board (PCB) is used as the platform for generating the rectangular circulating magnetic field. An alternating electromagnetic field (~70 kHz) is modeled based on the Biot–Savart law. Induced voltages from multiple transmitting coils are processed using Fourier transform algorithms to separate frequencies, enabling the independent extraction of each coil’s signal. A least squares method is employed to solve the five-degree-of-freedom electromagnetic positioning equations for the receiving coils. The objective is to establish a precise and computationally efficient electromagnetic localization model for the biopsy needle. An experimental setup simulating lung biopsy procedures is implemented, utilizing the proposed rectangular toroidal current configuration. Results demonstrate an average localization error of less than 1.76 mm, validating the effectiveness of the system in addressing the challenges of real-time biopsy needle tracking.

1. Introduction

Early diagnosis is a critical step in the treatment of lung cancer, as earlier detection provides patients with better treatment options and improved outcomes [1]. The five-year survival rate for stage I lung cancer can reach up to 80% following treatment [2]. Currently, lung cancer diagnosis is categorized into two main approaches: imaging-based diagnosis and pathological diagnosis [3]. Pathological diagnosis involves performing a biopsy on a detected lung mass to examine whether cancer cells are present in the tissue, allowing for a definitive confirmation of lung cancer [4]. Visual feedback remains an effective tabletop experimental tracking method and is still applicable in medical procedures where direct visual access to the surgical area is feasible, such as subretinal injections [5]. X-ray imaging is a widely used medical imaging modality due to its high penetration capability, enabling deep tissue visualization [6]. While X-ray imaging provides high-resolution anatomical images (~100 μm) with a sufficient refresh rate (30 ms), concerns regarding ionizing radiation exposure pose risks to both patients and physicians [7,8]. Magnetic resonance imaging (MRI) is another powerful imaging tool capable of generating detailed images of internal organs and soft tissues. However, its incompatibility with magnetic materials makes it challenging to integrate with magnetic tracking systems [9]. Ultrasound imaging is a bio-friendly, non-invasive imaging technique that has been utilized for real-time tracking of magnetic devices within the vascular system [10]. Nevertheless, ultrasound imaging is highly sensitive to interfaces, making it difficult to visualize tissues located behind rigid structures such as bones. Designing an assisted lung biopsy needle tracking system that ensures high tracking accuracy, aids physicians in puncture path planning, and minimizes the number of CT scans required for patients remains a significant research focus.
Various short-range techniques for spatial position tracking include electromagnetic, optical, ultrasonic, mechanical, and inertial navigation systems [10,11,12]. The scleral search coil technique is limited to angular position tracking within a small range and is entirely unsuitable for medical biopsy procedures due to its inability to provide precise spatial localization [12,13,14]. Among these, optical and electromagnetic tracking are the most commonly used techniques [15]. Optical tracking systems offer high tracking accuracy but are susceptible to occlusion. In contrast, electromagnetic tracking systems can track positions without occlusion, ensuring reliable tracking [16]. Electromagnetic tracking is currently the gold standard for surgical tracking and guided interventions, primarily used in bronchoscopy, urological examinations, orthopedic, and lung puncture procedures [17]. Notably, electromagnetic tracking provides an economical alternative to X-ray fluoroscopy in interventional surgical navigation systems. These methods eliminate radiation requirements and enable three-dimensional and six-degree-of-freedom (6DOF) navigation in position and orientation. To implement electromagnetic tracking and enhance its accuracy, speed, and robustness, researchers have developed various electromagnetic tracking methods [18]. Optical tracking offers high accuracy (often below 1 mm), but its performance is heavily dependent on maintaining a clear line of sight, which can be difficult in clinical settings due to occlusions and anatomical constraints. Ultrasound-based systems provide real-time imaging and are widely accessible, but they are operator-dependent and generally yield lower spatial resolution, with tracking errors typically in the range of 2–5 mm. Mechanical tracking systems, such as articulated arms or encoders, can offer good repeatability but tend to be bulky and invasive, limiting their applicability during delicate interventions. In contrast, an electromagnetic tracking system demonstrates an average localization error of less than 2 mm, without requiring a line of sight and with minimal mechanical constraints. These advantages make it particularly well suited for in situ lung biopsy procedures, where internal access and soft tissue deformation pose significant challenges to traditional techniques.
Magnetic tracking is widely adopted in medical applications due to its inherent advantages, such as minimal distortion when passing through the human body and its harmlessness to living tissues [19]. One approach to magnetic tracking involves embedding magnetic sensors within a device to measure the surrounding magnetic field and determine its position [20,21]. By comparing sensor measurements with a pre-characterized magnetic field distribution within the workspace, the target can be accurately tracked [22]. However, internal magnetic sensors require onboard transmission circuits and batteries to support the measurements, which reduces the available space inside the capsule. Another magnetic tracking method employs an external sensor array to capture the magnetic field generated by magnets embedded in the device. Sensor arrays have been developed for applications such as force sensing and in vivo muscle tension monitoring and remain a promising approach for active capsule tracking [23]. These arrays are externally powered and do not require onboard components, allowing for the integration of functional units such as biopsy tools and drug delivery chambers [24].
The electromagnetic tracking system consists of three main components: a magnetic field transmitter, a magnetic field sensor, and a computer control unit. The magnetic field transmitter generates alternating electromagnetic signals, which induce a voltage in the sensor. The computer control unit estimates the spatial position of the sensor by solving an inverse problem based on the relationship between the induced voltage and the electromagnetic field distribution [25,26]. Search coil technology has a long history, but in 2014, Song et al. proposed an electromagnetic tracking system, where signals of different frequency must be simultaneously fed to the tri-axial transmitting coils [27]. Tian et al. adopted three coils as a tri-axial magnetic dipole source, but the inducing sensor was composed of two non-orthogonal coils [28]. In [29], an analytical algorithm for magnetic tracking and orientation is presented, and orthogonal tri-axial coils are used as the transmitting coils and sensing coils. Yang presented a novel electromagnetic tracking system (EMTS), whose induction coils are separated from the control unit; hence, wireless pose tracking (six-degree-of-freedom) can be achieved [29]. The transmitting coils are simultaneously excited by nine-channel sinusoidal signals with different frequencies, instead of the switching channels in the chronological order. Inspired by the idea of frequency division, we designed our model accordingly. Zhang designed an accurate magnetic field modeling method that can attenuate the electromagnets’ hysteresis and provide a precise actuation field estimation [30]. Guo proposed a ResNet-LM algorithm, based on the fusion of the deep learning algorithm and optimization algorithm, to improve permanent magnet-based tracking (PMT) performance [31,32].
To enhance both accuracy and system simplicity, we propose a rectangular circulating current-based magnetic field tracking system. In this study, we develop a model of the rectangular circulating emitted magnetic field to determine the relative position of the biopsy needle within the tracking system. The main focus of this research is on establishing a model based on a rectangular circulating magnetic field that accurately represents the position of the biopsy needle while minimizing computational load. We also present an experimental setup for a lung puncture biopsy needle motion tracking system, which is based on electromagnetic tracking using a rectangular toroidal current. The XYZ coordinates of the biopsy needle relative to the emitted magnetic field, along with the pitch and pendulum angles, were calculated using the least squares method. Unlike traditional electromagnetic tracking methods, our approach utilizes a rectangular toroidal current distribution to improve spatial accuracy while maintaining computational efficiency. This novel configuration, combined with optimized signal processing algorithms, enables high-precision tracking of biopsy needles, making it a viable alternative for real-time medical guidance.

2. Materials and Methods

2.1. Rectangular Toroidal Needle Tracking System

In medical puncture procedures, physicians rely on CT imaging data to perform high-precision three-dimensional reconstruction, accurately restoring the patient’s internal anatomical structures, including organs, major blood vessels, and trachea. Based on the reconstructed model, doctors can precisely plan the puncture path, ensuring that the target tissue is reached while avoiding critical blood vessels and airways, thereby reducing the risk of intraoperative complications.
Traditionally, puncture procedures depend largely on the surgeon’s experience and guidance from two-dimensional imaging, which can result in significant errors and risks. However, with the aid of electromagnetic tracking technology, physicians can monitor the real-time spatial position and orientation of the biopsy needle and compare it with the preplanned trajectory, allowing for adjustments during the procedure. This technology employs an external electromagnetic field generator and integrates magnetic sensors at the needle tip to track the needle’s movement in three-dimensional space in a non-contact manner. This enables surgeons to dynamically adjust the insertion angle and depth, significantly enhancing precision, as Figure 1 shows.
This approach, which integrates CT-based reconstruction, trajectory planning, and electromagnetic tracking for guidance, not only enhances the safety and success rate of puncture procedures but also minimizes the likelihood of severe medical incidents caused by accidental puncture of critical structures. As medical imaging processing and electromagnetic navigation technologies continue to advance, this method is expected to play a greater role in precision medicine, providing more reliable technical support for minimally invasive surgeries and interventional treatments.
According to the Biot–Savart law d B = μ 0 4 π I d l × R R 3 , by establishing a coordinate system at the location of the current element and measuring the magnetic induction at a point in space, the relative position of that point with respect to the current element can be determined.
The choice of a rectangular toroidal current distribution in this study is driven by both practical and theoretical considerations. From a practical standpoint, this geometry facilitates efficient implementation using printed circuit board (PCB) technology, allowing for precise coil configuration and uniform magnetic field generation within a confined three-dimensional space. Theoretically, the rectangular toroidal distribution enables a simplified application of the Biot–Savart law, ensuring accurate magnetic field calculations and reliable positioning of the biopsy needle. While alternative coil geometries, such as circular coils and solenoids, were considered, they were ultimately excluded. Circular coils tend to generate less uniform magnetic fields and require more complex modeling approaches to achieve the same level of spatial accuracy. Solenoids, although providing a uniform magnetic field along the center axis, present challenges in terms of boundary effects and are less suitable for compact, PCB-based implementations. Consequently, the rectangular toroidal configuration offers an optimal balance of uniformity, computational efficiency, and practical implementation.
The circular current model complicates the integration process when calculating the toroidal integral model. In contrast, the calculation of the magnetic field is significantly simpler when using the long straight wire current model. The strength of the magnetic field is directional and vectorial. Since the magnetic field is vectorial, when calculating the rectangular current-based magnetic field, only the magnetic fields generated by the currents in the four sides of the rectangle need to be added vectorially. From the Biot–Savart law, we can derive the spatial magnetic field distribution model for the current-carrying long straight wires. As shown in Figure 2a, the spatial coordinate system is established with the current-carrying long straight wire CD aligned along the z-axis, and the spatial point P is located on the x-axis at a distance r 0 from the origin. The magnetic field expression of the long straight wire C D at point P is as shown in Equation (1). The differentiation of the z-axis can be expressed as Equation (3).
From Equation (5), it follows that when the current size of the current-carrying long straight wire, the positions of the two endpoints, and the positions of point P in space are known, the induction of the magnetic field generated by the long straight wire at point P   can be known. As shown in Figure 2b, the center of the rectangular annulus A B C D is located at the origin of the coordinates, the vector of the four edges is expressed as   a i , the magnetic field generated by the four edges at point P in space is B p , and the vector of the line connecting the termination position and the starting position of point   P and a i is b i and c i , where i = 1,2 , 3,4 . The magnetic field of the rectangular circulation is given by Equation (7).
B P = C D d B = μ 0 I 4 π C D s i n θ r 2 d z
d z = r 0 sin 2 θ d z
B P = μ 0 I 4 π r 0 c o s θ 1 c o s θ 2
1 r 0 · c o s θ 1 c o s θ 2 = 1 c s i n θ 1 · a · c a · c a · b a · b = 1 a · c · s i n θ 1 · a · c c a · b b = 1 c × a · a · c c a · b b
B P = μ 0 I 4 π · c × a c × a 2 · a · c c a · b b
B P = μ 0 I 4 π i = 1 4 c i × a i c i × a i 2 · a i · c i c i a i · b i b i
where B P is the magnitude of the magnetic induction generated by the current carrying a long straight wire at point P , whose direction is compounded by the right-hand rule; d z is the length of long straight wire in microns, whose distance to the origin of coordinates is z ; the angle between d z and r is θ .; and θ 1 and θ 2 are the angles between point P and points C , D .
Let the coordinates of the space point P be x , y , z , the length of the A B side be 2 l 1 , and the length of the B C side be 2 l 2 ; then, the coordinates of the four vertices   A B C D of the rectangular annulus can be represented by l 1 and l 2 , A l 1 , l 2 , 0 , B l 1 , l 2 , 0 , C l 1 , l 2 , 0 , D l 1 , l 2 , 0 , which are given by Equation (7).
                                        a 1 = 2 l 1 i                                                                                                             a 2 = 2 l 2 j                                                                                                                   a 3 = 2 l 1 i                                                                                                             a 4 = 2 l 2 j                                                                         b 1 = c 2 = l 1 x i + l 2 y j z k   b 2 = c 3 = l 1 x i + l 2 y j z k       b 3 = c 4 = l 1 x i + l 2 y j z k b 4 = c 1 = l 1 x i + l 2 y j z k      
Substituting Equation (9) into Equation (8) yields an expression for the components of the magnetic field in the three directions of the rectangular circulation:
B P x = μ 0 I z 4 π l 1 x 2 + z 2 l 2 + y l 1 x 2 + l 2 + y 2 + z 2 + l 2 y l 1 x 2 + l 2 y 2 + z 2 μ 0 I z 4 π l 1 + x 2 + z 2 l 2 y l 1 + x 2 + l 2 y 2 + z 2 + l 2 + y l 1 + x 2 + l 2 + y 2 + z 2
B P y = μ 0 I z 4 π l 2 y 2 + z 2 l 1 x l 1 x 2 + l 2 y 2 + z 2 + l 1 + x l 1 + x 2 + l 2 y 2 + z 2 μ 0 I z 4 π l 2 + y 2 + z 2 l 1 + x l 1 + x 2 + l 2 + y 2 + z 2 + l 1 x l 1 x 2 + l 1 + y 2 + z 2
B P z = μ 0 I l 2 + y 4 π l 2 + y + z 2 l 1 + x l 1 + x 2 + l 2 + y 2 + z 2 + l 1 x l 1 x 2 + l 2 + y 2 + z 2 + μ 0 I l 2 y 4 π l 2 y 2 + z 2 l 1 x l 1 x 2 + l 2 y 2 + z 2 + l 1 + x l 1 + x 2 + l 2 y 2 + z 2 + μ 0 I l 1 x 4 π l 1 x 2 + z 2 l 2 + y l 1 x 2 + l 2 + y 2 + z 2 + l 2 y l 1 x 2 + l 2 y 2 + z 2 +   μ 0 I l 1 + x 4 π l 1 + x 2 + z 2 l 2 y l 1 + x 2 + l 2 y 2 + z 2 + l 2 + y l 1 + x 2 + l 2 + y 2 + z 2
From Equations (8)–(10), if the positions of the four vertices A , B , C , D and the point t in space P ( x , y , z ) are known, the magnitude of the magnetic field generated by the rectangular circulation at the point B P x , B P y , B P z can be determined based on its current.

2.2. Simulation of the Rectangular Circulating Current Emission Model

To validate the rectangular circulating current magnetic field model, simulations were conducted to compare the simulated magnetic flux density with the calculated values from the proposed model, ensuring its accuracy. COMSOL software (version 6.1) is commonly used for simulating the magnetic field generated by the emission board. This software is a general-purpose simulation tool applicable across various engineering, manufacturing, and research fields. Its AC/DC Module is a powerful and flexible tool for analyzing static and low-frequency electromagnetic problems, providing extensive modeling capabilities and numerical methods to solve Maxwell’s equations for in-depth electromagnetic field and EMI/EMC studies. For the simulation of the electromagnetic tracking system, this module supports detailed 3D modeling of coils, allowing for precise calculations of current distribution within each wire. It also provides an equivalent approximation approach to simplify modeling by analyzing current distributions in complex coil structures, which is particularly effective for multi-turn coils.
The simulation process includes the following steps, as shown in Figure 3a:
(1)
Modeling the transmitting coil: A single transmitting coil is modeled with coordinates identical to those of the actual magnetic field emission board. A rectangular simulation domain is created to enclose the transmitting coil, with a total volume of (insert volume value here).
(2)
Assigning material properties: The transmitting coil is assigned copper as its material, while the surrounding simulation domain is set as air.
(3)
Steady-state simulation: The transmitting coil is excited with a constant current of 1A.
(4)
Magnetic field analysis: The simulation results provide the magnetic flux density at each point within the simulation domain.
The simulation results are exported, including the coordinates, 1200 simulation points, and their corresponding magnetic flux density values. By substituting these coordinates into the mathematical model of the rectangular circulating magnetic field, the computed magnetic flux density values are obtained.
The ratio between the computed magnetic flux density and the corresponding simulated magnetic flux density is calculated for each point. The distribution of these ratio values across all simulation points is shown in Figure 3b. A ratio closer to 1 indicates higher consistency between the simulation and the theoretical model. Figure 3 demonstrates that most ratio values fall within the range of 1 to 1.3, indicating that the simulated rectangular circulating magnetic field closely aligns with the theoretical model. This confirms that the simulation approach can be effectively used for electromagnetic tracking calculations.

2.3. Magnetic Field Sensor Model

In the Cartesian coordinate system, assuming that the coordinates of the sensor’s centroid is x , y , z , the coordinates of the center of mass x , y , z need to be solved for in a lung puncture biopsy needle tracking system. The angle of its mid-axis and the z-axis is   θ , and the angle of its mid-axis and the x-axis is   φ , as shown in Figure 4. Thus, the unit vector in the direction of the mid-axis of the inductor coil is given in Equation (11).
n A = ( s i n θ × c o s φ , s i n θ × s i n φ , c o s θ )
A time-varying magnetic field induces an induced electromotive force in the induction coil. Depending on the core material, the induced voltage can be increased by up to 500 times, as shown by Equation (12).
v t = N μ 0 μ r A d B · n A d t
where μ r is the permeability of iron oxide magnetism and μ 0 is the absolute permeability of the iron oxide core. A refers to the cross-sectional area of a circular induction coil, and n A is a unit vector along its central axis.
The induced voltage in the induction coil depends on its attitude parameter, while the position parameter is contained in B 0 n A , and the attitude parameter is contained in n A . By determining the induced voltage in the induction coil, the attitude information of the induction coil can be solved.

2.4. Position Calculation Algorithm

To determine the pose parameters of the receiving coil, a mathematical equation is formulated that establishes the relationship between the induced voltage and the coil’s spatial position and orientation. Since this equation contains five unknowns, at least five independent equations are required to solve for the pose parameters. Each equation can be derived from the voltage induced by a distinct transmitting coil, meaning that a minimum of five transmitting coils is necessary to provide sufficient data for accurate localization.
However, relying solely on five transmitting coils poses limitations due to the rapid attenuation of the magnetic field with distance, resulting in a constrained operational range that may be insufficient for lung biopsy procedures. To address this, the system employs a total of eight transmitting coils, each operating at a distinct frequency. This expanded coil configuration enhances the spatial coverage and signal robustness while mitigating localization errors caused by field inhomogeneities. Nevertheless, increasing the number of coils introduces additional complexities in signal separation, hardware calibration, and pose computation, potentially affecting system latency and real-time performance. Thus, the selection of eight coils represents a balance between accuracy, computational efficiency, and practical feasibility in medical applications.
Considering these factors, this study employs a magnetic field emission board incorporating a total of eight transmitting coils, each operating at distinct frequencies. Four of these coils are positioned in a standard orientation, while the remaining four are rotated 90 degrees about the central axis. This strategic configuration not only optimizes the utilization of the available layout space but also enhances the uniformity and strength of the generated magnetic field within the designated working area, thereby improving the system’s overall localization accuracy and stability.
Since the sensor coil generates eight induced voltages caused by the transmitting coil currents when operating in an electromagnetic positioning system, the signal collected by the sensor is the sum of the eight induced voltages, as shown in Equation (13).
v t = i = 1 8 V i s i n ( ω i t + φ V i )
where V i   is the amplitude of each induced voltage component and φ V i is the phase of each induced voltage at the start of timing.
At a given moment, when calculating the pose of the receiving coil based on the induced voltage, the acquired voltage signal is the superposition of the induced voltages generated by eight transmitting coils on the receiving coil. However, the required induced voltage corresponds to each transmitting coil individually. Therefore, it is necessary to extract the induced voltage corresponding to each transmitting coil. A commonly used method is to apply the Fourier transform algorithm to convert the acquired signal from the time domain to the frequency domain.
In this study, the electromagnetic tracking system utilizes sinusoidal excitation signals, resulting in induced voltages that are also sinusoidal. Consequently, Fourier transform can be effectively employed to accurately obtain the frequency domain information of the sinusoidal components within the acquired voltage signal. By analyzing the frequency spectrum, the voltage amplitude corresponding to each specific frequency can then be determined.
Both the transmitting coil current and the sensing coil are demodulated using the Fourier transform, as described in the synchronous demodulation method described in the previous section. The amplitude and phase of the transmitter coil current and sensor coil-induced voltage can be obtained as follows:
V = [ V 1 , V 2 , , V 8 ] I = [ I 1 , I 2 , , I 8 ] φ V = [ φ V 1 , φ V 2 , , φ V 8 ] φ I = [ φ I 1 , φ I 2 , , φ I 8 ]
where V i is the induced voltage of the 8 coils, I i is the induced current of the 8 coils to the sensor, φ V is voltage phase angle, and φ I   is current phase angle.

2.5. System Calibration Algorithm

The magnetic induction strength of the space magnetic field is positively correlated with the size of the excitation current of the electromagnetic transmitter plate and the size of the magnetic permeability in the vacuum. Due to an error in the hardware, in the process of practical application, the size of the signal current is not perfect with the theoretical value; the magnetic permeability of the air and the magnetic permeability of the vacuum are not identical, and there exists a certain proportionality relationship; at the same time, the error in the other hardware in the circuit is also transferred to the bit gesture solving process. At 70 kHz, the effect of eddy currents in biological tissues is negligible due to their relatively high resistivity compared to metal conductors. The magnitude of eddy currents depends on the material’s conductivity, permeability, and the frequency of the applied field. While metals with high conductivity generate significant eddy current losses, biological tissues, such as muscle and fat, have conductivities ranging from 0.01 to 1 S/m, which are several orders of magnitude lower. At 70 kHz, the skin depth in biological tissues is several centimeters, allowing for the magnetic field to penetrate effectively with minimal attenuation or distortion.
As the frequency increases, factors such as eddy currents and other losses become more significant. On the other hand, lower frequencies are susceptible to environmental interference and result in longer sampling times, which can compromise system efficiency. Therefore, the selection of 70 kHz optimizes the trade-off between minimizing eddy current effects and ensuring a reasonable sampling time, thus improving the overall computational efficiency of the electromagnetic tracking system.
At the same time, other hardware errors in the circuit will also be transferred to the bit pose solution process, and these errors are uncontrollable and cannot be accurately obtained through analysis. To solve this problem, it is necessary to calibrate the system before the operation to obtain the calibration coefficients k i for each transmitting coil of the electromagnetic transmitting board.
The calibration process needs to be carried out individually for each transmitting coil by setting up some test points at known locations, using the nonlinear least squares method. It assumes that the measured value of the magnetic flux of the i transmitting coil at the j test point in the electromagnetic transmitting plate is B m e a s i , and at the same time, the theoretical flux of the i transmitting coil at the same point, which is derived according to the magnetic field model, is B c a l c i . Then, the solution for the objective function to minimize the error between the two can be expressed as
F i k i = j = i m V m e a s i x j , y j , z j , θ j , φ j k i V c a l c i x j , y j , z j , θ j , φ j 2
where k i   is the calibration coefficient of the i coil, F i k i is the sum of errors corresponding to the i coil, m e a s is the number of test points, and x j , y j , z j , θ j , φ j is the position parameter of the inductive coil at the point, which is minimized by iteratively iterating and correcting the value of k i to make F i k i reach the minimum value.
Since the sensor cannot be completely fixed along the axial direction, there are a few errors in the z-axis direction. To reduce this error, it is necessary to introduce the z-axis compensation constant r i o f f s e t , and thus, the error objective function can be written as follows:
F i k i , r i o f f s e t = j = i m V m e a s i r j r i o f f s e t , θ j , φ j k i V c a l c i r j r i o f f s e t , θ j , φ j 2
To solve the electromagnetic positioning equations derived from the induced voltages, a standard least squares (LS) method is employed. This approach involves matrix inversion, with a computational complexity of O ( N 3 ) , where n is the number of variables in the system. While this complexity is acceptable for offline computation, it can become a limiting factor in real-time applications. The convergence of the LS solution is generally stable when the system is well conditioned and the initial estimates are reasonably close to the true values. However, poor initial conditions may lead to suboptimal convergence or sensitivity to measurement noise. In practice, this issue is mitigated through a pre-calibration process and by using a physically constrained initial guess based on prior sensor positions. To further enhance the computational efficiency and robustness in future iterations of this system, we propose adopting recursive least squares (RLS) methods, which can incrementally update the solution with significantly reduced computational overhead, making them more suitable for real-time tracking scenarios.
The least squares method is employed to obtain the true displacement by finding the optimal point of an approximate (quadratic) function of the objective function, within a region centered at the initial point with a given radius. The specific procedure of the five-degree-of-freedom (DOF) solution algorithm is as follows:
(1)
The voltage information corresponding to the eight transmitting coils is input as the parameters of the objective function model, and the parameters for the least squares function are set.
(2)
The least squares algorithm is used for iterative computation of the five DOF of the sensing coil corresponding to the eight voltage signals. In each iteration, the electromagnetic tracking coupling equations are first used to compute the eight sensing voltages at the current iteration point. Then, the difference between these calculated voltages and the input voltage parameters is taken as the residual. Using the electromagnetic tracking coupling equation as the model, the algorithm is applied to compute the next iteration point until the residual is smaller than the iteration accuracy.
(3)
Once the algorithm iteration is completed, the pose of the sensing coil from the final iteration is provided, which corresponds to the result of the five DOF solution algorithm.
Due to the ability to compute the position of the next point based on the previous point, the algorithm iterates quickly by employing the least squares method. The objective function is then solved to determine the displacement of the target function. After obtaining the displacement, the value of the objective function is calculated. If the decrease in the objective function satisfies a given condition, the displacement is considered reliable, and iterative calculations continue according to this rule. If the decrease in the objective function does not satisfy the given condition, the range of the domain should be reduced, and the problem should be resolved accordingly.

2.6. Positioning of System Measurements

In obtaining the coil calibration coefficients k i and z-axis compensation constants r i o f f s e t for electromagnetic positioning, the coils corresponding to different voltages V = [ V 1 , V 2 , , V 8 ] obtained from sampling can be obtained by the signal acquisition card, and can be used according to the F i k i = j = i m V m e a s i x j , y j , z j , θ j , φ j k i V c a l c i x j , y j , z j , θ j , φ j 2 ; in order to minimize F i k i , the least squares algorithm is used to calculate x j , y j , z j , θ j , φ j .

3. Results

3.1. System Building

After establishing the rectangular circulating magnetic field model and deriving the electromagnetic tracking coupling equations, the design of the transmitting coils can be carried out according to the requirements of lung puncture procedures. Based on standard human body dimensions, the 50th percentile chest width is 280 mm, and the 99th percentile is 331 mm, while the 50th percentile chest depth is 212 mm, and the 99th percentile is 216 mm. Since the abdominal volume is comparable to the thoracic volume, the working area of the transmitting coils is set to 300 mm × 300 mm × 300 mm directly above the transmitting coils, ensuring complete coverage of the patient’s abdomen.
Traditional magnetic field generation devices typically use wound coils, where enameled copper wires are tightly wound around an ABS plastic frame using a winding machine. The coil ends are connected to a signal generation and amplification system. The entire magnetic field generation device is box-shaped and suspended above the surgical area. To avoid obstructing the surgeon, a certain distance must be maintained between the device and the patient, which prevents the full utilization of the device’s working area. Since the generated magnetic flux density is inversely proportional to the square of the distance, as the receiving coil moves away from the working area, the induced voltage drops rapidly, making signal acquisition and computation difficult. To expand the effective working area, a stronger magnetic field is required, which increases hardware complexity and significantly raises costs.
To address these limitations, PCB coils are used as transmitting coils in the design of the magnetic field emission board. Compared to wound coils, PCB coils offer advantages such as simpler fabrication, lower cost, and higher precision. With a line width of 0.5 mm, PCB manufacturing can achieve a precision of 0.02 mm, and PCB coils are significantly thinner, with a thickness of only 1.6 mm. This allows for the magnetic field emission board to be placed directly beneath the patient, in close contact with the body, thereby fully utilizing the working area while reducing hardware requirements for the transmitting coils.
We selected planar coils on a single PCB for manufacturability, repeatability, and integration; chose 25 turns to balance signal strength, power consumption, and manufacturability; optimized resistance, inductance, and current for efficiency and stability; and used a single-layer PCB to simplify fabrication, reduce cost, and maintain mechanical stability.
The PCB-based magnetic field emission board is designed as shown in Figure 4. The board has an overall size of 300 mm × 300 mm with a thickness of 1.6 mm, and the generated magnetic field effectively covers a volume of at least 300 mm × 300 mm × 300 mm. During lung biopsy procedures, the board can be placed underneath the patient without occupying additional space on the surgical table or interfering with the surgeon’s workflow. The outer coils are aligned parallel to the X-axis, while the middle coils are rotated 45 degrees around the Z-axis.
PCB coils are employed as transmitting coils in the design and fabrication of electromagnetic transmitting boards. These coils offer advantages such as simpler fabrication and lower cost compared to traditional single-layer coils wound with enameled wire. The design parameters for these coils are detailed in Table 1.
Each coil operates with a distinct frequency AC excitation current, with the frequency range controlled between 68 kHz and 72 kHz. Additionally, to prevent signal degradation due to the filtering process, the signal frequency must be slightly higher than the filter cutoff frequency (by approximately 500 Hz). To mitigate the potential interference from power line noise (50/60 Hz), an analog high-pass filter is implemented using operational amplifiers (op-amps). The filter is designed with a cutoff frequency of 500 Hz to effectively remove unwanted high-frequency noise while maintaining the integrity of the signal of interest. The filter allows for immediate noise reduction at the signal acquisition stage, ensuring that the electromagnetic tracking system remains responsive and accurate. The operational amplifier used in the filter is a TL081, chosen for its low noise and fast response characteristics.
The receiving coil in the electromagnetic tracking system utilizes a ferrite core, which offers several advantages, including a high magnetic permeability (~500), low eddy current loss, and favorable magnetic saturation characteristics with a saturation flux density of approximately 0.3–0.5 T. Compared to metal cores, ferrite cores have high resistivity, which effectively suppresses eddy current losses at 70 kHz, making them more suitable for electromagnetic tracking systems. The coil structure adopts a helical winding design, using high-purity enameled copper wire as the winding material. The winding is arranged in a single winding configuration to optimize distributed capacitance and reduce high-frequency losses. To enhance the signal strength, a ferrite core is used in the tracking system sensor. The design parameters for the sensor are given in Table 2, and the design results are shown in Figure 5.

3.2. System Calibration Error Analysis and Optimization

The system requires calibration before operation, and several calibration position schemes are set up, including 50 mm 4 × 4, 40 mm 5 × 5, 30 mm 6 × 6, and 30 mm 7 × 7 calibration grids. These calibration positions are used to solve the system and calculate the modification coefficients, as shown in Table 3. Table 3 shows that the vertical height offset values of the eight coils vary, with the electromagnetic positioning of the plate at approximately 15 mm. The calibration coefficients differ for each coil due to varying drive positions of the plates and the different filtering effects on the overall signal. However, the coil calibration coefficients remain consistent across different calibration schemes.
The receiving coil is fixed inside a simulated biopsy needle, with its bottom positioned 80 mm above the bottom of the simulated needle. The bottom of the receiving coil serves as the reference position for induced voltage calculation, ensuring that its height matches the calibration point height. The simulated biopsy needle is then placed vertically at the calibration point for voltage acquisition. The collected voltage data are processed by the calibration algorithm to determine the calibration coefficients and the Z-axis compensation constant. Once the hardware and software setup for calibration is complete, the calibration process is performed as follows:
(1)
Induced voltage acquisition at the calibration point: The induced voltage is measured, and Fourier transform is applied to extract the individual induced voltages corresponding to each of the eight transmitting coils.
(2)
Nonlinear least squares optimization: The induced voltages and the known pose of the calibration point are used as function parameters, while the calibration coefficients for the eight transmitting coils and the Z-axis compensation constant of the receiving coil are treated as unknowns, initialized to zero. Nonlinear least squares optimization is employed, iteratively refining the calibration coefficients and Z-axis compensation constant to minimize the difference between the computed induced voltage (based on the calibration point pose) and the experimentally acquired voltage from step (1).
(3)
Output of optimized calibration parameters: The final iteration results provide the optimal calibration coefficients for each transmitting coil and the optimal Z-axis compensation constant for the receiving coil.
To evaluate the performance of different system calibration methods, a mutual calibration of the coils is conducted, which allows for the calculation of the self-calibration error for each coil, as shown in Figure 6. As depicted in the figure, when different calibration position schemes are chosen, there are some variations in the calibration error. However, the overall differences are not significant. It can also be observed that the highest signal-to-noise ratio is typically found in the center of the acquisition area, with the maximum calibration error occurring more frequently at the edges. Among the different calibration position schemes, the 30 mm calibration scheme results in the lowest calibration error. Using this scheme, the system’s calibration parameters are obtained in Table 4.

3.3. System Positioning Stability Analysis

The static stability of the positioning system is crucial for the overall measurement accuracy. To assess the system’s stability, the electromagnetic sensor coil was fixed at specific positions, and its jitter error relative to the system was measured. The sensor was fixed at the following coordinates: (0, 0, 80), (40, −40, 80), (−40, 40, 80), (40, 40, 130), (80, −80, 80), and (−80, −80, 80).
For precise calculations, the sample variance is used to evaluate the static stability of the system. A higher sample variance indicates greater fluctuation in the sample data. The sample variance X s is employed to assess the continuous tracking stability of the induction coil at each position.
The sample variance values at each of the six points are recorded separately. As shown in Table 4, the static error is generally within the range of 3–4 mm2, which meets the system’s stability requirements.

3.4. System Accuracy Analysis

To perform an overall precision analysis of the system, the sensor probes were placed within the system to measure the error. The measurements were conducted on the horizontal plane by moving the probes 50 mm to different positions, and the position of the sensors was averaged over three consecutive measurements at 1 mm intervals. To ensure consistent placement of the sensing coil, the operator underwent multiple training sessions before the experiment. During each test, the predetermined position of the induction coil was recorded first, followed by the recording of the system’s output position.

3.4.1. Deviation Between True and Measured Values of Horizontal Movement

The electromagnetic sensor probe was placed at the origin of the electromagnetic tracking system and subjected to 1 mm movements in the front–back and left–right directions. The displacement values were then collected and calculated by the electromagnetic tracking system, as shown in Figure 7. As observed in the figure, the error between the measured and theoretical values remains within 2 mm, indicating that the performance is influenced by random error.

3.4.2. Deviation Between the Real and Measured Values at Positive and Negative Half-Axis of y

To measure the error across the measured area, the electromagnetic tracking system probe is positioned along the positive and negative half-axes of the y-direction and moved along the x-direction. The test results are shown in Figure 8. From the figure, it can be observed that the error between the measured and theoretical values remains within 2 mm, indicating random error in the performance. Additionally, compared to the central area, the error at the edges is slightly larger.

3.4.3. Measurement Deviation When Moving up and Down

To measure the sensor in space up and down to move the measurement accuracy, the electromagnetic sensor probe was placed in the electromagnetic tracking system at the origin, for the up and down movement, respectively, to measure its z-axis position, and compared with the theoretical value and the theoretical deviation, and the actual measured value is shown in Figure 9. In the figure, it can be seen that the z-axis direction, the theoretical value, and the real basic overlap.

3.4.4. Fixed Angle and Real Deviation

To measure the accuracy when the sensor is moved at specific angles, the electromagnetic sensor probe is placed at the origin of the electromagnetic tracking system and tilted at angles of 30°, 45°, and 60° for measurement. The probe then undergoes front, back, left, and right movements, respectively. The theoretical deviation and the actual measured values are shown in Figure 10. As seen in the figure, compared to the vertically placed sensor, the measurement accuracy remains within 2 mm, and the accuracy is not significantly affected by the angular changes.
Root Mean Square Error (RMSE) is used to evaluate the average accuracy of both position and orientation. A smaller RMSE indicates higher accuracy. By combining all the above measurements, the RMSE values of the electromagnetic (EM) tracking system can be calculated, as shown in Table 5. It can be observed that the z-axis exhibits the lowest accuracy compared to the x- and y-axes. This is primarily because the z-axis is farther from the measured electromagnetic field area, while the x- and y-axes remain within the core region. Additionally, when the sensor is offset by a certain angle, the displacement accuracy improves. This is mainly due to the smaller rate of change in the magnetic field caused by the displacement, which allows for the least squares method to more effectively solve for the specific position.

3.5. System Test and Response

A robotic arm was used to test the system’s stability and performance. The experiment included position variation tests and angle variation tests, aimed at evaluating the system’s positioning accuracy under changes in both position and angle. The robotic arm was employed for control, with the arm’s pose used as the true value of the simulated biopsy needle’s pose. The deviation between the true value and the system’s calculated value was then computed to assess the positioning accuracy of the inertial-assisted electromagnetic positioning system.
In the experiment, the robotic arm controlled the movement of the simulated biopsy needle. The robotic arm used was the FR-3 model, shown in Figure 11, and it was fixed on a metal frame to ensure the base of the arm remained stationary. The key parameters of the robotic arm are listed in Table 6.
As shown in the Table 7, the robotic arm’s effective payload is capable of bearing the weight of the simulated biopsy needle. Its working radius covers the operational area of the electromagnetic positioning system, and its repeatable positioning accuracy significantly outperforms that of electromagnetic positioning products available on the market. Therefore, this robotic arm can be used to test the positioning accuracy of the inertial-assisted electromagnetic positioning system.
The initial position of the simulated biopsy needle was determined, and the specific location of the starting point was obtained using the robotic arm’s position information. Induced voltage and angle signals were collected, and the position of the simulated biopsy needle was calculated. The electromagnetic positioning system was used for the positioning of the simulated biopsy needle, and the position error was calculated. The position of the simulated biopsy needle was changed, and the experiment was repeated 2000 times to obtain the computed data and the actual true positions. The robotic arm was used to control the simulated biopsy needle’s movement within the working area, with the arm’s position information serving as the true position value of the simulated biopsy needle. After each position change, the inertial-assisted electromagnetic positioning system performed a calculation of induced voltage and pose.
The data and errors calculated from 2000 experiments can be found in Supplementary Materials. To display the system’s stability, data within the ranges of 0–20 mm for the x-axis, 0–20 mm for the y-axis, and 100–120 mm for the z-axis were selected for display in Figure 12. From the error bars, it can be observed that the system error is consistently within 1.75 mm. Additionally, the spatial distance errors of the 2000 data sets for x, y, and z are calculated, and Figure 12d shows that the distance error is less than 3 mm after 2000 large-scale experiments.
To verify the instrument’s response performance, we conducted systematic time response data collection across 2000 experiments. In each experiment, the data acquisition card began collecting the current signal and transmitted the data to the computing system, where it was processed to yield results. The time of signal collection and result output were precisely recorded in each experiment to analyze the response time of the instrument throughout the process. Through statistical analysis of the 2000 experimental data, we focused on the system’s response time, including the total delay from signal acquisition to result processing, system stability, and time fluctuations in each experiment, as shown in Figure 13a. The experimental data indicated that the majority of response times remained within the expected range, and across the 2000 trials, the average response time consistently stayed within the target time range (50 ms), demonstrating good repeatability (20 hz).
For assessing the accuracy of the system, we conducted 30 repeated measurements of the positioning error. The average error was calculated as 1.76 mm, and the standard deviation of the measurements was 0.6 mm. Using a 95% confidence level, we calculated the 95% confidence interval for the error to be [1.12 mm, 2.4 mm], indicating that the positioning error falls within this range with 95% confidence.
We compared and validated our method with several algorithms from previous studies in the literature. As shown in Table 7, the accuracy reported in this paper is comparable to that in other studies, but our method is simpler and better suited to meet the fine requirements of puncture tracking.
In comparison to the other three studies, our approach offers several distinct advantages: Firstly, while previous methods often rely on complex optimization algorithms or machine learning techniques for pose tracking, which can increase computational time and reduce accuracy, our method uses a simple yet effective least squares algorithm to solve the five-degree-of-freedom positioning equations, ensuring both precision and computational efficiency. Moreover, unlike traditional methods that may be limited by sensor arrays or use of fewer transmitting coils, we employ a rectangular toroidal current distribution model, which provides more accurate and reliable tracking of the biopsy needle, especially in real-time tracking scenarios. Additionally, the magnetic field model we develop, with an average error of less than 1.75 mm, surpasses the tracking accuracy demonstrated in the other studies. Furthermore, the use of a PCB as the carrier for the magnetic field emitter allows for a compact, cost-effective, and scalable solution, while the 70 kHz operating frequency minimizes eddy current interference in biological tissues, enhancing system performance. In summary, our system’s improved accuracy, computational efficiency, and reduced system complexity make it a strong candidate for medical applications such as biopsy needle tracking.
In addition, to comprehensively validate the instrument’s response performance under different motion modes, we conducted a continuous positioning motion experiment, which included both square trajectory motion and a random motion trajectory. The square trajectory motion simulated the continuous operation of the positioning system along a standard path, while the random motion trajectory tested the system’s dynamic response capability on nonlinear and irregular paths. The entire experimental process was recorded using high-frame-rate video (https://zenodo.org/records/14636130 (accessed on 13, January 2025)), ensuring the precise capture of every movement and response change of the positioning system. The video screenshot is shown in Figure 13b. This experiment provided comprehensive data support for the practical application of the instrument, confirming the system’s reliability and response capability under various operating conditions.

3.6. Equivalent Material Simulation of Biological Tissues

In this study, equivalent materials were used to simulate biological tissues instead of conducting real biological experiments. This approach was chosen due to the complexity of real experiments, ethical considerations, and the challenges associated with in vivo testing. The selected materials simulate muscle (conductivity: 0.4 S/m; relative permittivity: 260; permeability: 1) and bone (conductivity: 0.05 S/m; relative permittivity: 15; permeability: 1), as their electromagnetic properties closely resemble those of human tissues, making them suitable for experimental validation. These equivalent materials effectively replicate the electromagnetic characteristics of biological tissues and can be applied in the validation of electromagnetic tracking systems.
In the electromagnetic tracking system, calibration was performed based on the procedures outlined in previous sections, and the system was established accordingly, as shown in Figure 14. The equivalent muscle and bone materials were then introduced into the system, and random positioning experiments were conducted to obtain absolute positioning error data, as illustrated in Figure 14c. The results indicate that the inclusion of human-equivalent tissues and organs in the tracking system does not affect the overall positioning performance and accuracy. Experimental results confirm that skin-depth effects do not significantly weaken the induced signal, ensuring accurate localization. The field strength remains within acceptable limits, and any signal loss in biological tissues does not impact the system’s overall performance.
Since the magnetic permeability of biological tissues is close to that of a vacuum ( μ μ 0 ), the magnetic field can penetrate the human body with minimal loss, particularly in the case of low- and mid-frequency electromagnetic fields, without inducing significant eddy current losses as seen in metal shielding. While this approach provides a controlled and repeatable testing environment, we acknowledge that the heterogeneity in real biological tissues—such as variations in conductivity across different organs—may introduce discrepancies between experimental results and real-world conditions. In future research, we plan to conduct in vivo experiments to further validate the applicability of this system in real medical scenarios.

4. Discussion

The diameter of the magnetic core used for the sensor probe in Figure 6d is 7.2 mm, which is relatively large compared to those typically used in classical electromagnetic tracking systems, resulting in decreased accuracy. The least squares method employed in this study is used to solve for the position. However, due to a pole problem during the solving process, the system may incorrectly identify the pole as the minimum value point, resulting in calculation errors. To address this, further modifications to the least squares method are proposed to minimize the error caused by this issue.
In this study, several potential sources of error could impact the accuracy and performance of the electromagnetic tracking system. Environmental interference, such as external electromagnetic fields from nearby electronic devices or power lines, could distort the system’s magnetic field and lead to incorrect position estimates. Additionally, sensor noise, originating from either the internal electronics of the sensors or external factors, can degrade the signal-to-noise ratio, reducing the precision of measurements. Calibration inaccuracies also represent a significant potential error source; misalignments or errors during the calibration process, such as incorrect alignment of the transmitter coils and sensors, can introduce considerable discrepancies between theoretical models and real-world measurements. Sensor positioning and alignment issues, even small deviations, can further affect the system’s accuracy. Furthermore, variability in the electrical conductivity and magnetic permeability of biological tissues may influence the magnetic field distribution, especially given that tissue properties can differ depending on composition or temperature. These factors must be carefully considered, and future research should focus on enhancing calibration methods, minimizing sensor noise, and improving system sensitivity to environmental variables in order to optimize tracking accuracy in practical applications.

5. Conclusions

This study introduces a novel electromagnetic localization system for lung biopsy needle tracking, aimed at improving real-time procedural guidance and localization accuracy. The system utilizes a rectangular toroidal current distribution, with a printed circuit board (PCB) serving as the magnetic field emitter. An alternating electromagnetic field at approximately 70 kHz was modeled using the Biot–Savart law. Induced voltages from multiple transmitting coils were separated through Fourier transform algorithms, enabling independent signal extraction. A five-degree-of-freedom positioning model was solved using the least squares method, ensuring both computational efficiency and spatial precision. Experimental validation demonstrated that the proposed system achieved an average localization error of less than 1.76 mm, effectively addressing core challenges in biopsy needle tracking. The results highlight the system’s potential to enhance accuracy while reducing dependency on imaging techniques such as CT, thereby contributing to safer and more efficient clinical procedures. Future work will focus on enhancing calibration strategies, minimizing susceptibility to environmental interference, and evaluating the system’s performance in biological tissues to support its translation into clinical settings.

Supplementary Materials

The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/app15094613/s1 and Zenodo (https://zenodo.org/records/14636130 (accessed on 13 January 2025)); (1) Video: Accurate Biopsy Needle Localization Using a Rectangular Toroidal Magnetic Field: A Computational Model and Experimental Validation. (2) 2000-times position errors.

Author Contributions

Conceptualization, H.P.; methodology, H.P.; software, Y.D.; validation, Y.D.; formal analysis, Y.D.; investigation, Y.D.; resources, Q.F.; data curation, Q.F.; writing—original draft preparation, Y.D.; writing—review and editing, Y.D.; visualization, Y.D.; supervision, Y.D.; project administration, L.X.; funding acquisition, L.X. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Sichuan Provincial Department of Science and Technology under grant No.2022YFG0235 and Sichuan University Huaxi Hospital under grant No. H2021201005.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

All our data are available, and we have uploaded relevant experimental videos to Zenodo (https://zenodo.org/records/14636130 (accessed on 13 January 2025)).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Goldstraw, P.; Chansky, K.; Crowley, J.; Rami-Porta, R.; Asamura, H.; Eberhardt, W.E.; Nicholson, A.G.; Groome, P.; Mitchell, A.; Bolejack, V.; et al. The IASLC Lung Cancer Staging Project: Proposals for Revision of the TNM Stage Groupings in the Forthcoming (Eighth) Edition of the TNM Classification for Lung Cancer. J. Thorac. Oncol. 2016, 11, 39–51. [Google Scholar] [CrossRef] [PubMed]
  2. Schabath, M.B.; Cote, M.L. Cancer Progress and Priorities: Lung Cancer. Cancer Epidemiol. Biomark. Prev. 2019, 28, 1563–1579. [Google Scholar] [CrossRef] [PubMed] [PubMed Central]
  3. Nooreldeen, R.; Bach, H. Current and Future Development in Lung Cancer Diagnosis. Int. J. Mol. Sci. 2021, 22, 8661. [Google Scholar] [CrossRef] [PubMed] [PubMed Central]
  4. Popper, H. Pathologic diagnosis of lung cancer—Recent developments. Curr. Opin. Oncol. 2024, 36, 57–62. [Google Scholar] [CrossRef] [PubMed]
  5. Irigoyen, C.; Amenabar Alonso, A.; Sanchez-Molina, J.; Rodríguez-Hidalgo, M.; Lara-López, A.; Ruiz-Ederra, J. Subretinal Injection Techniques for Retinal Disease: A Review. J. Clin. Med. 2022, 11, 4717. [Google Scholar] [CrossRef] [PubMed] [PubMed Central]
  6. Taleb, A.; Guigou, C.; Leclerc, S.; Lalande, A.; Bozorg Grayeli, A. Image-to-Patient Registration in Computer-Assisted Surgery of Head and Neck: State-of-the-Art, Perspectives, and Challenges. J. Clin. Med. 2023, 12, 5398. [Google Scholar] [CrossRef] [PubMed] [PubMed Central]
  7. Hussain, S.; Mubeen, I.; Ullah, N.; Shah, S.S.U.D.; Khan, B.A.; Zahoor, M.; Ullah, R.; Khan, F.A.; Sultan, M.A. Modern Diagnostic Imaging Technique Applications and Risk Factors in the Medical Field: A Review. Biomed. Res. Int. 2022, 2022, 5164970. [Google Scholar] [CrossRef] [PubMed] [PubMed Central]
  8. Mumtaz, S.; Rana, J.N.; Choi, E.H.; Han, I. Microwave Radiation and the Brain: Mechanisms, Current Status, and Future Prospects. Int. J. Mol. Sci. 2022, 23, 9288. [Google Scholar] [CrossRef]
  9. Wahsner, J.; Gale, E.M.; Rodríguez-Rodríguez, A.; Caravan, P. Chemistry of MRI Contrast Agents: Current Challenges and New Frontiers. Chem. Rev. 2019, 119, 957–1057. [Google Scholar] [CrossRef] [PubMed] [PubMed Central]
  10. Chen, Q.; Song, H.; Yu, J.; Kim, K. Current Development and Applications of Super-Resolution Ultrasound Imaging. Sensors 2021, 21, 2417. [Google Scholar] [CrossRef] [PubMed] [PubMed Central]
  11. Geist, E.; Shimada, K. Position error reduction in a mechanical tracking linkage for arthroscopic hip surgery. Int. J. Comput. Assist. Radiol. Surg. 2011, 6, 693–698. [Google Scholar] [CrossRef] [PubMed]
  12. Chmarra, M.K.; Grimbergen, C.A.; Dankelman, J. Systems for tracking minimally invasive surgical instruments. Minim. Invasive Ther. Allied Technol. 2007, 16, 328–340. [Google Scholar] [CrossRef]
  13. Kimmel, D.L.; Mammo, D.; Newsome, W.T. Tracking the Eye Non-Invasively: Simultaneous Comparison of the Scleral Search Coil and Optical Tracking Techniques in the Macaque Monkey. Front. Behav. Neurosci. 2012, 6, 49. [Google Scholar] [CrossRef]
  14. Boleas-Aguirre, M.; Migliaccio, A.A.; Carey, J.P. Vestibulo-Oculomotor Reflex Recording Using the Scleral Search Coil Technique: Review of Peripheral Vestibular Disorders. Acta Otorrinolaringol. 2007, 58, 321–326. [Google Scholar] [CrossRef]
  15. Sorriento, A.; Porfido, M.B.; Mazzoleni, S.; Calvosa, G.; Tenucci, M.; Ciuti, G.; Dario, P. Optical and Electromagnetic Tracking Systems for Biomedical Applications: A Critical Review on Potentialities and Limitations. IEEE Rev. Biomed. Eng. 2020, 13, 212–232. [Google Scholar] [CrossRef] [PubMed]
  16. Elfring, R.; de la Fuente, M.; Radermacher, K. Assessment of optical localizer accuracy for computer aided surgery systems. Comput. Aided Surg. 2010, 15, 1–12. [Google Scholar] [CrossRef]
  17. Jaeger, H.A.; Franz, A.M.; O’Donoghue, K.; Seitel, A.; Trauzettel, F.; Maier-Hein, L.; Cantillon-Murphy, P. Anser EMT: The first open-source electromagnetic tracking platform for image-guided interventions. Int. J. Comput. Assist. Radiol. Surg. 2017, 12, 1059–1067. [Google Scholar] [CrossRef]
  18. Dai, H.D.; Song, S.; Zeng, X.P.; Su, S.J.; Lin, M.Q.; Meng, M.Q.H. 6-D Electromagnetic Tracking Approach Using Uniaxial Transmitting Coil and Tri-Axial Magneto-Resistive Sensor. IEEE Sens. J. 2018, 18, 1178–1186. [Google Scholar] [CrossRef]
  19. Xu, L.; Zhang, H.; Wang, J.; Li, A.; Song, S.; Ren, H.; Qi, L.; Gu, J.J.; Meng, M.Q.H. Information loss challenges in surgical navigation systems: From information fusion to AI-based approaches. Inf. Fusion. 2023, 92, 13–36. [Google Scholar] [CrossRef]
  20. De Angelis, G.; De Angelis, A.; Moschitta, A.; Carbone, P. Comparison of Measurement Models for 3D Magnetic Tracking and Tracking. Sensors 2017, 17, 2527. [Google Scholar] [CrossRef]
  21. Pasku, V.; De Angelis, A.; De Angelis, G.; Arumugam, D.D.; Dionigi, M.; Carbone, P.; Moschitta, A.; Ricketts, D.S. Magnetic field-based positioning systems. IEEE Commun. Surv. Tutor. 2017, 19, 2003–2017. [Google Scholar] [CrossRef]
  22. Tarantino, S.; Clemente, F.; De Simone, A.; Cipriani, C. Feasibility of tracking multiple implanted magnets with a myokinetic control interface: Simulation and experimental evidence based on the point dipole model. IEEE Trans. Biomed. Eng. 2019, 67, 1282–1292. [Google Scholar] [CrossRef] [PubMed]
  23. Ali, M.A.; Tom, N.; Alsunaydih, F.N.; Yuce, M.R. Recent Advancements in Tracking Technologies for Wireless Capsule Endoscopy: A Technical Review. Sensors 2025, 25, 253. [Google Scholar] [CrossRef]
  24. Stella, G.M.; Lettieri, S.; Piloni, D.; Ferrarotti, I.; Perrotta, F.; Corsico, A.G.; Bortolotto, C. Smart Sensors and Microtechnologies in the Precision Medicine Approach against Lung Cancer. Pharmaceuticals 2023, 16, 1042. [Google Scholar] [CrossRef]
  25. Castro, I.; de Wit, J.W.; van Vooren, J.; Van Quaethem, T.; Huang, W.X.; Torfs, T. Magnetic Tracking of Wireless Ingestible Capsules Using a Belt-Shaped Array Transmitter. Electronics 2023, 12, 2217. [Google Scholar] [CrossRef]
  26. Hashi, S.; Toyoda, M.; Yabukami, S.; Ishiyama, K.; Okazaki, Y.; Arai, K.I.; Kanetaka, H. Wireless magnetic motion capture system using multiple LC resonant magnetic markers with high accuracy. Sens. Actuators A Phys. 2008, 142, 520–527. [Google Scholar] [CrossRef]
  27. Song, S.; Qiao, W.; Li, B.; Hu, C.; Ren, H.; Meng, M.Q.H. An Efficient Magnetic Tracking Method Using Uniaxial Sensing Coil. IEEE Trans. Magn. 2014, 50, 1–7. [Google Scholar] [CrossRef]
  28. Tian, J.; Song, S.; Wang, X.; Yan, T.; Hu, C.; Meng, M.Q.H. An improved method and algorithm for electromagnetic localization. In Proceedings of the 2011 IEEE International Conference on Information and Automation, Shenzhen, China, 6–8 June 2011; pp. 406–411. [Google Scholar]
  29. Song, S.; Ren, H.; Liu, W.; Hu, C. An analytic algorithm based electromagnetic localization method. In Proceedings of the 2013 IEEE International Conference on Information and Automation (ICIA), Yinchuan, China, 26–28 August 2013; pp. 626–630. [Google Scholar]
  30. Yang, W.A.; Zhang, C.Y.; Dai, H.D.; Hu, C.; Xia, X.K. A Novel Wireless 5-D Electromagnetic Tracking System Based on Nine-Channel Sinusoidal Signals. IEEE Asme Trans. Mechatron. 2021, 26, 246–254. [Google Scholar] [CrossRef]
  31. Zhang, M.Q.; Yang, L.D.; Zhang, C.; Yang, Z.X.; Zhang, L. A 5-D Large-Workspace Magnetic Localization and Actuation System Based on an Eye-in-Hand Magnetic Sensor Array and Mobile Coils. IEEE Trans. Instrum. Meas. 2023, 72, 1–11. [Google Scholar] [CrossRef]
  32. Guo, P.F.; Dai, H.D.; Yang, Q.H.; Huang, Q.Y.; Yao, H.C. An Improved Magnetic Tracking Approach Based on ResNet-LM Fusion Algorithm. IEEE Trans. Instrum. Meas. 2022, 71, 1–10. [Google Scholar] [CrossRef]
Figure 1. Medical puncture positioning diagram.
Figure 1. Medical puncture positioning diagram.
Applsci 15 04613 g001
Figure 2. Model of a long straight wire for electromagnetic induction characterization. (a) This model illustrates the basic setup used to analyze the magnetic field generated by a current-carrying long straight wire. (b) Rectangular current-based circulation model. To address the limitation of the long straight wire model in increasing the number of turns, multiple straight wires can be connected to form a rectangular circulating current model.
Figure 2. Model of a long straight wire for electromagnetic induction characterization. (a) This model illustrates the basic setup used to analyze the magnetic field generated by a current-carrying long straight wire. (b) Rectangular current-based circulation model. To address the limitation of the long straight wire model in increasing the number of turns, multiple straight wires can be connected to form a rectangular circulating current model.
Applsci 15 04613 g002
Figure 3. Simulation model of rectangular coil and real comparison: (a) Magnetic field strength simulation of the rectangular coil, which decreases sharply with increasing distance. (b) Ratio of simulated magnetic field strength to theoretical calculated strength. The ratio primarily ranges from 1 to 1.3. The theoretical calculation, based on subsequent calibration, can be used for model computation.
Figure 3. Simulation model of rectangular coil and real comparison: (a) Magnetic field strength simulation of the rectangular coil, which decreases sharply with increasing distance. (b) Ratio of simulated magnetic field strength to theoretical calculated strength. The ratio primarily ranges from 1 to 1.3. The theoretical calculation, based on subsequent calibration, can be used for model computation.
Applsci 15 04613 g003
Figure 4. Transmitting coil board model.
Figure 4. Transmitting coil board model.
Applsci 15 04613 g004
Figure 5. Electromagnetic transmitter board: (a) schematic diagram of the electromagnetic transmitter board; (b) electromagnetic field transmitter board; (c) schematic diagram of the sensor coil; (d) sensor; (e) system architecture; (f) photographed image of electromagnetic tracking.
Figure 5. Electromagnetic transmitter board: (a) schematic diagram of the electromagnetic transmitter board; (b) electromagnetic field transmitter board; (c) schematic diagram of the sensor coil; (d) sensor; (e) system architecture; (f) photographed image of electromagnetic tracking.
Applsci 15 04613 g005aApplsci 15 04613 g005b
Figure 6. Calibration of the electromagnetic positioning system: (a) Schematic diagram of electromagnetic positioning system calibration. (b) Electromagnetic positioning system calibration. (c) Positioning system calibration scheme. (d) Schematic diagram of 4 × 4 self-calibration error. (E) Schematic diagram of 5 × 5 self-calibration error. (f) Schematic diagram of 6 × 6 self-calibration error. (g) Schematic diagram of 7 × 7 self-calibration error.
Figure 6. Calibration of the electromagnetic positioning system: (a) Schematic diagram of electromagnetic positioning system calibration. (b) Electromagnetic positioning system calibration. (c) Positioning system calibration scheme. (d) Schematic diagram of 4 × 4 self-calibration error. (E) Schematic diagram of 5 × 5 self-calibration error. (f) Schematic diagram of 6 × 6 self-calibration error. (g) Schematic diagram of 7 × 7 self-calibration error.
Applsci 15 04613 g006aApplsci 15 04613 g006b
Figure 7. Real and theoretical values of horizontal movement of the electromagnetic sensing system: (a) Positional difference of movement in the negative half-axis of the x-axis. (b) Positional difference of movement in the positive half-axis direction of the x-axis. (c) Positional difference of movement in the positive half-axis of the y-direction. (d) Positional difference of movement in the negative half-axis of the y-axis.
Figure 7. Real and theoretical values of horizontal movement of the electromagnetic sensing system: (a) Positional difference of movement in the negative half-axis of the x-axis. (b) Positional difference of movement in the positive half-axis direction of the x-axis. (c) Positional difference of movement in the positive half-axis of the y-direction. (d) Positional difference of movement in the negative half-axis of the y-axis.
Applsci 15 04613 g007
Figure 8. Accuracy measurements around the perimeter of the electromagnetic tracking region: (a) Difference between theoretical and actual values at the y-negative half-axis moving along the x-axis. (b) Difference between theoretical and actual values at the positive half-axis moving along the x-axis.
Figure 8. Accuracy measurements around the perimeter of the electromagnetic tracking region: (a) Difference between theoretical and actual values at the y-negative half-axis moving along the x-axis. (b) Difference between theoretical and actual values at the positive half-axis moving along the x-axis.
Applsci 15 04613 g008
Figure 9. Z-axis movement differences: (a) Move position difference from higher to lower z-axis. (b) Move position difference from lower to higher z-axis.
Figure 9. Z-axis movement differences: (a) Move position difference from higher to lower z-axis. (b) Move position difference from lower to higher z-axis.
Applsci 15 04613 g009
Figure 10. Moving accuracy for different pitch angles: (a) Real and theoretical displacement along the x-axis at 30°. (b) Real and theoretical displacement along the x-axis at 45°. (c) Real and theoretical displacement along the x-axis at 45°.
Figure 10. Moving accuracy for different pitch angles: (a) Real and theoretical displacement along the x-axis at 30°. (b) Real and theoretical displacement along the x-axis at 45°. (c) Real and theoretical displacement along the x-axis at 45°.
Applsci 15 04613 g010
Figure 11. System test platform (FR-3 Robotic Arm). The FR-3 Robotic Arm serves as the primary platform for evaluating the performance of the biopsy needle tracking system. The robotic arm is equipped with precise motion control capabilities, enabling the accurate simulation of real-world scenarios for needle positioning and movement.
Figure 11. System test platform (FR-3 Robotic Arm). The FR-3 Robotic Arm serves as the primary platform for evaluating the performance of the biopsy needle tracking system. The robotic arm is equipped with precise motion control capabilities, enabling the accurate simulation of real-world scenarios for needle positioning and movement.
Applsci 15 04613 g011
Figure 12. Overall error analysis of the system: (a) The measurement error of the x-axis between 0 and 20 mm. (b) The measurement error of the y-axis between 0 and 20 mm. (c) The measurement error of the z-axis between 100 and 120 mm. (d) Overall error of 2000 test points.
Figure 12. Overall error analysis of the system: (a) The measurement error of the x-axis between 0 and 20 mm. (b) The measurement error of the y-axis between 0 and 20 mm. (c) The measurement error of the z-axis between 100 and 120 mm. (d) Overall error of 2000 test points.
Applsci 15 04613 g012
Figure 13. System response time and system dynamic response test: (a) Statistical histogram of system response time after 2000 tests. (b) Screenshot of system dynamic response test video.
Figure 13. System response time and system dynamic response test: (a) Statistical histogram of system response time after 2000 tests. (b) Screenshot of system dynamic response test video.
Applsci 15 04613 g013
Figure 14. Electromagnetic tracking experiment with equivalent human tissues: (a) Calibration without equivalent human tissues. (b) Tracking measurement with the placement of equivalent human tissues. (c) Error data plot from 500 trials.
Figure 14. Electromagnetic tracking experiment with equivalent human tissues: (a) Calibration without equivalent human tissues. (b) Tracking measurement with the placement of equivalent human tissues. (c) Error data plot from 500 trials.
Applsci 15 04613 g014
Table 1. PCB rectangular coil design parameters.
Table 1. PCB rectangular coil design parameters.
ParameterValue
Initial length70 mm
Turns25 turns
Line width0.5 mm
Line distance0.25 mm
PCB Thickness1.6 mm
Table 2. Sensor coil design parameters.
Table 2. Sensor coil design parameters.
Parameter NameValue
Diameter7.2 mm
Length25 mm
Turns100 turns
Wire diameter0.3 mm
Diameter25 mm
Permeability10 K
Magnetic permeability435 μH
Resistance0.79 Ω
Table 3. Calculation of system parameters under different calibrations.
Table 3. Calculation of system parameters under different calibrations.
Spatial ParameterCorrection FactorCoil 1Coil 2Coil 3Coil 4Coil 5Coil 6Coil 7Coil 8
4 × 4 r i o f f s e t 0.01720.02310.01660.01840.0160.01410.01730.0155
4 × 4 k i 17.92320.28220.10223.30923.95224.71129.67731.952
5 × 5 r i o f f s e t 0.01910.01480.01870.01820.01550.01350.01570.0165
5 × 5 k i 19.5517.62220.95223.14424.66125.26829.16332.976
6 × 6 r i o f f s e t 0.0180.01720.02030.00880.01360.0130.01830.0166
6 × 6 k i 18.16817.15021.84616.85022.42922.53229.28432.456
7 × 7 r i o f f s e t 0.01130.01720.01840.01750.01450.01510.01610.0144
7 × 7 k i 18.17217.48020.89922.87622.49424.26128.67429.303
Table 4. Static sample variance values for different locations.
Table 4. Static sample variance values for different locations.
Location(0, 0, 80)(40, −40, 80)(−40, 40, 80)(40, 40, 130)(80, −80, 80)(−80, 80, 80)
x ( m m 2 )4.271.580.944.112.327.84
y ( m m 2 )4.720.110.870.362.905.11
z ( m m 2 )3.196.811.653.483.565.51
Table 5. RMSE values for different movement directions and positions.
Table 5. RMSE values for different movement directions and positions.
OrientationShift LeftRight ShiftUpward ShiftMove DownLeft Edge MoveRight Edge MoveUpDown 30 Degrees 60 Degrees45 Degrees
x (mm)1.611.420.571.172.121.05//1.010.890.77
y (mm)1.521.251.291.341.461.34//0.360.530.69
z (mm)2.221.891.411.782.581.712.461.261.071.041.02
Table 6. Parameters of the robotic arm.
Table 6. Parameters of the robotic arm.
Parm NameValue
Effective payload3 kg
Work radius 622   m m
Repeatability accuracy ± 0.02   m m
Table 7. Comparison of RMSE with the other literature.
Table 7. Comparison of RMSE with the other literature.
This ArticleWireless 5-d [14]5-d Large Work Area [15]Residual Network-Based Electromagnetic [16]
Average error (mm)1.751.86332.02 mm1.25
Maximum error (mm)3.132.32.562.8
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

Pei, H.; Fan, Q.; Duan, Y.; Xiao, L. A Rectangular Toroidal Current-Based Approach for Lung Biopsy Needle Tracking. Appl. Sci. 2025, 15, 4613. https://doi.org/10.3390/app15094613

AMA Style

Pei H, Fan Q, Duan Y, Xiao L. A Rectangular Toroidal Current-Based Approach for Lung Biopsy Needle Tracking. Applied Sciences. 2025; 15(9):4613. https://doi.org/10.3390/app15094613

Chicago/Turabian Style

Pei, Hongliang, Qingwen Fan, Yixiang Duan, and Lang Xiao. 2025. "A Rectangular Toroidal Current-Based Approach for Lung Biopsy Needle Tracking" Applied Sciences 15, no. 9: 4613. https://doi.org/10.3390/app15094613

APA Style

Pei, H., Fan, Q., Duan, Y., & Xiao, L. (2025). A Rectangular Toroidal Current-Based Approach for Lung Biopsy Needle Tracking. Applied Sciences, 15(9), 4613. https://doi.org/10.3390/app15094613

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