1 Introduction

In recent years, with the continuous advancement of medical ultrasound (US) imaging technology and its outstanding advantages, US images have become the main diagnostic and treatment tool for breast lesions. US image-guided surgery has been used successfully in the auxiliary diagnosis and treatment of breast cancer, which is usually called interventional ultrasound (Solbiati & Tondolo, 2013). It is difficult for the surgeons to directly diagnose the location of a tumor in 2-D US images. Therefore it is necessary to reconstruct breast tumors to overcome the limitations of 2-D US imaging (Papenberg et al., 2008). Due to the shape of breast is prone to change in real-time during the surgery, the mapping of the US image frame and the patient frame changes in real-time, a reconstruction of the 4-D breast model, which shows the 3-D breast model in a moving state, is more suitable for clinical application of breast US intervention therapy.

To implement of breast US intervention treatment guided by 4-D US image, it is first necessary to convert the imaging frame to the surgical frame (original coordinate system), which is called the calibration of the US image. In the past ten years, scholars around the world have successfully researched calibration approaches and the corresponding optimization algorithms. Mostly, the US image calibration requires a phantom to provide a set of fiducials, e.g. the N-wire phantom method (Carbajal et al., 2013) and multi-wedge phantom method (Najafi et al., 2014), they are traditional US calibration methods. With the development of surgical robots, the traditional calibration methods no longer meet the clinical application, therefore some US image calibration methods for robotic systems are developed. Huang et al. presented a robotic calibration method with a ball-shaped phantom (Huang et al., 2018). The calibration parameters were estimated with robotic translational motion, as while as rotational parameters were not taken into account in calibration. So this approach could not be applied in general US scanning from all angles of view. Aalamifar et al. designed an active echo phantom to transmit and receive US signals to a US probe for image calibration (Aalamifar et al., 2016). This approach designed a complex scanning trajectory to align the probe with the active echo phantom, without using an external tracking system. Wang et al. proposed a calibration method for the multiple cooperative robots (Wang et al., 2014). The calibration problem for multiple robot cooperation needs to solve a matrix equation with a priori knowledge of the temporal correspondence of the data, that are not always easy or possible to be obtained. All of the above are mechanism-based calibration methods. After integrating with the optical tracking system, the US system could interact with the robot arm and realize a fully automatic calibration procedure. Li et al. (2012) presented an automatic probe calibration approach based on rigid ultrasound image registration of 2D rotational slices for 3D ultrasound image reconstruction. The parameters was determined with an automatic image registration based approach. Xiong et al. (2021) presented a mechanism-image fusion-based calibration approach to a US-guided dual-arm robot. The pixel position in the US image of the needle-tip is calculated by manual annotation, which reduces the efficiency of registration. Due to the ultrasonic noises and artifacts, calibration accuracy and efficiency still have an apparent influence on navigation. Aiming the above influence from ultrasonic noise and artifacts, Wang et al. (2018) proposed an automatic probe calibration method based on the coherent point drift (CPD) point cloud registration. During calibration procedure, a large number of ultrasonic images are collected, each image frame has its own tracking information. It generates a lot of data which is time-consuming and results in a low computational efficiency.

In image-based calibrations mentioned above, different image processing pipelines were introduced to segment the target point in US images, the image processing is often complex and time-consuming. Moreover, these US calibration approaches ignored the deformation of soft tissue, they were all based on rigid US image registration. In our research, A US calibration approach of 4-D US-guided breast intervention robot with easy operability, low redundancy, and the ability to predict soft tissue deformation is proposed. A calibration phantom with special geometries and functions is designed. The markers can not only easily be fixed on the skin surface of the breast by the phantom; the spatial positions of the markers on the skin surface are but also calibrated by the phantom. A mathematical model of the coordinate system transformation between the various subsystems of the breast intervention robot system was established, so the calibration problem for 4-D US-guided breast intervention robot was formulated as a fundamental problem of solving a matrix equation. The calibration uses the ORB (oriented FAST and rotated BRIEF) (Rublee et al., 2011) feature extraction method to obtain and record the real-time image marker pixel positions, and calculates the parameters of conversion matrix by PSO (Particle Swarm Optimization) algorithm (Okwuand & Tartibu, 2021). Finally, the effectiveness of the proposed calibration approach was validated through experiments in our developed US-guided robotic system. Additional experimental and parametrical comparisons of the proposed method with state-of-the-art methods were conducted to thoroughly evaluate the outperformance of the proposed method.

2 Overall frame of the calibration approach

In a 4-D US image reconstruction system, the robot-holding US probe calibration system is as shown in Fig. 1. It consists of B-model US image equipment, an optical navigation system (an NDI optical navigator, passive rigid body, and passive 4-point probe), a 4-D dynamic calibration phantom (a calibration phantom holder and markers), a robot holds an US probe, a patient and an operating table. There is no direct connection among them in the breast intervention robot system. The NDI optical navigation is applied to the US probe calibration of breast intervention robot. The patient frame and the US probe frame in the calibration system are associated through NDI optical navigation, which lays the foundation for the real-time guidance of the US probe during robot operation and the dense reconstruction of the 3-D breast tissue.

Fig. 1
figure 1

The schematic of calibration method for breast intervention robot

For the proposed calibration approach, a 4-D dynamic calibration phantom was designed and applied to the US image calibration for a breast intervention robot. The functions and components of the 4-D dynamic calibration phantom bracket include a marker positioning bracket with marking holes, a coordinate system conversion bracket, an adjustable screw and nut, and a double-sided suction cup, as shown in Fig. 2. The coordinate system of the patient’s breast is defined as the virtual coordinate system in the calibration approach, and the center of the nipple is set as the origin of the virtual coordinate system. The positions of the marking holes on the positioning bracket are evenly arranged on two flat arc curves, and the marking holes are processed by precision instruments. The parameters of the coordinate conversion between the conversion bracket and the virtual coordinate system are determined by the size and structure of the conversion bracket. The red double arrow indicates the direction in which the dynamic phantom can be moved and adjusted, and the two red curves indicate the locations of the markers.

Fig. 2
figure 2

Dynamic calibration phantom bracket

Before calibration, the registration of US probe and operating table in the optical navigation system is completed, and the mappings between US probe, operating table and optical navigation system are established. The specific procedures for registration are as follows: (1) The passive rigid body is fixed at the center of US probe, and the optical positioner tracks its position and posture. The coordinate system of US probe is set as \( O_{S} \) , the coordinates origin is the center of US probe, and the XOY plane is parallel to US imaging plane. The coordinate system of US image is set as \( O_{I} \) , the coordinates origin is at the upper left corner of US image, and the UOV plane coincides with US image plane. Therefore, there is only translation without rotation between US image and US probe. (2) The NDI navigation system detects the coordinate origin of coordinate transformation bracket fixed on operating table through passive 4-point probe and records its position information. The operating table is placed horizontally, and the patient lying prone on it. Therefore, the XOY plane of operating table is parallel to horizontal plane, and there is only translation between operating table and optical navigator.

In the overall frame of US calibration, five coordinate systems are defined: the US image, the actual and virtual coordinates of the coordinate conversion bracket, the US probe, and the NDI optical navigator, which are presented as I, \( M'\), M, S, and R, respectively. The four corresponding coordinate transformation matrices are \( T_{I}^{S} \), \( T_{S}^{R} \), \( T_{R}^{M' } \), \( T_{M' }^{M } \).

3 Skin surface marker

The patient’s breast surface is used as the carrier of the markers. Before the operation, the doctor adjusts the conversion bracket fit to the patient’s position and shape so that the intersection of the curve on the marker positioning bracket coincides with the origin of the virtual coordinate system, then uses the marker positioning bracket to mark the skin surface of patient’s breast, as shown in Fig. 3.

Fig. 3
figure 3

Markers on the skin surface of breast

The marker is a small steel ball with a diameter of 2 mm. A total of eight markers are divided into two groups, four in each group, and fixed on breast skin surface with glue. The sticking position of marker on breast surface is determined through graduation hole on the marker positioning bracket. Curves \( C_{1} \) and \( C_{2} \) intersect at right angles in space, and intersection point is \( O_{M} \). Intersection of two planes is set as the Z axis of virtual coordinate system. The virtual dynamic coordinate system changes in real time with the position and shape of breast during operation. In the US probe calibration, US probe scans these two cross-sections located by the two curves, as well as NDI optical navigator detects the position of US probe.

We construct a cylindrical coordinate system in the dynamic calibration phantom: \( O_{M} \) is the coordinates origin, and Z axis is the center of cylindrical coordinate system. The coordinates of a point in the dynamic virtual rectangular coordinate system of the breast can be expressed as \( P_{M}=\begin{bmatrix} x_{m}&y_{m}&z_{m} \end{bmatrix}^{T} \). We convert \( P_{M} \) from cylindrical coordinates to rectangular coordinates: \( P_{M} =\begin{bmatrix} r\cos \psi&r\sin \psi&z \end{bmatrix}^{T} \) , and the initial angular coordinates \( \psi \) of markers on curves \( C_{1} \) and \( C_{2} \) are \( \psi _{1} =0^{\circ } \) and \( \psi _{2} =90^{\circ } \) , respectively. The coordinates of markers on curves \( C_{1} \) and \( C_{2} \) can be obtained as \( P_{M,1i}=\left( r_{1i},0,z_{1i}\right) \) and \( P_{M,2i}=\left( 0,r_{2i},z_{2i}\right) \), \( i=0,1,2,3. \)

4 Mathematical model for dynamic US calibration approach

The space mapping of a point from the US image to the patient’s breast is expressed as follows:

$$\begin{aligned} P_{M}=TP_{I}=T_{M' }^{M} \left( T_{M'}^{R} \right) ^{-1}T_{S}^{R} T_{I}^{S} P_{I} \end{aligned}$$
(1)

\( P_{I} \) represents the position of a point in US image. If the thickness of US probe is p mm, then \( P_{I}=\begin{bmatrix}u&v&-\frac{p}{2} \end{bmatrix}^{T} \), \( p\in \left[ 8,10 \right] \), u and v are the position of the point with the unite of pixel.

Matrix \( T_{M'}^{M} \) is the transformation matrix from operating table frame to breast frame. The translation parameters are determined by the structure and size of coordinate conversion bracket. Suppose the translation parameters are \( \left( x_{1},y_{1},z_{1}\right) =\left( 0,100,30\right) \) and the units are mm. Assuming that quaternion parameter of the rotation transformation is \( \left( w_{1},a_{1},b_{1},c_{1} \right) \) in \( T_{M'}^{M} \) , the specific expression is as follows (Yi et al., 2009):

$$\begin{aligned} T_{M'}^{M}\!=\!\begin{bmatrix} 1\!-\!2b{_{1}}^{2}\!-\!2c{_{1}}^{2} &{} 2a_{1}b_{1}\!-\!2c_{1}w_{1} &{} 2a_{1}c_{1}\!+\!2b_{1}w_{1} &{} 0 \\ 2a_{1}b_{1}\!+\!2c_{1}w_{1} &{} 1\!-\!2a{_{1}}^{2}\!-\!2c{_{1}}^{2} &{} 2b_{1}c_{1}\!-\!2a_{1}w_{1} &{} 100 \\ 2a_{1}c_{1}\!-\!2b_{1}w_{1} &{} 2b_{1}c_{1}\!+\!2a_{1}w_{1} &{} 1\!-\!2a{_{1}}^{2}\!-\!2b{_{1}}^{2} &{} 30 \\ 0 &{} 0 &{} 0 &{} 1 \end{bmatrix} \end{aligned}$$
(2)

The rotation parameters \( \left[ w_{1}\, a_{1}\, b_{1}\, c_{1}\right] ^{T} \) change in real time in the 4-D dynamic calibration phantom. According to conventional and intuitive method of expressing rotation, we introduce a rotation vector \( \overrightarrow{k}=\left[ x\,y\,z \right] ^{T}(t) \) and a rotation angle \( \theta \left( t\right) \) , which represents the rotation angle of coordinate system M around axis vector \( \overrightarrow{k} \) at time t . Finally, the rotation of breast coordinate system is represented as,

$$\begin{aligned} \begin{bmatrix} w_{1}&a_{1}&b_{1}&c_{1} \end{bmatrix}^{T} (t)=\begin{bmatrix} \cos \frac{\theta }{2}&x\sin \frac{\theta }{2}&y\sin \frac{\theta }{2}&z\sin \frac{\theta }{2} \end{bmatrix}^{T} (t)\nonumber \\ \end{aligned}$$
(3)

In the process of calibration, the rotation angle \( \theta \) changes in real time with breast movement and deformation, and the real-time dynamic rotation parameters \( \theta \), x, y, and z will be solved by PSO algorithm.

Transformation matrix \( T_{R}^{M{}'} \) represents translation transformation between NDI optical navigator frame and template support frame. We use passive 4-marker probe to detect the position of coordinate origin of phantom holder to obtain the translation \( \begin{bmatrix}x_{m'}&y_{m'}&z_{m'}&1\end{bmatrix}^{T} \) . Then, the translation transformation matrix is,

$$\begin{aligned} T_{M'}^{R} =\begin{bmatrix} 1 &{} 0 &{} 0 &{} -x_{m'}\\ 0 &{} 1 &{} 0 &{} -y_{m'}\\ 0 &{} 0 &{} 1 &{} -z_{m'}\\ 0 &{} 0 &{} 0 &{} 1 \end{bmatrix} \end{aligned}$$
(4)

Conversion matrix \( T_{S}^{R} \) represents the coordinate system conversion between NDI optical navigator frame and US probe frame. The posture of passive rigid body recorded by the NDI is in form of quaternion; therefore, \( T_{S}^{R} \) has a total of 7 parameters, four of which are rotation parameters and three of which are displacement parameters, which are

\( \begin{bmatrix} w_{2}&a_{2}&b_{2}&c_{2}&x_{2}&y_{2}&z_{2}\end{bmatrix} \).

$$\begin{aligned} T_{S}^{R} =\!\begin{bmatrix} 1\!-\!2b{_{2}}^{2}\!-\!2c{_{2}}^{2} &{} 2a_{2}b_{2}\!-\!2c_{2}w_{2} &{} 2a_{2}c_{2}\!+\!2b_{2}w_{2} &{} x_{2} \\ 2a_{2}b_{2}\!+\!2c_{2}w_{2} &{} 1\!-\!2a{_{2}}^{2}\!-\!2c{_{2}}^{2} &{} 2b_{2}c_{2}\!-\!2a_{2}w_{2} &{} y_{2} \\ 2a_{2}c_{2}\!-\!2b_{2}w_{2} &{} 2b_{2}c_{2}\!+\!2a_{2}w_{2} &{} 1\!-\!2a{_{2}}^{2}\!-\!2b{_{2}}^{2} &{} z_{2} \\ 0 &{} 0 &{} 0 &{} 1 \end{bmatrix}\nonumber \\ \end{aligned}$$
(5)

In the process of calibration, US probe scans the cross-sections where the two curves are located. Therefore, NDI optical navigator records two sets of pose information of US probe, corresponding conversion matrices in these two states are represented as \( T_{S}^{R(1)} \) and \( T_{S}^{R(2)} \).

The transformation equation from US image frame to US probe frame is,

$$\begin{aligned} \begin{bmatrix} x_{s}\\ y_{s}\\ -\frac{p}{2}\\ 1 \end{bmatrix}=T_{I}^{S} \begin{bmatrix} u\\ v\\ -\frac{p}{2}\\ 1 \end{bmatrix}=\begin{bmatrix} -\frac{1}{\alpha } &{} 0 &{} 0 &{} -\frac{c_{x}}{\alpha }\\ 0 &{} \frac{1}{\beta } &{} 0 &{} -\frac{c_{y}}{\beta }\\ 0 &{} 0 &{} 1 &{} 0\\ 0 &{} 0 &{} 0 &{} 1 \end{bmatrix}\begin{bmatrix} u\\ v\\ -\frac{p}{2}\\ 1 \end{bmatrix} \end{aligned}$$
(6)

\( T_{I}^{S} \) is the transformation matrix from US image to US probe frame. The pixel coordinates are scaled \( \alpha \) times on the u axis and \( \beta \) times on the v axis. In general, \( \alpha =\beta =0.1148 \) , the units are pixels per millimeter, and the origin is shifted by \( \left[ c_{x},c_{y}\right] ^{T}=\left[ 19,19\right] ^{T} \) ; the units are pixels. So the transformation matrix is obtained by, \( T_{I}^{S} =\begin{bmatrix} -8.71 &{} 0 &{} 0 &{} -165.51\\ 0 &{} 8.71 &{} 0 &{} -165.51\\ 0 &{} 0 &{} 1 &{} 0\\ 0 &{} 0 &{} 0 &{} 1 \end{bmatrix} \)

Substituting \( P_{I} \) and \( P_{M} \) into (1), we obtain,

$$\begin{aligned} \begin{bmatrix} r_{1i}\\ 0\\ z_{1i}\\ 1 \end{bmatrix}(t)=T_{M'}^{M} (t)\cdot T_{R}^{M'} \cdot T_{S}^{R(1)} \cdot T_{I}^{S} \cdot \begin{bmatrix} u_{1i}\\ v_{1i}\\ -\frac{P}{2}\\ 1 \end{bmatrix}(t) \end{aligned}$$
(7)
$$\begin{aligned} \begin{bmatrix} 0\\ r_{2i} \\ z_{2i}\\ 1 \end{bmatrix}(t)=T_{M'}^{M} (t)\cdot T_{R}^{M'} \cdot T_{S}^{R(2)} \cdot T_{I}^{S} \cdot \begin{bmatrix} u_{2i}\\ v_{2i}\\ -\frac{P}{2}\\ 1 \end{bmatrix}(t) \end{aligned}$$
(8)

Expanding the zero elements on the left side of the two linear matrix equations, we obtain two equations below, which represent the calibration models of two poses of US probe; \( f_{1} \) and \( f_{2} \) represent the calibration equations when US probe scans curves \( C_{1} \) and \( C_{2} \), respectively.

$$\begin{aligned} \left\{ \begin{matrix} f_{1,i}(\theta ,x,y,z)=0 \\ f_{2,i}(\theta ,x,y,z)=0 \end{matrix}\right. \end{aligned}$$
(9)

The parameters of transformation matrix in the US calibration approach are \( \theta \), x, y, and z, which will be solved in our research.

If the cycle of compound movement of patient’s breast, which moves with breathing, heart beating and artery motion, is T, then \( 0\le t\le T \). US image sequences \( I_{1} \) and \( I_{2} \) are acquired in this compound motion cycle to obtain original image data set of markers. ORB method is used to extract the feature points of markers from the two sets of image sequence and obtain the pixel positions of markers. At the same time, NDI optical navigator records the pose information \( T_{S}^{R(1)} \) and \( T_{S}^{R(2)} \) of two states of US probe and calculates the conversion matrix between US image and patient’s breast frame through above mathematical model.

5 Solution of initial rotation parameters

In the proposed US image calibration, PSO algorithm is used to solve the dynamic rotation parameters. The main contents of this algorithm is summarized as follows:

  1. 1.

    The parameters \( \theta \), x, y, and z are defined as the dimensional variables \( x_{ji} \) of PSO, where \( j=1,2,\cdots ,N \); \( i=0,1,2,3. \) The ranges of particle positions are \( 0\le x_{j0}=\theta \le \pi \), \( 0\le x_{j1}=x \le 1 \), \( 0\le x_{j2}=y \le 1 \), \( 0\le x_{j3}=z \le 1\).

  2. 2.

    Initialize the single extremum \( p_{ji}=x_{ji}(0) \) of the particle, and global extremum \( p_{gi} \) is determined by one particle which has the smallest fitness value among the N particles.

  3. 3.

    Evolution equations for particle velocity and position are,

    $$\begin{aligned} v_{ji}(s+1)= & {} \omega v_{ji}(s)+c_{1}r_{1}(s)\left[ p_{ji}(s)-x_{ji}(s)\right] \nonumber \\&+c_{2}r_{2}(s)\left[ p_{gi}(s)-x_{gi}(s)\right] \end{aligned}$$
    (10)
    $$\begin{aligned} x_{ji}(s+1)= & {} x_{ji}(s)+v_{ji}(s+1) \end{aligned}$$
    (11)
  4. 4.

    The fitness function of PSO algorithm for the US calibration is defined as,

    $$\begin{aligned} F(X)=\sum _{i=0}^{3}(f_{1,i}^{2}(x)+f_{2,i}^{2}(x) ) \end{aligned}$$
    (12)
  5. 5.

    Calculate the fitness F(x) of each particle, update the particle position with PSO iterative algorithms, select and update the global optimal position.

  6. 6.

    When does the iteration terminate is determined by \( \xi =\left| F(x)-{\hat{F}}(x) \right| = \left| F(x) \right| \le 0.001 \).

6 Experiments and results

6.1 Materials and equipments

In order to verify the accuracy of dynamic US calibration, experiments are completed on breast intervention robotic system proposed by us, and a self-designed dynamic calibration phantom is used to calibrate US image. All structural parts of phantom are printed using a fused deposition modeling printer, polylactic acid (PLA) is used as the materials. Use the phantom to paste two groups of markers on patient’s breast skin surface, each group contain 4 ones, a total of 8 markers, and the processing accuracy of positioning holes and markers reaches 0.1mm. Measure the angle values of two groups of markers in the phantom frame with a universal bevel protractor. The positions of each markers in the phantom frame is recorded in Table 1.

Table 1 Coordinates, \( P_{M} \) (mm), of markers in calibration phantom

The B-mode ultrasound, type LOGIQ P7, is produced by GE with a supporting image capture function. It can collect and transmit US images to the image workstation in real time through a video transmission port.

The NDI Polaris Spectra optical navigator, made in Canada, is used to track the pose of the US probe and transmit the signal of the pose data collected by the NDI optical navigator to the graphics workstation as the input information of the optimization algorithm. Obtain the position of coordinate conversion bracket by NDI optical navigator, it’s \( \begin{bmatrix}277.31&-235.02&-2217.08&1\end{bmatrix}^{T} \), then substituted it into equation (4) to get the transformation matrix \( T_{M'}^{R} \).

NDI optical navigator record the postures of US probe in the two direction are

\( \begin{bmatrix} 0.5822 &{} -0.3791 &{} 0.7014 &{} 0.1651&{} 224.74 &{}\\ -206.98 &{} -2230.78 \end{bmatrix} \) and

\( \begin{bmatrix} 0.4582 &{} -0.6413 &{} 0.4758 &{} 0.3966 &{} 237.19 &{}\\ -161.36 &{} -2213.42 \end{bmatrix} \) , substitute them into equation (5) respectively to get the transformation matrixes \( T_{S}^{R(1)} \) and \( T_{S}^{R(2)} \).

The Dell Graphics Workstation is used to extract the feature of markers in US images and to run the optimization program and calibration application program.

In the master-slave control system of UR5 robot, the effector of the robot holds US probe, the master site of it is the Omage.6.

6.2 Image acquisition of markers on breast surface

Human breathing cycle is approximately \( 3 \sim 3.7 \) seconds, and the breathing cycle of patient in this experiment is \( T=3 \) seconds. In two consecutive breathing cycles, Omage.6 as the master site is used to control UR5 robot holding US probe to scan the cross-section of patient’s breast and obtain US image sequences \( I_{1} \) and \( I_{} \). The equipments, materials and processes used in the experiment are shown in Fig. 4.

Fig. 4
figure 4

Procedure of dynamic US calibration

The US image acquisition frequency is set to 30, and then 90 frames of serial images are acquired in period T. The US image of markers is shown in Fig. 5. The metal markers cause artifacts in the image, they are highlighted in the US image.

Fig. 5
figure 5

Marker ultrasound images. The picture a is the image sequence \( I_{1} \), and the picture b is the image sequence \( I_{2} \)

Fig. 6
figure 6

ORB features and fitted feature curve in the sequence images

Table 2 Pixel positions, \( P_{I} \) (pixel), of the markers
Table 3 Results of dynamic US image calibration
Table 4 Comparison with other calibration methods

6.3 Position extraction of markers

The ORB method is used to extract the features of markers in this experiment, as ORB feature is currently a very representative real-time image feature. ORB maintains the invariance of the rotation scale of the feature and has a significant increase in speed (Gupta et al., 2019). To completely extract the 4 markers from each sequence image, the number of ORB features is set to 10 in ORB algorithm. The coordinates of the highlights in the sequence image were extracted, there may be multiple very close highlights at one marker, remove them appropriately and calculate their average value. The result are shown in red and green circle marks, and the fitted feature curve are shown in Fig. 6, and their pixel positions are recorded in Table 2.

6.4 Solution of the calibration matrix

First, substitute the obtained \( P_{M} \), \( T_{M'}^{R} \), \( T_{S}^{R(1)} \), \( T_{S}^{R(2)} \), and \( P_{I} \) into (7) and (8), then according to (9), a equation set containing 4 target parameters is obtained, and a fitness function, which is introduced in PSO algorithm, is constructed with this equation set. The particle population size is set to N = 50, and the evolution parameters of particle velocity and position are set to \( \omega =0.8 \), \( c_{1}=c_{2}=0.5 \). Solve the target parameters through PSO and obtain:

\( B\Rightarrow \left\{ \begin{matrix} \theta =7.2^{\circ } \\ x=0.052 \\ y=0.044 \\ z=0.011 \end{matrix}\right. \)

Substitute the B into (2) and (3) to obtain \( T_{M'}^{M} \), then substitute \( T_{M'}^{M} \), \( T_{M'}^{R} \), \( T_{S}^{R(1)} \), and \( T_{I}^{S} \) into (1) to get the mapping from US image frame to patient’s breast frame on direction of curve 1(C1), in a similar way, to get the mapping on direction of curve 2(C2).

6.5 Quantitative analysis

The metric used to quantify the precision of a calibration method is the calibration reproducibility (CR) (Carbajal et al., 2013).

$$\begin{aligned} CR=\frac{1}{8}\sum _{i=0}^{7} \left| TP_{I,i} - P_{B,i}\right| \end{aligned}$$
(13)

Target registration error (TRE)s used to evaluate the accuracy of calibration (Pagoulatos et al., 2001).

$$\begin{aligned} TRE=\sqrt{\frac{1}{8}\sum _{i=0}^{7} \left| TP_{I,i} - P_{B,i}\right| ^{2} } \end{aligned}$$
(14)

Where \( P_{B} \) is the position of test markers in calibration phantom frame.

In the experiment, select a frame image from the image sequence as test image, calculate calibration matrix T using the remaining frame images. The markers in test image is used as the registration target for testing. Quantitative analysis of the dynamic US image calibration is as shown in Table 3.

Compared with other calibration approaches, the comparison results are shown in Table 4.

7 Conclusion

In the experiment, ORB feature extraction method can quickly obtain the accurate pixel of markers in US images and there was no need to denoise the original US image before extracting the marker position. The pixel positions of a total of eight markers could be obtained on the two curves while ensuring that US image was not distorted, which provided data for US probe calibration of the breast intervention robot. The initial parameters (\( \theta \), x, y, z) of each marker curve in the calibration can be calculated preliminarily, which provides a foundation for parameter solution of dynamic US probe calibration.

This article demonstrates the feasibility of US probe calibration for a breast intervention robot through experiments and quantity analysis. Specifically, the CR and TRE of the whole system in our proposed method are only 0.83 and 0.89mm, respectively. Those values are far less than the CR (1.97 mm) and TRE (2.06 mm) of the N-wire phantom calibration method and the CR (1.58 mm) and TRE (1.80 mm) of the multi-wedge phantom calibration method. Our proposed 4-D dynamic calibration method is significantly better than the other two image-based methods in terms of the calibration accuracy of the whole system.