Real-time video anomaly detection framework