Wearable-based human activity recognition using an iot approach