Teaching Ordinal Patterns to a Computer: Efficient Encoding Algorithms Based on the Lehmer Code

被引:12
作者
Berger, Sebastian [1 ]
Kravtsiv, Andrii [1 ]
Schneider, Gerhard [1 ]
Jordan, Denis [2 ]
机构
[1] Tech Univ Munich, Klinikum Rechts Isar, Dept Anaesthesiol & Intens Care, D-81675 Munich, Germany
[2] Univ Appl Sci & Arts Northwestern Switzerland, Inst Geomat Engn, CH-4132 Muttenz, Switzerland
关键词
Lehmer code; ordinal patterns; symbolic dynamics; permutation entropy; symbolic transfer entropy; PERMUTATION ENTROPY; ORDER PATTERNS; TIME-SERIES; COMPLEXITY; SIGNAL;
D O I
10.3390/e21101023
中图分类号
O4 [物理学];
学科分类号
0702 ;
摘要
Ordinal patterns are the common basis of various techniques used in the study of dynamical systems and nonlinear time series analysis. The present article focusses on the computational problem of turning time series into sequences of ordinal patterns. In a first step, a numerical encoding scheme for ordinal patterns is proposed. Utilising the classical Lehmer code, it enumerates ordinal patterns by consecutive non-negative integers, starting from zero. This compact representation considerably simplifies working with ordinal patterns in the digital domain. Subsequently, three algorithms for the efficient extraction of ordinal patterns from time series are discussed, including previously published approaches that can be adapted to the Lehmer code. The respective strengths and weaknesses of those algorithms are discussed, and further substantiated by benchmark results. One of the algorithms stands out in terms of scalability: its run-time increases linearly with both the pattern order and the sequence length, while its memory footprint is practically negligible. These properties enable the study of high-dimensional pattern spaces at low computational cost. In summary, the tools described herein may improve the efficiency of virtually any ordinal pattern-based analysis method, among them quantitative measures like permutation entropy and symbolic transfer entropy, but also techniques like forbidden pattern identification. Moreover, the concepts presented may allow for putting ideas into practice that up to now had been hindered by computational burden. To enable smooth evaluation, a function library written in the C programming language, as well as language bindings and native implementations for various numerical computation environments are provided in the supplements.
引用
收藏
页数:27
相关论文
共 41 条
  • [41] Permutation entropy based time series analysis: Equalities in the input signal can lead to false conclusions
    Zunino, Luciano
    Olivares, Felipe
    Scholkmann, Felix
    Rosso, Osvaldo A.
    [J]. PHYSICS LETTERS A, 2017, 381 (22) : 1883 - 1892