Recognizing Activities and Spatial Context Using Wearable Sensors