Functional Principal Component Analysis and Randomized Sparse Clustering Algorithm for Medical Image Analysis