init candidate term kmeans