Abstract
Nowadays, Virtual Colonoscopy (VC) is an important non-invasive alternative for the study of the colon. Substantial research efforts have been dedicated to this method, and one of the major challenges has always been producing accurate results in a short period of time. One of the most crucial phases of VC is the detection of polyp candidates, where possible lesions on the colon walls are automatically detected. Frequently, this stage requires intensive computations and therefore it is important to develop new techniques for reducing its execution time. This paper presents a technique for automatic detection of polyp candidates based on curvature analysis that reduces the execution time using parallel programming in CUDA. Additionally, we introduce a novel technique for discarding false positive detections based on the shape of a candidate in a planar cut. The obtained results show a remarkable reduction in execution time with respect to a CPU implementation as well as a low rate of false positives.
Virtual Colonoscopy; Polyp Detection; Curvature Analysis; CUDA
Resumen
Actualmente, la Colonoscopia Virtual (CV) es una importante alternativa no-invasiva para el estudio del colon. A este método se le han dedicado sustanciales esfuerzos de investigación, y uno de los mayores restos siempre ha sido el de producir resultados precisos en un periodo corto de tiempo. Una de las fases más cruciales de la CV es la detección de candidatos a pólipos, donde se detectan automáticamente posibles lesiones en las paredes del colon. Frecuentemente, esta etapa requiere cálculos intensivos y por lo tanto es importante desarrollar nuevas técnicas para reducir su tiempo de ejecución. Este trabajo presenta una técnica para la detección automática de candidatos a pólipo basada en análisis de curvatura que reduce su tiempo de ejecución usando programación paralela en CUDA. Adicionalmente, se introduce una técnica novedosa para descartar falsos positivos basada en la forma de un candidato en un corte planar. Los resultados obtenidos muestran una reducción notable del tiempo de ejecución con respecto a una implementación para CPU, así como también una baja tasa de falsos positivos.
Colonoscopia Virtual; Detección de Pólipos; Análisis de Curvatura; CUDA
colorectal cancer. Nowadays, hundreds of persons in Venezuela (1) and millions worldwide (2) die of colon cancer. This type of cancer is related to the abnormal growth of tissue at the mucous that covers the colon wall, called a colorectal polyp. The most common type of polyp is a metaplastic polyp, in which cells change from one normal type to another. They have almost no risk of becoming malignant. Adenomatous polyps can become malignant. If these polyps are not detected and extracted on an early stage they can degenerate and transform into cancer. An optical colonoscopy is the gold standard examination for searching polyps in a patients colon. However, this procedure is very invasive and uncomfortable for the patient. Virtual Colonoscopy is an excellent non-invasive alternative for colon polyp detection. In Virtual Colonoscopy, images from the patients colon are captured with a Computer Tomography (CT) Colonography and these images are then processed and virtually browsed in a computer, searching for polyp candidates. Typically, VC medical workstations provide an automatic virtual flythrough inside the colon, which the doctor can stop at any moment and move the virtual colonoscope freely inside the colon. This searching procedure has been proved effective but it is well known that it can consume a considerable amount of time to examine the complete extent of the colon. Therefore, automatic polyp detection has been suggested as a method for rapidly pointing out relevant areas of the colon to the medical doctor. Several polyp detection methods have been proposed in the literature. Among others we can mention methods based on curvature analysis (3)(4)(5), curvature lines (6)(4), surface adjustment (7), heat diffusion fields (8) and water-planes (9). All these techniques require a lot of computations, producing long response times. In this work, we present the parallelization of the algorithm for automatic polyp detection method based on curvature analysis proposed by Yoshida and Nappi (3). In this method, a shape index is computed for each voxel on the colon wall, which requires the approximation of first and second order partial derivatives, where intensive computations are needed. These derivatives are implemented in a parallel algorithm using CUDA (10), taking advantage of current NVidias Graphics Processing Units (GPUs). Since curvature analysis can generate numerous false positives, in this work we also propose a strategy for discarding false positives by studying the shape of the polyp candidate in a longitudinal cut. Several tests were performed on CT Colonography scans showing an excellent response time reduction, as well as an effective decrease of false positives. The following section describes previous works on automatic polyp detection and the parallelization of VC algorithms with CUDA, and then we describe our new variation of Yoshida and Nappis method (3) and its CUDA implementation on Section 3. Following this, we describe tests and results of our method over six CT Colonography datasets in Section 4. Finally, conclusions and future work are described in Section 5. 2 Previous Works There are several methods for polyp detection on volumetric data. These methods usually implement two phases. The first phase detects polyp candidates, where structures that might be polyps are detected. On the second phase false positives are discarded. In order to detect polyp candidates, Yoshida and Nappi (3) proposed in 2001 a method based on curvatures that extracts a thick region of the colon wall to eliminate the largest possible amount of false positives. This method extracts 3D geometric attributes of the polyps using a shape index and a curvature index, grouping polyp candidates and then determining other attributes that might help reducing false positives. That same year, Gokturk and Tomasi (11) used a Support Vector Machine (SVM) to eliminate false positives. They used orthogonal planes in the polyp candidate, and extract geometric features that feed the SVM in the training. They also consider voxel intensity to feed up the classifier. In 2004, Paik et al. (12) introduced an algorithm called Surface Normal Overlap (SNO), which is used for colonic polyp detection as well as for lung nodule detection in CT images. Their approach computes for each voxel a score proportional to the number of surface normals that pass through or near it. They noticed that polyp voxels tend to have a higher score than other voxels, due to the presence of convex regions in the surface of polyps. In 2005, Kitasaka et al. (7) proposed a polyp detection method computing the curvature by means of surface fitting. At each voxel of the colon wall, a second degree polynomial f(x,y,z) is fitted to the voxels neighborhood, using minimum squares. Changing the size of the neighborhood allows the detection of polyps with different sizes. The authors report they found less false positives than applying the curvature based method. That same year, Bitter et al. (9) proposed the water-plane method. This method works over a triangulated surface mesh of the colon, extracted from the CT data. The method simulates that the colon wall is being filled up with water from a vertex on the mesh, from the outside of the colon, until the water starts to spill out. The idea is finding the set of vertexes that form an almost convex volume. According to their tests, good candidates contain at least 20 vertexes. In 2006 Zhao et al. (6) introduced a technique for characterizing and visualizing curvature lines on the colon surface in order to detect polyps. The basic idea is to show the colon surface using a local illumination model, and enhance it by displaying the curvature of these surfaces. This method works on the surface mesh of a colon extracted with the marching cubes technique (13), and with implicit iso-surfaces. The main advantage of this technique is that it allows enhancing virtual colonoscopy images by adding the curvature lines which allows the radiologist to easily characterize polyps. However, this method has not been adapted to automatic polyp detection. Later in 2007, Konukoglu et al. (8) proposed to use Heat Diffusion Fields (HDFs) for polyp detection. The main idea is using the heat diffusion process to generate a vector field which is correlated with the shape of the colon wall. They found that the heat diffusion process generates a diffusion pattern singularity near the centers of protruding structures, like polyps. They suppose an improvement of Yoshida's method, but a direct comparison between both methods is not included. The main drawback of this method is its high computational requirements. In 2008, Huang et al. (5) researched on the use of the Pareto front for evaluating and enhancing region growing algorithms based on curvature, commonly used for detecting polyp candidates. They evaluated and proposed an improvement of Yoshida and Nappis work (3) and also reported a reduction of 92% in the number of false positives in comparison with the method of Paik et al. (12). The works previously described show that it is possible to detect polyps using the explicit representation (surface or mesh), or an implicit representation (a set of grayscale values) of the colon wall. Van Ravesteijn et al. (4) presented in 2009 a pattern for recognizing polyps, which combines the two types of representations and reveals that they are somehow complementary. Each of these approaches characterizes different aspects of the candidates, which are detected by means of the deformation of an explicit representation of the colon surface, or by the modification of the intensity data that contains an implicit representation. Qui et al. (14) implemented an algorithm of dissection and flattening of the colon (Virtual Colon Flattening) using CUDA. In our case, we use CUDA for accelerating the computation of the first and second derivatives, which are needed for computing the curvatures on each voxel of the colon walls. Our work is based on the parallelization of the curvature analysis, whose sequential version is presented in Yoshida and Nappi (3). The technique is complemented with a heuristic for reducing false positives. 3 Method In this work we parallelized the work of (3) to determine polyp candidates. Initially, the patients colon is segmented using a region-growing algorithm. After this, the voxels on the surface of the colon wall are obtained. These voxels are classified according to their curvature, and grouped together to generate an initial list of polyp candidates. This list is then refined, removing false positives by studying the shape of the polyp candidate on a longitudinal cut. The elements remaining in the list correspond to the polyp candidates detected by the method. In the following, we describe in detail each of the phases of the method. 3.1 Volume Segmentation In order to segment the volume, an intensity-based region-growing algorithm was used. The algorithm starts growing from a seed voxel inside the colon lumen with an intensity corresponding to air, and then it starts growing through the neighboring air voxels. The growing process stops when it hits the voxels of the colon wall. This process is described in more detail in (15). Once the air voxels are grouped, the resulting subvolume is dilated until the voxels of the colon walls are obtained. 3.2 Voxel Classification The voxels on the colon wall are classified according to their Shape Index (SI) as proposed by Yoshida and Nappi (3). In their work, they proposed that voxels with a SI close to 1.0 could be part of a polyp, since this value is associated with the shape of a cap and this shape is similar to the shape of a polyp, see Figure 1.
1(p) and k2(p) are the main curvatures at position p. The main curvatures are the curvatures of maximum and minimum value, and to compute them we use the formula proponed by Monga and Benayoun (16):

![]()

![]()

![]()

![]()

, 
, and 
, being f the function that represents the volume. In order to obtain the approximate value of the first and second degree partial derivatives at a specific point, we need to perform a convolution in that point with an appropriate convolution kernel. That kernel is built based on the method proposed by Möller et al. (17), which can be summarized in 3 steps: Build the 1D interpolation filters, discretize the filters to some number of samples, and build the 3D filters. 3.2.1 Build 1D interpolation filters Möller et al. (17) describe how to design interpolation filters and derivatives with a minimum numerical error. In order to do this, they use Taylor expansions for the sums of convolutions. They also established that in order to build a 1D interpolation filter, first we have to define what derivative we want to reconstruct, what precision we need in the reconstruction process, and what kind of continuity Cn we need for the reconstructed function. In our case, we need the following filters: a derivative of degree 0 (also known as an interpolation filter), a derivative of degree 1, and a derivative of degree 2. Regarding the precision, we tolerate and error of order 3 and a continuity of C2. An equation system is obtained from the Taylor expansion series and the restrictions given by the degree of the derivative, the degree of the error, and the desired continuity. Solving this equation system produces the formula for filter w(τ), in several pieces wk(τ). With and error of degree 3 and continuity C2, the interpolation filter is defined by 4 pieces, the derivative of degree 1 is defined by 6 pieces, and the filter for derivative 2 by 8 pieces. Figure 2 shows two of the obtained filters. We used the 1D interpolation filter and the 1D derivative of degree 1 from Möller et al. (17). Using a similar procedure, we obtained the 1D filter for the derivative of degree 2.
x, wy and wz are the 1D kernels of the derivatives that we want to obtain in the x, y and z, respectively. For example, to build the kernel that approximates the value ∂2f/∂x2, wx would have the values obtained for the 1D kernel of the second degree derivative, while wy and wz would have the values obtained by the 1D interpolation kernel (derivative of degree 0). In order to approximate all the required partial derivatives, 9 convolution kernels are built, 3 for the first degree partial derivatives: ∂f/∂x, ∂f/∂y, ∂f/∂z; and other 6 for the second order partial derivatives: ∂2f/∂x2, ∂2f/∂y2, ∂f2/∂z2, ∂2f/(∂x∂y), ∂2f/(∂x∂z), ∂2f/(∂y∂z). Once the convolution kernels are obtained, the values of the first and second order partial derivatives in the points on the surface of the colon wall are approximated. Let C be an array storing that set of points, and assuming that the central position of a filter W is point (0,0,0), the value of the convolution in the point p in C is given by the formula:

is the value of the partial derivative in p approximated by the convolution kernel W. Those p+q values out of the volume are clamped to the volume border. This is done in order to avoid any abrupt cut, because this could produce incorrect polyp detections. Computing the convolution for all points p in C is a process that requires intensive computing. For this reason, this part of the method is implemented using parallel programming in CUDA, whereby multiple threads can be executed in multiple CUDA processing cores. The general idea is to have multiple threads execute the same instructions for different data. If the execution time of threads was unlimited, each thread could compute different convolutions of a p in C. However, there are restrictions on the executing time of threads, so the computation assigned to each thread is just a term on the sum of the convolution for a p in C. On each thread activation, a term is computed, and the partial sum with that term is updated. In order to avoid consistency problems, the threads must be synchronized before computing each term of the sum. This process is repeated until all the terms of the convolution are computed. In order to reduce the amount of synchronizations, each thread computes one term of each of the 9 convolutions which must be done for each point. This way, each thread activation performs 9 computations of the form:

Figure 4). Each CUDA thread receives a position p in C and a translation q in the convolution filters. A thread computes the convolution term f[p+q].W[q] for 9 filters W, so it performs 9 multiplications. On every execution of a thread, it accumulates that term in its accumulator (acum), which is equivalent to performing 9 sums. When all the threads that compute a term of the convolution end their execution, the execution of the threads that will compute the next term starts. When all terms have been computed and accumulated on the threads, another group of positions p in C is processed, until all the entries in C have been processed.
Figure 9: Polyp candidate examples obtained from datasets 1, 2, 3 and 4
Table 3. In the first PC, we achieved a reduction between 60% and 74.67% in execution time, meaning our proposed algorithm is between 2.5 and 3.94 times faster than the CPU version. In the second PC we achieved a reduction in execution time of between 94.73% and 98.14%, meaning our proposed algorithm is between 19 and 53 times faster. It is worth mentioning that the CUDA thread hierarchy groups the threads in blocks, where each block has a shared memory space of fast access for the threads belonging to the same block, therefore allowing the collaboration between such threads for increasing the response time. Given that CUDA allows the developer to decide the number of threads per block, we performed several tests changing the number of threads per block. However, no significant change in the response times was observed, with respect to the times reported in Table 3.Table 2: Characteristics of test computers
Acknowledgementshttp://www.3dnetsuite.com/).
References
References
-
(1) Anuario de Mortalidad 2008. Ministerio del Poder Popular para la Salud. República Bolivariana de Venezuela. May 2010. http://www.bvs.org.ve/anuario/anuario_2008.pdf.
» http://www.bvs.org.ve/anuario/anuario_2008.pdf -
(2) Cancer, Fact Sheet No. 297, Media Centre, World Health Organization, Feb. 2012. http://www.who.int/mediacentre/factsheets/fs297/en/
» http://www.who.int/mediacentre/factsheets/fs297/en/ - (3) H. Yoshida and J. Nappi, Three-dimensional computer-aided diagnosis scheme for detection of colonic polyps, IEEE Transactions on Medical Imaging, vol. 20, no. 12, pp. 12611274. Dec. 2001.
- (4) V.F. van Ravesteijn, L. Zhao, C.P. Botha, F.H. Post, F.M. Vos and L.J. van Vliet. Combining Mesh, Volume, and Streamline Representations for Polyp Detection in CT Colonography, in Proceedings of the 6th IEEE International Symposium on Biomedical Imaging: From Nano to Macro, pp. 907-910. Jul. 2009.
- (5) A. Huang, J. Li, R. Summers, N. Petrick and A.K. Hara, Improving polyp detection algorithms for CT Colonography: Pareto front approach, Pattern Recognition Letters, vol. 31, no. 11, pp. 14611469. Aug. 2010.
- (6) L. Zhao, C. Botha, J. Bescos, R. Truyen, F. Vos and F. Post, Lines of curvature for polyp detection in virtual colonoscopy, IEEE Transactions on Visualization and Computer Graphics, vol. 12, no. 5, pp. 885892. Sep. 2006.
- (7) T. Kitasaka, Y. Hayashi, T. Kimura, K. Mori, Y. Suenagac and J. Toriwaki, Detection of colonic polyps from 3D abdominal CT images by surface fitting, in CARS 2005: Computer Assisted Radiology and Surgery, vol. 1281, pp. 11511156. May 2005.
- (8) E. Konukoglu and B. Acar, HDF: Heat diffusion fields for polyp detection in CT Colonography, Signal Processing, vol. 87, no. 10, pp. 24072416. Oct. 2007.
- (9) I. Bitter, B. Aslam, A. Huang and R. Summers, Candidate determination for computer aided detection of colon polyps, in Medical Imaging 2005: Physiology, Function, and Structure from Medical Images. A. Amini and A. Manduca (Eds.), pp. 804809. Apr. 2005.
-
(10) CUDA Home. NVIDIA Corporation. 2011. http://www.nvidia.com/object/cuda_home_new.html
» http://www.nvidia.com/object/cuda_home_new.html - (11) S. Gokturk and C. Tomasi, A New 3-D Pattern Recognition Technique with Application to Computer Aided Colonoscopy, in Proceedings of the 2001 IEEE Computer Science Conference on Computer Vision and Pattern Recognition (CVPR), vol. 1, pp. 93-100. Dec. 2001.
- (12) D. Paik, C. Beaulieu, G. Rubin, B. Acar, R. Jeffrey Jr., J. Yee, J. Dey and S. Napel. Surface normal overlap: a Computer-Aided Detection Algorithm with application to Colonic Polyps and Lung Nodules in Helical CT, IEEE Transactions On Medical Imaging, vol. 23, no. 6, pp. 661675. Jun. 2004.
- (13) W. Lorensen and H. Cline, Marching Cubes: A high resolution 3D surface construction algorithm, ACM SIGGRAPH Computer Graphics, vol. 21, no. 4, pp. 163169. Jul. 1987.
- (14) F. Qiu, Z. Fan, X. Yin, A. Kaufman and X.D. Gu, Colon flattening with Discrete Ricci Flow, in Proceedings of the MICCAI 2008 Workshop: Computational and Visualization Challenges in the New Era of Virtual Colonoscopy, pp. 97102. Sep. 2008.
- (15) E. Coto and S. Grimm, Improved data processing for virtual colonoscopy, in Proceedings of the IV Iberoamerican Symposium in Computer Graphics (SIACG 2009), O. Rodriguez et al. (Eds.), pp. 171179. Jun. 2009.
- (16) O. Monga and S. Benayoun, Using partial derivatives of 3D images to extract typical surface features, in Proceedings of the Third Annual Conference of AI, Simulation and Planning in High Autonomy Systems: Integrating Perception, Planning and Action, pp. 225-236. Jul. 1992.
- (17) T. Möller, K. Mueller, Y. Kurzion, R. Machiraju and R. Yagel, Design of accurate and smooth filters for function and derivative reconstruction, in Proceedings of the IEEE Symposium on Volume Visualization 1998, pp. 143151. Oct. 1998.
-
(18) VolVis.org. http://www.volvis.org.
» http://www.volvis.org - (19) M. Wan, F. Dachille, K. Kreeger, S. Lakare, M. Sato, A. Kaufman, M. Wax and Z. Liang, Interactive electronic biopsy for 3D virtual colonoscopy, in Physiology and Function from Multidimensional Images, ser. Proceedings of SPIE, C. Chen and A. Clough (Eds.), vol. 4321, pp. 483488. May 2001.


















