811
Views
0
CrossRef citations to date
0
Altmetric
Research Article

Robust capsule-robot positioning with limited magnetic observations: An inertial-enhanced approach

ORCID Icon, ORCID Icon, ORCID Icon, ORCID Icon, ORCID Icon, ORCID Icon, ORCID Icon, ORCID Icon, ORCID Icon & ORCID Icon show all
Pages 475-486 | Received 14 Oct 2021, Accepted 26 May 2022, Published online: 24 Nov 2022

ABSTRACT

The capsule robot has become an important tool in covering the entire spectrum of digestive tract disease diagnosis. To achieve magnetic capsule-robot localization, the Levenberg-Marquardt (LM) algorithm has become a mainstream approach that provides accurate solutions in the general case. In practice, however, to meet the requirements of wearability, fewer sensors and lower power consumption are required. When the number of sensor observations becomes smaller, local convergences and outliers may occur in positioning results. To mitigate this issue, this paper makes two contributions to enhance the robustness of capsule-endoscope positioning, especially when the quality of magnetic observations is low. First, it proposes a two-step approach that initializes the capsule attitude by using inertial measurements before estimating the position. Second, it presents an improved LM-based positioning algorithm based on vest-type magnetic sensor arrays. Furthermore, to verify the proposed approach, a vest-type wearable device with two low-cost magnetometer arrays is designed. Test results have shown the effectiveness of the proposed LM method in enhancing positioning when there is a lack of observations.

1. Introduction

Since the invention of wireless capsule endoscopy in Israel in 2000 (Iddan et al. Citation2000), its use in clinical diagnosis has largely compensated for the limited view and poor patient experience of wired endoscopes such as gastroscopy and enteroscopy. The wireless capsule endoscope can diagnose and treat gastrointestinal and digestive disorders without causing discomfort and without affecting the patient’s normal work and life. After years of exploration of clinical and scientific research, the capsule robot has become an important inspection method for the diagnosis of all-digestive roads, which lays a solid foundation for the future (Vasilakakis et al. Citation2020). At present, the functionality of capsule robot is no more limited to the diagnosis of small intestinal diseases; instead, it has become an increasingly important weapon for the diagnosis of the whole gastrointestinal disease.

To achieve a better clinical application of wireless capsule endoscopes in assisting doctors to diagnose the treatment of gastrointestinal diseases, a key step is the acquisition of the endoscope positions in vivo. Thus, it has important clinical significance to accurately locate the lesion through capsule robots (Dey et al. Citation2017). Location diagnosis and qualitative diagnosis are two important aspects of disease diagnosis. Because the lesions at various places in the human body may cause different clinical manifestations and diseases, precise knowledge of the lesion location can help doctors to assess the severity of the disease and determine the prognosis of the disease. In addition, accurate lesion positioning can enable a clearer explanation of the condition to patients and their families, greatly facilitating communication between doctors and patients. Moreover, higher lesion-localization accuracy leads to more precise surgical treatment on neoplastic lesions. Furthermore, in the area of capsule-robotic-assisted therapy, drug delivery systems based on magnetically controlled piston release systems and automatic capacitive controllers are currently in clinical trials (Mapara and Patravale Citation2017; Guo et al. Citation2019). Targeted drug delivery by a capsule robot maximizes local drug concentrations and reduces systemic adverse effects but also requires precise targeting of the lesion. Therefore, it is a crucial task in the development of wireless capsule endoscopy to configure a positioning system with high precision, easy operation, and portability. Therefore, the localization technology of wireless capsule endoscopes has become a focus of research.

Since 2000, researchers have carried out in-depth research on the trajectory and precise positioning of a wireless capsule endoscope inside the human body by using different sensors and positioning technologies. Similar to indoor positioning technology (Cao et al. Citation2019; Takayama et al. Citation2019; Li et al. Citation2021), at present, the main positioning methods of wireless capsule endoscopy are based on Radio Frequency (RF) signals, electromagnetic positioning (i.e. permanent magnet in the capsule), inertial positioning, visual positioning, multi-sensor fusion positioning, and localization assisted by CT, MRI, ultrasound, and other imaging equipment (Nelson, Kaliakatsos, and Abbott Citation2010; Ye Citation2013; Wang et al. Citation2011; Turan et al. Citation2018; You Citation2017). Among these methods, magnetic-based positioning has become a hot research topic because its signal is harmless to the human body and can pass through human tissue without any attenuation (Wang et al. Citation2019; Popek, Schmid, and Abbott Citation2016).

To localize the capsule endoscope using magnetic signals, there are active and passive positioning systems. An active system controls the movement of the wireless capsule endoscope through various active actuators to improve the maneuverability of the capsule endoscope inside the human body, reduce the retention time of the wireless endoscope, and improve diagnostic efficiency (Keller et al. Citation2012; Popek, Schmid, and Abbott Citation2016; Taddese et al. Citation2018). This active drive mechanism controls the motion of the in-vivo capsule by placing an external permanent magnet outside the body. The method of determining the position parameters of the wireless capsule endoscope and its trajectory based on a static magnetic field is reliable and simple in principle and generally has a high positioning accuracy. However, this control mainly takes place in the stomach and is difficult to achieve in the intestine. Meanwhile, it restricts the patient’s movement.

By contrast, when using a passive positioning approach, the wireless capsule has relied on the body’s mechanisms (e.g. peristaltic movement and gravitational traction) to power its movement within the body. Hu et al. have been working on passive positioning systems for wireless endoscopic magnetometers since 2004 (Hu, Meng, and Mandal Citation2005; Hu et al. Citation2016). Their related research covers various aspects of theoretical research, hardware design, and algorithm research. Afterward, there are subsequent research methods (Xu et al. Citation2017; Jeong et al. Citation2017; Turan et al. Citation2017). The passive drive method has the advantages of simple operation, energy efficiency, and convenience. However, their positioning accuracy is generally lower than the active positioning methods.

The capsule endoscope will stay in the intestine for over seven hours, and the patient usually goes home after swallowing the capsule endoscope and waits for it to be excreted, making it difficult for the active positioning system to achieve full process tracking. While the current passive positioning methods use a large number of sensors and are prototype systems that are still a long way from being practical (Turan et al. Citation2018; Hu et al. Citation2016). Therefore, we explored the design of a vest-type wearable capsule endoscope positioning system to achieve the whole-process tracking of the capsule endoscope in the digestive tract.

Most existing magnetic-based capsule-positioning approaches use a cylindrical magnet as the target and a magnetometer array as the observation device. A magnetic dipole model is used to establish the equations of state for magnetic field strength and position, and the equations are solved to localize the target by either a non-linear or a linear optimization method. The Levenberg-Marquardt (LM) method is not only one of the most widely-used nonlinear algorithms in engineering practice (Kai et al. Citation2020) but also one of the most accurate and efficient nonlinear algorithms for solving capsule positions (Hu et al. Citation2016; Hu Citation2006).

A challenge for the LM method is the requirement of accurate initial position and attitude, which is a condition that is difficult to meet in practical applications. To alleviate this issue, some scholars have incorporated a Micro-Electro-Mechanical System (MEMS) Inertial Measurement unit (IMU) inside the capsule endoscope to determine the capsule attitude when implementing magnetic positioning of active capsule endoscopes (Di Natali, Beccani, and Valdastri Citation2013; Taddese et al. Citation2018). This approach has provided a new idea for solving the capsule endoscope attitude.

Compared to the existing IMU-enhanced methods, the proposed approach moves one step further and can provide more accurate capsule endoscope positioning. First, once the attitude parameters are determined and compensated, only the position parameters are estimated in the proposed method, increasing the reliability and efficiency of the positioning system. Second, current research based on magnetometer arrays is still focused on algorithmic exploration and does not consider the practicality of sensor arrays; however, the practical application requires a rational design of the sensor array. Therefore, this paper proposes a vest-type wearable design with two low-cost magnetometer arrays for capsule endoscope positioning. Furthermore, finding that the traditional LM method is not robust enough when using in the improved wearable design, an improved LM positioning algorithm is designed, which improves the robustness of capsule endoscope positioning.

2. Positioning using vest-type wearable magnetic sensor array

2.1. Positioning principle

Current methods for passive positioning of capsule endoscopes based on magnetometer arrays use a magnetic dipole model to describe the magnetic field strength of the magnet (Popek, Schmid, and Abbott Citation2016):

(1) B=BT3(A0P)PR5A0R3(1)

where B=BxByBz is the magnetic intensity at the target position, BT is a constant representing the strength of the magnet, A0 represents the unit vector of the direction of the magnetic moment, determined by the attitude of the magnet, P is the relative position vector between the target position and the magnet, and R is the Euclidean distance of the target position from the magnet.

If there are enough observations, the relative position vector solution can be performed based on EquationEquation (1). Therefore, a sensor array design can be employed to provide sufficient observation. This paper designs a vest endoscopic positioning system for capsule endoscopy using two 3 × 3 3-axis sensor arrays. shows the coordinate relationship of the capsule endoscope in this configuration, the green squares in the diagram are the triaxial magnetometers.

Figure 1. A capsule in the sensor arrays system.

Figure 1. A capsule in the sensor arrays system.

The traditionally-used LM algorithm requires accurate initialization of A0 and P, whereas in practice it is difficult to initialize the position and especially attitude accurately. The attitude of the capsule endoscope is therefore initialized using inertial sensors, the attitude determination method used in this system is described below.

2.2. Attitude determination

For a cylindrical magnet with two cylindrical faces with north and south poles, the direction of the magnetic moment can be determined by its central axis. After attitude transformation, the magnetic moment direction vector Ab=[001]T is expressed as An in the navigation coordinate frame n. After the magnet rotates around the body coordinate frame b z-axis, x-axis, and y-axis with heading angle ψ, pitch angle θ, and roll angle ϕ, the magnetic moment direction is represented as:

(2) An=CϕCθCψAb=cosϕ0sinϕ010sinϕ0cosϕ1000cosθsinθ0sinθcosθcosψsinψ0sinψcosψ0001001=cosϕsinϕsinθsinϕcosθ0cosθsinθsinϕcosϕsinθcosϕcosθ001(2)
(3) Cbn=cosϕsinϕsinθsinϕcosθ0cosθsinθsinϕcosϕsinθcosϕcosθ(3)

where Cψ, Cθ, and Cϕ are the attitude transfer matrices rotating around z, y, and x, respectively. From EquationEquation (1), the rotation matrix Cψ around the z-axis has no effect on Ab during the rotation transformation, which means the process of changing the magnetic moment direction vector from the b-frame to the n-frame does not require the heading angle. That is, if the horizontal attitude angle of the cylindrical magnet is known, then the direction cosine matrix Cbn of the magnet’s b-frame to n-frame can be found.

Unlike the IMU attitude study of an external magnet-driven capsule, in this paper, in the absence of an external magnet, the IMU is attached to the cylindrical magnet of the capsule, with the z-axis of the IMU coinciding with the central axis of the cylindrical magnet. When the capsule is in a state where the external forces are low, the acceleration information can be used to directly calculate its horizontal attitude angles (i.e. pitch and roll) as:

(4) θ=arcsinaxbg(4)
(5) ϕ=arctanaybazb(5)

such that axb, ayb, and azb are the three-axis output of the accelerometer under the b-frame.

However, the capsule may move inside the body with a pitch angle close to 90°, when using EquationEquation (5) to solve for the roll angle will result in a large error, which is known as the attitude singularity problem.

2.3. Nonlinear least-squares-based localization of magnets based on triaxial magnetometer observations

2.3.1. Nonlinear least-squares algorithm design

The system designed in this paper only estimates the magnet position as it does not need to estimate the magnetic field direction. Therefore, this paper designs a non-linear least-squares algorithm for the position parameters only.

Small-sized cylindrical magnets can be treated as magnetic dipoles in capsule endoscope positioning. Let the coordinates of the magnet in the n-frame be (xyz), and the magnetic moment direction vector be A=[lmn]T. Then, according to the magnetic dipole model in Equation (1), the magnetic induction intensity Bi=[BixBiyBiz]T of the triaxial magnetometer Si at coordinate (xiyizi) can be written as:

(6) Bix=BT3[l(xix)+m(yiy)+n(ziz)](xix)Li5lLi3(6)
(7) Biy=BT3[l(xix)+m(yiy)+n(ziz)](yiy)Li5mLi3(7)
(8) Biz=BT3[l(xix)+m(yiy)+n(ziz)](ziz)Li5nLi3(8)

where Li is the Euclidean distance from the magnet to the sensor Si and is calculated by:

(9) Li=(xix)2+(yiy)2+(ziz)2(9)

The previous formula is the state equation of the magnetic induction intensity at the magnetometer, and the typical nonlinear least-squares observation model of the magnetometer is:

(10) s=f(x)+v(10)

where s is the magnetic sensor observation, f(x) is the estimated magnetic field strength of the magnetic dipole model, and v is the error in the observation. The Taylor series expansion of the above equation at the current estimate xˆ is

(11) s=fxˆ+dfxdx|x=xˆxxˆ+L+v(11)

When the higher-order terms are omitted, and only the first-order term is used in the linearization, the expression is truncated to:

(12) s=fxˆ+x+v(12)

where δx=xxˆ=δxδyδzT represents the coordinate error in the state vector and Jacobi matrix J=dh(x)/dx is the design matrix. A linear observation model of the observation misclosure vector δs can be obtained by transforming the above formula:

(13) sfxˆ=Jδx+vδs=Jδx+v(13)

where δs is the difference between the measured value of the magnetometer and the estimated magnetic intensity. The linear observation model of the nonlinear least-squares algorithm based on the observed values of the magnetometer array can then be designed as:

(14) δB1xδB1yδB1zδBnxδBnyδBnzT=Jδxδyδz(14)

where

(15)  δBix=B^ix  Bix δBiy=B^iy  Biy δBiz=B^iz  Biz(15)

Bˆ is the magnetometer observation, Bˉ is the estimated magnetic field strength, i=1n, n is the total number of magnetometers, and the design matrix J can be calculated by:

(16) J=B1x∂xB1y∂xB1z∂xBnz∂xB1x∂yB1y∂yB1z∂yBnz∂yB1x∂zB1y∂zB1z∂zBnz∂zT(16)

and the partial derivative of Bix(i=1n) is given directly by:

(17) Bixx=(Pi3l(xix))Li515Pi(xix)Li4(Li/x)Li10+3lLi4LixBixy=(3m(xix))Li515Pi(xix)Li4(Li/y)Li10+3mLi4LiyBixz=(3n(xix))Li515Pi(xix)Li4(Li/z)Li10+3nLi4Liz(17)

where

(18) Pi=3[l(xix)+m(yiy)+n(ziz)](18)
(19) Li∂x=xxiLiLi∂y=yyiLiLi∂y=zziLi(19)

Similarly, the partial derivatives of Biy and Biz can be obtained, which are then used to determine the design matrix J.

After the above process, this nonlinear least-squares problem is completely converted into a linear least-squares problem, which can significantly improve computational efficiency. The least-squares solution can be written as:

(20) δx=(JTJ)1JTδs(20)

2.3.2. Conventional LM algorithm for capsule endoscope positioning

The EquationEquation (20), i.e. the Gauss-Newton solution, requires an accurate initial value to estimate the position, and it also requires JTJ to be positive definite, otherwise, the algorithm does not converge. Therefore, the LM method is mostly used in the literature to localize magnetic sensor arrays. According to the LM algorithm EquationEquation (20) can be written as

(21) δx=(JTJ+λI)1JTδs(21)

where λ is a non-negative damping factor. That is, the LM method keeps JTJ positive by adding a non-negative diagonal array to it. Each iteration requires a re-estimate of λ. If λ decreases to close to 0, the above equation converts to a Gauss-Newton method. In contrast, if λ is sufficiently large, the solution approaches the direction of steepest descent.

The most commonly-used LM adaptive strategy is to adjust the damping factor by increasing the damping factor λ if the current step size increases the target function, i.e. the sum of squared magnetic field strength errors S=in(δsi)2 and δsi=δBix+δBiy+δBiz. If the current step size decreases the target function S, the damping factor λ needs to be reduced.

As indicates, the current LM algorithm used for capsule endoscope positioning follows the steps below (Kai et al. Citation2020; Hu et al. Citation2016; Zhang and Geng Citation2009):

  1. Initialize the coordinates x0, the damping factor λ0, the scaling factor v=2 (empirical values are generally constants of 2 to 10), and calculate the initial objective function value.

  2. Solve to obtain the Jacobi matrix J, calculate (JTJ+λI)1 and solve for δx1 according to EquationEquation (21).

  3. Calculate the current objective function value S1, and get the objective function difference value ΔS=S1S0.

  4. If ΔS<0, make λ=λ/v, get the current position x1=x0+δx1, make x0=x1, S0=S1and go to step 2, if δx1<ε then stop the iteration

  5. If ΔS>0, then set λ= and go to step (2).

Figure 2. Flowchart of the typical LM method used for capsule endoscope positioning.

Figure 2. Flowchart of the typical LM method used for capsule endoscope positioning.

2.3.3. Conventional LM algorithm for capsule endoscope positioning

The algorithm presented in the previous section is widely used in engineering practice. However, the damping coefficient update algorithm needs to be improved to make it more stable in the application of this system when the amount of data observations is not abundant and the data quality is not good. To this end, this paper proposes a trust-region-based LM method for vest-type wearable magnetometer arrays. The model based on the trust region approach is:

(22) minsδx=fxˆ+Jδxs.t.δx 2h(22)

The core idea of the trust region is to first determine the upper limit of the step size, from which a neighborhood δx 2h of x is defined and the observed magnetic sensor intensity s(δx) in this neighborhood is assumed to be consistent with the objective function, i.e. the estimated magnetic sensor intensity f(x). This method has both fast local convergence and overall convergence. Where h is the radius of the trust region and 2 represents the L2 norm. The Lagrangian function is introduced as:

(23) L(δx,λ)=s(δx)+12λ(δxTδxh2)(23)

Letting δxL=0, EquationEquation (21) can be obtained.

The choice of the radius h of the trust region should be guided by the fact that h should be as large as possible when s(δx) and f(xˆ) satisfy a certain consistency, defining the ratio:

(24) R=ΔS||δs1|| 2||δs0|| 2(24)

where ΔS is the difference between the objective function value obtained from the currently estimated coordinates and that obtained from the previous estimation step, i.e. the actual reduction in the objective function, and δs1 2δs0 2 is the reduction in the objective function value estimated from EquationEquation (13). The closer R is to 1, the more similar s(δx) and f(xˆ) are, at which point you should decrease λ while increasing λ as R approaches 0.

shows the flow chart of the proposed LM method, in accordance with this principle, the following improved LM algorithm is proposed in this paper:

  1. Initialize the coordinates x0, the damping factor λ0, the scaling factor v=2 (empirical value is a constant from 2 to 10), and calculate the initial objective function value S0 and the initial magnetic field strength estimation error δs0.

  2. Solve for the Jacobi matrix J, then calculate (JTJ+λI)1 and solve for δx1 according to EquationEquation (21).

  3. Calculate the current objective function value S1 and the estimated error in the current magnetic field strength δs1, and obtain the objective function difference ΔS and the estimated reduction in the objective function value ||δs1|| 2||δs0|| 2.

  4. The value of R is obtained from EquationEquation (24). λ1=vλ0 if R<0.25; λ1=λ0/v if R>0.75; otherwise λ1=λ0.

  5. If ΔS<0 then x1=x0+δx1 so that x0=x1, S0=S1 and set i=0 go to step (2), otherwise i=i+1, go directly to step 2, if i>10 then use least squares to get δx1 and update x1=x0+δx1x0=x1S0=S1. If ||δx1||<ε then stop the iteration.

Figure 3. Flow chart of the modified LM method used for capsule endoscope positioning.

Figure 3. Flow chart of the modified LM method used for capsule endoscope positioning.

3. Experimental verification

3.1. Experimental platform

The capsule endoscope magnetic positioning system consists of two magnetometer arrays that can be worn on the front and back of the body in order to fit the actual scenario. As shown in the diagram, each sensor array of the prototype system consists of 3 × 3 HMC58831 3-axis magnetometers with a sampling rate of 20 Hz and data stored on an SD card. The resolution of HMC58831 is 5 mGs. According to our research, the accuracy of Honeywell HMC58831 is a high level among the current low-power magnetic sensors, and the tests show that the accuracy can meet the requirements of this system.

The object of this experiment is a small cylindrical NdFeB magnet with a diameter of 12 mm and a thickness of 5 mm, which is fixed to an IMU module. The module has a built-in consumer grade MEMS inertial sensor. The module was fixed to a set of three-axis mechanical motion stages with a positioning accuracy of 0.05 mm (as shown in ), which provided the trajectory reference in the experiments.

Figure 4. The sensor array and experimental platform.

Figure 4. The sensor array and experimental platform.

3.2. Experimental platform

3.2.1. Tests with abundant observations

In order to fully compare the localization performance of the two algorithms, the performance of the two LM algorithms was first examined in the presence of a rich set of observations. EquationEquation (1) indicates that when the magnetic moment of the magnet is perpendicular to the sensor array plane, the magnetic sensor array receives the strongest signal strength. shows the number of magnetometers that can observe the magnet target during the experiment in this situation. The average number of magnetometers available for observation is 3.1.

Figure 5. Number of sensors capable of providing effective observation.

Figure 5. Number of sensors capable of providing effective observation.

gives the positioning results of both algorithms in this case and offers the corresponding error curve. In , the red trajectories in the three upper graphs are the trajectories of the magnet motion calculated by the typical LM method for three repeated experiments. The blue trajectories in the three lower graphs are the corresponding trajectories obtained by the modified LM method. The black line represents the ground truth, the green circle in the figure indicates the starting point, the red circle indicates the endpoint, and the black arrow indicates the direction of motion, with the magnet moving at 5 mm/s. From , it can be seen that both LM methods have strong repeatability for three tests, and gives the average positioning error for the three repeated tests.

Figure 6. Localization results of two LM methods under observation-abundant condition.

Figure 6. Localization results of two LM methods under observation-abundant condition.

Figure 7. Position errors of two LM methods under observation-abundant condition.

Figure 7. Position errors of two LM methods under observation-abundant condition.

It can be seen from and that both methods give accurate positioning results in the presence of abundant observations, the RMS value of the modified LM method is 1 mm smaller than that of the traditional LM method and the accuracy is at the same level. However, the maximum error of the modified LM method is 58.1% smaller than that of the conventional LM method. This result shows that under the condition of sufficient observations, the improved method is similar to the existing method in positioning accuracy, but has higher reliability.

Table 1. Positioning error statistics.

3.2.2. Tests with poor observations

EquationEquation (1) shows that the closer the position vector is to the magnetic moment, the greater the magnetic field strength. If the magnetic moment is pointing in a direction parallel to the sensor array then the magnetic strength received by the sensor array will be weak resulting in a lack of abundance of observations. shows the number of magnetometers that were able to observe the magnet target during the experiment under observation-poor conditions. The average number of magnetometers available for observation is 2.5. Only 1 magnetometer can observe the target in the time period 79 s to 86 s.

Figure 8. Number of sensors capable of providing effective observation.

Figure 8. Number of sensors capable of providing effective observation.

The following figure will show the trajectory when the magnetic moment of the magnet is pointing to the parallelity of the two sensor array plates, shows the results of three localizations of the same trajectory in this case. The experimental trajectory in this section is the same as that in Section 3.2.1. Also, the label and the legend of are consistent with . shows the average positioning error for three repetitions of the test. It can be seen that in cases where the magnet is far away from the magnetometer and the observations are not abundant, the traditional LM algorithm can fall into local convergence causing large errors.

Figure 9. Performance of modified LM method under observation-poor condition.

Figure 9. Performance of modified LM method under observation-poor condition.

Figure 10. Position errors of two LM methods under observation-poor condition.

Figure 10. Position errors of two LM methods under observation-poor condition.

It can be seen that the results of both methods are close to the reference values at the initial stage. When the magnets are far away from the sensor array (two periods from 70 s to 94 s and from 132 s to 156 s), the solutions of the typical LM method diverge from the reference, while the results from the modified LM positioning method are still close to the reference.

gives the statistical results of the two LM algorithms in the three experiments. Compared to the traditional LM approach, the proposed LM method has reduced the position error RMS value from around 35.6 mm to 6.5 mm, with a performance improvement of 81.7%. Meanwhile, with the proposed method, the maximum position error drops from over 122.9 mm to 16.5 mm, with a performance improvement of 86.6%. These results have shown the effectiveness of the proposed LM method in enhancing positioning when there is a lack of observations.

Table 2. Positioning error statistics.

3.3. Discussion

In this paper, the update of the damping coefficients is optimized for our proposed vest-type wearable capsule localization system, which provides better robustness than the traditionally-used LM algorithm. The modified LM algorithm proposed in this paper still yields accurate results even in the harsh case where observations are not abundant.

The experimental results show that when the magnetic moment is oriented in the parallel x-z plane, the signal strength received by the magnetometer array is limited and the accuracy of the typical LM method decreases significantly, while the LM method proposed in this paper still shows good robustness. When the magnetic moment is pointing to the x-z plane, the magnetometer array receives a richer signal at this point, and both methods are at the same level of accuracy.

From , it can be seen that the error of the typical LM method in both situations increases abruptly during the three periods of 75-80s, 95-101s, and 137-140s, especially in the case of poor observations there is no convergence at the end. And these three time periods correspond to the scenarios in where the observations become fewer. At this time, the λ of the typical LM method rapidly becomes larger, leading to an increase in error. And since the modified LM method adds a constraint mechanism based on the trust domain, the LM method is degraded to the least-squares method when the λ is accumulated too large, thus avoiding divergence

One possible reason why the conventional LM method performed less well than expected in this paper is that previous studies have used more than 36 magnetometers and have used an annular magnet structure, which picked up a richer signal. In contrast, this paper uses 18 sensors with a limited number of observations, which in some cases makes the damping factor λ too large during the iterative process. When λ is too large, it invalidates the H=JTJ+λI matrix in EquationEquation (21), causing the direction of the iteration to deviate from the globally optimal result (Fan, and Yuan Citation2014).

4. Conclusions

From a practical point of view, wearable devices need to meet the requirements of low power consumption and ease of wear. Thus, this paper explores a vest-type magnetic positioning system based on two sensor arrays with 18 magnetometers. The current permanent magnet-based capsule endoscope positioning system requires accurate initialization of the magnet attitude; thus, in the case of fewer magnetometers, the magnet position can only be accurately estimated if the magnet attitude is determined. For this purpose, we propose a magnet axial determination method based on the IMU fixed to the magnet. Noticed that the traditional LM algorithm suffers from local convergence under conditions with few magnetometers, an improved LM algorithm is proposed for the magnetometer array positioning system. In tests with harsh conditions of low observation volume and poor observation quality, the modified LM algorithm can achieve an accuracy of 6.5 mm with a maximum error of 18.2 mm, with performance improvements of 81.9% and 86.4%, respectively. The results have shown the effectiveness of the proposed LM method in enhancing positioning when there is a lack of observations. Since this paper focuses on the performance of the improved LM algorithm in the system designed in this paper with poor observations, the trajectories of the experiments are relatively simple. In future experiments, more complex trajectories will be added to verify the effectiveness of the attitude algorithm and the improved LM algorithm under complex conditions.

Disclosure statement

No potential conflict of interest was reported by the author(s).

Data availability statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Additional information

Funding

This work was supported in part by the National Natural Science Foundation of China [grant number 42104038].

Notes on contributors

Peng Zhang

Peng Zhang received the PhD degree from the Wuhan University in 2016 and is now an associate researcher at the State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing, Wuhan University. He is mainly engaged in indoor positioning, wearable devices and mobile health research. He presided over and participated in 6 projects including the National Natural Science Foundation of China, the Natural Foundation of Hubei Province, the National Key Research and Development Program, and the Canadian Association for Scientific and Engineering Research Foundation projects. He has co-published over 20 academic papers and has 3 patents pending and received over 4 academic awards.

Ruizhi Chen

Ruizhi Chen received the PhD degree in Geophysics from University of Helsinki, Finland, in 1991. He is currently a Professor and Director of the State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing at Wuhan University. He used to work as an Endowed Chair Professor at Texas A&M University Corpus Christi, US; Head and Professor of the Department of Navigation and Positioning at Finnish Geodetic Institute, Finland, and Engineering Manager in Nokia, Finland. He has published two books and more than 260 scientific papers. His current research interests include indoor positioning, satellite navigation and location-based services.

Weiguo Dong

Weiguo Dong is a professor, archiater and doctoral tutor of the Department of Gastroenterology, Renmin Hospital of Wuhan University. Recently, he is a member of Chinese Society of Gastroenterology, a member of the General Practitioner Branch of Chinese Medical Doctor Association and a Chairman-designate of Digestive Disease Branch of Hubei Medical Association. His research interests include gastrointestinal tumor and inflammatory bowel disease. He has been awarded 6 items for the National Natural Science Fund and 16 scientific research items at the provincial and ministerial levels. Besides, he has won one second prize for scientific and technological progress in Hubei province, two third prize for natural science (all ranked first).

You Li

You Li is a Professor at the State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing (LIESMARS), Wuhan University, China. He received PhD degrees from Wuhan University and University of Calgary in 2015 and 2016, respectively, and a BEng degree from China University of Geoscience (Beijing) in 2009. His research focuses on positioning and motion-tracking techniques and applications. He has co-published over 80 academic papers and has over 20 patents pending. He serves as an Associate Editor for the IEEE Sensors Journal, a committee member at the IAG unmanned navigation system and ISPRS mobile mapping sessions.

Yan Xu

Yan Xu received her Bachelor’s degree in Surveying and Mapping Engineering from Liaoning Technical University in 2015 and her Master’s degree in Photogrammetry and Remote Sensing from Liaoning Technical University in 2018. She is currently studying for a doctorate degree in Geodesy and Surveying Engineering in the State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing in Wuhan University. She is mainly engaged in the research of remote sensing image processing algorithm, medical image interpretation and visual positioning technology of medical application engineering.

Jian Kuang

Jian Kuang received the PhD degree in Geodesy and Survey Engineering from Wuhan University in 2019. He is currently an Associate Researcher with the GNSS Research Center in Wuhan University, China. His research interests focus on inertial navigation, pedestrian navigation and indoor positioning.

Yuan Zhuang

Yuan Zhuang is a professor and the founder of the Sensing, Navigation & Artificial Intelligence Lab (SNAIL) at the State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing, Wuhan University, China. He received the PhD degree in geomatics engineering from the University of Calgary, Canada in 2015. His current research interests include multi-sensors integration, realtime location system, wireless localization, Internet of Things (IoT), and machine learning for navigation applications. To date, he has co-authored over 100 academic papers and over 20 patents and has received over 10 academic awards. He is on the editorial board of Satellite Navigation and IEEE Access, the guest editor of the IEEE Internet of Things Journal, and a reviewer of over 20 IEEE journals.

Rong Yu

Rong Yu received the Bachelor of Medicine in 2019. she is currently pursuing the master’s degree Gastroenterology at Renmin Hospital of Wuhan University. Her research interests include the Basic and clinical research of gastrointestinal tumors and diagnosis and treatment of digestive endoscope.

Mingyue Dong

Mingyue Dong received the BS degree in School of Remote Sensing and Information Engineering from Wuhan University, China, in 2021. She is currently pursuing the PhD degree at State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing (LIESMARS), Wuhan University. Her research interests include 3D reconstruction, indoor and outdoor scene parsing.

Xiaoji Niu

Xiaoji Niu is a Professor of GNSS Research Center at Wuhan University in China. He got his PhD and bachelor degrees (with honor) from the Department of Precision Instruments at Tsinghua University in 2002 and 1997 respectively. He did post-doctoral research at the University of Calgary and worked as a senior scientist in SiRF Technology Inc.He is currently leading the integrated & intelligent navigation group (i2Nav). His research focuses on GNSS/INS integrations, low-cost navigation sensor fusion, and the relevant new applications. He has published 100+ academic papers and own 30+ patents.

References

  • Cao, Z., Y. Cheng, R. Chen, G. Guo, F. Ye, L. Chen, and Y. Pan. 2019. “An Infant Monitoring System with the Support of Accurate Real-Time Indoor Positioning.” Geo-Spatial Information Science 22 (4): 279–289. doi:10.1080/10095020.2019.1631617.
  • Dey, N., A.S. Ashour, F. Shi, and R.S. Sherratt. 2017. “Wireless Capsule Gastrointestinal Endoscopy: Direction-Of-Arrival Estimation Based Localization Survey.” IEEE Reviews in Biomedical Engineering 10: 2–11. doi:10.1109/RBME.2017.2697950.
  • Di Natali, C., M. Beccani, and P. Valdastri. 2013. “Real-Time Pose Detection for Magnetic Medical Devices.” IEEE Transactions on Magnetics 49 (7): 3524–3527. doi:10.1109/TMAG.2013.2240899.
  • Fan, J., and Y. Yuan. 2014. “A Regularized Newton Method for Monotone Nonlinear Equations and Its Application.” Optimization Methods & Software 29 (1): 102–119. doi:10.1080/10556788.2012.746344.
  • Guo, X., Z. Luo, H. Cui, J. Wang, and Q. Jiang. 2019. “A Novel and Reproducible Release Mechanism for a Drug-Delivery System in the Gastrointestinal Tract.” Biomedical Microdevices 21 (1): 1–9. doi:10.1007/s10544-019-0383-z.
  • Hu, C., M.-Q.-H. Meng, and M. Mandal. 2005. “Efficient Magnetic Localization and Orientation Technique for Capsule Endoscopy.” International Journal of Information Acquisition 2 (1): 23–36. doi:10.1142/S0219878905000398.
  • Hu, C. 2006. “Localization and Orientation System for Robotic Wireless Capsule Endoscope.” PhD diss., University of Alberta.
  • Hu, C., Y. Ren, X. You, W. Yang, S. Song, S. Xiang, X. He, Z. Zhang, and M.-Q.-H. Meng. 2016. “Locating Intra-Body Capsule Object by Three-Magnet Sensing System.” IEEE Sensors Journal 16 (13): 5167–5176. doi:10.1109/JSEN.2016.2558198.
  • Iddan, G., G. Meron, A. Glukhovsky, and P. Swain. 2000. “Wireless Capsule Endoscopy.” Nature 405 (6785): 417. doi:10.1038/35013140.
  • Jeong, S., J. Kang, K. Pahlavan, and V. Tarokh. 2017. “Fundamental Limits of TOA/DOA and Inertial Measurement Unit-Based Wireless Capsule Endoscopy Hybrid Localization.” International Journal of Wireless Information Networks 24 (2): 169–179. doi:10.1007/s10776-017-0342-7.
  • Kai, G., L. Yanxiong, X. Wenxue, H. Xiufeng, Z. Ziyin, and L. Haitao. 2020. “Comparison of LM and EM Parameter Optimization Methods for Airborne Laser Bathymetric Full-Waveform Decomposition.” Acta Geodaetica et Cartographica Sinica 49 (1): 117.
  • Keller, H., A. Juloski, H. Kawano, M. Bechtold, A. Kimura, H. Takizawa, and R. Kuth. 2012. “Method for Navigation and Control of a Magnetically Guided Capsule Endoscope in the Human Stomach.” Paper Presented at the 2012 4th IEEE RAS & EMBS International Conference on Biomedical Robotics and Biomechatronics (BioRob), Rome, June 24-27.
  • Li, M., J. Qin, D. Li, R. Chen, X. Liao, and B. Guo. 2021. “VNLSTM-PoseNet: A Novel Deep ConvNet for Real-Time 6-DOF Camera Relocalization in Urban Streets.” Geo-Spatial Information Science 24 (3): 422–437. doi:10.1080/10095020.2021.1960779.
  • Mapara, S.S., and V.B. Patravale. 2017. “Medical Capsule Robots: A Renaissance for Diagnostics, Drug Delivery and Surgical Treatment.” Journal of Controlled Release 261: 337–351. doi:10.1016/j.jconrel.2017.07.005.
  • Nelson, B.J., I.K. Kaliakatsos, and J.J. Abbott. 2010. “Microrobots for Minimally Invasive Medicine.” Annual Review of Biomedical Engineering 12: 55–85. doi:10.1146/annurev-bioeng-010510-103409.
  • Popek, K.M., T. Schmid, and J.J. Abbott. 2016. “Six-Degree-Of-Freedom Localization of an Untethered Magnetic Capsule Using a Single Rotating Magnetic Dipole.” IEEE Robotics and Automation Letters 2 (1): 305–312. doi:10.1109/LRA.2016.2608421.
  • Taddese, A.Z., P.R. Slawinski, M. Pirotta, E. De Momi, K.L. Obstein, and P. Valdastri. 2018. “Enhanced Real-Time Pose Estimation for Closed-Loop Robotic Manipulation of Magnetically Actuated Capsule Endoscopes.” The International Journal of Robotics Research 37 (8): 890–911. doi:10.1177/0278364918779132.
  • Takayama, T., T. Umezawa, N. Komuro, and N. Osawa. 2019. “A Regression Model-Based Method for Indoor Positioning with Compound Location Fingerprints.” Geo-Spatial Information Science 22 (2): 107–113. doi:10.1080/10095020.2019.1612599.
  • Turan, M., Y. Almalioglu, H. Gilbert, H. Araujo, E. Konukoglu, and M. Sitti. 2017. “Magnetic-Visual Sensor Fusion Based Medical SLAM for Endoscopic Capsule Robot.” arXiv preprint arXiv:1705.06196.
  • Turan, M., Y. Almalioglu, H.B. Gilbert, A.E. Sari, U. Soylu, and M. Sitti. 2018. Endo-VMFuseNet: A Deep Visual-Magnetic Sensor Fusion Approach for Endoscopic Capsule Robots. Paper presented at the 2018 IEEE International Conference on Robotics and Automation (ICRA), Brisbane, May 21-25.
  • Vasilakakis, M.D., A. Koulaouzidis, W. Marlicz, and D.K. Iakovidis. 2020. “The Future of Capsule Endoscopy in Clinical Practice: From Diagnostic to Therapeutic Experimental Prototype Capsules.” Przegla̜d Gastroenterologiczny 15 (3): 179.
  • Wang, Y., R. Fu, Y. Ye, U. Khan, and K. Pahlavan. 2011. “Performance Bounds for RF Positioning of Endoscopy Camera Capsules.” Paper presented at the 2011 IEEE Topical Conference on Biomedical Wireless Technologies, Networks, and Sensing Systems, Phoenix, January 16-20.
  • Wang, M., Q. Shi, S. Song, C. Hu, and M.-Q.-H. Meng. 2019. “A Novel Relative Position Estimation Method for Capsule Robot Moving in Gastrointestinal Tract.” Sensors 19 (12): 2746. doi:10.3390/s19122746.
  • Xu, M., D. Kong, L. Ye, and J. Xu. 2017. “A New Localization System for Tracking Capsule Endoscope Robot Based on Digital 3-Axis Magnetic Sensors Array.” Paper presented at the Chinese Intelligent Systems Conference, Mudanjiang, October 14-15.
  • Ye, Y. 2013. “Bounds on RF Cooperative Localization for Video Capsule Endoscopy.” PhD diss., Worcester Polytechnic Institute.
  • You, X. 2017. “Precise Positioning and Tracking Technology for Wireless Capsule Endoscopy.” Master’s thesis, Zhejiang University.
  • Zhang, H., and Z. Geng. 2009. “Novel Interpretation for Levenberg-Marquardt Algorithm.” Computer Engineering and Applications 45 (19): 5–8.