A Microsoft Kinect based exercise assistant