Flexible Socioecological clustering