Cloud-based analytics software and AI based wearable sensor system to monitor and track patient activity