Next Article in Journal
Intelligent Plant Disease Identification System Using Machine Learning
Previous Article in Journal
Real Application For A Data Acquisition System From Sensors Based On Embedded Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Performance Optimization of a Differential Method for Localization of Capsule Endoscopes †

1
Institute for Electronics Engineering, Friedrich-Alexander-Universität Erlangen-Nürnberg (FAU), 91058 Erlangen, Germany
2
Graduate School of Engineering, Nagoya Institute of Technology, Nagoya, Aichi 466-8555, Japan
*
Author to whom correspondence should be addressed.
Presented at the 7th Electronic Conference on Sensors and Applications, 15–30 November 2020; Available online: https://ecsa-7.sciforum.net/.
Eng. Proc. 2020, 2(1), 31; https://doi.org/10.3390/ecsa-7-08271
Published: 14 November 2020
(This article belongs to the Proceedings of 7th International Electronic Conference on Sensors and Applications)

Abstract

:
Although capsule endoscopy is already used for diagnosis of the gastrointestinal tract, a method to precisely localize the capsules, important for accurate diagnosis, is lacking. Static magnetic localization is a promising solution for that purpose. In this paper, the simulation of a differential static magnetic localization system with dynamic geomagnetic compensation was optimized. First, a convergence-test for the position and orientation errors as a function of the dimension of the computational domain was conducted. Subsequently, the diameter-to-length ratio of a permanent magnet was varied and the corresponding position and orientation errors, as well as the mean magnetic flux density measured at the sensor positions, were compared. The results revealed that for a computational domain radius of 800 mm, the position and orientation errors converged to less than 0.1 mm and 0.1°, respectively. The position and orientation errors were also of that order, even with the smallest permanent magnet employed in the study. Furthermore, the mean magnetic flux density measured at the sensors of the proposed magnetic localization system would be detectable using state-of-the-art magnetometers. It is concluded that the differential localization method is also feasible for small permanent magnets, which is especially important considering the limited space within endoscopy capsules.

1. Introduction

Wireless capsule endoscopy (WCE) is a promising medical application and a potential alternative to conventional endoscopy. A small capsule with an integrated camera for recording a video is swallowed by a patient allowing gastrointestinal diagnosis. It is of particular interest for doctors that a certain video frame is correlated to the precise location of the capsule within the gastrointestinal tract. Static magnetic localization is well-established for that purpose, wherein a permanent magnet is embedded in a capsule and the generated magnetic field is sensed by sensors around the abdomen of a patient. The position and orientation can be reconstructed from the measured flux density by solving the inverse problem and utilizing the standard magnetic dipole model. [1]
The geomagnetic flux density interferes with the measured flux density of the sensors, leading to large localization errors if no geomagnetic compensation method is applied [2]. One simple compensation method is sensor calibration, which is only valid for a static localization system, therefore, the method is only suitable as long as no rotation of the system relative to the geomagnetic flux density is conducted [3]. This is especially critical since diagnosis with capsule endoscopy takes about 8–12 h. In [4,5], dynamic approaches for geomagnetic compensation in the context of localization of capsule endoscopes were proposed. However, in [4], the localization performance was dependent on the different rotations of the localization setup. Moreover, in [5], an inertial sensor was applied for geomagnetic compensation, but only short measurement scenarios were evaluated, hence the drift effect of the inertial sensors was reduced. In our previous work, [2], we proposed a differential static magnetic localization method with dynamic geomagnetic compensation. Although position P e r r and orientation O e r r errors were constant for various rotations of a subject, the localization performance was not stable for different orientations of the magnet. Moreover, the size of the magnet was not optimized for the limited space within state-of-the-art capsules.
In this paper, simulations using the differential static magnetic localization method were optimized. The diameter-to-length ratio of the simulated permanent magnet was varied and the resulting P e r r and O e r r were compared. Moreover, the mean measured flux density for the proposed localization system was evaluated for each magnet size and compared to the detectivity of a state-of-the-art magnetometer.

2. Static Magnetic Localization

Static magnetic localization of capsule endoscopes is well-established in the literature [1,3]. A small permanent magnet, which generates a static magnetic flux density B, is embedded in a capsule (Figure 1).
The magnetic flux density B of a cylindrical permanent magnet at an observer-point P i = ( x i , y i , z i ) can be approximated by an analytical expression, namely the standard magnetic dipole model [6]:
B ( x i , y i , z i ) = μ 0 μ r M 0 l π k 2 4 π 3 H 0 , P i P i R i 5 H 0 R i 3 ,
where μ 0 = 4 π × 10 7 Vs / Am is the magnetic permeability in vacuum, μ r the relative permeability of the surrounding medium, M 0 the axial magnetization of the magnet in ampere per meter, respectively. The length and radius of the magnet are expressed by l and k, respectively. Moreover, the orientation of the magnet is given by H 0 = ( m , n , p ) , the center of the magnet by ( a , b , c ) and the Euclidean distance from the center of the magnet to an observer-point P i by R i , respectively. The dipole model is valid as long as the distance from the magnet is much larger than the geometry of the magnet.
The localization of a capsule is a classical mathematical problem with six unknowns and, therefore, at least six equations have to be derived. By arranging N sensors around the abdomen of a patient at known points P i for each sensor the estimated components of B ^ i are determined. By applying Equation (1) for each P i , the analytical values of B i are derived. To reconstruct the position and orientation of the magnet, the respective estimated and analytic values of B i are subtracted for each P i . Thereby, an N · 3 × 6 equation system results, which can be solved by minimizing the error function ϵ
ϵ = i = 1 N ( B x i B ^ x i ) 2 + ( B y i B ^ y i ) 2 + ( B z i B ^ z i ) 2 ,
according to ( a , b , c , m , n , p ) by using the Levenberg–Marquardt (LM) method [7,8].
The magnetic flux density generated by a permanent magnet with respect to the distance R decays approx. 1 / R 3 . Therefore, the magnetic flux density of a magnet applied for WCE is of the same order as the geomagnetic flux density at the body surface of a patient [9]. Due to this interference, the localization performance suffers significantly when applying the standard static magnetic localization method.

3. Differential Static Magnetic Localization

A differential geomagnetic compensation method for the static magnetic localization of capsule endoscopes that is capable of dynamic scenarios like a rotating sensor setup was proposed and evaluated in detail in our previous work [2]. It is based on the assumption that for the relatively small size of an abdomen, the geomagnetic flux density is a homogeneous field. For this purpose, three stable rings were arranged around the abdomen, each of which had four sensors attached. The sensors mounted on the rings were grouped in sensor pairs, consisting of two opposite sensors, which were equally orientated (Figure 2). The measured value at the i-th sensor consists of the magnetic flux density generated by the magnet B m a g n e t , i and the superimposed geomagnetic flux density B g e o . By subtracting the analytic magnetic flux density B a n a l y t i c , i from the measured value, a non-linear equation for each sensor is derived. Subtracting the equations of two sensors corresponding to a pair cancels the homogeneous geomagnetic flux density. Therefore, the resulting P e r r and O e r r are independent of different rotations of the whole localization setup in the presence of the geomagnetic flux density. The further processing steps are equal to the standard static magnetic localization method.

4. Methods

4.1. Simulation Localization Setup

All simulations were conducted in COMSOL multiphysics with a computational domain equal to a sphere with radius b. The whole domain was set to air, which is valid for static magnetic fields [10]. As a boundary condition, magnetic insulation ( n · B = 0 ) was applied. The 12 sensors were mounted on three stable elliptical rings (40 cm × 33 cm), that were each separated by 10 cm (Figure 3). The origin of the coordinate system was in the center of the middle ring. To analyze the localization accuracy, the magnet was set at position ( 60 , 60 , 60 ) mm and for each evaluation, four different orientations of the magnet were applied (x-, y-, z- and 1 3 ( 1 , 1 , 1 ) -orientation). Moreover, the geomagnetic flux density according to Erlangen, Germany ( 20 , 1 , 45 ) µT were applied [11].
The permanent magnet was of neodymium–iron–boron (NdFeB) with grade N52 with an axial magnetization M 0 of 1160 kA/m. The length and diameter of the magnet were both 10 mm.

4.2. Optimization of Computational Domain Size

The results in [2] showed that the localization performance varied for different orientations of the magnet. However, the reason for that is unclear. Therefore, in this study, a convergence-test of the root-mean-square (RMS) position and orientation errors concerning the radius of the computational domain b was conducted.

4.3. Variation of the Magnet Size

The impact of different diameter-to-length ratios R on P e r r and O e r r was investigated. The diameter of the magnet was constant at 10 mm while its length was varied. One reason to exploring the effect of magnet size is that the space within an endoscopy capsule is limited and therefore, the magnet should be as small as possible. Furthermore, according to [12], the magnetic dipole model best describes the magnetic flux density of a cylindrical magnet, when R = 4 / 3 . This was investigated by applying different diameter-to-length ratios and comparing the corresponding P e r r and O e r r . Furthermore, the mean value of the measured flux density at the 12 sensors was investigated. Thus, a trade-off between accuracy and magnet dimension was made by considering the detectivity of state-of-the-art magnetometers.

5. Results and Discussion

5.1. Results for Optimization of the Computational Domain

In our previous work, [2], the mean P e r r and O e r r were 0.95 mm and 0.58°, respectively, but their margins of error varied significantly with magnet orientation. The radius of the sphere had been set to 400 mm. By increasing the radius b of the computational domain to 800 mm, the mean P e r r and O e r r were significantly reduced to less than 0.1 mm and 0.1°, respectively. Additionally, the impact of different magnet orientations was significantly reduced since the standard deviation (STD) for the position and orientation errors was approx. 0.05 mm and 0.02°, respectively (Table 1). The enhanced localization performance can be explained by the larger distance from the magnet to the boundary condition, which disturbs the magnetic flux density generated by the magnet. These simulation-based results are significantly better than state-of-the-art dynamic geomagnetic compensation methods for capsule endoscopy [4,5].

5.2. Results for Variation of the Magnet Size

Table 1 shows the mean P e r r and O e r r with respect to the diameter-to-length ratio R.
Moreover, for each R, the corresponding mean value of the measured magnetic flux density | B | ^ at the 12 sensors is given. The worst localization performance was achieved with the longest magnet ( R = 0.5 ). Moreover, it was observed that the orientation error decreased when the length of the magnet was reduced. Therefore, the smallest orientation error with 0.01°occurred with the shortest magnet of length 2 mm. For a ratio of 4 / 3 , the dipole model exhibits the best fit to the magnetic flux density of a permanent magnet, however, the P e r r and O e r r were approx. equal with the errors by applying a ratio of 1. These two ratios yielded the best localization performance among those evaluated. Overall, the ratio proposed in [12], did not significantly improve the localization method. The results revealed that even for the shortest magnet ( R = 5 ), P e r r and O e r r were acceptable, approx. 0.1 mm and 0.02°, respectively.
Moreover, Table 1 reveals that the mean measured flux density at the sensors is smallest for the shortest magnet. However, by considering the detectivity of state-of-the-art magnetometers like the LSM303DLHC, which is in the range of nT/ Hz [13], even a short magnet with a diameter of 10 mm and length of 2 mm seems feasible.

6. Conclusions

The objectives of this work were to investigate the impact of different-sized magnets on our previously proposed differential static magnetic localization method with dynamic geomagnetic compensation and to further optimize its localization performance. By increasing the radius of the computational domain, the mean position and orientation errors were significantly reduced to less than 0.1 mm and 0.1°, respectively, and the impact of different orientations of the magnet on the position and orientation errors was significantly reduced. Moreover, the results revealed that even for a 2 mm short magnet the position and orientation errors were sufficiently small, and its generated magnetic flux density is sufficiently large to be detectable at the sensor positions of the proposed localization system using state-of-the-art magnetometers. In the future, results of simulations will be validated by means of experiments.

Author Contributions

Conceptualization, J.K., D.A., G.F. and S.Z.; methodology, S.Z. and A.T.; simulations, S.Z. and K.A.; validation, S.Z., G.F. and J.K.; writing—review and editing, all authors were involved.; visualization, S.Z. and K.A.; supervision, G.F and J.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

References

  1. Mateen, H.; Basar, R.; Ahmed, A.U.; Ahmad, M.Y. Localization of Wireless Capsule Endoscope: A Systematic Review. IEEE Sens. J. 2017, 17, 1197–1206. [Google Scholar] [CrossRef]
  2. Zeising, S.; Anzai, D.; Thalmayer, A.; Fischer, G.; Kirchner, J. Novel Differential Magnetic Localization Method for Capsule Endoscopy to Prevent Interference Caused by the Geomagnetic Field. In Proceedings of the Kleinheubacher Tagung 2020, Miltenberg, Germany, 28–30 September 2020. [Google Scholar]
  3. Pham, D.M.; Aziz, S.M. A real-time localization system for an endoscopic capsule using magnetic sensors. Sensors 2014, 14, 20910–20929. [Google Scholar] [CrossRef] [PubMed]
  4. Shao, G.; Tang, Y.; Tang, L.; Dai, Q.; Guo, Y.X. A Novel Passive Magnetic Localization Wearable System for Wireless Capsule Endoscopy. IEEE Sens. J. 2019, 19, 3462–3472. [Google Scholar] [CrossRef]
  5. Dai, H.; Hu, C.; Su, S.; Lin, M.; Song, S. Geomagnetic Compensation for the Rotating of Magnetometer Array During Magnetic Tracking. IEEE Trans. Instrum. Meas. 2019, 68, 3379–3386. [Google Scholar] [CrossRef]
  6. Jackson, J.D. Classical Electrodynamics, 1st ed.; John Wiley & Sons: New York, NY, USA, 1962. [Google Scholar]
  7. Levenberg, K. A Method for the Solution of Certain Non-Linear Problems in Least Squares. Q. Appl. Math. 1944, 2, 164–168. [Google Scholar] [CrossRef]
  8. Marquardt, D.W. An Algorithm for Least-Squares Estimation of Nonlinear Parameters. J. Soc. Ind. Appl. Math. 1963, 11, 431–441. [Google Scholar] [CrossRef]
  9. Zeising, S.; Anzai, D.; Thalmayer, A.; Fischer, G.; Kirchner, J. Evaluation of the Impact of Static Interference on an Empirical Data Based Static Magnetic Localization Setup for Capsule Endoscopy. Curr. Direct. Biomed. Eng. 2020, 6. [Google Scholar] [CrossRef]
  10. Glaser, R. Biophysics, 1st ed.; Springer: Berlin/Heidelberg, Germany, 2000. [Google Scholar]
  11. NOAA National Centers for Environmental Information. Available online: www.ngdc.noaa.gov/ (accessed on 10 September 2020).
  12. Petruska, A.J.; Abbott, J.J. Optimal Permanent-Magnet Geometries for Dipole Field Approximation. IEEE Trans. Magn. 2013, 49, 811–819. [Google Scholar] [CrossRef]
  13. Schulz, L.; Heinisch, P.; Richter, I. Calibration of Off-the-Shelf Anisotropic Magnetoresistance Magnetometers. Sensors 2019, 19, 1850. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Cylindrical permanent magnet for static magnetic localization. The position ( a , b , c ) and the orientation H 0 have to be reconstructed for the localization of capsule endoscopes.
Figure 1. Cylindrical permanent magnet for static magnetic localization. The position ( a , b , c ) and the orientation H 0 have to be reconstructed for the localization of capsule endoscopes.
Engproc 02 00031 g001
Figure 2. Representative sensor pair. The stable sensor ring is not shown for reasons of clarity. The homogeneous geomagnetic flux density is highlighted in red. The equations for the respective sensors are shown.
Figure 2. Representative sensor pair. The stable sensor ring is not shown for reasons of clarity. The homogeneous geomagnetic flux density is highlighted in red. The equations for the respective sensors are shown.
Engproc 02 00031 g002
Figure 3. Simulation setup in COMSOL multiphysics. The sensors are highlighted in red and mounted on three rings. The computational domain is a sphere with radius b.
Figure 3. Simulation setup in COMSOL multiphysics. The sensors are highlighted in red and mounted on three rings. The computational domain is a sphere with radius b.
Engproc 02 00031 g003
Figure 4. Position and orientation errors for different radii of the computational domain. At a radius b of 800 mm the position and orientation errors are significantly below 0.1 mm and 0.1°, respectively.
Figure 4. Position and orientation errors for different radii of the computational domain. At a radius b of 800 mm the position and orientation errors are significantly below 0.1 mm and 0.1°, respectively.
Engproc 02 00031 g004
Table 1. Position P e r r and orientation O e r r errors and their mean value and standard deviation (STD) using the differential method with different orientations of the magnet for five different diameter-to-length ratios R. The mean value of the magnetic flux density | B | ^ with respect to the 12 sensors is also shown.
Table 1. Position P e r r and orientation O e r r errors and their mean value and standard deviation (STD) using the differential method with different orientations of the magnet for five different diameter-to-length ratios R. The mean value of the magnetic flux density | B | ^ with respect to the 12 sensors is also shown.
Diameter-to-Length Ratio R: P err in mm O err in ° | B | ^ in µT
(longest magnet) 0.50.22 ± 0.090.20 ± 0.1217.41 ± 19.84
10.05 ± 0.050.05 ± 0.028.74 ± 9.97
4 / 3 0.07 ± 0.050.04 ± 0.027.60 ± 8.67
20.10 ± 0.050.02 ± 0.014.37 ± 4.99
(shortest magnet) 50.11 ± 0.060.01 ± 0.011.75 ± 1.99
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zeising, S.; Ararat, K.; Thalmayer, A.; Anzai, D.; Fischer, G.; Kirchner, J. Performance Optimization of a Differential Method for Localization of Capsule Endoscopes. Eng. Proc. 2020, 2, 31. https://doi.org/10.3390/ecsa-7-08271

AMA Style

Zeising S, Ararat K, Thalmayer A, Anzai D, Fischer G, Kirchner J. Performance Optimization of a Differential Method for Localization of Capsule Endoscopes. Engineering Proceedings. 2020; 2(1):31. https://doi.org/10.3390/ecsa-7-08271

Chicago/Turabian Style

Zeising, Samuel, Kivanc Ararat, Angelika Thalmayer, Daisuke Anzai, Georg Fischer, and Jens Kirchner. 2020. "Performance Optimization of a Differential Method for Localization of Capsule Endoscopes" Engineering Proceedings 2, no. 1: 31. https://doi.org/10.3390/ecsa-7-08271

Article Metrics

Back to TopTop