An Appearance-based Particle filter for Visual Tracking in Smart Rooms