Create clusters for machine learning