betaFeedback

WorksComputer Science

Integrated Respiratory Sensing and Gated Control for Autonomous Needle Insertion Via CT Bore Robotic Arm

Abstract

Currently, CT-guided lung biopsy is a highly manual procedure requiring patient breath-holding, iterative manual needle insertions, and repeated CT confirmation scans to accurately target a tumor. Automating this process within the CT bore–without relying on manual needle placement or patient breath-holding–has the potential to reduce procedure time, patient discomfort, and radiation exposure. In this work, we present an integrated sensing and control system capable of performing a gated needle insertion within the CT bore. The experiments demonstrate the system's ability to track and predict patient breath cycles, perform autonomous respiratory-gated needle insertion, and detect breath cycle anomalies.

Integrated respiratory sensing and gated needle insertion system and four-step insertion sequence

Figure 1. We propose a respiratory gated needle insertion system compatible within a CT scanner bore mounted on a CT-guided needle biopsy robot arm. The insertion sequence follows four steps: approaching torso, sense breathing, initial drive, and gated drive. The full sequence is performed while the patient performs quiet breathing, eliminating the need for patient cooperation during breath holds.

Introduction

Lung Carcinoma, commonly known as lung cancer, is the leading cause of cancer-related death worldwide, accounting for 1.8 million deaths per year. Yet, biopsy for diagnosis still faces the challenge of hitting a moving target (a tumor within the lung tissue) and relies on a percutaneous CT-guided needle operated almost entirely by human hands with minimal robotic assistance [1], [2]. In clinical practice, the standard protocol for percutaneous CT-guided needle biopsy involves the clinician walking in and out of the operating room for each needle adjustment, leading to longer procedure times and increased scan radiation exposure for the patient and possibly the clinician or technician.

To address positional errors caused by the patient’s natural breathing cycle, physicians have implemented a breath-holding protocol in which the patient holds a stable lung position while the interventional radiologist inserts the needle toward the target. This protocol, while widely adopted, is often unsuccessful for those most likely to need this procedure: older patients with severe pulmonary diseases that make breath-holding difficult [1, 2, 3, 4].

Several sensing methods have been considered to address tumor tracking during breath cycles. Contact-based devices such as respiratory belts and bellows provide consistent respiratory signals by tracking changes in chest and abdominal expansion [3], [5], but they can cause patient discomfort. Optical markers attached to patients can track 3D chest motions through spatially resolved measurements, although they require external cameras and continuous marker visibility [6]. Contactless approaches such as structured light and time-of-flight cameras can also be used to measure chest surface motion without markers, though their effectiveness is influenced by factors including camera positioning, surface visibility, and the physical constraints around the CT scanner [7, 8, 9].

Current robotics solutions have made strides in assisting with tumor localization and remove the need for a breath-holding protocol. A robotic system for trans-thoracic puncture of pulmonary nodules based on gated respiratory compensation was developed by Li et al. [10]. Similarly, Wen et al. [11] used ultrasound imaging to guide needle insertion with respiratory gating. This method removes the need for patient cooperation in breath-holding protocols, but still requires a surgeon to complete the insertion or manually adjust it after the robotic system completes its measurements. Furthermore, Schreiber et al. [12, 13, 14] and Zhang et al. [15] demonstrated a robotic arm capable of approaching and driving a needle insertion mechanism within the CT bore, eliminating the need to remove the patient from the CT bore for needle insertion. While this system showed potential to reduce operation time and radiation exposure by working directly within the CT bore, it lacks a precise mechanism to compensate for chest movement caused by the patient’s natural breathing cycle, limiting its potential to safely perform biopsy procedures.

In this work, we present an integrated sensing and control system capable of gated needle insertion within the CT bore. This system was developed to integrate into a CT-guided needle biopsy robot [14], addressing current gaps in robot-assisted needle biopsy procedures. Our contributions include:

  • A model for quiet breathing;

  • An integrated sensing and controls mechanism capable of working within the CT bore;

  • Autonomous four stage linear needle insertion procedure with gated controls;

  • Anomaly detection during autonomous procedure.

Our experimental results demonstrate successful needle insertion while satisfying respiratory gating constraints derived from sensed breathing motions.

Method

Respiratory Motion Characterization

The sensing system design depends on the timing, amplitude, and direction of chest motion during breathing. Table I summarizes reference measurements from healthy individuals [16, 17, 18]. Normal breathing follows an approximately periodic but asymmetric pattern, with expiration generally lasting longer than inspiration [18]. The chest moves in three dimensions during breathing, primarily along the dorsoventral direction, and the displacement varies across anatomical locations [19].

ParameterValueObserved range
Literature reference values
Breath duration (s)4.335–
Displacement amplitude (mm)4.33–
Inhalation/exhalation ratio0.64–
Experimental measurements
Breath duration (s)4.03±0.974.03 \pm0.972.41–6.44
Displacement amplitude (mm)4.98±0.624.98 \pm0.623.94–5.72
Inhalation/exhalation ratio0.81±0.120.81 \pm0.120.51–1.08
Sensing design targets
Design amplitude range (mm)3.74–6.22–
Spatial resolution target (mm)0.37–
Maximum response time (ms)5–

Table I. Breathing characteristics and sensing design targets. Measurements show mean ±\pm SD and observed range.

Chest motion from eight volunteers was recorded to compare breathing characteristics with the reference values and obtain trajectories for testing the sensing and control system.

Nine OptiTrack markers were placed in a 3×33 \times3 grid on each volunteer’s chest, with the upper row just below the collarbones and the lower row just above the lower edge of the ribcage. Each volunteer breathed naturally during a 10-minute recording, and the dorsoventral component of the recorded chest motion was extracted. Figure 3 shows approximately periodic chest motion during normal breathing, abrupt changes during coughing and hiccups, and smaller, irregular fluctuations during talking. Table I reports the measured breath duration, displacement amplitude, and inhalation-to-exhalation duration ratio. The measured mean amplitude of 4.98 mm is comparable in magnitude to the reference sternum displacement of 4.33 mm.

Figure 3. Representative dorsoventral chest displacement trajectories recorded with OptiTrack during (a) normal breathing, (b) coughing, (c) hiccups, and (d) talking.

This system must sense and react to typical and abnormal breath cycles. We use these measurements to define the sensing design targets in Table I. The measured breathing amplitude has a mean of 4.98 mm and a standard deviation of 0.62 mm. A lower reference amplitude is defined as the mean minus two standard deviations, yielding 3.74 mm. As a design criterion, the sensor should distinguish approximately 10 spatial increments across this reference displacement, giving a target spatial resolution of 0.37 mm. For safety, signals outside the distribution must be detected quickly to prevent unintentional insertion. Examples include hiccups and sneezes, which, while rare, could occur during operation. These events are signified by rapid thoracic motion within 35 ms and 20 ms, respectively. The desired reaction time for these types of events would be 5 ms.

Mechanical Design

In order to accurately render the breathing profile displacement, a bench-top breathing mechanism was created as a simplified torso skin phantom which provides a platform to run breathing profiles both synthetic and real. A version of the needle driver platform from a CT-guided needle biopsy robot [14], which will be referred to as the CT bore robot, was created and featured the sensing and actuation to isolate the functional components being designed and assess their capabilities. Finally, a separate CT-compatible version was also created to integrate with the CT bore robot.

Bench Top Breathing Mechanism

The testbed takes in a motion profile and outputs a single-degree-of-freedom translational output to mimic the motion of the outer layer of skin around the chest.

The Breathing Mechanism is a skin phantom holder on a capstan drive which simulates the motion of breathing, shown in Figure 4(a). Each skin phantom is made with 00-20 silicone and secured over a 0.625” 60A durometer silicone rubber layer to replicate the compliance of the epidermis and dermis respectively with a 5 by 15 mm rectangular cube secured behind to model the stiffness the rib cage provides beneath the skin [20]. The phantom is mounted to a carriage on a linear rail which is driven with a CubeMars AK60-V3 motor using a capstan drive mechanism. The capstan drive can reproduce the 95th percentile breathing displacement (6.22 mm) and meet the velocity requirements for travel within the average breath duration (4.335s) seen in Table I.

Assembly of the testbed and CT bore robot mechanisms

Figure 4. Assembly (a) shows the testbed used to emulate CT bore robot motion and to run tests within a controlled system. The design features a linear rail with two carriages driven by motorized capstan drives. Attached to the breathing model drive is a replaceable skin phantom that can be punctured. The needle insertion mechanism is used to control and drive the needle motion and has a clamp-based mechanism to allow the needle to be fixed and also exchanged after use. Assemblies (b) and (c) show a zoomed view of the contact sensors for the testbed and CT bore robot respectively, each of which read through a Hall effect sensor. Assembly (d) shows the assembly on the CT bore robot. The open circles in (b) and (c) indicate the point of contact on the contact sensor.

Bench Top Needle Insertion Mechanism

The Needle Mechanism simulates the similar mechanism on the CT bore robot and the one degree of freedom (DOF) of the wristed end. This is shown in Figure 4(a). The carriage driver (1 DOF wrist) uses a capstan drive mechanism powered by a CubeMars GL60II Gimbal Motor, while the needle insertion mechanism powered by a CubeMars GL40II Gimbal Motor, providing a representation of the clutch-unclutch needle insertion mechanism on the CT bore robot.

Bench Top Sensor Mechanism

The carriage carries two sensing systems: a VL53L4CD ToF (Time of Flight) sensor and an AS5048B Hall effect sensor detailed in Figure 4(a,Figure 4b). The ToF sensor is used to detect distance while approaching to make initial contact with the phantom. It is placed on the front of the carriage with the sensor focal point angled to match with the needle tip and contact sensor. Once in contact with the surface the contact sensor is designed to measure real-time chest displacement. The contact sensor drives a spring-tensioned capstan drive to convert linear displacement to rotation, which is read by rotating a magnet in front of the hall effect sensor shown in green in Figure 4(b).

CT Integrated Needle Mechanism and Sensor Mechanism

The CT-integrated needle sensing system is a compact and optimized version of the bench-top needle mechanism. The CT-integrated contact sensor mechanism, shown in Figure 4(c), is similarly compacted for CT-integration and designed to minimize metal components for compatibility with a CT scanner. Similarly, the ToF sensor is mounted in the front and angled to measure near the needle tip and the edge of the contact sensor.

Rather than a capstan drive, the needle driver on the CT uses a “clutch-unclutch” mechanism shown in Figure 4(d). This action is achieved using a Dyneema string within a Bowden cable, which, when tensioned, tightens a collar around the needle. It can be activated when desired and left inactive when the needle needs to move freely, depending on the stage of the breathing cycle. While a direct-drive motor could presumably provide cleaner dynamics and direct motion measurements, CT imaging is negatively impacted by dense metals, which can introduce artifacts and distort the scans.

Sensors

The choice of which sensor reading to use is selected based on a contact threshold set on the contact sensor. The measurement and noise are taken individually per sensor:

xmeas={xtof,no contactxcontact,contact(1)x_{\mathrm{meas}} = \begin{cases} x_{\mathrm{tof}}, & \text{no contact} \\ x_{\mathrm{contact}}, & \text{contact} \end{cases} \tag*{(1)}
σmeas2={σtof2,no contactσcontact2,contact(2)\sigma_{\mathrm{meas}}^{2} = \begin{cases} \sigma_{\mathrm{tof}}^{2}, & \text{no contact} \\ \sigma_{\mathrm{contact}}^{2}, & \text{contact} \end{cases} \tag*{(2)}

The contact sensor is initialized at xzerox_{\mathrm{zero}} while fully extended. Contact is detected when (xcontact−xzero)≥(dthresh+k⋅σcontact)(x_{\mathrm{contact}} - x_{\mathrm{zero}}) \geq(d_{\mathrm{thresh}} + k \cdot\sigma_{\mathrm{contact}}). During no contact, the ToF sensor serves as the sole measurement source across [dthresh,1200mm][d_{\mathrm{thresh}},1200\mathrm{mm}]. Once contact is detected, the contact sensor becomes the sole measurement source. A handoff at dthreshd_{\mathrm{thresh}} is chosen over sensor fusion due to the difference in range and accuracy of the two sensors. Both sensors are sampled at their own native rate and updated asynchronously.

The measurement rate is then capped at τrate\tau_{rate} during the control loop.

Controls

Delay characterization

Respiratory-gated needle insertion requires the controller to act precisely on the target’s position rather than a delayed sensor reading of that position. Because the target is continuously in motion, any lag between measurement and action introduces positional error proportional to the target’s velocity during that lag. Therefore, a forecast horizon should be defined that the system can foresee to account for these delays, factoring all delay sources as,

τhorizon=τs+τc+τcl(ωr)+Tins,(3)\tau_{horizon} = \tau_s + \tau_c + \tau_{cl}(\omega_r) + T_{ins}, \tag*{(3)}

where τs\tau_s is the lag from the sensor to the target’s true position. This includes sensor latency but also the contact mechanical compliance. τc\tau_c is computation delay for the estimation and prediction latency. ωr\omega_r is the rate of the breathing cycle and τcl(ωr)\tau_{cl}(\omega_r) is the tracking lag of the needle-position servo, which is defined by how the lead compensated closed-loop controller is characterized. TinsT_{ins} is the flight time of the needle to its designated position.

Signal construction

The respiratory model as well as the collected data characterize the breath cycle as periodic with asymmetric inhale and exhale patterns. Real human breathing causes small shifts in the frequency of the breathing (Table I). The signal is modeled as a finite harmonic sum with a slowly-varying phase:

x(t)=a0+∑k=1KAksin⁡(kθ(t)+ϕk),θ˙(t)=ωr(t),(4)x(t) = a_0 + \sum_{k=1}^{K} A_k \sin\left(k\theta(t)+\phi_k\right), \qquad\dot{\theta}(t) = \omega_r(t), \tag*{(4)}

where a0a_0 is the amplitude, AkA_k is the harmonic amplitude, ϕk\phi_k is the harmonic phase, and KK is the harmonic order. ωr(t)\omega_r(t) drifts over time due to the breath to breath variability of a given patient. In order to construct the signal for online tracking, a calibration window must be recorded. The longer this window is, the more accurate the initial estimate may be, but due to the unrealistic nature of having a patient wait extended periods of time, a 60 second window that captures approximately 15 breath cycles is used. From this a Fast Fourier transform is taken to get an initial estimate ω^r\hat{\omega}_r [21].

An Ordinary Least Squares (OLS) regression is used to initialize the harmonic amplitudes AkA_k and phases ϕk\phi_k by converting Eq. (4) into a matrix form y=Xβ+ϵy = X\beta+ \epsilon, where the parameters are put into β=[a0,α1,β1,…,αK,βK]T\beta= [a_0,\alpha_1,\beta_1,\ldots,\alpha_K,\beta_K]^T.

Xn,1=1,Xn,2k=sin⁡(kω^rtn)(5)X_{n,1} = 1, \qquad X_{n,2k} = \sin(k\hat{\omega}_r t_n) \tag*{(5)}
Xn,2k+1=cos⁡(kω^rtn),k=1,…,K(6)X_{n,2k+1} = \cos(k\hat{\omega}_r t_n), \qquad k = 1,\ldots,K \tag*{(6)}
β^=(XTX)−1XTy=[a^0,α^1,β^1,…,α^K,β^K]T(7)\hat{\beta} = (X^T X)^{-1}X^T y = [\hat{a}_0,\hat{\alpha}_1,\hat{\beta}_1,\ldots,\hat{\alpha}_K,\hat{\beta}_K]^T \tag*{(7)}
Cov⁡=σ2(XTX)−1(8)\operatorname{Cov} = \sigma^2 (X^T X)^{-1} \tag*{(8)}

By evaluating β^\hat{\beta}, we can extract the amplitude and phase for the kk-th element as follows.

Ak=α^k2+β^k2,ϕk=atan2⁡(β^k,α^k)(9)A_k = \sqrt{\hat{\alpha}_k^2+\hat{\beta}_k^2}, \qquad\phi_k = \operatorname{atan2}(\hat{\beta}_k,\hat{\alpha}_k) \tag*{(9)}

KK is chosen to recover 95% of the total energy. Real respiratory rate and depth drift breath to breath, motivating an online, recursive estimator. For a discrete-time nonlinear system with state s\mathbf{s}, process model ff, and measurement model hh, an extended Kalman filter maintains a running estimate of the state and its covariance, alternating between predicting how that estimate evolves under ff and correcting it against the next measurement. Because hh is nonlinear, each correction linearizes it about the current estimate rather than solving one fixed linear system for every step.

s^k∣k−1=f(s^k−1∣k−1),(10)\hat{\mathbf{s}}_{k|k-1} = f(\hat{\mathbf{s}}_{k-1|k-1}), \tag*{(10)}
Pk∣k−1=FkPk−1∣k−1FkT+Q,(11)P_{k|k-1} = F_k P_{k-1|k-1} F_k^T + Q, \tag*{(11)}
νk=zk−h(s^k∣k−1),(12)\nu_k = z_k - h(\hat{\mathbf{s}}_{k|k-1}), \tag*{(12)}
Sk=HkPk∣k−1HkT+R,(13)S_k = H_k P_{k|k-1} H_k^T + R, \tag*{(13)}
Kk=Pk∣k−1HkTSk−1,(14)K_k = P_{k|k-1} H_k^T S_k^{-1}, \tag*{(14)}
s^k∣k=s^k∣k−1+Kkνk,(15)\hat{\mathbf{s}}_{k|k} = \hat{\mathbf{s}}_{k|k-1} + K_k \nu_k, \tag*{(15)}
Pk∣k=(I−KkHk)Pk∣k−1(I−KkHk)T+KkRKkT.(16)P_{k|k} = (I-K_kH_k)P_{k|k-1}(I-K_kH_k)^T + K_k R K_k^T. \tag*{(16)}

where Fk=∂f∂s∣s^k−1∣k−1F_k = \left.\frac{\partial f}{\partial\mathbf{s}}\right|_{\hat{\mathbf{s}}_{k-1|k-1}} and Hk=∂h∂s∣s^k∣k−1H_k = \left.\frac{\partial h}{\partial\mathbf{s}}\right|_{\hat{\mathbf{s}}_{k|k-1}} are the Jacobians linearizing ff and hh about the current estimate. QQ is the process-noise covariance, RR the measurement-noise covariance, PP the state-error covariance, νk\nu_k the innovation, SkS_k the innovation covariance, and KkK_k the Kalman gain. Our sensor is scalar, so HkH_k is a 1×n1 \times n row vector, RR and SkS_k are scalars, and Eq. (14) reduces to a division rather than a matrix inversion.

With harmonic order KK being fixed, the state has dimension n=2K+3n = 2K + 3, and is,

s=[a0A1ϕ1⋯AKϕKθωr]T.(17)\mathbf{s} = [a_0 \quad A_1 \quad\phi_1 \quad\cdots\quad A_K \quad\phi_K \quad\theta\quad\omega_r]^T. \tag*{(17)}

The absence of a predictive model for breath rate drift is accounted for by the process-noise covariance QQ. The state evolves over sample period TsT_s as:

θk=θk−1+ωr,k−1Ts,sk(i)=sk−1(i),i≠θ.(18)\theta_k = \theta_{k-1} + \omega_{r,k-1}T_s, \qquad s_k(i) = s_{k-1}(i), \qquad i \ne\theta. \tag*{(18)}

The scalar measurement function is the harmonic sum evaluated at the current phase estimate:

h(s)=a0+∑k=1KAksin⁡(kθ+ϕk).(19)h(\mathbf{s}) = a_0 + \sum_{k=1}^{K} A_k \sin(k\theta+\phi_k). \tag*{(19)}

The row-vector Jacobian HkH_k is analytic. Since ∂h/∂a0=1\partial h/\partial a_0 = 1 and ∂h/∂ωr=0\partial h/\partial\omega_r = 0, the remaining components are:

∂h∂Ak=sin⁡(kθ+ϕk),∂h∂ϕk=Akcos⁡(kθ+ϕk),(20)\frac{\partial h}{\partial A_k} = \sin(k\theta+\phi_k), \qquad\frac{\partial h}{\partial\phi_k} = A_k \cos(k\theta+\phi_k), \tag*{(20)}
∂h∂θ=∑k=1KkAkcos⁡(kθ+ϕk),(21)\frac{\partial h}{\partial\theta} = \sum_{k=1}^{K} kA_k \cos(k\theta+\phi_k), \tag*{(21)}

With s\mathbf{s}, FkF_k, HkH_k, QQ, RR, and PP all now defined above (Eqs. (11)–(16)), their initial values are determined from the calibration recording as follows:

  • s^0\hat{\mathbf{s}}_0 — read directly from the batch regression (a0,Ak,ϕk,ω^r)(a_0,A_k,\phi_k,\hat{\omega}_r), with θ\theta initialized at the fitted phase value at the end of the calibration window.

Four-step gated needle insertion process: approach to contact, sensing breathing, initial drive, and gated drive

Figure 5. The gated needle insertion process involves four steps: (1) The robot base and wrist bring the needle to a position suitable for insertion. (2) The contact sensor is brought within range of the torso to maintain contact and sense breathing. (3) Once the breathing motion is captured, the needle is driven into the skin. (4) The needle is allowed to passively move with the breathing motion, applying a gated insertion when the suitable breathing stage is detected.

  • P0P_0 — the a0/Ak/ϕka_0/A_k/\phi_k block follows from the regression’s coefficient covariance, Eq. (8), converted to amplitude/phase form via a first-order (delta-method) Jacobian; ωr\omega_r’s initial variance is set from the frequency search’s resolution, 2π/(NTs)2\pi/(NT_s).

  • RR — estimated from sensor variance during a still/breath-hold segment where available.

  • QQ — estimated empirically by refitting each breath in the calibration recording separately, computing the variance of each state across those per-breath fits, and rescaling from breath-timescale to sample-timescale:

Qii≈Var⁡breath-to-breath(i)⋅TsTbreath(22)Q_{ii} \approx\operatorname{Var}_{\text{breath-to-breath}}(i) \cdot\frac{T_s}{T_{\text{breath}}} \tag*{(22)}

where QQ is a diagonal matrix and a scalar multiplier qscaleq_{\text{scale}} can then be applied across this diagonal to tune the filter’s performance. TbreathT_{\text{breath}} is the duration of one breath cycle.

Two states in QQ are exceptions to Eq. (22). θ\theta has no independent per-breath estimate of its own. Because it acts as the running phase, it inherits ϕ1\phi_1’s variance directly. ωr\omega_r cannot be estimated the same way. The per-breath refits above hold ω^r\hat{\omega}_r fixed by construction, so there is no breath-to-breath spread in it to measure. Its entry instead comes from re-estimating the frequency independently over several overlapping multi-breath windows spanning the calibration recording and taking the variance across those windows. A single breath is too short a window to resolve frequency precisely enough for its scatter to be meaningful. When the calibration recording is too short to form at least two such windows, this falls back to the same resolution-based value used to seed ωr\omega_r in P0P_0.

The filter’s live estimate is advanced to the required horizon by advancing the phase state directly and re-evaluating the harmonic sum at that advanced phase:

θ→θ+ωrτhorizon,(23)\theta\to\theta+ \omega_r \tau_{\text{horizon}}, \tag*{(23)}
r(t)=x^(t+τhorizon)=a0+∑k=1KAksin⁡(k(θ+ωrτhorizon)+ϕk)(24)\begin{aligned} r(t) &= \hat{x}(t+\tau_{\text{horizon}}) \\ &= a_0 + \sum_{k=1}^{K} A_k \sin\left(k(\theta+\omega_r\tau_{\text{horizon}})+\phi_k\right) \tag*{(24)} \end{aligned}

The measurement depends on θ\theta and ϕ1\phi_1 only through their sum, θ+ϕ1\theta+\phi_1 (and likewise kθ+ϕkk\theta+\phi_k for every harmonic). If θ\theta advances at an incorrect rate due to an erroneous ωr\omega_r, the filter can absorb the resulting error by letting ϕ1\phi_1 drift to compensate, and the fitted measurement h(s)h(s) still matches the sensor closely. This failure is invisible in the residual and in the tracked signal itself; it only appears in ωr\omega_r’s own trajectory, or in the forecast, which advances θ\theta by ωrτhorizon\omega_r\tau_{\text{horizon}} alone and gets none of ϕ1\phi_1’s compensation. A filter can therefore look like it is tracking correctly while forecasting at an entirely incorrect rate, with nothing in the fit quality to indicate it.

To prevent this, ωr\omega_r is constrained after each update step to stay within a fixed fraction β\beta of the rate ω^r\hat{\omega}_r,

ωr∈[ω^r(1−β),ω^r(1+β)](25)\omega_r \in\left[\hat{\omega}_r(1-\beta),\hat{\omega}_r(1+\beta)\right] \tag*{(25)}

A fixed absolute range would not work across subjects, since resting breathing rates vary widely between patients. Bounding relative to each subject’s own estimate keeps the constraint meaningful regardless of who is being tracked.

A further diagnostic follows directly from quantities already defined above. The normalized innovation squared,

NIS⁡k=νk2Sk,(26)\operatorname{NIS}_k = \frac{\nu_k^2}{S_k}, \tag*{(26)}

compares each innovation to the variance the filter itself predicted for it (Eqs. (12)–(13)). Because the measurement is scalar, NIS⁡k\operatorname{NIS}_k is chi-squared distributed with one degree of freedom under a correctly specified filter, with expectation 1. A sustained rise above that expectation indicates the filter’s model no longer matches the observed signal, whether from mistuning or from a change in the signal.

Compensation and Needle Drive

3) Compensation and Needle Drive: When the needle is given a position-control reference, the needle actuation axis is identified as a second-order system from its velocity step response. Since position is the time-integral of velocity, the plant seen by the position-tracking loop carries an additional integrator:

G(s)=Kpωn2s(s2+2ζωns+ωn2)(27)G(s) = \frac{K_p\omega_n^2}{s\left(s^2+2\zeta\omega_n s+\omega_n^2\right)} \tag*{(27)}

Lead compensation is applied to reduce the tracking lag of this loop:

C(s)=Kcs+zs+p,p>z(28)C(s) = K_c\frac{s+z}{s+p}, \qquad p>z \tag*{(28)}

zz, pp, and KcK_c are chosen by a constrained search. Candidates are restricted to those achieving at least a target phase margin and a gain-crossover frequency held safely below the plant’s natural frequency ωn\omega_n. Among the candidates that satisfy both, the one giving the lowest residual closed-loop tracking lag τcl(ωr)\tau_{cl}(\omega_r) at the nominal breathing rate is selected, subject to a further constraint bounding how much the compensator’s high-frequency gain may amplify real position-measurement noise into spurious corrections.

Procedural State Machine

The biopsy procedure proceeds through four sequential steps following the position of the robot in the CT bore [22]: (1) torso approach and contact, (2) breathing cycle sensing, (3) initial drive and dermal puncture, and (4) gated needle drive to the target depth.

Torso Approach and Contact

  1. Torso Approach and Contact: The Time-of-Flight (ToF) sensor guides the wrist toward the torso at a set velocity. Upon contact, as detected by the contact sensor, the breathing detection informs incremental advancements until 3-4 full breaths are detected.

Breathing Cycle Sensing

  1. Breathing Cycle Sensing: The contact sensor data feeds the estimator and lead compensator. To ensure tracking stability, advancement to active insertion requires three simultaneous criteria:

  • Convergence: The EKF runs for a minimum number of breath cycles after being seeded before its estimate is trusted.

  • Consistency: The windowed mean Normalized Innovation Squared (NIS) falls within a configured band.

  • Accuracy: The forecast standard deviation at horizon τhorizon\tau_{\mathit{horizon}} drops below a preset noise budget.

Initial Drive and Dermal Puncture

  1. Initial Drive and Dermal Puncture: The needle punctures the dermal layer during the exhalation basin, stopping prior to inhalation. This mounts the needle to the tissue and prevents needle slippage during breathing motions. The exhalation basin is targeted because patients exhibit significantly higher breath-to-breath consistency at full exhale compared to full inhale.

Gated Insertion

  1. Gated Insertion: Using the predictive controller (§ 2-D), the needle drives incrementally during the exhalation basin of each breath until reaching the target depth. The exhalation basin is targeted for the same reason as in the initial drive.

Experiments and Results

Characterization

Sensor Characterization

  1. Sensor Characterization: The Time-of-Flight (ToF) sensor was calibrated for non-linear deviation at 10 stops between 0 mm to 10 mm from the phantom surface, which yielded an offset of 2.6 mm and a slope of 1.05. The contact sensor’s hall effect sensor is not affected by distance; therefore no non-linear deviation was measured during testing. The stationary noise of both sensors was measured and recorded in Table II. The ToF sensor had peak-to-peak noise up to 8 mm with a standard deviation of 2 mm, supporting its use when traversing large distances. The contact sensor had a peak-to-peak range of 0.011 mm with a standard deviation of 0.002 mm, lower than the 0.37 mm minimum requirement listed in Table I.

NamePeak-to-Peak (mm)SD (mm)
ToF Sensor82
Contact Sensor0.0110.002

Table II. Sensor Noise

Lag Compensation

  1. Lag Compensation: Through a normalized cross-correlation between a known commanded signal on the actuator and the corresponding sensor reading, the system’s latency was calculated to be approximately 300 ms. This latency accounts for any delay caused by mechanical damping, signal transmission, and signal processing delays. The contact mechanics account for a majority of this delay with the contact sensor running at 100 Hz. This latency is similarly found on the CT bore robot mechanism to be around 330 ms.

System identification

  1. System identification: System identification was performed on the needle-driving mechanism to characterize its dynamics under motor actuation. The axis was given a step velocity command from rest, and the resulting transient was fit to a standard second-order model as outlined in § 2-D.3. 10 trials were conducted in free air, yielding measured plant values Kp=0.92K_p = 0.92, ωn=27.0\omega_n = 27.0 rad/s, and ζ=0.35\zeta= 0.35. The trials were repeated while the needle was inserted into the tissue which offers more resistance to the motion. However, no significant difference in system dynamics was found, and the values above were used across all phases of the needle insertion sequence.

Approach Validation

In order to validate the transition from the Time of Flight sensor to the touch sensor during the Approach to Contact step, a breathing motion was applied to the phantom, and 10 trials were completed across five patient profiles. The final push is completed in increments that detect if the full breath cycle is measured, pushing closer if the touch sensor is fully depressed. In 10/10 trials, the needle was successfully brought from randomized distances between 30 and 40 mm away to a standoff distance of 1 mm with a tolerance of ±\pm0.3 mm with no tissue damage.

EKF Tuning

The process noise covariance matrix and velocity bounds written in (22) and (25) were calibrated by adjusting qscaleq_{\mathit{scale}} and β\beta, respectively, with 10 trials across five different patient profiles, sweeping the process noise scale between 0.3 and 1.0 and the velocity bounds between 0% and 30%. The calibrated values of 0.5 and 10% held frequency lock across all 10 calibration trials, with a mean forecast RMSE of 0.293 mm (max 0.591 mm). The tuned parameters were then verified on five different patient profiles, giving a mean forecast RMSE of 0.165 mm compared to 0.235 mm for the raw sensor reading. The EKF forecast resulted in a 29.8% reduction in error and outperformed the raw sensor input on 10/10 validation profiles.

As seen in Figure 6, the EKF forecast (red) closely tracked the ground truth waveform (green), made more significant when considering the raw sensor values (gray). The EKF forecast also showed consistent predictions across multiple breathing cycles.

Figure 6. Comparison of the EKF forecast (red) and raw sensor values (gray) overlaid with the ground truth breathing motion (green) shows that the EKF forecast successfully adjusts for lag in sensor readings and closely tracks the ground truth.

Needle Insertion

Insertion Detection Sensitivity

The needle was driven through the phantom using the needle driving motor while holding the carriage and breathing motor stationary. The torque was recorded at three different angles and two different speeds for a total of six trials. During insertion, the torque was observed to increase in proportion to the depth of insertion as the needle pushed into the phantom. After puncturing the back of the phantom, oscillating drops in torque were measured as the needle dragged and slipped through the phantom. This torque measurement has potential for informing the controls algorithm, but is currently limited by motor hardware for deployment on the CT bore robot mechanism.

Full Sequence

The full sequence was tested end to end on five trials with an initial sinusoid signal and then patient profiles driving to a total depth of 40 mm in two stages: an initial drive, followed by a series of gated insertions continuing until the full depth was reached. Both stages used the same firing gate, requiring the forecast to land within the bottom 15% of the tracked breathing excursion with a forecast standard deviation under 0.5 mm before driving, and the same model-free abort rule during a drive.

The initial drive inserted an average of 17.91 mm across five trials, ensuring that the needle punctured through the torso phantom to keep the needle seated in the tissue firmly. From there, one trial required two more gated insertions to reach the required depth while the rest took three more insertions. All five trials successfully reached the target depth while not violating the gating parameters. The average time till full insertion is 14.41s.

The needle driving mechanism was commanded to be compliant between gated insertions as to float along with the breathing motion. This was observed to be more consistent during exhalation compared to inhalation. We identified the root cause to come from an unrealistic torso phantom that deformed greatly and a needle driving mechanism that offered high resistance.

Anomaly Detection

To verify the sensing system detects unsafe deviations from normal breathing, four synthetic disturbances: an amplitude step (2.0→3.02.0 \to3.0 mm), a rate step (15→2015 \to20 bpm), both together, and a bounded rate wander (±4\pm4 bpm about 15 bpm, 8s decorrelation), were introduced into an otherwise quiet baseline waveform at a zero crossing so its position stayed continuous through the change.

The detection algorithm thresholds each run’s own NISk_k (Eq. (26)) at the 99.9th percentile of a 1-second sliding mean, learned from that run’s clean baseline. Detection triggers on the first sustained 0.2s crossing, timestamped to when the crossing began.

Latency splits into sensing lag (the disturbance reaching the tactile sensor, measured per run) and detector lag (the remainder). The three step disturbances were detected in 0.17-0.23s, matching the sensing lag alone (0.22-0.25s). The delay is calculated through cross correlating the sensor signal to the baseline to account for the mechanical settling time of the phantom skin. When the step is an immediate, large mismatch, the smoothed NIS clears the threshold as soon as it reaches the sensor, resulting in a calculation that can be smaller or larger than the previously calculated sensing lag by a few milliseconds. The rate wander was detected after 2.32s, roughly 2.1s of which is real detector lag, since a slow drift accumulates mismatch gradually rather than all at once. This is by design as rate variability of this size occurs in normal breathing, so responding slowly to a gradual drift and quickly to an abrupt one is intended. NIS peaked 28-562 times over threshold and reconstruction error grew 3.8-19.8 times across all four.

When the breathing detected deviates from the predicted values from the Extended Kalman filter during quiet breathing, the system responds safely following the cases in Table 3.

StateResponse
ApproachStop
Breath SensingStop
InsertionSlack
Breath following (passive)Do nothing (slack)
Gated InsertionSlack

Table 3. State and Abnormal Event Response

Conclusion and Future Work

In this work, we presented a respiratory-gated needle insertion system designed for integration with a CT bore robot. Our mechanism was first implemented on a testbed with a torso skin phantom to replicate chest movement during quiet breathing, and a needle insertion mechanism with four phases: Approach, Sensing, Initial Drive, and Gated Drive. Our results demonstrated successful needle insertion that satisfied respiratory gating constraints derived from sensed breathing motions.

Improvements to the testbed systems can be explored in future work, including a more realistic torso phantom that exhibits better skin deformation properties, additional modes of breath sensing, and a lighter needle insertion mechanism.

Figure 7. The torso phantom and the measured breathing signal are shown in green and gray above respectively. In (a) the background colors indicate the phase of the sequence. Gray indicates initialization. Red indicates the needle carriage approaching. Orange indicates contact incremental pushes to reach full breath detection. Green indicates full breath detection and EKF settling. Blue slices indicate motions of gated insertion. The gated insertion segment is further detailed in (b), showing insertion highlighted by blue during full exhales.

Prior to clinical deployment, we suggest performing patient-and tool-specific system identification at the start of the procedure. For subsequent work on better integration between the CT robot and the needle insertion mechanism, we plan to explore methods of respiratory-compensation subject to an RCM constraint around the insertion site, allowing for insertions at more extreme angles.

Acknowledgment

In this paper, Claude Code was utilized to implement the described process and scripts to graph or visualize data. Gemini was used for blemish removal in figures.

References

  1. [1]B. S. Chhik​​ara et al., “Global cancer statistics 2022: the trends projection analysis,” Chemical Biology Letters, vol. 10, no. 1, pp. 451–451, 2023.
  2. [2]A. Saifuddin et al., “the current status of ct-guided needle biopsy of the spine,” Skeletal Radiology, vol. 50, pp. 281–299, 2021.DOI
  3. [3]S. K. Carlson et al., “Ct fluoroscopy-guided biopsy of the lung or upper abdomen with a breath-hold monitoring and feedback system: A prospective randomized controlled clinical trial,” Radiology, vol. 237, no. 2, pp. 701–708, 2005, pMID: 16244278.pubmed.ncbi.nlm.nih.gov/16244278
  4. [4]H. Ashraf et al., “Computer tomography guided lung biopsy using interactive breath-hold control: a randomized study,” Annals of Translational Medicine, vol. 5, pp. 253–253, 07 2017.DOI
  5. [5]J. K. Locklin et al., “Respiratory biofeedback during ct-guided procedures,” Journal of Vascular and Interventional Radiology, vol. 18, no. 6, pp. 749–755, 2007.pubmed.ncbi.nlm.nih.gov/17538137
  6. [6]S. Cala et al., “Chest wall and lung volume estimation by optical reflectance motion analysis,” Journal of applied physiology, vol. 81, no. 6, pp. 2680–2689, 1996.
  7. [7]G. Elshafie et al., “Measuring changes in chest wall motion after lung resection using structured light plethysmography: a feasibility study,” Interactive cardiovascular and thoracic surgery, vol. 23, no. 4, pp. 544–547, 2016.
  8. [8]C. Schaller et al., “Time-of-flight sensor for respiratory motion gating,” Medical physics, vol. 35, no. 7Part1, pp. 3090–3093, 2008.pubmed.ncbi.nlm.nih.gov/18697533
  9. [9]J. Schaerer et al., “Multi-dimensional respiratory motion tracking from markerless optical surface imaging based on deformable mesh registration,” Physics in medicine and biology, vol. 57, no. 2, pp. 357–373, 2012.
  10. [10]D. Li et al., “A robotic system for transthoracic puncture of pulmonary nodules based on gated respiratory compensation,” Computer Methods and Programs in Biomedicine, vol. 244, p. 107995, 2024.DOI
  11. [11]T. Wen et al., “Ultrasound-guided robotic percutaneous puncture for liver tumors with respiratory gating via attention-enhanced siamese networks,” Computer Methods and Programs in Biomedicine, vol. 284, p. 109452, 2026.DOI
  12. [12]D. A. Schreiber et al., “An open-source 7-axis, robotic platform to enable dexterous procedures within ct scanners,” in 2019 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE, 2019, pp. 386–393.DOI
  13. [13]D. Schreiber et al., “Crane: a 10 degree-of-freedom, tele-surgical system for dexterous manipulation within imaging bores,” in 2022 International Conference on Robotics and Automation (ICRA). IEEE, 2022, pp. 5487–5494.arxiv.org/abs/2109.13407
  14. [14]——, “Crane: A redundant, multi-degree-of-freedom computed tomography robot for heightened needle dexterity within a medical imaging bore,” IEEE Transactions on Robotics, 2024.arxiv.org/abs/2402.02708
  15. [15]P. Zhang et al., “Dexterous control of an 11-dof redundant robot for ct-guided needle insertion with task-oriented weighted policies,” 2025.arxiv.org/abs/2503.14753
  16. [16]M. Dissanayake, “Detection of normal and periodic breathing in human breathing patterns,” Ph.D. dissertation, Georg-August-Universität Göttingen, 2026.DOI
  17. [17]A. De Groote et al., “Chest wall motion during tidal breathing,” Journal of Applied Physiology, vol. 83, no. 5, pp. 1531–1537, 1997.pubmed.ncbi.nlm.nih.gov/9375316
  18. [18]R. L. Dellaca et al., “Correlated variability in the breathing pattern and end-expiratory lung volumes in conscious humans,” PLoS One, vol. 10, no. 3, p. e0116317, 2015.DOI
  19. [19]A. Hazari et al., Conceptual biomechanics and kinesiology. Springer Nature, 2021.DOI
  20. [20]J. Vandemeulebroecke et al., “Spatiotemporal motion estimation for respiratory-correlated imaging of the lungs,” Medical Physics, vol. 38, no. 1, pp. 166–178, 2011, Léon Bérard Cancer Center & CREATIS lab, Lyon, France.
  21. [21]M. Dissanayake, “Detection of normal and periodic breathing in human breathing patterns,” 2026, bachelor’s Thesis, Georg-August-Universität Göttingen, Max Planck Institute for Dynamics and Self-Organization.DOI
  22. [22]Y. Zhang et al., “Biopsy frequency and complications among lung cancer patients in the united states,” Lung cancer management, vol. 9, no. 4, p. LMT40, 2020.DOI

Paper details

vlnc:W_ubt478b9
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Claude Code, Gemini (multiple versions)

View statement
Looking for related papers…
Contents