Going through some old bookmarks, I found a link. to this javascript library for visualising mosh pits by a researcher called Matthew Bierbaum. I’ve no idea why I bookmarked it other than it looks cool:
It seems to have subsequently become a research project called ‘collective ,motion’ and a paper