Wearable Sensor based Human Activity Recognition and Localization