Variable Selection for Comparing High-dimensional Time-Series Data