Knowledge Based Video Surveillance System