Adaptive clustering analysis