Activity Recognition in Pervasive Intelligent Environments