An Intelligent Surveillance System for Dangerous Situation Detection in Home Environments