On the Automatic Recognition of Human Activities using Heterogeneous Wearable Sensors