Continuum Robot Shape Estimation Using Magnetic Ball Chains
Abstract
Shape sensing of medical continuum robots is important both for closed-loop control as well as for enabling the clinician to visualize the robot inside the body. There is a need for inexpensive, but accurate shape sensing technologies. This paper proposes the use of magnetic ball chains as a means of generating shape-specific magnetic fields that can be detected by an external array of Hall effect sensors. Such a ball chain, encased in a flexible polymer sleeve, could be inserted inside the lumen of any continuum robot to provide real-time shape feedback. The sleeve could be removed, as needed, during the procedure to enable use of the entire lumen. To investigate this approach, a shape-sensing model for a steerable catheter tip is derived and an observability and sensitivity analysis are presented. Experiments show maximum estimation errors of 7.1% and mean of 2.9% of the tip position with respect to total length.
Index Terms:
Medical Robots and Systems, Steerable Catheters, Flexible Robotics, Magnetic Sensing, Continuum robots.I Introduction
Continuum robots are designed to conform to three-dimensional curves, possessing the ability to alter their form by bending, rotating, and either extending or retracting their structural elements. These flexible capabilities render continuum robots highly suitable for applications that require delicate manipulation and spatial adaptability, such as minimally invasive surgical procedures. While kinematic models have been developed for the various types of continuum robots, effects such as nonlinear elasticity, friction and hysteresis as well as external forces applied by surrounding tissue, degrade the accuracy of these models.
Shape sensing can provide real-time feedback to augment the kinematic model prediction of robot state and so mitigate modeling inaccuracies. Approaches to real-time sensing that have been studied include fiber Bragg gratings (FBG), electromagnetic (EM) tracking, tendon-based sensing and imaging. FBG sensing is currently receiving much attention due to its ability to provide multiple accurate curvature measurements along a robot’s length, but it remains expensive owing to the cost of the sensors as well as the optical interrogator [1, 2, 3]. EM sensors can be used effectively in some clinical applications [4], but are limited to localizing a small number of points along a robot. Inferring shape and external applied forces from tendons and string encoders can provide accurate shape estimates, but requires careful robot design and sensor integration [5]. Shortcomings of image-based shape sensing include cost, resolution limitations and the use of ionizing radiation [4].
In contrast to these approaches, a real-time low-cost shape sensing system that could be easily inserted and removed from the robot is preferred because of its direct measurement, instant adaptability to the continuous shape change and ease of replaceability. Magnetic ball chains have recently been introduced as a new design for continuum robots [6]. Comprised of a chain of spherical permanent magnets encased in a flexible sleeve, an external magnetic field is used to steer the ball chain. As shown in Fig. 1, to create a shape sensor, the ball chain and its sleeve are inserted inside the lumen of a continuum robot and the external magnetic field is replaced by an array of Hall effect sensors. The continuum robot containing the ball chain can be actuated by any of the standard means such as tendons. The ball chain itself is inexpensive, contains no electronics and is easy to sterilize or recycle.
The potential for tracking permanent magnets embedded in medical robots using external sensor arrays has been established by several researchers. For example, Son et al. [7] investigated tracking a capsule robot containing a single permanent magnet. Continuum robot shape estimation has also been performed by attaching a permanent magnet at the tip of each flexing section and interpolating robot shape between magnets [8, 9]. Here, we extend the concept by creating a removable chain of spherical magnets which simultaneously maximize the magnetic content and flexibility of the sensor. The goal of our approach is to avoid the need to interpolate robot shape between magnets while also enabling their removal so that the entire robot lumen can be made available for the clinical task after navigation is complete.
In this initial paper, we investigate a simplified shape sensing implementation in which it is assumed that the coordinate frame of the robot base is known and fixed with respect to the world frame. The task is to estimate the shape of a single flexing section that can bend in any direction with respect to its longitudinal axis. The remainder of the paper is arranged as follows. The shape sensing model is derived in the next section. The following two sections present observability and sensitivity analyses for inverting the model to estimate shape. Section V contains an experimental evaluation and conclusions appear in the final section.
II Shape Estimation Model
As shown in Fig. 2, the spheres align to form a chain due to their magnetic interaction [6]. Since the balls are spherical, we can consider each magnet as a perfect dipole [10]. When constrained to bend inside a continuum robot, they take on the curved shape of the robot.
In this paper, we assume that continuum robot flexure is of constant curvature, which we parameterize using angle of bending and plane angle as shown in Fig. 2 and assume that each ball’s dipole is locally tangent to the curve. Further assuming that the superimposition principle applies, the total field generated can be measured by an array of 3D magnetic field sensors as shown.
We define to be the field measured by the th sensor with respect to the global reference frame , which equates to the magnetic field generated by the chain at the position of the sensor . We use the magnetic dipole model to compute the field measured by the sensor, for a given bending of the chain
(1) |
The field measured by the th sensor is
(2) |
where is the number of balls in the chain, is the th ball’s position, its magnetic dipole moment, and we define
(3) |
Here indicates the Euclidean norm and is the vacuum magnetic permeability.
The expression indicates that a vector is written with respect to the reference frame , and is the rotation from frames to .
Under assumption of constant curvature, the position and magnetic dipole are
(4a) | |||
(4b) |
where is the diameter of the balls, the th ball’s magnetic dipole intensity, and is the th element of the canonical basis of . The operator denotes the cross product form of the extended vector , i.e. .
By combining (2) and (4), we obtain the total field measured by each sensor. For an array of sensors, we can combine all measurements as
(5) |
For a sensor reading we solve for the shape as
(6) |
where is a matrix of gains which can be tuned, depending on the confidence level for each sensor. Since different areas of the workspace may have different signal/noise ratio for different sensors, we subdivided the workspace in different manifolds such that a certain gain is calibrated for . In our implementation, the manifold has a center so that
(7) |
We use Algorithm 1 below to iteratively solve (6) and adjust the sensors gains according to the previous solution. This technique of adjusting the confidence level of each sensor improves the accuracy of the results. Our method for calibrating the matrices is described in experimental section V.
Equation (6) can be solved using gradient-based methods when the Jacobian matrix is full rank. In particular, in the remainder of the paper, we use lsqnonlin solver from Matlab (Mathworks, Natick, MA) to solve for given a sensor reading of . Since we assume no prior knowledge of the robot state, we use the rank of the Jacobian to compute the observability of the shape sensing system as described in the next section.
III Observability Analysis
The bending of the robot can be reconstructed from the set of sensor readings as long as the the Jacobian is of full rank. Here, we define the reciprocal condition number of as
(8) |
where and are the respective minimum and maximum singular values of and use this value to assess the observability of robot curvature. In the plots that follow, is expressed as a percentage.
Since observability will depend on the relative orientation between the robot and the sensor plane, we consider the two scenarios shown in Fig. 2. Configuration I corresponds to the undeflected robot pointing toward the sensor plane. In Configuration II, the undeflected robot points in a direction parallel to the sensor plane. These two configurations can be viewed as a basis set for many clinically relevant robot-sensor configurations.
Figure 3 presents a numerical assessment of observability for Configurations I and II. In both configurations, the robot base is located at a distance of 15cm from the sensor plane and the robot was allowed to deflect in an arbitrary direction up to , i.e., . We consider a chain of ten N42 magnetic balls of diameter 6.35mm comparable to those described later in our experiments.
The sensors where positioned at mm, in global frame (see Fig. 2); here indicates the rotation of angle around the axis; .
Figure 3(a) plots the reciprocal condition number as function of bending plane and bending angle for Configuration I in which the chain points toward the sensor array when undeflected. Given the symmetry of this configuration with respect to , we anticipate that observability will be independent of . This can be seen to be true with the highest value of the observability approaching 100% when the chain is straight and falling off to between 30-40% when the chain is deflected . (Note that owing to discretization and numerical rounding, a small amount of variation with respect to is seen in the contours.) This can be anticipated since when the chain is straight, the sensors are well positioned to triangulate on the location of the chain. As it bends, this capability becomes reduced, however, still remains above 30% indicating that shape estimation is still possible.
When the sensor array is positioned as shown in Configuration II, the straight configuration is no longer symmetric with respect to all of the sensors resulting in a value of between 50-60%. In this configuration, however, bending the chain increases observability regardless of the value of .
In particular, the highest values of occur when . For , the maxima occur when the robot is deflected . These configurations correspond to the chain bending directly toward and away from the sensor array. These are again the configurations for which the balls are centrally located with respect to all of the sensors resulting in improved triangulation.
The maxima at occur for . Given the number of balls and their position and orientation with respect to the sensor array, it is difficult to predict that these are especially observable configurations using intuition alone. The important result is that, while Configuration II would appear to be more challenging for shape estimation than Configuration I, the minimum value of is greater than 40%. This means that a small change in the chain’s configuration is more easily observed when the sensor array is placed to the side of the chain.
IV Sensitivity Analysis
The observability analysis of the preceding section assumes perfect measurements by the Hall effect sensors. In a real sensing system, noise corrupts measurements with small magnitude signals being degraded more than large magnitude signals. To understand how sensor noise would degrade our estimates of robot shape, we performed a sensitivity analysis for Configurations I and II as follows.
We generated simulated measurement data using the model in (2). We discretized the workspace using ), . For each configuration in the workspace, we generated 100 samples, labeled as , of noisy data by adding zero-mean Gaussian noise with a standard deviation of the norm of the measured data , with . We used these samples to estimate the maximum measurement errors for 0, 5 and 10% noise, since 99% of the samples of the normal distribution are within .
For the th sample of th chain configuration we solved for the corresponding shape , following Algorithm 1 for ; in this case we have uniform sensors noise and do not need locally tuned gains for the sensors. Using (4), we compute the ground-truth position of the chain’s tip and the estimated tip position . We report the error as the maximum norm error over the 100 samples of the tip position
(9) |
Figure 4 depicts maximum tip position error for Configuration I. While, as expected, the error is independent of , this plot shows that error is also independent of bending angle . While falls as increases, the signal/noise ratio remains high enough that the tip position estimation error is not affected.
With the sensor array in Configuration II, maximum tip position error is a function of both bending angle, , and robot orientation angle, . To illustrate these effects, we plot the results for two planes of bending, and , in Fig. 5. From Fig. 5(b), the effect on noise on measurement accuracy can be clearly seen. As the chain bends away from the sensor plane, the signal magnitude falls sufficiently that accuracy degrades significantly. In contrast, Fig. 5(b) shows that robot bending in the plane parallel to the sensor has no effect on estimation accuracy since signal magnitude is comparable over all configurations.
From this analysis, we can conclude that acceptable maximum estimation errors, within 5% of chain length, would require sensors with a noise level below 5% of the signal. Furthermore, as mentioned in Section II, configuration-dependent weighting of sensor signals can be used to partially compensate for variations in sensor signal amplitude over the workspace.
V Experimental Validation
To evaluate the shape sensing system of Figs. 1 and 2, we 3D printed continuum “robots” of fixed constant curvatures and inserted magnetic ball chains in their lumens as shown in Fig. 6. This robot orientation matches Configuration I. Since the curvatures of these “robots” was known, the values could be used as ground truth and compared to the shape estimated by the sensing system.
The ball chain consisted of ten N42 spherical magnets of diameter mm (K&J Magnetics), which matched the parameters used in the observability and sensitivity analyses presented above. The sensor array was comprised of four 3D Hall effect senors (MLX90393 Triaxis®, Melexis), positioned as described in Section III. The mock robot was mounted in a stand which provided a fixed set of possible orientation angles, . Matching the analyses above, the stand was positioned such that the proximal ball was 15cm from the sensor plane.
Sensor data was collected for the configurations ), . At each configuration, 10 samples for each sensor channel were used for calibration and estimation, as described below.
V-A Sensor Calibration
Based on the orientation of the chain with respect to the four sensors, the relative accuracy of the sensors varies. To account for this, the optimal gain matrix associated with the manifold of as described in Section II, Algorithm 1, is computed and used for shape estimation. The center of the manifold is computed from (1) for each combination of .
We compute the predicted value of the measurement from the model in (2), , and the measurement reading, , for each sample . The maximum error for each component is given by
(10) |
where is absolute value and , since four 3D sensors are used. Sensor gain is defined as
(11) |
and so more trust is given to the channel with smaller maximum error.
V-B Shape Sensing
Algorithm 1 in Section II was applied to the collected data with number of iterations . The results are reported in Fig. 7, where we show independently the bending on the the vertical - plane (, Fig. 7(a)) and the horizontal - plane (, Fig. 7(b)). The plots present the error between the ground truth configurations and the sensor-based estimates.
For comparison, we also plot the sensitivity analysis maximum error estimates for noise levels of 5% and 10% (see Section IV for details). Note that the 5% noise maximum errors bound the actual errors for almost all configurations in both plots. For the vertical plane, the only outlier is the maximum error of 7.1mm for (11.2% of the length of the chain). The mean experimental error on the vertical plane is 2.2mm, less than half the size of a magnetic ball, corresponding to 3.5% of the total length of the chain.
In the horizontal plane of Fig. 7(b), the calibration was generally more effective in compensating for sensor noise. All experimental errors fell within the 5% noise level, with a maximum at of 3.9mm (6.1% of the chain length). The mean error on this plane was 1.5mm (2.4% of the total length).
We also computed an average computation time over all data samples of 0.25s for Algorithm 1, indicating that it could be adapted for online use. Alternate real-time techniques such as extended Kalman filters could also be employed to handle dynamic configuration changes.
VI Conclusions
This paper introduced the concept of using a chain of spherical permanent magnets to generate a shape-specific magnetic field. When inserted in the lumen of a continuum robot, this field can be measured and decoded using an array of Hall effect sensors to estimate the robot shape. Our observability and sensitivity analyses confirm the potential of the method. Our experimental results, using low-cost ($25/sensor) Hall effect sensors, demonstrated mean tip position errors of 3.5% of robot length and maximum errors of less than of robot length. These results can likely be improved through the use of more accurate sensors.
While in the case considered here, the base coordinate frame of the robot was assumed known, future work will include estimation of the base frame and also consider robots comprised of multiple curving sections. Furthermore, we will consider optimizing the sensor number and arrangement with respect to the robot in order to optimally balance observability and sensitivity.
Initial testing not detailed here has shown that the magnetic field is not affected when the chain is inserted inside clinical-grade tendon-actuated catheters. Future work will study catheter compatibility in detail.
References
- [1] S. C. Ryu and P. E. Dupont, “Fbg-based shape sensing tubes for continuum robots,” in 2014 IEEE International Conference on Robotics and Automation (ICRA), 2014, pp. 3531–3537.
- [2] G. Pittiglio, J. H. Chandler, T. da Veiga, Z. Koszowska, M. Brockdorff, P. Lloyd, K. L. Barry, R. A. Harris, J. McLaughlan, C. Pompili, and P. Valdastri, “Personalized magnetic tentacles for targeted photothermal cancer therapy in peripheral lungs,” Communications Engineering, vol. 2, no. 1, p. 50, Jul 2023. [Online]. Available: https://doi.org/10.1038/s44172-023-00098-9
- [3] G. Pittiglio, A. L. Orekhov, T. da Veiga, S. Calò, J. H. Chandler, N. Simaan, and P. Valdastri, “Closed loop static control of multi-magnet soft continuum robots,” IEEE Robotics and Automation Letters, vol. 8, no. 7, pp. 3980–3987, 2023.
- [4] A. Ramadani, M. Bui, T. Wendler, H. Schunkert, P. Ewert, and N. Navab, “A survey of catheter tracking concepts and methodologies,” Medical Image Analysis, vol. 82, p. 102584, 2022. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S1361841522002225
- [5] A. L. Orekhov, E. Z. Ahronovich, and N. Simaan, “Lie group formulation and sensitivity analysis for shape sensing of variable curvature continuum robots with general string encoder routing,” IEEE Transactions on Robotics, vol. 39, no. 3, pp. 2308–2324, 2023.
- [6] G. Pittiglio, M. Mencattelli, and P. E. Dupont, “Magnetic ball chain robots for endoluminal interventions,” in 2023 IEEE International Conference on Robotics and Automation (ICRA), 2023, pp. 4717–4723.
- [7] D. Son, X. Dong, and M. Sitti, “A simultaneous calibration method for magnetic robot localization and actuation systems,” IEEE Transactions on Robotics, vol. 35, no. 2, pp. 343–352, 2019.
- [8] H. Wang, B. Yang, Y. Liu, W. Chen, X. Liang, and R. Pfeifer, “Visual Servoing of Soft Robot Manipulator in Constrained Environments With an Adaptive Controller,” IEEE/ASME Transactions on Mechatronics, vol. 22, no. 1, pp. 41–50, 2017.
- [9] C. Zhang, Y. Lu, S. Song, and M. Q.-H. Meng, “Shape tracking and navigation for continuum surgical robot based on magnetic tracking,” in 2017 IEEE International Conference on Information and Automation (ICIA), 2017, pp. 1143–1149.
- [10] A. J. Petruska and J. J. Abbott, “Optimal Permanent-Magnet Geometries for Dipole Field Approximation,” IEEE Transactions on Magnetics, vol. 49, no. 2, pp. 811–819, 2013.