Sounds like time traveling or some kind of future Technic, however, it is not. Dynamic Time Warping is used to compare the similarity. It calculates the distance between two arrays or time series with different length.
For further reading
- @AI News: Finding patterns and outcomes in Time Series data, hands on with Python
- @AI News: 6 types of Artificial Intelligence environments