Statistics for Panic Detection in Human Crowds using Sparse Coding