A Two-Step Machine Learning Framework for Wearable Sensing Systems in Personal Healthcare