Real-time event detection for video surveillance applications