Real-time wearable-device based activity recognition using machine learning methods