A visual computing approach for estimating the motility index in the frail elder