Using AI to model event crowd dynamics for proactive safety management