Panic Detection in Human Crowds using Sparse Coding