Literature DB >> 23282007

CFMDS: CUDA-based fast multidimensional scaling for genome-scale data.

Sungin Park1, Soo-Yong Shin, Kyu-Baek Hwang.   

Abstract

BACKGROUND: Multidimensional scaling (MDS) is a widely used approach to dimensionality reduction. It has been applied to feature selection and visualization in various areas. Among diverse MDS methods, the classical MDS is a simple and theoretically sound solution for projecting data objects onto a low dimensional space while preserving the original distances among them as much as possible. However, it is not trivial to apply it to genome-scale data (e.g., microarray gene expression profiles) on regular desktop computers, because of its high computational complexity.
RESULTS: We implemented a highly-efficient software application, called CFMDS (CUDA-based Fast MultiDimensional Scaling), which produces an approximate solution of the classical MDS based on CUDA (compute unified device architecture) and the divide-and-conquer principle. CUDA is a parallel computing architecture exploiting the power of the GPU (graphics processing unit). The principle of divide-and-conquer was adopted for circumventing the small memory problem of usual graphics cards. Our application software has been tested on various benchmark datasets including microarrays and compared with the classical MDS algorithms implemented using C# and MATLAB. In our experiments, CFMDS was more than a hundred times faster for large data than such general solutions. Regarding the quality of dimensionality reduction, our approximate solutions were as good as those from the general solutions, as the Pearson's correlation coefficients between them were larger than 0.9.
CONCLUSIONS: CFMDS is an expeditious solution for the data dimensionality reduction problem. It is especially useful for efficient processing of genome-scale data consisting of several thousands of objects in several minutes.

Entities:  

Mesh:

Year:  2012        PMID: 23282007      PMCID: PMC3521231          DOI: 10.1186/1471-2105-13-S17-S23

Source DB:  PubMed          Journal:  BMC Bioinformatics        ISSN: 1471-2105            Impact factor:   3.169


Background

Multidimensional scaling (MDS) is a technique for representing objects (or data points) in a low-dimensional space based on their similarity. Main purposes of MDS include exploratory data analysis by visualization and feature selection for subsequent analysis such as classification. In bioinformatics and related areas, MDS has been applied to diverse problems such as gene expression pattern visualization [1,2], drug responses profiling [3], and p53 transactivation prediction [4]. Among various MDS methods, the classical MDS is based on the idea of finding coordinates appropriate for describing dissimilarities as distances [5]. The classical MDS finds coordinates by a set of matrix operations. Roughly speaking, it decomposes the squared distance matrix by solving the eigenpair problem, of which complexity is proportional to the cube of the number of data points [6]. This heavy computational burden is a bottleneck for quick processing of large-scale datasets having thousands of objects. Meanwhile, massive parallel processing based on graphics processing units (GPUs) for general computing applications, a.k.a. GPGPU (general purpose computation on graphics processing units) has risen as a reasonable option for expediting computationally-intensive jobs on normal desktop computers equipped with a graphics card [7]. CUDA (compute unified device architecture) is one of the most pervasively-used frameworks for GPGPU developed by NVIDIA, Inc. [8]. In the CUDA environment, linear algebra packages such as CUBLAS [8] and CULA [9] are provided. In bioinformatics, CUDA has been deployed for diverse applications such as sequence alignment [10-12], protein substructure search [13], RNA microarray analysis [14], and a non-classical MDS [15]. One problem with CUDA is the relatively small memory size of most graphics cards (usually less than 1 gigabyte). General graphics cards do not have sufficient memory for storing and processing large-scale datasets containing tens of thousands data points. For circumventing this problem, we exploit a famous engineering principle, i.e., divide-and-conquer. Divide-and-conquer approach to the classical multidimensional scaling has drawn much attention for reducing its computational complexity and has been applied in serial computing environments [6,16].

Implementation

We implemented CFDMS by extending our previous work [17]. Our software application has two operating modes. If a graphics card allows sufficient memory for reading and processing all data points, it runs in "one-shot" mode. When available memory is not enough, it operates in "divide-and-conquer" mode and produces an approximate solution. The available memory size is automatically detected and the two operating modes are accordingly toggled on and off.

One-shot MDS

In the one-shot mode, the classical MDS on a dissimilarity matrix D, of which size is n × n, proceeds as follows. 1. D(2) = [d2], where ddenotes the element of D on the ith row and the jth column, i.e., the dissimilarity between the ith and jth points. 2. J = I - n-11, where I is the identity matrix and 1 denotes the n × n matrix of which elements are all one. 3.. 4. Calculate the first m eigenvectors e1, e2, ..., eand the corresponding eigenvalues λ1, λ2, ..., λfrom B. 5. Calculate the m-dimensional coordinates of the n data points by Each column of X corresponds to the coordinate of each data point in the reduced (m-dimensional) space. The above procedure has been implemented using CUBLAS [8] and CULA [9].

Divide-and-conquer MDS

The divide-and-conquer MDS based on [6] divides a given set of objects into several subsets of manageable size. Then, another subset of manageable size is made by sampling from each of the previous subsets. The same MDS routine of the one-shot mode is applied to each of the submatrices. Finally, each result is merged into an approximate MDS solution for the entire objects. More precise steps are as follows (see Figure 1).
Figure 1

Process of divide-and-conquer mode. First, a dissimilarity matrix is randomly decomposed into p submatrices along the diagonal, D1, ..., D. Second, s objects are sampled from each of the submatrices. Then, the sampled objects are merged to construct a new dissimilarity submatrix M. The one-shot MDS method is applied to D1, ..., Das well as M. The resulting coordinates are dMDS1, ..., dMDSas well as mMDS, respectively. After that, the objects sampled from each of D1, ..., Dare extracted from the resulting coordinates matrices, comprising subdMDS1, ..., subdMDSas well as mMDS1, ..., mMDS. For each pair, subdMDSand mMDS(i = 1, 2, ..., p), a linear transformation matrix Ais obtained by minimizing ||AsubdMDS- mMDS||, where || · || denotes L2 norm. The linearly transformed objects newdMDSon a reduced dimension are obtained by AdMDS. Finally, newdMDS1, ..., newdMDSare combined to produce the MDS result for the entire objects.

Process of divide-and-conquer mode. First, a dissimilarity matrix is randomly decomposed into p submatrices along the diagonal, D1, ..., D. Second, s objects are sampled from each of the submatrices. Then, the sampled objects are merged to construct a new dissimilarity submatrix M. The one-shot MDS method is applied to D1, ..., Das well as M. The resulting coordinates are dMDS1, ..., dMDSas well as mMDS, respectively. After that, the objects sampled from each of D1, ..., Dare extracted from the resulting coordinates matrices, comprising subdMDS1, ..., subdMDSas well as mMDS1, ..., mMDS. For each pair, subdMDSand mMDS(i = 1, 2, ..., p), a linear transformation matrix Ais obtained by minimizing ||AsubdMDS- mMDS||, where || · || denotes L2 norm. The linearly transformed objects newdMDSon a reduced dimension are obtained by AdMDS. Finally, newdMDS1, ..., newdMDSare combined to produce the MDS result for the entire objects. 1. Randomly decompose an n × n dissimilarity matrix Dalong the diagonal into p submatrices, i.e., D1, D2, ..., D. 2. Sample s objects from each of the submatrices. 3. Merge the sampled objects and construct a new dissimilarity submatrix Mof which size is (sp) × (sp). 4. Apply the one-shot MDS method to D1, D2, ..., Das well as M. Denote the resulting coordinates by dMDS1, dMDS2, ..., dMDSas well as mMDS, respectively. 5. Extract the objects sampled at step 2 from the above results, obtaining subdMDS1, subdMDS2, ..., subdMDSas well as mMDS1, mMDS2, ..., mMDS. 6. For each pair subdMDSand mMDS(i = 1, 2, ..., p), solve the following linear least squares problem, argmin||AsubdMDS- mMDS||, where || · || denotes L2 norm. 7. Linearly transform the objects of Das follows. AdMDS= newdMDS. 8. Combine newdMDS1, newdMDS2, ..., newdMDSinto an approximate MDS solution to the entire objects. Since the size of submatrix is determined by the available memory size of a graphics card, the number of submatrices p and the number of sampled objects from each submatrix s are determined automatically by our software application. Two ways of sampling from the submatrices (Step 2 of the algorithm above) are "Random" and "MaxMin". Random denotes usual random sampling without replacement. In the MaxMin approach, data points are chosen one at a time, and each new point maximizes, over all unused data points, the minimum distance to any of the previously-sampled points [18]. As in the one-shot mode, all the matrix operations have been implemented using CUBLAS and CULA.

Results

CFMDS has been tested using five benchmark datasets. Table 1 describes the data source and simple characteristics of each dataset. As shown in Table 1, diverse datasets, ranging from a simple dataset with four attributes to complicated microarrays and handwritten digits, were used to demonstrate the performance of CFMDS. Experiments were performed using a commodity PC equipped with an Intel Core2 Quad Processor Q6600 (2.4 GHz), 4 GB of RAM, and GeForce 8600 GT (graphics card). The operating system was Windows XP (32-bit version). CFMDS was run on this PC. For comparison, a general solution for the classical MDS was implemented using C# on this computer. However, the C#-based implementation was not able to process S. cerevisiae Microarray and MNIST datasets due to a memory shortage on the PC (4 GB only). For these large datasets, the classical MDS algorithm was implemented using MATLAB on a 64-bit Linux PC Server equipped with two Intel Xeon Processors E5506 (2.13 GHz) and 32 GB of RAM. It should be noted that the performance of matrix operations in MATLAB are known to be generally better than those implemented by other efficient languages such as C++ [15]. Parameter settings for the experiments are shown in Table 2. The size of dissimilarity matrix is n × n, where n is the number of instances in Table 1. The number of submatrices (p) and the number of objects sampled from each submatrix (s) were set based on the available memory size of the graphics card for S. cerevisiae Microarray and MNIST datasets. For IRIS, Dermatology, and M. musculus Microarray datasets, these parameters were set arbitrarily because they can be processed by the one-shot mode of CFMDS.
Table 1

Benchmark datasets

DatasetSourceNumber of AttributesNumber of InstancesPearson's Median Skewness CoefficientCoefficient of Variation
IRISUCI ML Repository41500.340.64
DermatologyUCI ML Repository33366-0.610.42
M. musculus MicroarrayGEO4,0002,0000.941.08
S. cerevisiae MicroarrayGEO1,0009,3000.730.56
MNISTMNIST78410,000-0.130.14

UCI ML Repository is UCI Machine Learning Repository http://archive.ics.uci.edu/ml/datasets.html. GEO is Gene Expression Omnibus http://www.ncbi.nlm.nih.gov/geo/. MNIST is the MNIST Database of handwritten digits http://yann.lecun.com/exdb/mnist/. M. musculus Microarray is a modified dataset from Mus musculus microarrays in GEO and S. cerevisiae Microarray is a modified dataset from Saccharomyces cerevisiae microarrays in GEO. MNIST dataset is from scanned handwritten digit images of 28 × 28 pixels.

Table 2

Experimental setting

DatasetSize of Dissimilarity MatrixNo. of Submatrices(p)No. of Samplesin Each Submatrix (s)
IRIS150 × 150320
Dermatology366 × 366360
M. musculus Microarray2,000 × 2,00010100
S. cerevisiae Microarray9,300 × 9,30010150
MNIST10,000 × 10,00010150

These parameters were set for comparison experiments of the divide-and-conquer mode of CFMDS. In fact, the CFMS application automatically detects the available memory size and these parameters are subsequently determined. For IRIS, Dermatology, and M. muculus Microarray datasets, these parameters were set arbitrarily, because they can be processed by the one-shot mode of CFMDS.

Benchmark datasets UCI ML Repository is UCI Machine Learning Repository http://archive.ics.uci.edu/ml/datasets.html. GEO is Gene Expression Omnibus http://www.ncbi.nlm.nih.gov/geo/. MNIST is the MNIST Database of handwritten digits http://yann.lecun.com/exdb/mnist/. M. musculus Microarray is a modified dataset from Mus musculus microarrays in GEO and S. cerevisiae Microarray is a modified dataset from Saccharomyces cerevisiae microarrays in GEO. MNIST dataset is from scanned handwritten digit images of 28 × 28 pixels. Experimental setting These parameters were set for comparison experiments of the divide-and-conquer mode of CFMDS. In fact, the CFMS application automatically detects the available memory size and these parameters are subsequently determined. For IRIS, Dermatology, and M. muculus Microarray datasets, these parameters were set arbitrarily, because they can be processed by the one-shot mode of CFMDS.

Execution time of CFMDS

The execution time was compared to demonstrate the speed-up of the proposed application. Figure 2 shows the execution time of each method including CFMDS with Random sampling, CFMDS with MaxMin sampling, one-shot CFMDS, and conventional solutions for the classical MDS in serial computing environments. In the figure, the y-axis is in log scale. As expected, CFMDS showed significant improvement in running time for large datasets such as the two microarray and MNIST datasets. For the most time-consuming dataset, MNIST, the conventional MDS algorithm took almost 6 hours to get the result. However, CFMDS with Random or MaxMin sampling produced the results from the same dataset within 3 minutes. CFMDS with Random sampling was more than 100 times faster than the conventional MDS algorithm for M. musculus and S. cerevisiae datasets. CFMDS with MaxMin sampling was more than 66 times faster than the conventional MDS algorithm for these microarray datasets. CFMDS also achieved significant speed-up for even small datasets such as IRIS and Dermatology, ranging from 3 to 22 times faster. These results confirm the fact that the proposed application is very useful for fast multidimensional scaling of diverse datasets, not only of genome-scale data. We also verified the necessity of our divide-and-conquer strategy for large data. Both the one-shot and divide-and-conquer modes of CFMDS required similar computational time for small datasets such as IRIS and Dermatology. However, the one-shot mode needed much more computational time than the divide-and-conquer mode for M. musculus Microarray dataset. Further, the one-shot mode was not able to process S. cerevisiae Microarray and MNIST datasets due to the limitation of memory in the graphics card. "0.00" in Figure 2 means "not applicable."
Figure 2

Comparison results of execution time. Average running time in seconds is shown. The y-axis is in log scale. Random (MaxMin) means the divide-and-conquer mode of CFMDS with Random (MaxMin) sampling. One-shot MDS represents CFMDS without divide-and-conquer. Conventional MDS represents the classical MDS implemented using C# or MATLAB in serial computing environments. "0.00" denotes "not applicable." For S. cerevisiae and MNIST datasets, we were not able to apply the one-shot mode of CFMDS due to the memory limitation in our graphics card.

Comparison results of execution time. Average running time in seconds is shown. The y-axis is in log scale. Random (MaxMin) means the divide-and-conquer mode of CFMDS with Random (MaxMin) sampling. One-shot MDS represents CFMDS without divide-and-conquer. Conventional MDS represents the classical MDS implemented using C# or MATLAB in serial computing environments. "0.00" denotes "not applicable." For S. cerevisiae and MNIST datasets, we were not able to apply the one-shot mode of CFMDS due to the memory limitation in our graphics card.

Accuracy of CFMDS

To examine the accuracy of the divide-and conquer mode of CFMDS, Pearson's correlation coefficient between the results from the classical MDS and CFMDS was used. More precisely, vectors, consisting of the Euclidean distance between each object pair on a reduced dimension, were generated from the results of the classical MDS and CFMDS, respectively. Then, Pearson's correlation coefficient between these vectors was calculated. As the correlation coefficient is close to 1, the result from the divide-and-conquer mode of CFMDS is similar to the result from the classical MDS. The accuracy comparison results are shown in Figure 3. The figure depicts average values of 100 independent runs with error bars representing standard deviation. As shown in Figure 3, the divide-and-conquer mode of CFMDS produced highly accurate results from all datasets. Pearson's correlation coefficients were larger than 0.9 in Random or MaxMin samplings. For the simplest IRIS dataset, which has 4 attributes and 150 instances, CFMDS achieved almost identical results compared to the classical MDS (Pearson's correlation coefficient: about 0.99) both in Random and MaxMin sampling modes. Dermatology and S. cerevisiae Microarray datasets showed similar trends with decrease in accuracy compared to the IRIS dataset.
Figure 3

Comparison results of accuracy. Pearson's correlation coefficient was used as accuracy. The mean value and standard deviation from 100 independent simulation results are shown. Random (MaxMin) means the divide-and-conquer mode of CFMDS with Random (MaxMin) sampling.

Comparison results of accuracy. Pearson's correlation coefficient was used as accuracy. The mean value and standard deviation from 100 independent simulation results are shown. Random (MaxMin) means the divide-and-conquer mode of CFMDS with Random (MaxMin) sampling. However, CFMDS with Random and MaxMin sampling modes showed different results for M. musculus Microarray and MNIST datasets. For M. musculus Microarray dataset, Random sampling mode showed the worst result among all benchmark datasets with the largest standard deviation, although MaxMin sampling method produced almost identical results compared to the result from the classical MDS (Pearson's correlation coefficient: about 0.97). On the contrary, MaxMin mode showed a relatively low performance with high variance for MNIST dataset. For the same dataset, Random sampling mode achieved relatively accurate results (Pearson's correlation coefficient: about 0.93). The difference in performance of Random and MaxMin sampling methods of CFMDS could be due to the skewness or dispersion of data. The MaxMin sampling mode is suitable for datasets with high skewness or dispersion, because it could sample data points which are far apart from each other [18]. We checked the skewness and dispersion of our experimental datasets using Pearson's median skewness coefficient and coefficient of variation of distances between data points. The Pearson's median skewness coefficient (PMSC) is defined as 3(mean - median)/standard deviation and measures asymmetry of a distribution. Coefficient of variation (CV) is defined as standard deviation /mean and is a normalized measure of dispersion. Among the five datasets, M. musculus Microarray showed the highest skewness and dispersion (PMSC = 0.94, CV = 1.08). For this dataset, MaxMin sampling mode of CFMDS generated relatively accurate results. MNIST dataset showed the lowest skewness and dispersion (PMSC = -0.13, CV = 0.14). For this dataset, Random sampling mode showed relatively accurate results. As a conclusion, we suggest the use of MaxMin sampling for highly skewed or dispersed data and Random sampling for symmetric and lowly dispersed data.

Discussion

We implemented a software application, CFMDS (CUDA-based Fast MultiDimensional Scaling) for efficient dimensionality reduction of large-scale genomic data. CFMDS adopted CUDA programming library and divide-and-conquer strategy to handle several thousands of features in less than several minutes on a commodity PC equipped with a graphics card. CUDA was applied as a parallel computing method and divide-and-conquer principle was used to circumvent the small memory size problem of usual graphics cards. By combining these two techniques, CFMDS enables that a regular PC with a CUDA-support graphics card handles the large-scale genomic data dimensionality reduction problem which can be efficiently executed only on high performance computers. The simulation results confirmed that our approach can perform MDS more than a hundred times faster with a comparable accuracy for genome-scale data. Therefore, CFMDS is especially useful to visualize and analyze data consisting of several thousands of objects in less than several minutes. We implemented two sampling options for the divide-and-conquer mode of CFMDS such as Random and MaxMin samplings. As shown in Results section, CFMDS with Random sampling approach usually works quite well in practice. MaxMin sampling method is especially useful in some contexts where data distribution is highly skewed or dispersed. Further work includes optimizing our application with respect to data transfer between graphics cards and host computers.

Availability and requirements

Project name: CFMDS Project home page: http://ml.ssu.ac.kr/CFMDS/CFMDS.html Operating system(s): Windows XP or higher (32-bit and 64-bit), Linux (tested on Ubuntu Linux 9.04, Red Hat Enterprise Linux 5.3/4.7, Fedora 11) Programming language: CUDA Other requirements: NVIDIA's GPU with CUDA, CUDA toolkit 2.3 (not support CUDA 3.0 toolkit yet), The latest version of CULA basic libraries License: GNU GPL v2 Any restrictions to use by non-academics: none

Competing interests

The authors declare that they have no competing interests.

Authors' contributions

S.P. developed the software application and performed the experiments. S.-Y.S. wrote the manuscript and discussed the results. K.-B.H. led the project and wrote the article. All of the authors have read and approved the final manuscript.
  10 in total

1.  Relational patterns of gene expression via non-metric multidimensional scaling analysis.

Authors:  Y-H Taguchi; Y Oono
Journal:  Bioinformatics       Date:  2004-10-27       Impact factor: 6.937

2.  Image-based multivariate profiling of drug responses from single cells.

Authors:  Lit-Hsin Loo; Lani F Wu; Steven J Altschuler
Journal:  Nat Methods       Date:  2007-04-01       Impact factor: 28.547

3.  permGPU: Using graphics processing units in RNA microarray association studies.

Authors:  Ivo D Shterev; Sin-Ho Jung; Stephen L George; Kouros Owzar
Journal:  BMC Bioinformatics       Date:  2010-06-16       Impact factor: 3.169

4.  Regional patterns of gene expression in human and chimpanzee brains.

Authors:  Philipp Khaitovich; Bjoern Muetzel; Xinwei She; Michael Lachmann; Ines Hellmann; Janko Dietzsch; Stephan Steigele; Hong-Hai Do; Gunter Weiss; Wolfgang Enard; Florian Heissig; Thomas Arendt; Kay Nieselt-Struwe; Evan E Eichler; Svante Pääbo
Journal:  Genome Res       Date:  2004-08       Impact factor: 9.043

5.  Fast and accurate protein substructure searching with simulated annealing and GPUs.

Authors:  Alex D Stivala; Peter J Stuckey; Anthony I Wirth
Journal:  BMC Bioinformatics       Date:  2010-09-03       Impact factor: 3.169

6.  CUDA compatible GPU cards as efficient hardware accelerators for Smith-Waterman sequence alignment.

Authors:  Svetlin A Manavski; Giorgio Valle
Journal:  BMC Bioinformatics       Date:  2008-03-26       Impact factor: 3.169

7.  CBESW: sequence alignment on the Playstation 3.

Authors:  Adrianto Wirawan; Chee Keong Kwoh; Nim Tri Hieu; Bertil Schmidt
Journal:  BMC Bioinformatics       Date:  2008-09-17       Impact factor: 3.169

8.  CUDASW++: optimizing Smith-Waterman sequence database searches for CUDA-enabled graphics processing units.

Authors:  Yongchao Liu; Douglas L Maskell; Bertil Schmidt
Journal:  BMC Res Notes       Date:  2009-05-06

9.  Multidimensional scaling for large genomic data sets.

Authors:  Jengnan Tzeng; Henry Horng-Shing Lu; Wen-Hsiung Li
Journal:  BMC Bioinformatics       Date:  2008-04-04       Impact factor: 3.169

10.  Regression based predictor for p53 transactivation.

Authors:  Sivakumar Gowrisankar; Anil G Jegga
Journal:  BMC Bioinformatics       Date:  2009-07-14       Impact factor: 3.169

  10 in total
  2 in total

1.  InCoB2012 Conference: from biological data to knowledge to technological breakthroughs.

Authors:  Christian Schönbach; Sissades Tongsima; Jonathan Chan; Vladimir Brusic; Tin Wee Tan; Shoba Ranganathan
Journal:  BMC Bioinformatics       Date:  2012-12-13       Impact factor: 3.169

2.  cudaMap: a GPU accelerated program for gene expression connectivity mapping.

Authors:  Darragh G McArt; Peter Bankhead; Philip D Dunne; Manuel Salto-Tellez; Peter Hamilton; Shu-Dong Zhang
Journal:  BMC Bioinformatics       Date:  2013-10-11       Impact factor: 3.169

  2 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.