On the Design of Smart Homes: A Framework for Activity Recognition in Home Environment