K-means clustering and PCA analysis