Bench Press

The Crossroads of Science and Tech

Raytracing Radiotherapy

with 2 comments

image An impressive demonstration of the power of graphics cards is the use of graphics processing units (GPUs) in ray tracing. For those of you not in the know, ray tracing refers to a technique for rendering graphics by tracking how rays of light behave as they reflect from surface to surface, allowing you to create photorealistic images that have complicated reflections and shadows which traditional graphics methods fail to deliver. The flip side of this photorealism is that these techniques are incredibly taxing on computational systems, and it has been something of a “holy grail” for GPU and CPU makers to demonstrate so-called “real time” ray tracing on their systems.

Of course, while ray tracing is an impressive computational feat, most of these demonstrations only show off the aesthetic benefits of being able to implement ray tracing quickly. There are much more real-world impacts in the scientific and medical domains, such as in the field of radiotherapy.

image In a nutshell, the idea behind radiotherapy as a cancer therapy is that you use strong bursts of radiation to kill off a tumor while minimizing the side effects of radiation exposure to the surrounding tissue. This balance is extremely difficult to manage as the calculations necessary to understand the effect of applying radiation from an external source on a complex three-dimensional maze of organs and liquids like the human body are highly sophisticated. Interestingly, these calculations actually resemble a ray tracing problem, as the problem of understanding radiotherapy dosage is one of understanding how individual “beams” of radiation travel and interact with the human body.

The result is that computer models which have been used to do dosage calculations are slow (making it impractical for physicians to consider multiple regimens or use more sophisticated “adaptive”/modulated radiation therapies), error-prone from the introduction of assumptions to “gloss over” some of the more sophisticated calculations, and very expensive given the need for large clusters of computational power.

What researchers at the University of Amsterdam have demonstrated is an implementation of a ray tracing algorithm targeted at the radiotherapy dosage question using GPU maker NVIDIA’s CUDA toolkit for performing mathematical calculations using the power of a graphics processor. The researchers used the fact that the power of a GPU rests in its ability to split up complicated math problems into many simpler problems to have the GPU calculate the paths of multiple “rays” of radiation simultaneously, resulting in a performance increase over a non-GPU accelerated technique ranging from 50% faster to 6 times faster! Amazingly, because of the way the GPU does its calculations (mainly that it avoids using a look-up table the CPU-driven algorithm needs), the GPU’s results are also more accurate, despite a single GPU implementation being both faster and cheaper than traditional techniques.

The implications to medicine? To quote the paper:

“The developed GPU algorithm now enables dose calculations at a speed that will be experienced as real time for conventional forward planning based on clinically relevant datasets. this can lead to a major reduction in the workload of radiotherapy treatment planning. Moreover, the presented GPU algorithm can be used to accelerate more advanced treatment planning optimization techniques.”

Paper: M. de Greef et al, “Accelerated Ray Tracing for Radiotherapy Dose Calculations on a GPU.” Medical Physics, Vol 36, Issue 9 (link: http://dx.doi.org/10.1118/1.3190156)

Presentation: http://www.amc.nl/upload/teksten/radiotherapie/hyperthermie/RayForDose-NVIDIA.pdf

(Image credit – Ray tracing schema) (Image from presentation)

Written by ben

September 14th, 2009 at 7:00 am

Posted in technology

Tagged with , , , ,