A Survey of Algorithms for Respiratory Motion Prediction...

9
A Survey of Algorithms for Respiratory Motion Prediction in Robotic Radiosurgery Floris Ernst, Achim Schweikard Institut f ¨ ur Robotik und Kognitive Systeme, Universit¨ at zu L ¨ ubeck Ratzeburger Allee 160, 23538 L¨ ubeck +49 (0)451 500 5201, {ernst,schweikard}@rob.uni-luebeck.de Abstract: In robotic radiosurgery, a standard six-jointed industrial robot carries a lin- ear accelerator. The accelerator can be moved such as to compensate for respiratory motion. Unfortunately, this motion cannot be compensated perfectly since the motion of the robot lags behind the motion of the target organ by – in systems currently em- ployed clinically – approximately 150 ms. This delay is compensated by prediction algorithms, i.e., the time series stemming from human respiration is forecast. We have compared the performance of seven algorithms implemented in a common prediction tool kit. They are: multi-frequency tracking with Extended Kalman Filtering (EKF), normalised and regular Least Mean Squares filters (LMS and nLMS), wavelet-based multiscale autoregression (wLMS), a recursive least squares filter (RLS), multi-step linear methods (MULIN) and prediction based on support vector regression (SVR- pred). All algorithms were tested on two signals: a simulated signal, corrupted by Gaussian noise, and a real breathing motion signal from a treatment session with the CyberKnife R at Georgetown University Hospital. The results are clear: the SVRpred algorithm outperforms the best other algorithm (wLMS for the real signal and MULIN for the simulated signal) by 15 and 9 percentage points, respectively. 1 Introduction In recent years, robots have become commonplace in many clinics and operation theatres. In this process, many problems with real-time operability had to be solved. One state of the art application of robotic machinery in medicine is image-guided radiotherapy, like the CyberKnife system (Accuray Inc., Sunnyvale, CA, USA). In this approach, a small, light-weight linear accelerator is mounted on a standard industrial robot (KUKA Roboter GmbH, Augsburg, Germany). The system is shown in Figure 1. The patient undergoing radiosurgical treatment is placed on a moveable couch to allow for approximate position- ing. The tumour – which might move with respiration or pulsation – is then located using stereoscopic X-ray imaging. Depending on the type of tumour, gold markers (so-called fiducials) may be implanted prior to the patient’s treatment. Once the tumour position is known, the system matches a CT data set acquired earlier to the current patient posi- tion. Now the tumour is irradiated from multiple (up to several dozen) positions to ensure homogeneous coverage with steep dose gradients. Since the patient is neither fixed nor sedated, the position of the tumour will change during the treatment (which may exceed one hour). This problem is dealt with by (a) periodically re-acquiring X-ray images and

Transcript of A Survey of Algorithms for Respiratory Motion Prediction...

Page 1: A Survey of Algorithms for Respiratory Motion Prediction ...subs.emis.de/LNI/Proceedings/Proceedings154/gi-proc-154-59.pdf · A Survey of Algorithms for Respiratory Motion Prediction

A Survey of Algorithms for Respiratory Motion Predictionin Robotic Radiosurgery

Floris Ernst, Achim SchweikardInstitut fur Robotik und Kognitive Systeme, Universitat zu Lubeck

Ratzeburger Allee 160, 23538 Lubeck+49 (0)451 500 5201, {ernst,schweikard}@rob.uni-luebeck.de

Abstract: In robotic radiosurgery, a standard six-jointed industrial robot carries a lin-ear accelerator. The accelerator can be moved such as to compensate for respiratorymotion. Unfortunately, this motion cannot be compensated perfectly since the motionof the robot lags behind the motion of the target organ by – in systems currently em-ployed clinically – approximately 150 ms. This delay is compensated by predictionalgorithms, i.e., the time series stemming from human respiration is forecast. We havecompared the performance of seven algorithms implemented in a common predictiontool kit. They are: multi-frequency tracking with Extended Kalman Filtering (EKF),normalised and regular Least Mean Squares filters (LMS and nLMS), wavelet-basedmultiscale autoregression (wLMS), a recursive least squares filter (RLS), multi-steplinear methods (MULIN) and prediction based on support vector regression (SVR-pred). All algorithms were tested on two signals: a simulated signal, corrupted byGaussian noise, and a real breathing motion signal from a treatment session with theCyberKnife R© at Georgetown University Hospital. The results are clear: the SVRpredalgorithm outperforms the best other algorithm (wLMS for the real signal and MULINfor the simulated signal) by 15 and 9 percentage points, respectively.

1 Introduction

In recent years, robots have become commonplace in many clinics and operation theatres.In this process, many problems with real-time operability had to be solved. One state ofthe art application of robotic machinery in medicine is image-guided radiotherapy, likethe CyberKnife system (Accuray Inc., Sunnyvale, CA, USA). In this approach, a small,light-weight linear accelerator is mounted on a standard industrial robot (KUKA RoboterGmbH, Augsburg, Germany). The system is shown in Figure 1. The patient undergoingradiosurgical treatment is placed on a moveable couch to allow for approximate position-ing. The tumour – which might move with respiration or pulsation – is then located usingstereoscopic X-ray imaging. Depending on the type of tumour, gold markers (so-calledfiducials) may be implanted prior to the patient’s treatment. Once the tumour positionis known, the system matches a CT data set acquired earlier to the current patient posi-tion. Now the tumour is irradiated from multiple (up to several dozen) positions to ensurehomogeneous coverage with steep dose gradients. Since the patient is neither fixed norsedated, the position of the tumour will change during the treatment (which may exceedone hour). This problem is dealt with by (a) periodically re-acquiring X-ray images and

Page 2: A Survey of Algorithms for Respiratory Motion Prediction ...subs.emis.de/LNI/Proceedings/Proceedings154/gi-proc-154-59.pdf · A Survey of Algorithms for Respiratory Motion Prediction

Figure 1: The CyberKnife (source: www.accuray.com)

(b) continuous tracking of the patient’s chest in the case of breath-dependent tumours. Wefocus on this case: the breath-dependency requires continuous compensation of the tu-mour position. Since this cannot be achieved using X-ray imaging, the external motion ofthe chest, ususally acquired using active optical markers, is used as a surrogate. Figure 2shows the general process. This surrogate serves as an input signal to a correlation modelto compute the tumour’s approximate position. Unfortunately, the complete system – fromposition acquisition to robot repositioning – suffers from noticeable temporal latency. Incurrent systems, this latency is approximately 120 to 150 ms, while in older machines itcan be up to 300 ms. This delay needs to be compensated by prediction of respiratorymotion. We will give an overview of the methods recently investigated in the next section.

2 Prediction Algorithms

In general, for the treatment of tumours that move with respiration, direct measurement ofthe tumour position is not feasible. The tumour position is therefore computed from anexternal surrogate signal, usually active optical markers tracked by commercially availabletracking systems (i.e., NDI Polaris or Stryker Flashpoint). These systems are capable ofdetermining the position of such markers in real time at frame rates of 30 Hz or more.The 3D time series recorded using such devices is then subjected to temporal prediction to

Page 3: A Survey of Algorithms for Respiratory Motion Prediction ...subs.emis.de/LNI/Proceedings/Proceedings154/gi-proc-154-59.pdf · A Survey of Algorithms for Respiratory Motion Prediction

Figure 2: Schematic drawing of image-guided radiosurgery

compensate for systematic latencies from signal processing and robot repositioning.

We explore two categories of such algorithms: model-based prediction, i.e. algorithmswith inherent knowledge about the underlying problem, and model-free prediction, i.e.generic prediction algorithms with no assumption about the time series’ structure.

2.1 Model-based Prediction

Model-based prediction algorithms for the prediction of respiratory motion signals areusually built on the assumption of stationarity and periodicity. A first simple approachwould try to model the breathing motion signal using a small number (i.e., 10 to 15) ofsuperpositioned sinusoidals of different frequencies and amplitudes. This model can thenbe used to compute future values of the time series.

The easiest approach would be to create a least squares fit of this superpositioning to asequence of respiratory motion. Clearly, the approach may fail with irregular breathing.

A more sophisticated approach based on Kalman filtering updates this model: Ramrath etal. [RSE+07] presented a tracking algorithm based on Extended Kalman Filtering [Kal60]to continuously track and update the frequencies and amplitudes used in the aforemen-tioned model. With this algorithm, the assumption of stationarity and periodicity has beensomewhat relaxed: we allow for changes in frequency and amplitude of the breathingpattern. That these changes actually occur is clear since respiration can be voluntarily

Page 4: A Survey of Algorithms for Respiratory Motion Prediction ...subs.emis.de/LNI/Proceedings/Proceedings154/gi-proc-154-59.pdf · A Survey of Algorithms for Respiratory Motion Prediction

controlled by the patient.

A completely different way of model-based prediction can be based on fuzzy logic. Thebasic idea is to split each respiratory cycle into different phases: large positve speed,small positive speed, no motion, small negative speed, large negative speed. Predictionis then performed using a set of fuzzy control rules. This approach has been presentedby Riesner [Rie04]. A more sophisticated method, combining fuzzy logic for reasoningwith neural networks for learning is the Adaptive Neuro-fuzzy Inference System, ANFIS[Jan93]. Prediction based on this method has been done by Kakar et al. [KNA+05].

However, all model-based prediction algorithms suffer from a common problem: the as-sumption of the signal’s properties may be false or properties assumed to be constant maychange over time. Furthermore, these algorithms are incapable of dealing with unexpectedpatient behaviour like sneezing, coughing or talking.

The following algorithms have been implemented for evaluation:

• Multi-frequency based EKF tracking (see [RSE+07])

2.2 Model-free Prediction

More promising than the aforementioned model-based prediction methods are algorithmswith no need for knowledge about the respiratory motion signal. These algorithms againcan be categorised:

There are several methods based on regression, like wavelet-based multiscale autoregres-sion (wLMS) [ESS07], the Recursive Least Squares (RLS) algorithm [ES08b] or simpleLeast Mean Squares (LMS) and normalised LMS (nLMS) algorithms [Hay02]). Thesealgorithms all have in common that they try to compute the predicted value as a linearcombination of past values (the signal history). The difference is the way of selecting theproper weights for this linear combination and, possibly, pre-processing of the time seriesdata.

Another possibility we investigated [ES09] is based on support vector regression wherethe predicted value is computed from formerly learnt correspondences of past and futuremeasurements (SVRpred). Other approaches using neural networks are given by Murphyet al. [MD06] and Sahih et al. [SHG+06].

Another possibility to predict respiratory motion is based on an expansion of the differencebetween the original signal and the delayed signal, the multi-step linear methods (MULIN)[ES08a].

The following algorithms have been implemented for evaluation:

• LMS and nLMS2 (see [Hay02, ESS07])

• wLMS (see [ESS07])

• MULIN (see [ES08a])

Page 5: A Survey of Algorithms for Respiratory Motion Prediction ...subs.emis.de/LNI/Proceedings/Proceedings154/gi-proc-154-59.pdf · A Survey of Algorithms for Respiratory Motion Prediction

Figure 3: The graphical prediction tool kit

• RLS (see [ES08b])

• SVRpred (see [ES09])

3 Evaluation

To test the prediction algorithms mentioned before, we have developed a prediction toolkit[RE08]. This toolkit includes a graphical user interface to easily manipulate the algo-rithms’ parameters, a command line interface for batch evaluation, simple optimisationmethods to determine optimal parameters as well as plotting tools with the option of ex-porting data to MATLAB (The Mathworks Inc., Natick, MA, USA). Additionally, thetoolkit allows for easy incorporation of new algorithms by means of an open-source plu-gin system. The toolkit is available for download from our web site. The user interface isshown in Figure 3.

Evaluation was done using two types of signals: a signal simulating respiratory motioncorrupted by additive Gaussian noise (see Equation 1, and a real respiratory motion sig-nal from a CyberKnife R© treatment at Georgetown University Hospital. Parts of the twosignals are shown in Figure 4.

y = 2 sin(0.25π · t)4 + w, t = (0, 0.01, . . . , 100)T (1)

Here, w is Gaussian noise with zero mean and a standard deviation of σ = 0.025. Thesignal is sampled at 100 Hz, i.e., the prediction horizon of 150 ms corresponds to 15samples. The real signal is equidistantly sampled at a rate of approximately 26 Hz and hasa length of 7,500 samples (just under five minutes). The required prediction horizon thuscorresponds to four samples. Note that in reality, treatment times are much longer, usuallyaround one hour [ABED06].

To compare the theoretical performance of the implemented algorithms (see subsection 2.1and subsection 2.2), their parameters were selected using a grid search to get the best

Page 6: A Survey of Algorithms for Respiratory Motion Prediction ...subs.emis.de/LNI/Proceedings/Proceedings154/gi-proc-154-59.pdf · A Survey of Algorithms for Respiratory Motion Prediction

54 55 56 57 58 59 60 61 62 63

0

0.5

1

1.5

2

time [s]

po

sitio

n [

mm

]

108 109 110 111 112 113 114 115 116

6.5

7

7.5

8

8.5

time [s]

po

sitio

n [

mm

]

Figure 4: Simulated (left) and real (right) breathing motion signals

possible performance. It must be noted that this parameter selection method will not bepossible in reality since we used the complete signal for the optimisation. To compare theoptimal results to realistic results, we also performed parameter optimisation on the first2,000 samples only and used the so-determined parameters for the complete signal. Thequality of the prediction algorithms is measured using the relative RMS error:

Definition 1 Let yi, i = 1, . . . , N , be an equidistantly sampled signal. The quantity

RMSrel (y, y, δ) =||y − y||

||y −D(y, δ)||(2)

is called the relative RMS error of y with respect to y delayed by δ samples.

Here, y is the input signal, y the predicted signal and D(y, δ) is the signal y delayed by δsamples.

We introduce a second value characterising the quality of the predicted signal, the jitter:

Definition 2 Let yi, i = 1, . . . , N , be an equidistantly sampled signal. The quantity

J(y) =1

∆t(N − 2)

N−1∑i=1

‖yi − yi+1‖ (3)

will be called the jitter of y. Here, ∆t is the temporal spacing between two samplesof the signal and N is its length.

The jitter is the average distance a robot following a signal would have to move per second,i.e., it is a measure of the “noisyness” of a signal. We can now also define the relative jitter:

Jrel (y) =J (y)J (y)

(4)

Page 7: A Survey of Algorithms for Respiratory Motion Prediction ...subs.emis.de/LNI/Proceedings/Proceedings154/gi-proc-154-59.pdf · A Survey of Algorithms for Respiratory Motion Prediction

algorithm RMS RMSrel J Jrel parameters

EKF 0.196 0.75 1.66 1.17 εm = 0.002222, εs = 0.2222, N = 9,constant trend and no bracketing

LMS 0.248 0.95 1.55 1.09 M = 64, µ = 1.379 · 10−5

nLMS2 0.248 0.95 1.55 1.09 M = 64, µ = 0.0564

RLS 0.158 0.60 2.78 1.96 λ = 1.0016, δ = 0.2424, µ = 0.1304,M = 2

wLMS 0.165 0.63 2.71 1.91 LOD = 8,M = 2, µ = 0.8128

MULIN 0.169 0.64 2.64 1.86 l = 2, µ = 0.5168, δ = 1

SVRpred 0.129 0.49 1.84 1.30 C = 30, σ = 2, ε = 0.0355,M = 5,p = 0.3, linear stepping, RBF kernel

Table 1: Prediction results (real signal)

The results are given in Table 1 for the real signal and in Table 2 for the simulated signal.

4 Discussion and Conclusion

It has become clear that the only model-based prediction method evaluated, the multi-frequency based Extended Kalman Filter, does not perform as well as most model-freealgorithms. With the exception of the LMS and the nLMS2 algorithms, all model-freealgorithms produce very good prediction results, both on the real and on the simulatedsignals. One thing is clear, however: the SVRpred algorithm clearly outperforms all otheralgorithms on both signal types.

On the other hand, it is clear that the jitter of the signal created by the SVRpred algorithmis not optimal: in both cases, the EKF algorithm produces a smoother signal (by 13 and30 percentage points, respectively) and also the nLMS2 and LMS (on the real signal) andthe MULIN and RLS algorithms (on the simulated signal) result in smoother prediction.We must therefore conclude that optimal prediction performance and smallest jitter do notnecessarily coincide.

In the future, we are going to implement more of the model-based prediction algorithmsfrom subsection 2.1 to also evaluate them. Furthermore, the evaluation will be done on alarger database of real breathing motion signals which have been collected at GeorgetownUniversity Hospital during actual CyberKnife R© treatment sessions.

When looking at clinical practice, it becomes clear that it is possible that no single pre-diction algorithm will provide optimal results for all patients. Depending on the health ofthe patient, his level of anxiety or stress and other factors, very different breathing patternshave been observed. It is conceivable that to achieve optimal results, an intelligent ap-proach selecting the best algorithm for the currently treated patient might be required. We

Page 8: A Survey of Algorithms for Respiratory Motion Prediction ...subs.emis.de/LNI/Proceedings/Proceedings154/gi-proc-154-59.pdf · A Survey of Algorithms for Respiratory Motion Prediction

algorithm RMS RMSrel J Jrel parameters

EKF 0.076 0.41 1.41 0.46 εm = 0.1052, εs = 0.03158, N = 1,no constant trend and no bracketing

LMS 0.102 0.54 3.08 1.01 M = 43, µ = 5.627 · 10−4

nLMS2 0.086 0.46 2.51 0.82 M = 58, µ = 0.0462

RLS 0.050 0.26 2.03 0.66 λ = 1.0016, δ = 0.6408, µ = 0.2368,M = 38

wLMS 0.117 0.62 3.56 1.16 LOD = 8,M = 3, µ = 0.1416

MULIN 0.050 0.27 2.14 0.70 l = 1, µ = 0.2280, δ = 21

SVRpred 0.034 0.18 2.32 0.76 C = 30, σ = 2, ε = 0.025,M = 39,p = 0.3, linear stepping, RBF kernel

Table 2: Prediction results (simulated signal)

endeavour to look into this question in the future. Another point raised from the clinicalperspective is the small difference in (absolute) RMS of the algorithms. Is an improvementof 0.05 mm RMS really clinically significant? Since the RMS error is only a quadratic av-erage of the error and the errors tend to be very small or nearly zero on the flanks of therespiratory signal, see Figure 3, right, the improvement might seem small in RMS yet aconsiderable reduction of systematic errors at maximal inspiration and expiration can beseen (see Figure 3). This needs to be investigated more in the future. Additionally, theinfluence of signal jitter on the positioning accuracy of the robotic arm is, as of today, stillunknown.

Resources

Both the graphical prediction toolkit and the breathing signals used are available on ourwebsite at http://www.rob.uni-luebeck.de/node/117.

References

[ABED06] David W. Andrews, Greg Bednarz, James J. Evans, and Beverly Downes. A review of3 current radiosurgery systems. Surgical Neurology, 66(6):559–564, December 2006.

[CUR08] CURAC. Jahrestagung der Deutschen Gesellschaft fur Computer- und Roboteras-sistierte Chirurgie, volume 7, Leipzig, Germany, September 24-26 2008.

[ES08a] Floris Ernst and Achim Schweikard. Predicting Respiratory Motion Signals for Image-Guided Radiotherapy using Multi-step Linear Methods (MULIN). International Jour-nal of Computer Assisted Radiology and Surgery, 3(1–2):85–90, June 2008.

Page 9: A Survey of Algorithms for Respiratory Motion Prediction ...subs.emis.de/LNI/Proceedings/Proceedings154/gi-proc-154-59.pdf · A Survey of Algorithms for Respiratory Motion Prediction

[ES08b] Floris Ernst and Achim Schweikard. Prediction of respiratory motion using a modifiedRecursive Least Squares algorithm. In 7. Jahrestagung der Deutschen Gesellschaft furComputer- und Roboterassistierte Chirurgie [CUR08], pages 157–160.

[ES09] Floris Ernst and Achim Schweikard. Forecasting Respiratory Motion with Accurate On-line Support Vector Regression (SVRpred). International Journal of Computer AssistedRadiology and Surgery, in press, 2009.

[ESS07] Floris Ernst, Alexander Schlaefer, and Achim Schweikard. Prediction of RespiratoryMotion with Wavelet-based Multiscale Autoregression. In N. Ayache, S. Ourselin, andA. Maeder, editors, MICCAI 2007, Part II, volume 4792 of Lecture Notes in ComputerScience, pages 668–675, Brisbane, Australia, November 2007. MICCAI, Springer.

[Hay02] Simon Haykin. Adaptive Filter Theory. Prentice Hall, Englewood Cliffs, NJ, 4th edi-tion, 2002.

[Jan93] Jyh-Shing Roger Jang. ANFIS: adaptive-network-based fuzzy inference system. IEEETransactions on Systems, Man and Cybernetics, 23(3):665–685, 1993.

[Kal60] Rudolf E. Kalman. A New Approach to Linear Filtering and Prediction Problems.Transactions of the ASME Journal of Basic Engineering, 82D:35–45, 1960.

[KNA+05] Manish Kakar, Hakan Nystrom, Lasse Rye Aarup, Trine Jakobi Nøttrup, and Dag RuneOlsen. Respiratory motion prediction by using the adaptive neuro fuzzy inference sys-tem (ANFIS). Physics in Medicine and Biology, 50:4721–4728, 2005.

[MD06] Martin J. Murphy and Sonja Dieterich. Comparative performance of linear and non-linear neural networks to predict irregular breathing. Physics in Medicine and Biology,51(22):5903–5914, 2006.

[RE08] Norman Rzezovski and Floris Ernst. Graphical Tool for the Prediction of RespiratoryMotion Signals. In 7. Jahrestagung der Deutschen Gesellschaft fur Computer- undRoboterassistierte Chirurgie [CUR08], pages 179–180.

[Rie04] Stefan Riesner. Korrelations- und Pradiktionsverfahren zur Lageverfolgung in derperkutanen Radioonkologie. PhD thesis, Technische Universitat Munchen, 2004.

[RSE+07] Lukas Ramrath, Alexander Schlaefer, Floris Ernst, Sonja Dieterich, and AchimSchweikard. Prediction of respiratory motion with a multi-frequency based ExtendedKalman Filter. In Proceedings of the 21st International Conference and Exhibition onComputer Assisted Radiology and Surgery (CARS’07), volume 2, supp. 1 of Interna-tional Journal of CARS, pages 56–58, Berlin, Germany, June 2007. CARS.

[SHG+06] A. Sahih, O. C. L. Haas, G. H. Goodband, D. Putra, J. A. Mills, and K. J. Burnham.Respiratory motion prediction for adaptive radiotherapy. In IAR – ACD 2006, Nancy,France, November 2006. German-French Institute for Automation and Robotics.