Time-series anomaly detection using dynamic programming based longest common subsequence on sensor data