Skip to main content

A Scalable Segmented Dynamic Time Warping for Time Series Classification

  • Conference paper
  • First Online:
Artificial Intelligence and Soft Computing (ICAISC 2019)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 11509))

Included in the following conference series:

Abstract

The Dynamic Time Warping (DTW) algorithm is an elastic distance measure that has demonstrated good performance with sequence-based data, and in particular, time series data. Two major drawbacks of DTW are the possibility of pathological warping paths and the high computational cost. Improvement techniques such as pruning off impossible mappings or lowering data dimensions have been proposed to counter these issues. The existing DTW improvement techniques, however, are either limited in effect or use accuracy as a trade-off. In this paper, we introduce segmented-DTW (segDTW). A novel and scalable approach that would speed up the DTW algorithm, especially for longer sequences. Our heuristic approaches the time series mapping problem by identifying global similarity before local similarity. This global to local process initiates with easily identified global peaks. Based on these peaks, time series sequences are segmented to sub-sequences, and DTW is applied in a divide-and-compute fashion. By doing so, the computation naturally expands to the parallel case. Due to the paired peaks, our method can avoid some pathological warpings and is highly scalable. We tested our method on a variety of datasets and obtained a gradient of speedup relative to the time series sequence length while maintaining comparable classification accuracy.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Wang, X., Mueen, A., Ding, H., Trajcevski, G., Scheuermann, P., Keogh, E.: Experimental comparison of representation methods and distance measures for time series data. Data Min. Knowl. Discov. 26(2), 275–309 (2013)

    Article  MathSciNet  Google Scholar 

  2. Ranacher, P., Tzavella, K.: How to compare movement? A review of physical movement similarity measures in geographic information science and beyond. Cartography Geogr. Inf. Sci. 41(3), 286–307 (2014)

    Article  Google Scholar 

  3. Serra, J., Arcos, J.L.: An empirical evaluation of similarity measures for time series classification. Knowl.-Based Syst. 67, 305–314 (2014)

    Article  Google Scholar 

  4. Sakoe, H., Chiba, S.: Dynamic programming algorithm optimization for spoken word recognition. IEEE Trans. Acoust. Speech Signal Process. 26(1), 43–49 (1978)

    Article  Google Scholar 

  5. Keogh, E.J., Pazzani, M.J.: Derivative dynamic time warping. In: Proceedings of the 2001 SIAM International Conference on Data Mining, pp. 1–11. SIAM (2001)

    Google Scholar 

  6. Müller, M.: Information Retrieval for Music and Motion, vol. 2. Springer, Heidelberg (2007). https://doi.org/10.1007/978-3-540-74048-3

    Book  Google Scholar 

  7. Myers, C., Rabiner, L.: A level building dynamic time warping algorithm for connected word recognition. IEEE Trans. Acoust. Speech Signal Process. 29(2), 284–297 (1981)

    Article  Google Scholar 

  8. Berndt, D.J., Clifford, J.: Using dynamic time warping to find patterns in time series. In: KDD Workshop, Seattle, WA, vol. 10, pp. 359–370 (1994)

    Google Scholar 

  9. Rakthanmanon, T., et al.: Searching and mining trillions of time series subsequences under dynamic time warping. In: Proceedings of the 18th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 262–270. ACM (2012)

    Google Scholar 

  10. Biba, M., Xhafa, F.: Learning Structure and Schemas from Documents, vol. 375. Springer, Heidelberg (2011). https://doi.org/10.1007/978-3-642-22913-8

    Book  Google Scholar 

  11. Itakura, F.: Minimum prediction residual principle applied to speech recognition. IEEE Trans. Acoust. Speech Signal Process. 23(1), 67–72 (1975)

    Article  Google Scholar 

  12. Kruskall, J., Liberman, M.: The symmetric time warping algorithm: from continuous to discrete. Time warps, string edits and macromolecules (1983)

    Google Scholar 

  13. Sakoe, H., Chiba, S.: Comparative study of DP-pattern matching techniques for speech recognition. In: 1973 Technical Group Meeting Speech Acoustical Society of Japan (1973)

    Google Scholar 

  14. Rabiner, L.R., Juang, B.-H., Rutledge, J.C.: Fundamentals of Speech Recognition, vol. 14. PTR Prentice Hall, Englewood Cliffs (1993)

    Google Scholar 

  15. Yi, B.-K., Jagadish, H., Faloutsos, C.: Efficient retrieval of similar time sequences under time warping. In: Proceedings of the 14th International Conference on Data Engineering, pp. 201–208. IEEE (1998)

    Google Scholar 

  16. Kim, S.-W., Park, S., Chu, W.W.: An index-based approach for similarity search supporting time warping in large sequence databases. In: Proceedings of the 17th International Conference on Data Engineering, pp. 607–614. IEEE (2001)

    Google Scholar 

  17. Keogh, E., Ratanamahatana, C.A.: Exact indexing of dynamic time warping. Knowl. Inf. Syst. 7(3), 358–386 (2005)

    Article  Google Scholar 

  18. Keogh, E.J., Pazzani, M.J.: Scaling up dynamic time warping for datamining applications. In: Proceedings of the Sixth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 285–289. ACM (2000)

    Google Scholar 

  19. Zhao, J., Itti, L.: shapeDTW: shape dynamic time warping. arXiv preprint arXiv:1606.01601 (2016)

  20. Ma, R., Ahmadzadeh, A., Boubrahimi, S.F., Angryk, R.A.: Segmentation of time series in improving dynamic time warping. In: 2018 IEEE International Conference on Big Data (Big Data), pp. 3756–3761. IEEE (2018)

    Google Scholar 

  21. Kuhn, H.W.: The Hungarian method for the assignment problem. Naval Res. Logist. (NRL) 2(1–2), 83–97 (1955)

    Article  MathSciNet  Google Scholar 

  22. Chen, Y., et al.: The UCR time series classification archive, July 2015. www.cs.ucr.edu/~eamonn/time_series_data/

Download references

Acknowledgment

This project has been supported in part by funding from the Division of Advanced Cyber infrastructure within the Directorate for Computer and Information Science and Engineering, the Division of Astronomical Sciences within the Directorate for Mathematical and Physical Sciences, and the Division of Atmospheric and Geospace Sciences within the Directorate for Geosciences, under NSF award #1443061. It was also supported in part by funding from the Heliophysics Living With a Star Science Program, under NASA award #NNX15AF39G.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ruizhe Ma .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Ma, R., Ahmadzadeh, A., Boubrahimi, S.F., Angryk, R.A. (2019). A Scalable Segmented Dynamic Time Warping for Time Series Classification. In: Rutkowski, L., Scherer, R., Korytkowski, M., Pedrycz, W., Tadeusiewicz, R., Zurada, J. (eds) Artificial Intelligence and Soft Computing. ICAISC 2019. Lecture Notes in Computer Science(), vol 11509. Springer, Cham. https://doi.org/10.1007/978-3-030-20915-5_37

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-20915-5_37

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-20914-8

  • Online ISBN: 978-3-030-20915-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics