Tips to follow if you're trapped in a crushing crowd
text.npr.org
text.npr.org
I wonder to what degree this is detectable via computer vision? I would imagine most places already have some kind of CCTV on the crowd, so you should be able to retrofit a warning system into the existing security system (if there's any kind of standard, which might be a bold assumption).
Hopefully that could be done cheaply enough to make it reasonable to require them in venues prone to overcrowding, like smoke detectors.