skip to main content
10.1145/2435264.2435277acmconferencesArticle/Chapter ViewAbstractPublication PagesfpgaConference Proceedingsconference-collections
research-article

Accelerating subsequence similarity search based on dynamic time warping distance with FPGA

Published:11 February 2013Publication History

ABSTRACT

Subsequence search, especially subsequence similarity search, is one of the most important subroutines in time series data mining algorithms, and there is increasing evidence that Dynamic Time Warping (DTW) is the best distance metric. However, in spite of the great effort in software speedup techniques, including early abandoning strategies, lower bound, indexing, computation-reuse, DTW still cost too much time for many applications, e.g. 80% of the total time. Since DTW is a 2-Dimension sequential dynamic search with quite high data dependency, it is hard to use parallel hardware to accelerate it. In this work, we propose a novel framework for FPGA based subsequence similarity search and a novel PE-ring structure for DTW calculation. This framework utilizes the data reusability of continuous DTW calculations to reduce the bandwidth and exploit the coarse-grain parallelism; meanwhile guarantees the accuracy with a two-phase precision reduction. The PE-ring supports on-line updating patterns of arbitrary lengths, and utilizes the hard-wired synchronization of FPGA to realize the fine-grained parallelism. It also achieves flexible parallelism degree to do performance-cost trade-off. The experimental results show that we can achieve several orders of magnitude speedup in accelerating subsequence similarity search compared with the best software and current GPU/FPGA implementations in different datasets.

References

  1. Adams, N., Marquez, D., and Wakefield, G. 2005. Iterative deepening for melody alignment and retrieval. ISMIR.Google ScholarGoogle Scholar
  2. Alon, J., Athitsos, V., Yuan, Q., and Sclaroff, S. 2009. A unified framework for gesture recognition and spatiotemporal gesture segmentation. IEEE PAMI 31, 9, 1685--1699. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Chadwick, N., McMeekin, D., and Tan, T. 2011. Classifying eye and head movement artifacts in EEG Signals. DEST, 285--291.Google ScholarGoogle Scholar
  4. Ding, H., Trajcevski, G., Scheuermann, P., Wang, X., and Keogh, E. J. 2008. Querying and mining of time series data: experimental comparison of representations and distance measures. PVLDB 1, 2, 1542--52. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Fu, A., Keogh, E. J., Lau, L., Ratanamahatana, C., and Wong, R. 2008. Scaling and time warping in time series querying. VLDB J. 17, 4, 899--921 Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Grimaldi, M., Albanese, D., Jurman, G., and Furlanello, C. 2009. Mining Very Large Databases of Time-Series: Speeding up Dynamic Time Warping using GPGPU. NIPS WorkshopGoogle ScholarGoogle Scholar
  7. Keogh, E. J., Wei, L., Xi, X., Vlachos, M., Lee, S. H., and Protopapas, P. 2009. Supporting exact indexing of arbitrarily rotated shapes and periodic time series under Euclidean and warping distance measures. VLDB J. 18, 3, 611--630. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Kim, S., Park, S., and Chu, W. 2001. An index-based approach for similarity search supporting time warping in large sequence databases. ICDE, 607--61. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Lim, S. H., Park, H., and Kim, S. W. 2007. Using multiple indexes for efficient subsequence matching in time-series databases. Inf. Sci. 177, 24, 5691--5706. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Rakthanmanon, T., Campana, B. J. L., Mueen, A., Batista, G. E. A. P. A., Westover, M. B., Zhu, Q., Zakaria, J. and Keogh, E. J. 2012. Searching and mining trillions of time series subsequences under dynamic time warping. KDD, 262--270. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Sakurai, Y., Faloutsos, C., and Yamamuro, M. 2007. Stream Monitoring under the Time Warping Distance. ICDE, 1046--1055Google ScholarGoogle Scholar
  12. Sart, D., Mueen, A., Najjar, W., Niennattrakul, V., and Keogh, E. J. 2010. Accelerating Dynamic Time Warping Subsequence Search with GPUs and FPGAs. ICDM, 1001--1006 Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Srikanthan, S., Kumar, A., and Gupta, R. 2011. Implementing the dynamic time warping algorithm in multithreaded environments for real time and unsupervised pattern discovery. IEEE ICCCT, 394--398.Google ScholarGoogle Scholar
  14. Takhashi, N., Yoshihisa, T., Sakurai, Y., and Kanazawa, M. 2009. A Parallelized Data Stream Processing System using Dynamic Time Warping Distance. CISIS 1100--1105Google ScholarGoogle Scholar
  15. www.terasic.com.twGoogle ScholarGoogle Scholar
  16. www.festvox.org/cmu_arctic/Google ScholarGoogle Scholar
  17. Zhang, Y., Adl, K., and Glass, J. 2012. Fast spoken query detection using lower-bound Dynamic Time Warping on Graphical Processing Units. ICASSP, 5173 -- 5176.Google ScholarGoogle Scholar

Index Terms

  1. Accelerating subsequence similarity search based on dynamic time warping distance with FPGA

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Conferences
        FPGA '13: Proceedings of the ACM/SIGDA international symposium on Field programmable gate arrays
        February 2013
        294 pages
        ISBN:9781450318877
        DOI:10.1145/2435264

        Copyright © 2013 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 11 February 2013

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article

        Acceptance Rates

        Overall Acceptance Rate125of627submissions,20%

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader