Pattern recognition cluster analysis