Coming back to your goal, as you are doing for other things, I think clustering is always a great approach.
I just came accross a post by Dr. Blume and I think it should help in your aim:
https://sueden.social/@BlumeEvolution/113134900878353356
(German, but, hey...)