A Multidimensional Time-Series Similarity Measure With Applications to Eldercare Monitoring