Improved k-means clustering method for reference