Manuscript Offprint
arXiv:2610.35121Revisiting entropy and entropy-related magnitudes of a symbolic sequence and their estimation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
E. Aragón-Pérez
Pleros, Parque Científico Tecnológico de la Habana,
Carretera a San Antonio, Boyeros. La Habana. Cuba.
A. Mesa-Rodríguez
Universidad de La Habana, San Lazaro y L. CP 10400. La Habana. Cuba. and MPI for the Physics of Complex Systems. Nöthnitzer Strasse 38. D-01187 Dresden.*
K. García-Medina
Universidad de La Habana, San Lazaro y L. CP 10400. La Habana. Cuba.
D. Estevez-Moya
MPI for the Physics of Complex Systems. Nöthnitzer Strasse 38. D-01187 Dresden.*
A. Mollineda-Rodríguez and E. Estevez-Rams†
Universidad de La Habana, San Lazaro y L. CP 10400. La Habana. Cuba. and
Pleros, Parque Científico Tecnológico de la Habana,
Carretera a San Antonio, Boyeros. La Habana. Cuba.
(Dated: October 27, 2026)
This article revisits entropy and related magnitudes—entropy density, effective measure complexity, and informational distance—for the analysis of sequential data. We present their mathematical foundations within information theory and ergodic theory, establishing connections between probabilistic Shannon entropy and algorithmic Kolmogorov complexity. A central result, Ziv's theorem, demonstrates the asymptotic equivalence between the normalised number of distinct words and entropy density, providing the theoretical basis for estimation via Lempel-Ziv factorisation. We examine the convergence properties of these magnitudes and introduce estimation procedures for finite sequences, including a method for the effective measure complexity and the transfer entropy rate. An open-source software library implementing parallel algorithms for efficient Lempel-Ziv factorisation is presented. The practical utility of the framework is illustrated through three case studies: functional brain connectivity analysis from fMRI data, characterisation of spatiotemporal dynamics in coupled nonlinear oscillators, and electrocardiogram-based classification of atrial fibrillation, demonstrating how entropic measures capture meaningful structural and dynamical properties across diverse domains.
- Pleros, Parque Científico Tecnológico de la Habana, Carretera a San Antonio, Boyeros. La Habana. Cuba.
Many complex systems are known to us through a single recorded signal, from which regularity, memory, and randomness must be disentangled. Entropy density, effective measure complexity, and informational distance measure exactly that – how unpredictable a signal is, how much memory it carries, how far two signals lie apart – yet their theory sits scattered across decades of literature, and their estimation is frequently done wrong. This article assembles that theory in one place, links Shannon's entropy to Kolmogorov's algorithmic complexity, and shows how Lempel-Ziv factorisation turns both into practical, parameter-free estimators, backed by open-source software that processes sequences of a billion symbols. Applied unchanged to fMRI recordings, a ring of coupled nonlinear oscillators, and electrocardiograms, the same measures recover task-related brain activity, detect collective behaviour near the onset of chaos, and separate healthy from arrhythmic heart rhythms with clinically relevant accuracy, showing that a single information-theoretic toolkit captures memory and unpredictability across strikingly different systems.
I. INTRODUCTION
Data from complex dynamical systems often appear as one or a few time series, from which the system's dynamics must be extracted [1]. In data analysis, the usual aims are to assess regularity versus randomness, to identify patterns, to discover governing laws, or to predict future system behaviour [2]. One useful approach is to treat the dynamical system as an information source and apply information-theoretic tools alongside statistical descriptions [3]. In general, a single or just a few data sets are insufficient to fully understand the underlying dynamical system that drives the information source, yet these are often the only available data. In such cases, assuming ergodicity becomes necessary to extract the relevant information from the data [4].
For most systems, a fundamental quest is to find the relation between randomness and pattern in the system signal [5]. Randomness can be considered noise or, in a more useful perspective, the intrinsic uncertainty of the system, while a pattern is related to the deterministic laws that govern the system's behaviour. It has been argued that for a complex dynamical system, the behaviour lies between complete predictability and total randomness [5]. Entropy density captures the irreducible unpredictability in a signal. Entropy density, also known as Kolmogorov-Sinai entropy, entropy rate, among other names, has been defined in several fields, including information theory, ergodic theory, and dynamical systems [3, 6]. A lesser-used measure of complexity is the effective measure of complexity, introduced by Grassberger [4], which aims to capture a system's intrinsic memory and, in time-series analysis, its reliance on the past to define its future. Both magnitudes can be theoretically justified by Kolmogorov's algorithmic complexity, which laid a solid foundation for the analysis of data beyond the ensemble-statistical point of view [7]. Kolmogorov's theory of complexity builds on the existence of a universal computational machine, as demonstrated by Turing, and on the computational theory of recurrent functions [8]. From Kolmogorov theory, several concepts emerge that are closely related to entropy density and effective measure complexity; significantly, it also allows us to define the informational distance as a measure of the distance between two data sets [9].
The informational theory related concepts have been used extensively in analyzing experimental and theoretical models and there is an extensive literature regarding their use [2, 3, 6, 10–14]. In particular there is abundant literature dealing with the estimation of entropy density, and in a much lesser extent, effective measure complexity and informational distance [15–22]. In spite of that, there persist some confusion in the validity of the estimation procedures, specially in the latter magnitudes, and its use, and the mathematics of the whole subject appears scattered in the scientific literature, some misconceptions also persist [20, 23].
This article revisits key concepts and their mathematical foundations, including estimation and practical use. It gathers work previously scattered across various sources, including new, unpublished results from the authors. The aim is to offer a comprehensive treatment, from theory to practice, in a single source. Publicly available software and a library for estimating these magnitudes are also introduced.
What this article is not, is a review, there are some important areas left out, specially the early work of Grassberger [4, 23] and the further studies by Crutchfield and Feldman [5] on entropy estimation for finite state automata, although some analytical results from their work will be used to compare estimated values of entropy density, and effective measure complexity with the exact values.
The article comprises three main parts: (1) mathematical foundations of information theory (sections II, III, IV, V); (2) analysis of Lempel-Ziv factorisation, complexity, and entropic magnitude estimation (sections VI, VII, VIII); and (3) case studies (section IX). Conclusions follow. The appendix contains additional material, including proofs and explanations of procedures. Table I collects the notation used throughout.
Formally, a string is a successive concatenation of symbols emitted by a symbol source. is known as a character and takes values from an alphabet , ; . The index will be called time even though it does not represent that physical variable. The number of symbols available to the source will be taken as finite, ; the cardinality of the alphabet will be denoted by . Throughout, string positions are indexed from zero; denotes the prefix of length . Unless otherwise stated, ; if the sequence is binary, then and entropies are expressed in bits.
When a string is finite, we call it a word. A word has length . It is important to include the null sequence , which has length . If we have two strings and , the sequence is the concatenation of both sequences in the indicated order, and its length would be .
It is convenient to consider a symbol source or emitter as generating discrete strings uninterruptedly; its output is bi-infinite strings. To circumvent the problems associated with time in generating bi-infinite strings when considering the occurrence of multiple strings, we can imagine that instead of a single emitter, we have a set, called an ensemble, of countably infinite identical emitters, each generating a bi-infinite string. Since, from a practical point of view, it is useful to consider finite strings, they are taken as the result of observing an emitter's output over a finite time interval (...1001000001100011111110010000111...). For a source, the set of rules it follows as they generate the bi-infinite string is called a grammar and denoted by G (e.g., a binary source that only emits an even number of 0s).
The set of all strings of finite length (words) will be denoted by and those of infinite length by .
Consider an infinite string . If we define the set of all finite substrings of , it is possible to define a -algebra on that set and assign a probability measure to the set.
For example, take the set of all strings of finite length. Consider the initial collection formed by subsets of strings, where each subset contains strings of the same length. From this initial collection, a -algebra can be generated, and probabilities can be assigned to the strings based on their length. A similar probability assignment can be done to other partitions of the strings into classes.
A subsequence or substring is a sequence of symbols extracted from starting at time , up to time , and, therefore, of length . The word , where the position in the string is irrelevant, is called the base word. A subsequence can be infinite or can be a word.
It is useful to introduce the drop operator , such that when operating on the left on a word, it removes the first character of the string, (e.g., ); and operating on the right removes the last character of the string, (e.g., ).
A sequence can be shifted to the right such that if we call the shifted string, we will have . We define the same for a left shift where we will have . The operator is called the right shift operator, and is called the left shift operator.
The two most important properties required of a source are ergodicity and stationarity.
Ergodicity means that the strings emitted by the source are statistically indistinguishable: for almost every string emitted by an ergodic source , the relative frequency with which any finite word occurs along converges to the same value , whatever the string (e.g., for two emitted strings and ). A single string then characterises the source, and ensemble averages can be replaced by averages along one realisation.
Stationarity refers to the temporal invariance of the emitter's statistical properties. In other words, the probability of a specific finite string, of any length, occurring in a bi-infinite string does not depend on the instant in time at which the finite string occurs.
Stationarity implies that the probability of occurrence of a substring in an infinite string emitted by the source depends only on the base word of the substring and not on the starting time. A stationary source implies that for all , .
If a process is stationary, all instances of the base word have the same probability for any string .
TABLE I. Notation used throughout. A hat denotes a magnitude estimated from a finite sequence.
| Alphabet, strings and words | Algorithmic complexity and distance | ||
|---|---|---|---|
| Alphabet and its size, | Universal Turing machine | ||
| Words; infinite strings | Kolmogorov complexity; minimal program | ||
| Symbol source; its grammar | Conditional complexity; algorithmic mutual information | ||
| Bi-infinite string emitted by | Complexity per symbol, | ||
| Character at time , | Any of | ||
| Prefix , of length | Deficit ; its sum over | ||
| Word (finite string) and its length | Decay exponents of | ||
| Substring of from time to | Absolute and normalised information distance | ||
| Null string, | Net flow of information | ||
| Past and future halves of ; the symbols nearest the cut | Transfer entropy and its per-symbol rate | ||
| Sequence length; block length | Embedding order; state-vector dimension, | ||
| Period of a periodic sequence | |||
| Operators and probability | Lempel-Ziv factorisation and estimation | ||
| Drop operator, | Vocabulary: all distinct words of | ||
| Right and left shift operators | -th factor; position where it begins | ||
| Probability of a string | Exhaustive factorisation; its number of factors | ||
| Expected value over the source | Normalised complexity, | ||
| Normal distribution | Number of factors of a factorisation | ||
| Typical set of the AEP | Factor length; its mean and standard deviation | ||
| Arbitrarily small positive quantity | Variate drawn from | ||
| Finite-size correction; offset of the ansatz | |||
| Entropies | Truncation limit of ; effective length | ||
| Shannon block entropy of the length- words | Windows sampled; block counts; blocks seen once | ||
| Entropy gain, | Coverage; adjusted probability; Chao–Shen entropy | ||
| Entropy density (Kolmogorov–Sinai entropy) | Number of surrogates | ||
| Finite entropy rate of order , | State vector; its encoding; extended alpha-bet size | ||
| Number of distinct words of length | Model sources and case studies | ||
| Defined by | FSA state; its transition probability | ||
| Mutual information | Probability of state at step ; asymptotic value | ||
| Effective measure complexity, | Transition probability of the even and 2ssp processes | ||
| Length beyond which has converged to | Symbol probability of the RRXOR process | ||
| Oscillator phase, natural frequency, coupling | |||
| Recurrence-matrix entry; exclusive-or | |||
III. BLOCK ENTROPY, ENTROPY GAIN AND ENTROPY DENSITY
A. Shannon block entropy
Consider a bi-infinite string from which the set of all finite different substrings, , of length are taken. Let be the cardinality of . To each string a probability is assigned. The Shannon block entropy is then defined as [3, 24, 25]
The summand by definition. if is a constant string formed by a single character and attains its maximum value when all different words have the same probability .
is a non-decreasing function of : (see Appendix A).
B. Entropy gain
The entropy gain, a non-negative magnitude, is defined as [5]
Since the null word occurs with probability one, and . Equation (2) does not define ; following Crutchfield and Feldman [5], we adopt the convention , the uncertainty assigned to a symbol before any observation is made. From equation (A1)
Equations (2) and (3) allow two equivalent interpretations of the entropy gain. On one hand, it is an estimate of how random a symbol source looks when only substrings up to length are taken into account. On the other hand, it is the mean uncertainty of the symbol if the prefix is known. In the last sense, it is the amount of information that has to be stored in order to make an optimal prediction of [5].
For a stationary process
The inequality follows from the fact that conditioning reduces the entropy, and the equality results from the stationarity condition. is a non-increasing function of .
As , the last property implies
where
The limit exists for an ergodic stationary source. In what follows, when needed, the dependence on u will be dropped from , since, for an ergodic source, any infinite string u is statistically equivalent to any other.
For a periodic sequence of minimal period , the probabilities are the frequencies of occurrence along the sequence, and the words of length are the cyclic phases of the period, each occurring exactly once per period; their distribution is therefore uniform, and for , from where
for a random sequence, by which we mean throughout a realisation of an i.i.d. source with equiprobable symbols, for all , and
C. Entropy density
To measure the mean uncertainty per symbol of the ergodic source, the entropy density is defined as [24, 25]
Entropy density has been referred to by different names in different contexts, such as Kolmogorov-Sinai (KS) entropy or entropy rate [3, 6].
Using the chain rule
and using the Cesáro theorem, which states that if there is a sequence in such that , and , then , we have [5],
This last expression allows us to understand the entropy density as the uncertainty in a new symbol when an infinite number of symbols in the string have been measured. In expression (8), the numerator is a non-decreasing function of , while the denominator is strictly increasing; knowing that for an ergodic and stationary source, the limit exists, convergence is guaranteed to be uniform, and
For a large enough , is a linear function of with slope equal to the entropy density [5].
From equation (8), we can define the terms in the sequence to infinity as
sometimes known as the finite entropy rate of order . Although equation (10) guarantees that in the limit , and are equal, for finite this is not the case. In fact, the entropy gain converges faster than (See Appendix B).
For a periodic sequence of minimal period , for , from where
and h = 0. For a random sequence
the same value as .
D. Number of different words
As before, let be the number of different words of length in a string .
If for a given we have , then at most we will have different words of length . It follows
from where
On the other hand, and
There are at most different words of length , therefore
By definition , which implies that
Form inequalities (16) and (17) it follows that is bounded from below and above
Consequently the and exist, are finite and are equal (see Appendix C).
The relation
makes a quantity that characterises an infinite sequence , and thus, for an ergodic source, the source itself. As done before, the dependence of on will be dropped when it clutters the notation.
For a periodic sequence of minimal period the different words of length are the cyclic phases of the period, so for , from where it follows that
and consequently . For a random sequence, and more generally for any i.i.d. sequence in which every symbol has non-zero probability, , and
E. Number of distinct words and entropy
Consider an ergodic source characterized by an entropy rate h, let u be an infinite string produced by the source, Ziv [26] proved (see Appendix D)
In an ergodic source, its statistical properties can be estimated accurately from a single very long sequence generated by the source. The question is, how do we extract these properties from a single sequence? Equation (22) tells us one way. is, in principle, computable from a sufficiently long sequence. But beyond that practical value, equation (22) points to something more fundamental: asymptotically, the number of different strings of length is determined by the entropy of the ergodic source. In retrospect, it should not surprise us; a source is more unpredictable the more distinct strings it can generate. But the result also surprises us; entropy, and correspondingly , is a function of occurrence probabilities, but is not a function of how many times each different string appears; it only depends on the number of distinct strings.
Ziv's theorem (22) guarantees the equivalence of to and at the limit ; it does not say anything for finite values of . From equation (1) and the fact that the block entropy reaches its maximum value for a uniform distribution , it follows.
that is, . Together with , Eq. (B2) of Appendix B, and , it follows that
F. Algorithmic complexity and entropy
Kolmogorov complexity, also known as algorithmic complexity, quantifies the information content of a finite string [8]. Formally, for a given Universal Turing Machine (UTM) U and a string w, this measure corresponds to the length of the shortest possible program that can generate w as output:
where is the Kolmogorov complexity, denotes the length of program , represents the output produced when executes program . As changing the UTM amounts to adding a constant to the Kolmogorov complexity regardless of the string , the use of another UTM just adds an upper-bound correction to the defined magnitudes; the subscript can be dropped, and in what follows we use . Kolmogorov complexity of a string represents its inherent (irreducible) information content.
There are certain constraints needed for the shortest possible program . First of all, it must halt after a finite number of steps, and it will also be required that once it halts, its only output must be the string . Another convenient condition usually imposed on is that it must be self-delimiting, that is, carries with it the information about its size, which implies an additional correction of , we will drop the requirement in what follows for clarity.
The joint algorithmic complexity of strings and is defined as the size of the smallest program that computes both strings. The following inequality holds,
The conditional Kolmogorov complexity is understood as the length of the minimal self-delimiting program that computes the string if the additional string is provided as input. The following relation holds,
Finally, the algorithmic mutual information can be taken as
which measures the additional amount of information needed to calculate and separately instead of jointly. Inequality (25) makes .
To extend the definition of to infinite string , consider the finite string of length , the algorithmic complexity per symbol can then be defined as
There are several troublesome subtleties in the above definition, particularly the question of whether such a limit exists. A more sound definition would be to define two , one taking the lim sup, , and another taking the lim inf, , but as further on, we will be dealing exclusively with finite strings, we will leave it as defined by (28) and the reader is referred to appropriate reference for the finer details [8].
While Shannon entropy quantifies information through the probabilistic characteristics of data sources, treating individual objects as statistical realisations, Kolmogorov complexity evaluates information content directly through an object's algorithmic properties, measuring its inherent descriptive complexity. This conceptual divergence notwithstanding, a systematic correspondence emerges between Shannon-theoretic and Kolmogorov-theoretic frameworks: expectations of algorithmic information measures typically match classical entropy quantities, establishing fundamental equivalences between the two approaches to information quantification. This fact, for an ergodic source, should come as no surprise, as the statistical properties of the source are translated to those of a single string.
The main result, proven in [8], is that given an ergodic source and a set u of strings from the source with a probability measure defined over the set, then
where is the expected value. The main shortcoming of Kolmogorov complexity lies in the fact that it is non-computable due to the unsolvable nature of the halting problem, which renders it impossible to find a recursive function that can determine the shortest algorithm that produces a given string [8]. Yet the non-computability of does not necessarily translate to non-computability of [27].
IV. ENTROPY CONVERGENCE: EFFECTIVE MEASURE COMPLEXITY
Four magnitudes have been defined: , , and , which, in the limit of infinite strings, converge to the KS entropy, yet the way they converge is different.
Let be any of the mentioned magnitudes for finite ; then is the deficit of the given magnitude with respect to its convergent value at time step . is a magnitude of information, and its precise interpretation depends on the particular . Regardless of its interpretation the sum of the with can be taken as some sort of discrete integration [5]
and it's directly related to the convergence speed of the involved magnitude . The larger the sum, the slower the convergence. It must be noticed that the series given by (30) may not converge at all.
As is often the case, for an exponential decaying dependence of
will have the form
For a power law decay, , the sum (30) converges only if , while for decaying rates between these two behaviours, of the form
it will converge provided that .
For all the , , magnitudes, from the results in the previous sections, it follows that for a random sequence . For a periodic sequence of minimal period , equations (13) and (20) give for and , so that, for or , contains the harmonic series and does not converge, which is not a nice property to characterise a periodic sequence, as it does not distinguish among them. Yet, it is quite straightforward to see that in the case of , for a periodic sequence of minimum period ,
which makes it a much more interesting variable, and, in what follows, from all the , we will be dealing only with , the subscript will be dropped,
E was introduced by Grassberger [4] under the name of effective measure complexity (EMC), but is also known as excess entropy [5].
From the comment that was made after equation (3), E is the minimal amount of information that has to be stored in order to make optimal predictions under absolute efficiency [4]. For sources where E converges, the minimal memory required is finite, and such sources have been called finitary [5].
Consider the bi-infinite string partition into two halves and , the first known as the past and the latter as the future. Take the last symbols from the past, , and the first symbols from the future, ; the mutual information between the two finite strings is well defined
The first term is equal to , and the second term, using the chain rule, can be written as
Using both terms, the following expression follows,
Consider the expression,
In the limit , this last expression is equal to , but this is precisely the expression (37) in the same limit; therefore, it has been proven that [5]
The effective measure complexity is the mutual information between the two halves of the bi-infinite string u, further emphasising the interpretation given above. If convergence is uniform, then asymptotically [5]
for .
As E is the mutual information between the two halves of the bi-infinite string, it can be written
The effective measure complexity is then a measure of how much more information is needed to specify the sequence u when it is split into two independent halves, and , than to specify the single sequence u. This is consistent with the stated fact that, for a random sequence (and, indeed, for any i.i.d. sequence), E = 0; any other (positive) value of E signals correlation in the sequence's partition, and memory is then understood as a measure of such correlation.
Following from the above comment, there is something to be learned not only from the value of , but also from the terms in the sum in equation (35). If for a finite , converges to , then correlations in the system can be found up to . Even if that is not the case, the decreasing behaviour of the terms as increases is related to the decay of correlations in the system over time.
V. INFORMATION DISTANCE
Algorithmic complexity provides an adequate framework for defining the informational distance between two strings [9, 28]. What is sought is a measure of the minimal amount of information needed to compute one string from the other and vice versa. If this measure is to be considered a distance, apart from being non-negative, it must satisfy the identity axiom, that the distance from one string to itself of zero; the symmetry axiom, where the distance from string one to string two is equal to the distance from string two to string one; and the triangle inequality that states that the distance between two string is smaller or equal to the sum of the distance of both strings to a third one.
Let and be two strings. We define the information distance as the length of the shortest program that computes from as well as from . It can be shown that if
Then the program that computes given can be made to contain the information needed to generate the program that computes given [28]. This last fact leads to defining the (absolute) informational distance as
The defined absolute distance is clearly non-negative and complies with the symmetric axiom, as well as the identity axiom up to a term , where is the string with the largest algorithmic complexity. In [9], it is shown that it also complies with the triangular inequality, also up to a term where is now the string with the maximum Kolmogorov complexity of the three strings involved in the triangle inequality.
Zurek reasoned about the relation between algorithmic complexity and thermodynamic cost [27, 29]: the minimum increase of thermodynamic entropy for a computation that turns string into , without retaining memory of the input or of the performed steps, should be equal to . The demonstration is based on the Landauer principle that states that an erasure of a single bit implies a dissipation of energy of no less than , where is the Boltzmann product [30]. If contains all the information necessary to compute , then the process is reversible, and there is no increase in thermodynamic entropy. On the contrary, if cannot be recovered from , information has been lost, and thermodynamic entropy has increased. The absolute information distance can then be related to the maximum thermodynamic cost required to produce one string from the other, and vice versa.
The distance defined by (42) encounters practical difficulties when comparing strings of different lengths. Two independent random strings of small length will have a smaller distance than two algorithmically related strings of much larger length, with just a small amount of dissimilar information. To avoid this dependence on the string length, the normalised informational distance has been defined as
A discussion can be made on whether the denominator in (43) is the proper normalisation factor; the reader can follow Li and Vitanyi [9] for a justification of the chosen factor.
From the definition of the conditional algorithmic complexity and the algorithmic mutual information, it follows
where it has been assumed that . From this last expression (44), is the amount of information (in bits) that is shared between both strings per bit of information of the string with the largest Kolmogorov complexity [9].
The information distance should not be confused with entropy-based divergences between probability distributions, such as the Kullback-Leibler divergence or the Jensen-Shannon divergence [31], whose square root is a metric [32]. Applied to two sequences, such divergences compare their (empirical) word distributions, and therefore quantify whether both sequences share the same statistics, that is, whether they look like realisations of the same source. The information distance quantifies instead how much information one individual sequence carries about the other. Two independent realisations of the same source have a vanishing Jensen-Shannon divergence but an information distance close to one, while two strongly coupled sequences with different statistics can be far apart in the Jensen-Shannon sense and close in the sense of d. The information distance is thus the appropriate measure when coupling, rather than statistical similarity, is sought, as in the case studies of Section IX. In addition, the Kullback-Leibler divergence is neither symmetric nor satisfies the triangle inequality, and both divergences require estimating length- word distributions over cells, with the undersampling problems discussed in Section V A for the transfer entropy, whereas the estimate of d introduced in Section VII requires no block length.
If all strings involved are of the same length, in the right member of (43), the numerator and the denominator can be divided by the length and, in the limit of , the following expression follows
The practical importance of this last expression is that while the Kolmogorov complexity is uncomputable, the entropy density is not. To achieve this, we have had to consider strings of the same length and normalised distance. In spite of the uncomputable nature of the Kolmogorov complexity, it has been demonstrated before that the growth rate of algorithmic complexity can be estimated, notably by Zurek, who derived the Sackur-Tetrode equation for the entropy of an ideal gas from the Kolmogorov complexity rate [27].
Equation (45) will be used for computing the information distance between two sequences in practical terms and is the mathematical basis for the normalised compression distance used by Li and Vitanyi [9].
Given a set of strings, the information distance between all pairs of strings allows us to build a distance matrix and, from there, an undirected weighted graph among the strings. Such a graph will be called an information graph. If a proper threshold is set, the distance matrix becomes a connectivity matrix, and the corresponding graph is unweighted and undirected.
A. Flow of information
Considering the inequality (41), the net flow of information between two strings can be defined by [29],
(46) if , then the information flows from to , when , the opposite is true. The net flow allows us to turn the information graph into a directed graph that shows the flow of information in a given system.
As only the sign of is of interest for the graph, the following variant can be used instead of equation (46),
When the sign is not enough and actual values are needed, the same argument used to derive (45) can be used to justify (47), if both strings have the same length.
Flow of information as defined above is related but can not be identified with causality. Causality needs to account for the time in the flow of information between two strings. The concept of transfer entropy is then better suited for causality relations [33].
Transfer entropy was introduced by Schreiber [33] to quantify directed, time-asymmetric dependence between two processes. For a target series and a source series , sampled as and , let denote the m-block past. The transfer entropy from to is
the sum over all realisations of its arguments. This is the conditional mutual information , the information the source past adds about the target's next symbol beyond the target's own past. It vanishes when that information is null and is in general asymmetric, .
The direct estimation of (48) is problematic; it requires the joint distribution over a space of dimension ; for a symbolic source of alphabet size this is a histogram of cells, so the sample size needed to populate it grows exponentially with the embedding order, and most cells remain empty or undersampled for realistic record lengths (for continuous data an additional partitioning or kernel step is required, introducing further free parameters). Plug-in entropy estimators are, moreover, systematically biased, and because the two terms of the difference live in spaces of different dimension their biases do not cancel, so that independent series can yield a spuriously positive value. The estimate is therefore sensitive to , , the embedding delay and the partition, and demands long stationary records [34].
These difficulties motivate working with the per-symbol rate and estimating it without explicit density estimation. Taking the block pasts to the m-step past and normalising per symbol turns the block entropies of (48) into entropy densities, and the transfer entropy rate from to becomes
with the m-step past. Equation (49) is non-negative, vanishes when 's past adds no information about 's present, and is asymmetric under , thus encoding directionality [33, 34]. It is the quantity estimated below with the Lempel-Ziv factorisation, where a same-dimension surrogate removes the residual bias that afflicts (48).
Transfer entropy rate criterion. At finite m and finite sequence length, the two densities in (49) carry an embedding-dimension bias that does not cancel exactly. We remove it with a surrogate of the same embedding dimension: let be with its past block time-permuted, which destroys its temporal relation to while preserving its marginal statistics and the embedding size. The surrogate-corrected transfer entropy rate is
where averages over surrogates. The surrogate reproduces the bias of the real estimate, so measures the genuine reduction in the entropy density of due to 's real, as opposed to scrambled, past.
VI. LEMPEL-ZIV FACTORISATION
In this section, we follow [35] and [26].
Given a string , the set of all distinct words of is called the vocabulary of and is denoted by . For example, has vocabulary .
A sequence w can be partitioned into factors, that is, the concatenation of non-overlapping words,
such that the word , where is the position in at which the factor begins.
A history of the finite string w is a factorisation such that
except, perhaps, for the first factor . is the drop operator defined earlier. For example, for , a history is described by the factors delimited by the dots.
Lempel-Ziv's approach to sequence complexity derives from considering the unique history of , which is the result of a recursive factor concatenation process starting from a prefix factor that allows for innovation. Innovation, in this context, refers to the fact that each factor adds a word to the vocabulary of the growing sequence . Such a process is called an exhaustive production process and complies with,
for all factors in the history of w, except, perhaps, the last factor of the factorisation.
For example, the exhaustive factorisation of the above example , will be . An exhaustive factorisation is also called a Lempel-Ziv factorisation, . The Lempel-Ziv factorisation of a string is unique.
The Lempel-Ziv complexity of a sequence (from now on LZ-complexity) is defined as the number of factors in the exhaustive factorisation of the sequence,
Lempel-Ziv complexity is a measure of a sequence's innovativeness. Each factor in the Lempel-Ziv history corresponds to a single innovation (at the ending symbol of the factor). The larger the number of factors in , therefore, the larger the innovation process that produces the string. From this interpretation, it is clear that an appropriate normalisation of can be taken, related to the innovation per symbol of the sequence.
A. Properties of the LZ-factorisation
- The exhaustive history of a sequence is the smallest possible history factorisation.
Demonstration: See appendix E.
- For every string w with ,
where
Demonstration: See appendix F.
- Let w be a string of length emitted by an ergodic source of entropy density h. Then,
Demonstration: See appendix G.
- Given the string formed by concatenating the sequences and , .
Demonstration [35]: Consider a history of , such that , that is the concatenation of the LZ-factorisation of and . From the first property which proves the property.
B. Shannon entropy and LZ-factorisation
Define the normalized Lempel-Ziv complexity as [35]
From property 3, follows
On the other hand, in [26] it is shown that is the basis for a lossless finite-state encoder, so according to the converse theorem of information theory [3], it follows that
Combining inequalities (58) and (59), the following theorem [26] follows (theorem 7 of Ziv):
where is an arbitrary constant.
VII. ESTIMATION OF ENTROPIC MAGNITUDES USING LEMPEL-ZIV FACTORISATION
A. Entropy density
Theorem 7 of Ziv (60) is the basis for using the Lempel-Ziv factorisation as an estimate of the entropy rate. The normalized Lempel-Ziv complexity has to be computed for a necessarily finite-length sequence, and therefore some error is unavoidable in the estimate. The error is related to , but, as shown in [20], Lempel-Ziv estimation of is quite efficient at approximating the density rate even when relatively short sequences are used. This may come as a surprise, taking into account that is a very slowly decaying function achieving a value of around 0.4 for a binary alphabet with strings as long as 1 million symbols, and only falls to 0.3 for a string length of .
Consider an infinite string that starts at . If is a prefix of length of , then, by construction, is a non-decreasing function of . For very small sequences , one should expect, in general, that does not need to be true. As increases, the function keeps growing while redundant subsequences start to appear in the string and the starts to grow more slowly with intervals of plateau. The more redundant the string in terms of patterns, the slower the growth rate. It should be expected that the fastest-growing behaviour for should be achieved for a random string.
This is exemplified in Figure 1 where the for four different symbol sources are shown as a function of the string length . Two sources are unifilar finite-state automata, commonly discussed when analysing entropic measures [5] (see Appendix I). A third source is an experimental DNA sequence for mammals, and the fourth source is a random string. For the finite-state sources, the described behaviour can be readily observed, where for small sequence length values are above the asymptotic function, but as increases, it falls below. In the DNA case, a number of sequences start with a growth rate for well below the asymptotic curve and the pace of growth increases with . Finally, for the random string, the almost coincides with for all the range. One interesting feature of all four examples is that for large values, settles into a law
with a constant. From this last equation
The estimation of the entropy density value from the of a finite sequence is underestimated by an amount . One could be tempted to estimate from the fit of vs for large values, but one must be warned that the slow convergence of implies that the fit will be highly sensitive to the smallest value chosen to start the fit.
(a)

(b)
(c)
(d)
FIG. 1. Lempel-Ziv complexity and the asymptotic behaviour. The four plots show the Lempel-Ziv complexity as a function of the string length N, compared with the same curve for the asymptotic behaviour (Dashed black line). (a): even and (b): 2ssp correspond to finite-state automata defined in Appendix I. The first is the even process, which is controlled by a transition probability. Each colour corresponds to a different value of the transition probability. The second one (2ssp) is for the two-state symmetric process, which is also governed by a transition probability. (c): dna pertains to an experimental example, the DNA sequences of different mammals were used to factorise and estimate the complexity value. Finally, (d): random, stands for a random string. In all cases, the LZ-complexity is upper-bounded asymptotically by the asymptotic function as expected. What is interesting is that for large string size, the behaviour with the string length settles for an ansatz as described by equation (61). For short string lengths, all examples except the random case deviate from the asymptotic curve, which can be significant, as shown in the DNA data. The inset in each plot is the histogram, and the closer Normal curve of the distribution of factor lengths in the Lempel-Ziv factorisation.
Amigó and Kennel have obtained an expression for the variance in the estimation of h by the normalized Lempel-Ziv complexity [36]. Let be the length of the k factor in the Lempel-Ziv factorisation of a string. It follows
where N is the length of the string.
A normal distribution of the length of the factors, with mean and variance , is assumed. If factors are considered to be drawn from a normal distribution, then the length will be a random variable with expected value and variance . can then be written as
where Z is a random variable drawn from a normal distribution . Let us reverse the point of view: fix N and consider a random variable. In such a case, the estimated entropy density is
and its standard deviation
From equation (64),
Propagating errors in this last equation
but by construction, so, using equation (67)
The best estimate for is , taking , the following expression follows
where equation (65) and (66) were used. The reader must recall that is the variance in the length of factors that can be obtained from the factorisation. Expression (70) shows that the larger , the larger the error in its estimation.
Following the same procedure, we include the variance for a Poisson distribution in the factor length, resulting in
The histogram over the factor length for each of the described processes can be well approximated by a Normal distribution (see insets in Figure 1), making the use of equation (70) as an estimate of the error in valid.
The left column of Figure 2 are the plot of the estimated entropy density from the Lempel-Ziv factorisation for different sequence lengths in the already presented finite-state automata corresponding to the symmetric 2-state process (a), the even process (b) and the random-random-xor process (c) for all values of their control parameters. First, the estimate follows the general trend even for sequence lengths as short as 256 symbols, and it's almost indistinguishable from the exact entropy density for sequence lengths above symbols. For the two-state symmetric process, the estimate is even better as it behaves almost identically to for sequences of 256 symbols and above.
B. Effective measure complexity
Estimating the effective measure complexity is non-trivial. As a measure of correlation at all length scales, or the memory of the system, its precise evaluation implies, in the general case, sums over infinite terms [4] and convergence is usually slower than estimating entropy density. This makes any estimation more cumbersome than estimating the entropy density, both analytically and numerically, and less reliable for smaller sequence length.
One of the approaches followed, avoiding direct data estimation, is to try to build the minimal computational machine able to statistically reproduce the data. This approach was pioneered by Grassberger [4] and further developed by Crutchfield and Feldman [5]. In practice, such an approach has not gone beyond finite-state approximations of the data, and even then, the reconstruction procedure has been applied only to simple sources.
Section IV singled out the entropy gain , Eqs. (2)-(3), as the preferred building block for the effective measure complexity: unlike , or , it converges to monotonically and, by Appendix B, at least as fast as does, .
The corresponding estimator is
and, inspired by Eq. (35), the effective measure complexity is still estimated as
with the entropy density of the original sequence estimated exactly as before, from the Lempel-Ziv factorisation. Only 's have to be estimated, which involves the estimate of the block entropy – the Shannon block entropy of length- .
(a)

(b)

(c)

FIG. 2. Convergence of the Lempel-Ziv entropy-density estimate with sequence length. Each row corresponds to one Hidden Markov Model process: (a) the two-state symmetric process (2SSP, top), (b) the even process (middle), and (c) RRXOR (bottom), swept across their full control-parameter range. Left column: the Lempel-Ziv estimate at four sequence lengths ( ; 5,000; 50,000; 500,000) overlaid on the true entropy density (red), each curve independently normalised between 0 and 1, , to compare shape convergence independently of each process's own entropy range. Right column: root-mean-square error of the raw, un-normalised against the true entropy density, computed over the same parameter sweep, as a function of sequence length (log scale). In both columns, entropy density shows no qualitative convergence failure for any of the three sources, only a shrinking quantitative bias.
Melchert and Hartmann’s approach [21] obtains this indirectly: partition into non-overlapping blocks of length , shuffle the blocks into a surrogate sequence (destroying correlations above scale while preserving the length- block distribution exactly), and read off ’s own Lempel-Ziv complexity via Ziv’s theorem.
This is a consistent estimator, but it inherits a slow-convergence property of the Lempel-Ziv complexity itself: once the number of distinct length- blocks actually observed becomes comparable to the number of blocks available to estimate their distribution from, the normalised Lempel-Ziv complexity underestimates entropy density by an amount that grows, not shrinks, with . Under the non-overlapping partition above, falls linearly as grows while can grow as fast as so this regime is reached quickly: a controlled test with i.i.d. draws over equally likely categories – comparable to the vs. balance reached at moderate in the surrogate construction above – recovers only 55-80% of the true entropy via Lempel-Ziv, depending on the exact draw.
To avoid the convergence problem, the surrogate-and-Lempel-Ziv step is replaced with a direct, coverage-adjusted estimate of from the block frequency histogram of u itself, following Chao and Shen [37]. Details are given in the Appendix H.
1. Choice of n
It is left to define a convenient limit for the sum in Eq. (73). For a sequence of length , the maximum that can be examined with reliable statistical significance is inherently limited. A common estimate derives from assuming the sequence contains roughly independent -words, yielding the condition . This approximation is only accurate for independently and identically distributed sequences, where any dependence among -words arises solely from their overlapping nature – the same caveat that applies, one level down, to the sliding-window histogram of Eq. (H1) itself: consecutive windows share symbols and are therefore not independent draws, even though there are of them. Sliding rather than partitioning changes how much of the sequence's information content is sampled at each , easing the severely-undersampled regime identified above; it does not change how much information content the sequence has at that , so it does not relax the bound below.
Lesne et al. [20] considered more realistic scenarios in which intrinsic correlations within the sequence also influence the n-words and must be accounted for. By interpreting the entropy rate h as the average amount of new independent information contributed per observed symbol, the nominal sequence length can be replaced with an effective length . This adjustment incorporates the effect of internal correlations. Consequently, the constraint on n becomes more restrictive,
Claiming that the estimated equals the effective measure complexity would be too strong, but its behaviour resembles that of E, as shown in Fig. 3. In Figure 4 the estimated effective measure complexity for the logistic map is shown (left), together with the complexity entropy map (right), which the reader can compare to the corresponding plots of Fig. 1 and 2, in [13]. The estimated captures properties of the sequence similar to those of the effective measure complexity, with the correspondence expected to be closest for sources whose correlation structure decays uniformly across their parameter space, and to require correspondingly larger n — and hence longer sequences, per Eq. (74) — for sources whose synchronisation time varies strongly with the source's own control parameters.
C. Information distance
Following expression (45), the conditional entropy can be written as which leads to the expression
for estimating the informational distance. is taken as the ordered concatenation of sequences and . The entropy densities involved in equation (75) can be estimated by the Lempel-Ziv factorisation as explained above. It must be noted that strictly speaking, as there is a logarithmic correction which becomes negligible for long enough sequences, and therefore the distance computed using (75) must not be for too short strings. However, if all strings studied are of the same length, then, without regard to the sequence's size, the distance can be used as a relative measure.
Following the same idea but starting with equation (47), the information flow can be estimated as
means that information flows from to , negative value will signal the opposite flow.
It must be clear what the distance expressed by equation (75) measures when is estimated by the Lempel-Ziv complexity, as compared to the more general definition using Kolmogorov complexity given by equation (43). The informational distance, as defined by Kolmogorov complexity, pertains to how hard it is, algorithmically, to go from one sequence to another; “hard” here is measured by the length of the algorithm. In this regard, the informational distance is not a Hamming type of distance, it does not measure pairwise, how different are two strings and actually, a string of symbols and its negation will have (near to) zero informational distance, while the normalized Hamming
(a)


(b)

(c)

FIG. 3. Estimation of the effective measure complexity. Convergence of the effective measure complexity estimate across three Hidden Markov Model processes. Each row corresponds to one source: (a) the two-state symmetric process (2SSP, top), (b) the even process (middle), and (c) RRXOR (bottom). The control parameter is the transition probability of the two-state symmetric and even processes, and p is the probability of a 1 in the two free symbols of each RRXOR block (Appendix I, Fig. 9). Left column: the estimate at four sequence lengths ( ; 5,000; 50,000; 500,000) overlaid on the true effective measure complexity (red), each curve independently min-max normalized, , to compare shape convergence on a common scale. Right column: root-mean-square error of the raw, un-normalized against the true curve, over the same restricted range, as a function of sequence length. 2SSP converges cleanly to a low error floor by ; the even process and RRXOR both improve steadily but substantially more slowly, and neither has reached a comparable floor even at , reflecting the longer block-size resolution their correlation structure demands relative to what can reliably support at this sample size.
distance will be 1, as can be seen in the following example, where the string w is the negation of and the Hamming field H is composed of only one's:
However, a small algorithm of the type shown in Algorithm 1 will do the job, yielding a near-zero information distance.


FIG. 4. Estimation of the effective measure complexity in the logistic map. The effective measure complexity estimated for the logistic map. (left) as a function of the control parameter ; (right) The complexity-entropy map. Both plots can be compared to figures 1 and 2 of [13].
Algorithm 1 Computing the negated string from string . The XOR operator is represented by
1: for i from 1 to N do 2: 3: Print
The same follows for a string of symbols and its reverse, where pairwise distance can be near one, and the Kolmogorov complexity would be, in all cases, (near) zero.

FIG. 5. Estimation of information distance by Lempel-Ziv complexity. Both plots show the information distance between the output string of the even process and a surrogate string for the whole range of transition probabilities. (a) The information distance between the string w and its negated string , where is the XOR logical operator). (b) The information distance between the string w and the reversed string . The inset shows a detailed scale of the same plot. In both cases, the distance is nearly 1 for all transition probabilities, except for .
When changing to a distance based on the definition (75), where is estimated by the Lempel-Ziv complexity, it must be understood that Lempel-Ziv factorisation is a pattern-driven procedure; it grows as new patterns emerge in the sequence. In this sense, it is also not a pairwise distance, but it is not all-encompassing as the Kolmogorov distance. The Lempel-Ziv-based distance can also be near 1 for two strings, whereas the Kolmogorov-based distance renders them close.
Figure 5 shows, on the left, the plot of using Lempel-Ziv of the sequence of symbols produced by the even process for different values of the transition probability and the negated string, while on the right, a similar plot with the distance between the process string and its reverse. Except for the values at , is near one in all other cases. This implies that when using Lempel-Ziv to compute the distance between two sequences, care must be taken to include, when necessary, simple operations that make sense for the process being analysed but are not captured by the Lempel-Ziv factorisation.
Let us clarify this last statement. We are not interested in abstract mathematical sources but rather in physical processes that can be considered sources of symbols (e.g., DNA, RNA, or the discretisation of a time signal). The physical laws governing the process will ultimately define a grammar for the source and the operations that can be regarded as within the “natural order” of the analysed system. It is within that set of rules that possible operations must be sought that can lead to a sequence transformation that could be missed by the Lempel-Ziv factorisation. Fortunately, this set of rules is almost always simple operations, and there is no need to seek involved “non-natural” transformations of the symbol sequence to compare with.
In most cases, a simple procedure as follows will suffice for calculating the distance between two strings and :
-
Compute the distance between and .
-
Compute the distance between and the reverse of .
-
Compute the distance between and some well defined negation of .
-
Take the distance as the smallest one among the three calculated distances.
D. Transfer entropy
The conditional entropy densities in (50) are estimated with the Lempel-Ziv factorisation over an extended alphabet, with the target and conditioner roles assigned as required by each term. Let be the mean-binarised sequence of ( ). For a target series with present and a conditioner , form at each the state vector
and it collapses to a single symbol over an alphabet of size by the encoding
Applying the entropy-density estimate of Eq. (65) to the resulting sequence of length , with the logarithm taken in base , gives
The marginal density follows by dropping the conditioner block . Encoding the embedded state as one letter over is the multivariate generalisation of Lempel-Ziv complexity to vector-valued processes [38], and placing the target's present alongside the joint past makes (79) a conditional rather than a joint rate [34]. Unlike a plain concatenation of the two strings, the embedding preserves the temporal alignment between the conditioner's past and the target's present, so the estimate responds to a lagged influence .
VIII. LEMPEL-ZIV ALGORITHM
We developed lzcomplexity [39], an open-source library implemented in C++ and Python that computes the entropic magnitudes described from the Lempel-Ziv factorisation. The algorithms have been optimised to fully exploit current computing power by implementing parallel processing that significantly accelerates performance. The parallel implementation of the algorithms uses the Intel oneTBB library [40].
The algorithm used to obtain the factorisation consists of three phases [41]. The initial phase lexicographically sorts all suffixes of the input sequence. From the array of all sorted suffixes (SA), the lengths of the longest common prefixes (LCP) between consecutive suffixes are obtained. With the sorted suffixes, the second phase proceeds, where the longest previous factor (LPF) [42] is computed for each position. Finally, the LZ76 factorisation is obtained from the LPF array. Details will be given elsewhere.
The implementation shows execution-time improvements of more than 10-fold compared to sequential algorithms for long ( ) strings, and supports processing strings as large as symbols. The developed software can be obtained at https://github.com/pleros-ai/lzcomplexity [39].
IX. CASE STUDIES
A. Brain connectivity
The human brain’s function relies on a complex interplay of organisation across multiple scales, from individual neurons to large-scale networks. The “connectome,” or the map of structural and functional connections between brain regions, is central to understanding cognition and behaviour. Abnormalities in this network are linked to various neurological and psychiatric conditions, making its study crucial for diagnosis and treatment. Inferring these connections from imaging data such as fMRI is challenging: current methods often rely on strong assumptions, are limited to linear dynamics, or are sensitive to user-defined parameters, obscuring the brain’s inherently non-linear behaviour.
To overcome these limitations, we proposed a novel, model-free analytical approach grounded in entropic magnitudes introduced above. Instead of assuming linear correlations, the method characterises each region by its unpredictability (entropy density ) and its memory (effective measure complexity ), and uses the informational distance to assess functional connections. It thus detects both linear and non-linear dynamics without prior assumptions about the data, providing a generalisable characterisation of cognitive states across experimental conditions and signal types.
The fMRI data used in this study were sourced from the Human Connectome Project (HCP), for subjects performing a motor task cued for finger tapping, toe squeezing, or tongue movement. The brain was parcellated into 360 regions of interest (ROIs) using the Glasser atlas [43] (180 ROIs per hemisphere).
The data is discretised before estimating the entropic magnitudes. For each time series, the mean value is computed and used as the binarisation threshold. Binarisation results in the loss of information from the original signal, but it is assumed that the binarised strings still contain sufficient relevant information about the system's dynamics. If this is the case, it can only be asserted by the results themselves.
Figure 6(a) shows the complexity-entropy of the different regions of the brain in the motor task. For this task all regions lie above and , placing them in a regime between complete predictability and total randomness, the hallmark of complex dynamics. The points form a continuum rather than distinct clusters, so no fixed cut separates active from inactive regions. We segment the map objectively from the residuals of a linear fit: a local threshold is computed for each point's neighbourhood, cleanly splitting the map in two. Informed by previous studies suggesting that inactive regions exhibit more random signal patterns [44], the side of the map with lower entropy density (and higher complexity) is taken as active. This criterion identifies a small subset of regions for every task; for the motor task, 8.61% of regions are classified as active.
The position of the active regions relative to the linear fit carries functional information. Most primary and sensory motor regions lie above the fit, generating more pattern complexity than the trend predicts for their entropy density, whereas the main visual areas lie below it. Reading the regression as the mean relation, the motor and sensory cortices “overperform” in pattern generation while the visual areas “underperform” during this task: the motor response demands precisely coordinated movement, whereas the sustained visual cue allows looser visual engagement. This separation of regions that share an activation status but differ in dynamical regime is information that a single-amplitude activation measure cannot provide.
Projecting the normalised onto the cortical surface (Figure 6(b)) shows that the active set is not scattered but anatomically coherent. The lowest values concentrate in the occipital visual areas and in the motor and sensory cortices of the posterior precentral gyrus, the two systems the task engages: a visual cue followed by a coordinated movement of fingers, toes, or tongue. The activation pattern recovered by the entropic criterion matches the known substrate of the task, obtained without a design matrix, a hemodynamic model, or any tuned parameter.
Functional connections were obtained from the LZ-distance between all 360 ROIs. The resulting distance matrix, ordered by increasing (Figure 6(c)), was clustered with the Neighbour-Joining method to produce the dendrogram of Figure 6(d). Regions with similar are close in (the diagonal band), but this band narrows sharply over the active block, indicating tighter functional coupling among active regions. Active regions cluster together at low levels of the dendrogram, and regions of similar functional roles group consistently: visual areas of the occipital lobe form one cluster, primary motor/sensory and premotor regions another, and a third, heterogeneous cluster integrates occipital, lateral-frontal, and lateral-parietal regions with mixed visual, motor, and attentional roles. The full region-by-region assignment is reported in the companion study [45].
This example uses the motor task to illustrate the pipeline. Applied unchanged to memory, emotion, language, and resting-state data, the same measures recover task-relevant activation and modular functional structure, and the active sets agree with GLM and meta-analytic references; these results are detailed in [45].
(a)

(b)
Motor
Normalized h
(c)
Motor task
(d)
FIG. 6. Brain connectome through the entropic magnitudes.(a) The complexity-entropy map, vs , for the 360 brain parcellations during the motor task. Active regions (left of the vertical green line) cluster at lower and higher , reflecting less unpredictability and stronger pattern formation. Inactive regions exhibit higher randomness, as they do not suppress the noisy background [44]. (b) Brain surface mapping of entropy density showing the normalized for each ROI projected onto the cortical surface, red indicates lower (more active); blue indicates higher (less active). The visual regions, motor and sensory cortex are activated during the task. (c) The distance map. The informational distance was computed between all region pairs via equation (75) and ordered by activation level. Active regions (red square) lie farthest from non-active ones, while non-active regions cluster together. (d) Dendrogram from the distance matrix illustrating hierarchical relationships. Arrows point to active regions, indicating clusters of visual, motor, and attentional processing, with strong associations among them.
B. Non-linear locally coupled oscillators
Coupled non-linear oscillators under weak coupling have been extensively studied since the foundational work of Winfree [46], which established the oscillator phase as the key dynamical variable, superseding amplitude-based descriptions. This framework was anticipated by Adler's analysis of locking in feedback circuits [47], leading to the phase equation for Adler-type oscillators:
where denotes the phase, a control parameter, and the frequency detuning. This formulation was later generalised to ensembles of coupled oscillators, culminating in the Kuramoto model [48], which describes globally coupled oscillators via harmonic signals and has become a paradigm for studying synchronisation across physics, biology, and neuroscience [49].
Recent work has introduced a system of locally coupled Adler-type oscillators arranged in a ring with nearest-neighbour interactions as shown in Figure 7(a)[50]:
Equations (81) are integrated numerically with a fourth-order Runge-Kutta method, and the entropic magnitudes are computed from the discretised phase activity , following Ref. [51]. The phase activity is binarised with its mean value as threshold: values greater than or equal to the mean are mapped to 1 and the remaining ones to 0. The temporal evolution of each oscillator thus becomes a binary string, and the spatial configuration of the ring at a given time a binary string of length equal to the number of oscillators.
This model exhibits a diverse configuration diagram as seen by the value, as a function of two control parameters (Figure 7(b)), revealing regimes with distinct spatiotemporal dynamics: an absorbing region with near-zero entropy, a chaotic region with high sensitivity and disorder, a wedge region characterized by long-range correlations, and a needle region displaying intermediate complexity and intricate patterns [51]. Notably, the system exhibits a transition to chaos as the needle regions is abandoned while decreases, where computational capabilities—namely information storage, transmission, and modification—are enhanced near the edge of chaos [52–54], supporting the hypothesis that dynamical systems poised at this transition can function as optimized computational substrates [55–58].
The needle region has an estimated entropy density near zero, while the effective measure complexity approaches 3. At the lower boundary of the needle region, there is a surge in the value and a sudden fall to zero. It is at this surge point that enhanced system performance is expected. One such point is at , , and the spatial-temporal diagram shown in Figure 7(c) exhibits a complex pattern with local spatial arrangements seen as wave-like patterns in the oscillator's behaviour, signalling that lasts for long temporal intervals.
When carefully studying the system behaviour with fixed and varied (Figure 7(d)), several distinct pictures emerge. What is striking is that couplings seem to emerge between odd-indexed oscillators and between even-indexed oscillators, as seen in the maps shown in Figure 7(e). While at point 1, within the chaotic region no recognizable pattern is seen in the informational distance map, but the vs complexity-entropy map (Figure 7(f)) clearly shows that both set of oscillators, even and odd, can be segmented by their values of both entropic magnitudes. The even oscillators exhibit higher entropy density and lower values. As the studied points approach the edge and the needle region, clear patterns emerge in the distance map (points 2, 3, 4 in Figure 7(d)) for both sets of oscillators. The entropic behaviour of the two groups of oscillators converges, as evidenced by the entropy-complexity map (Figure 7(f)). Patterns in the distance map are a sign of coupling in the oscillators and therefore of collective behaviour. Well within the needle region, at point 5 in Figure 7(d) the entropy-complexity map again shows a clear segmentation of odd and even oscillators but, compared to what was seen in point 1, the range of values for both groups overlaps, and the difference is mostly seen as a gap between the values of both sets.
C. Electrocardiogram analysis
Electrocardiogram (ECG) classification has become a fundamental tool in modern cardiology. Usually, a complete ECG comprises signals from 12 sensors or leads. However, manual interpretation of ECGs faces several challenges, including limited access to specialists in rural areas, inter-observer variability, and low sensitivity in short recordings. ECG is the most widely used tool for diagnosing cardiac diseases. Figure 8(a) shows the ECG of a healthy subject (SR) and of a patient with atrial fibrillation (AFIB). There have been attempts to use machine learning techniques to diagnose such illnesses from ECGs. The most commonly used approach in this regard is to train the neural network directly on labelled ECG data and use the trained model for diagnosis. We followed a different approach.
From the ECG, the recurrence matrix is computed (Figure 8(b)). An entry in the recurrence matrix is the absolute value of the difference between the signal at time index i and time index j:
Figure 8(b) shows the average recurrence matrices corresponding to AFIB and SR subjects.
Visually, the matrices reveal fundamental differences. The graph for the SR group exhibits a pattern of continuous diagonal lines parallel to the main diagonal. According to recurrence matrix theory, this characteristic indicates more deterministic, regular underlying dynamics, consistent with the periodic nature of SR. The presence of these diagonal lines indicates that trajectory segments evolve similarly at different time instants.
In contrast, the recurrence matrix obtained for the AFIB group suggests more complex cardiac dynamics, with a significant stochastic component. The lack of extended temporal recurrences in the trajectory reflects the inherent irregularity and loss of periodicity characteristic of this arrhythmia.
(a)

(b)
(c)
(d)
(e)
(f)
(1)
(2)
(3)
(4)
(5)

FIG. 7. Non-linear locally coupled oscillators. (a) Adler-type oscillators are coupled to their nearest neighbours as described by equation (81), forming a circular chain. (b) The entropy density map as a function of the control parameters and . Four regions are identified by the entropic magnitudes. The absorbing region has zero entropy density, while the chaotic region has a value near 1. For the wedge region, the entropy density is higher than the absorbing region but still lower than 1/2. Low values of h characterise the needle region. (c) Spatio-temporal map for and at the border between the needle and the chaotic region (edge of chaos boundary). Wave-like patterns can be identified. Time is on the horizontal scale, and the oscillator's values are displayed vertically in consecutive order. (d) Detail of the spatio-temporal map. Point 1 is in the chaotic region, while point 5 is well within the needle region; all other points are at the border of the needle-chaotic regions. (e) The informational distance map for all points shown in (d) is split into even (above) and odd (below) oscillators. In the chaotic region (point 1), no distinguishable pattern is observed; by contrast, in the rest of the analysed points, characteristic patterns are seen in the maps. (f) The complexity-entropy map for each point shown in (d) in the chaotic region (point 1) shows that the odd and even oscillators are clearly segmented, with the even oscillators having higher values and lower values. The segmentation becomes less clear for points on the edge of the chaos boundary, but there is still a clear grouping for each type of oscillator. At point 5, well within the needle region, the two sets of oscillators are again clearly segmented, with higher values for both sets and smaller values.
This confirms that diagonal lines constitute the key differentiating element between the two groups, serving as a visual biomarker of cardiovascular system dynamics. The abundance and continuity of these diagonal structures in the SR group not only capture the deterministic nature of SR but also quantify the system's ability to maintain coherent and predictable temporal patterns.
The differences observed in the matrices suggest that entropic measures calculated from these structures will effectively capture their dynamic differences, thus providing a robust quantitative basis for automatic classification. From the distance matrices constructed for an AFIB subject and an SR subject, we proceed to calculate the entropic descriptors, entropy density and effective complexity measure for each row of the matrix. The values of and for each row for each lead are shown in the entropy-complexity map of Figure 8(c)
In the healthy patient, values tend to cluster in a region of low and high , as expected from our description of the dynamics of subjects with SR. We observe higher values of and lower values of for the AFIB subject, consistent with more random dynamics and reduced long-range correlations and system memory. The presence of a
(a)

(b)

(c)
(d)

FIG. 8. Electrocardiogram analysis.(a) ECG of a healthy subject (below) and a subject with atrial fibrillation (above). The AFIB patient has irregular heart rate behaviour. (b) The recurrence map of the (left) AFIB patient and the (right) healthy subject. The SR subject's map shows clear, long diagonal lines parallel to the main diagonal, which are absent in the AFIB subject's map. (c) The complexity-entropy map, derived from the estimation of the entropy density and the effective measure complexity for each row of the recurrence matrix. SR and AFIB subjects are clearly segmented, with healthy subjects exhibiting higher and lower . (d) Confusion matrix resulting from the training of a convolutional neural network fed with the vector of entropy density values. True negatives and true positives are above 82%.
fraction of AFIB data that exhibits high entropy density values and, simultaneously, effective complexity measure values comparable to those of the SR subject is interesting; it could represent segments of the time series that regularise or show more patterns.
Following this analysis, a convolutional neural network (CNN) was trained using a feature vector as follows. The signals from two leads, lead II and lead V1, were used, as they are known to be significant for diagnosing AFIB. Three distance maps were computed: one for each lead and one for the cross-signal between the leads. From each recurrence map, the entropy density was estimated for each row from the binarised signal (binarisation was performed by the median). The entropy density for each row and recurrence map was treated as a vector, which was used to train the CNN. The number of control and AFIB subjects was roughly equal during training. Details of the CNN architecture are given in Appendix J.
The network was trained using 5-fold cross-validation, with the data split into training and validation sets. The result is shown in Figure 8(d) as a confusion matrix. The classification results obtained with this neural network provide strong evidence of the discriminative capacity of the extracted features (the vector ). In particular, this type of descriptor has proven highly representative of the underlying dynamics in ECG recordings, capturing complex aspects of nonlinear physiological behaviour that are traditionally inaccessible through conventional linear metrics. The performance achieved for —with an overall accuracy of 83.2% using only two leads of the 10-second ECG—is particularly relevant when considering that the most effective methods reported in the literature typically employ all 12 standard leads or long-duration ECGs with beat-to-beat annotations. This level of accuracy, achieved with a significantly reduced amount of information, highlights not only the efficacy of the proposed approach but also its practical viability in environments where access to multichannel data is limited or where more efficient signal acquisition and processing is required.
D. Further applications
We applied the same magnitudes to other systems in previous and ongoing work; those results are not reproduced here for lack of space but are summarised for completeness. In written language, and were estimated for the books of different writers, each text treated as a symbolic sequence of characters, without any grammatical or syntactic analysis. On the complexity-entropy map the authors occupy distinct regions, so the measures capture their different styles. Also, dendrograms built from the Lempel-Ziv distance matrix segmented the authors and each author's work by genre. Surrogates obtained by randomising each text at the sentence, word and character level allow the contribution of each level of organisation to be separated: the difference in between consecutive randomisations measures the information invested in organising characters into words, words into sentences, and sentences into the text, and the corresponding difference in measures the effective measure complexity gained at each of those levels, which decreases as one moves up the hierarchy [59].
In gene expression data, the magnitudes were estimated from whole-genome expression levels ordered by pathway, for thirteen tumour types taken from the TCGA repository. The complexity-entropy map separates tumour from normal samples in nine of the thirteen types, with success rates above 98% in several of them, and discriminates in addition between tumour types, as shown for two kidney tumours. Neither gene preselection nor a model of the disease is required, and the ordering by pathway, rather than the identification of individual up- or down-regulated genes, is what makes the trend in the map emerge [60].
For trajectories, a two-dimensional curve is discretised with the Freeman chain code, which yields a sequence over an alphabet of eight symbols and requires no embedding or threshold. The magnitudes estimated from that sequence separate regular from chaotic orbits in the Hénon-Heiles system, and, applied to centre-of-pressure trajectories from a public human balance dataset, provide the features with which a neural network classifies subjects by fall history under different postural conditions [61]. In all cases the procedure is the one followed above: discretise the signal, factorise it, and estimate , and from the factorisation, without tuning parameters or assuming a model for the source.
X. CONCLUSIONS
In this article, we have revisited the fundamental concepts of entropy and related magnitudes for the analysis of sequential data, providing a unified treatment of their mathematical foundations within information theory and ergodic theory. We have established the relationships between block entropy, entropy density, entropy gain, effective measure complexity, and informational distance, clarifying their interpretations and convergence properties. The connection between Shannon's probabilistic entropy and Kolmogorov's algorithmic complexity has been emphasised, with Ziv's theorem providing the crucial link that enables practical estimation via Lempel-Ziv factorisation.
The Lempel-Ziv factorisation has been examined in detail, demonstrating its utility for estimating entropic magnitudes from finite sequences. We have presented estimation procedures for entropy density, effective measure complexity via coverage-adjusted block entropies, informational distance, and the transfer entropy rate, including error estimates and convergence considerations. The accompanying open-source software library, lzcomplexity [39], implements parallel algorithms capable of processing sequences up to symbols, making these analyses accessible for practical applications.
The three case studies illustrate the framework’s broad applicability. In brain connectivity analysis, entropic measures revealed task-specific activation patterns and hierarchical functional organisation, providing a model-free approach to characterise cognitive states. The study of coupled nonlinear oscillators demonstrated that entropy density and effective measure complexity capture transitions between dynamical regimes and identify collective behaviour through patterns of informational distance. Finally, electrocardiogram analysis showed that entropy-based features extracted from recurrence matrices can achieve clinically relevant classification performance for atrial fibrillation with only two leads, highlighting the approach’s practical diagnostic potential.
Taken together, these results demonstrate that the entropic magnitudes discussed—entropy density, effective measure complexity, and informational distance—provide a robust, theoretically grounded framework for characterising complex dynamics across diverse domains. Their estimation via Lempel-Ziv factorisation offers a practical, parameter-free methodology that captures both randomness and memory in sequential data, with promising applications in physics, biology, neuroscience, and medicine.
XI. ACKNOWLEDGMENTS
CITMA is acknowledged for financial support under the project CARDENT, grant PN223LH010-053. The MPI-PKS partially funded this work through its visitor program. EER thanks H. Kantz at MPI-PKS for the in-depth discussion and the excellent working environment.
XII. DATA AVAILABILITY AND AUTHORS STATEMENT
The data supporting the findings in the brain and heart case studies come from third parties and are publicly available from the Human Connectome Project (https://www.humanconnectome.org/) and the PhysioNet Database (https://physionet.org/). The lzcomplexity software used to estimate the entropic magnitudes is openly available at https://github.com/pleros-ai/lzcomplexity and archived on Zenodo, https://doi.org/10.5281/zenodo.23531093 [39].
The authors have no conflicts to disclose.
Appendix A: Block entropy is a non-decreasing function of .
then
For the first term on the right-hand side, taking ,
Where use has been made of .
Now,
Taking into account that , each term on the last sum is positive and the non-decreasing behaviour of follows.
Appendix B: Entropy gain converges faster than .
It has already been shown that is a non-increasing function of , hence for all . From (9) will have
Also
and
from where
Using equation (3)
If we prove that the term in parentheses on the right-hand side is non-negative, then is a non-increasing function of . Considering
and taking into account, by the chain rule, that
it follows that
where the last inequality is a consequence of the arithmetic mean always being greater than or equal to the smallest summand. being non-increasing, .
Appendix C: and exist and are finite
Let be the infimum of for ,
It is clear that if , then
Let and assume that implies , then is a non-decreasing sequence of , but inequality (16) implies that . Therefore the exists and furthermore
The same logic implies that also exists. For to exist, it must hold that
Both limits indeed coincide. Every word of length occurring in is the concatenation of a word of length and a word of length , both occurring in , so that . The sequence is therefore subadditive, , and by Fekete's lemma [62] the limit of exists and equals :
which, by inequality (18), lies in . Equation (C1) follows. Note that inequalities (14) and (15) only imply , which by itself would not guarantee convergence.
Appendix D: Ziv theorem 5
To prove (22), consider the set of all subsequences of length emitted by the ergodic source. By the asymptotic equipartition property, we have
For any , arbitrarily small. Therefore, there exists an integer , such that for all
For there exists a set of typical sequences that includes at most elements and at least elements, almost all equiprobable, such that
Consider the following partition of u
Let ,
Define
which exists due to the stationary nature of the sequence . Noting, from (D1), that we will have with probability 1, then,
the equality due to the source's ergodicity. Therefore, there exists a ( ) for which
Assume, without loss of generality, that and consider
Construct the sequence where each block of that does not belong to is replaced by a block that does belong to . From (D2), it is clear that the Hamming distance between and , .
By construction, the number of distinct -blocks in cannot be greater than , therefore
or
Hence
Now choose the that replace the corresponding blocks in , such that
and therefore, for
For the reverse inequality, we use the other half of the asymptotic equipartition property . Since our source is ergodic, every block of occurs in with probability 1, so that,
Hence
taking the limit and then gives
From (D4) and (D5) it follows
in probability, which is what we wanted to prove.
Appendix E: The exhaustive history of a sequence is the smallest of all history factorisations [35]
Consider a sequence out of an alphabet and a non-exhaustive history of . Then, for each factor , these two conditions are fulfilled
Consider the LZ-factorisation (exhaustive history) . For each factor , these three conditions are true,
(E2)
For all ,
Indeed, if this is not the case, consider the smallest index where the inequality breaks . It follows that can not be a suffix of , because then which has been excluded. A non-null suffix of must belong to , otherwise will not be the smallest where the inequality breaks, then .
Because of condition (E1) and that is not a suffix of , the following is true,
Let us consider two cases, first that , then
which contradicts the third condition in (E2) of the exhaustive nature of .
The second case takes which implies and then is not the longest prefix of which has not occurred before, which is a contradiction with the exhaustive nature of . This proves condition (E3), from where follows.
Appendix F: Upper bound for the length of the Lempel-Ziv factorisation [35]
The inequality to be proven is
where
Consider a sequence of length and let be the number of different words in which the sequence can be parsed. By design . Consider the string formed by the concatenation of words lexicographically ordered up to a word length , (e.g. , ).
The length of the string L is given by
it follows
The number for such a string is
and
On the other hand, from (F3),
from where
It follows from expression (F5),
Consider a positive number , and be the largest number given by (F3) such that , then it can be written
and by equation (F4),
The number of new distinct words that appear in the sequence after increasing the length by can not be larger than ; therefore, for any , using inequality (F7)
The following is also true,
where expression (F6) has been used. On the other hand
From this last inequality
where the equation (F9) was used.
From the last inequality (F11) and (F8), follows what we set to prove.
Appendix G: Upper bound for the length of the Lempel-Ziv factorisation and entropy density.
The inequality to be proven is
The asymptotic equipartition property of an ergodic sources defines the “typical” set as those with entropy equal to the entropy rate and cardinality . For a large enough sequence , almost all strings are “typical”. We can then write
Performing the same operation with ,
now
The same argument that led to inequality (F9) can be applied to show that it remains true. On the other hand,
From where,
Is already known that , using equations (G5) and (F9),
where
which tends to zero as . The property (56) follows.
Appendix H: Block entropy from a coverage-adjusted frequency estimator
Given a sequence the surrogate-and-Lempel-Ziv step is replaced with a direct, coverage-adjusted estimate of from the block frequency histogram of the sequence itself, following Chao and Shen [37] which avoid the need of building surrogate sequence and no Lempel-Ziv factorisation of it is taken: entropy computed from a frequency histogram is manifestly insensitive to the order in which the blocks occur, so the shuffling step was never intrinsic to estimating – it was only ever necessary to make an order-sensitive estimator (Lempel-Ziv complexity) behave as if the blocks were exchangeable. Working from the histogram directly removes that intermediate step and its associated bias.
Two choices complete the construction. First, the histogram is built from sliding, overlapping length- windows of rather than a non-overlapping partition: windows rather than blocks. The two constructions estimate the same quantity – the ergodic average over the source’s length- block distribution is, by definition, insensitive to which of the possible phases a given window happens to start on – but the non-overlapping partition realises only one such phase per sequence, which can measure something other than that average for sources with structure commensurate with : e.g. a sequence with exact period has every non-overlapping -block identical, so a non-overlapping estimate of reads exactly 0 regardless of the source’s real per-block entropy, purely as an artifact of the single phase sampled. Sliding by 1 removes this phase-alignment sensitivity entirely, and incidentally supplies far more samples per scale, directly easing the -vs- imbalance identified above.
Second, entropy is read off each histogram with the Good-Turing/Horvitz-Thompson coverage correction of Chao and Shen, rather than the maximum-likelihood estimate. Writing for the count of the -th distinct length- block observed among the windows, the Good-Turing coverage estimate is , with the number of blocks observed exactly once; each block's coverage-adjusted probability is , and
consistent with ; here denotes . The denominator is a Horvitz-Thompson correction for the categories the sample of size is likely to have missed entirely; unlike a first-order correction such as Miller-Madow, it remains reliable well into the regime . Numerical results estimate that it recovers the true entropy to within 3%.
a. Reliability safeguards: monotone projection and adaptive truncation
Because for every (Appendix B), the exact partial sum is non-negative and non-decreasing in direct consequence of Appendix A's monotonicity of combined with Appendix B's bound. The finite-sample estimate of Eq. (73) is not guaranteed to inherit either property: still carries its own finite-N bias (Sec. VII, Eq. (70)), and while is markedly less biased than a Lempel-Ziv-based estimate at any single (see above), 's residual bias is still multiplied by a growing in Eq. (73): at large enough , this can accumulate into a visibly non-monotone, or even net-negative, partial sum, even where every individual is itself accurate.
We therefore project the raw sequence onto the cone of non-negative, non-decreasing sequences before reading off the answer, via the pool-adjacent-violators algorithm [63]: consecutive values that violate monotonicity are replaced by their pooled average, repeatedly, until the whole sequence is non-decreasing, after which any remaining negative values are floored at zero. The reported summands are the increments of this projection rather than the raw differences, and itself is the projected value at .
n is further chosen as the index at which the raw (unprojected) partial sum peaks, rather than the largest n the reliability bound of Sec. VII B 1 below would allow: past that peak, 's residual bias dominates whatever genuine structure remains to be resolved, and the decline that follows carries no information the projection above should be allowed to fold back in. This is a bound on what the data can support, not a claim of having recovered E in full: for sources whose correlation length is long relative to what N can resolve at the block sizes remains reliable at, the true peak of the exact partial sum lies beyond where the estimated one is truncated, and only a longer sequence recovers the difference.
Appendix I: Finite state automata
A finite-state process is one that can be represented by a finite-state automaton (FSA). In a finite-state automaton of the type considered here, a finite number of states are connected by transitions from one state to another. The transition from one state to another happens with a certain probability, and upon such a transition, a unique symbol is emitted. For a given state , represents the probability of transitioning from state to state while emitting a symbol . We will be interested in the class of processes where, given a state , the emitted symbol determines the state to which the transition happens (unifilar), and we can write . The process starts in an initial state, and at each step, a transition to another state occurs while a symbol is emitted. At step , the probability that the process is at state is denoted by . The asymptotic probability of a state is denoted by .
If one considers, among all possible FSAs, only the unifilar and minimal Markov chains [64], then,
and
We have used three Markovian processes as examples: The even process, the 2-state symmetric process and the random-random-xor process.
(a)

(b)

(c)

FIG. 9. Diagram of the recurrent part finite state automaton for the (a) even process; (b) two-state symmetric process and (c) the rrxor process.
The even process can be represented by a finite state automaton as depicted in Figure 9(a). It generates binary strings with an even number of 0; the occurrence of a pair of 0 happens with probability , while the occurrence of the symbol 1 happens with probability .
The two state symmetric process (2ssp) is shown in Figure 9(b). It is a two-state FSA where the probability of transitioning from one state to the other is given by , and, correspondingly, the probability of staying in the same state is .
The random-random-XOR process (RRXOR) is a five-state FSA, shown in Figure 9(c). It generates binary strings in non-overlapping blocks of three symbols: the first two are independent, each equal to 1 with probability p and to 0 with probability ; the third is fixed by the first two through .
Appendix J: Convolutional neural network for heart disease diagnosis
The structure of the CNN is given by:
- A first convolutional layer, with 64 filters and a kernel size of 5, designed to identify simple, low-level local patterns.
• A ReLU activation function to introduce nonlinearity, allowing the network to learn more complex relationships.
• A Max-pooling layer with a kernel size of 2.
- A second convolutional layer, with 128 filters and a kernel size of 3. By having more filters and a smaller kernel, it seeks to combine the simple patterns detected by the first layer into more complex features.
• Then a ReLU function and a Max-pooling layer are applied again, and subsequently the output is flattened.
-
Three fully connected layers: the first reduces dimensionality to 128 neurons, the second to 64, and the final one to a single output neuron. Between these layers, ReLU activation functions and Dropout layers with a rate of 0.3 are applied.
-
The final output neuron uses a Sigmoid activation function. This function compresses the output to the range 0 to 1, allowing it to be interpreted as the probability that the patient belongs to each class.
[1] H. Kantz and T. Schreiber, Nonlinear Time Series Analysis (Cambridge University Press, 1997).
[2] J. P. Crutchfield, Nature 8, 17 (2012).
[3] T. M. Cover and J. A. Thomas, Elements of Information Theory, 2nd ed. (Wiley-Interscience, 2006).
[4] P. Grassberger, Int. J. Theor. Phys. 25, 907 (1986).
[5] J. P. Crutchfield and D. P. Feldman, Chaos: An Interdisciplinary Journal of Nonlinear Science 13, 25 (2003).
[6] R. Badii and A. Politi, Complexity: Hierarchical Structures and Scaling in Physics. (Cambridge University Press, 1999).
[7] A. N. Kolmogorov, Probl. Inf. Transm. (English Trans.). 1, 1 (1965).
[8] M. Li and P. Vitányi, An Introduction to Kolmogorov Complexity and Its Applications. (Springer Verlag, 1993).
[9] M. Li, X. Chen, X. Li, B. Ma, and P. Vitanyi, IEEE Trans. Inform. Theory 50, 3250 (2004).
[10] V. D. Gusev, L. A. Nemytikova, and N. A. Chuzhanova, Bioinformatics 15, 994 (1999).
[11] M. Ferrario, M. Signorini, and S. Cerutti, in The 26th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Vol. 4 (IEEE, 2004) pp. 3956–3959.
[12] D. Abasolo, C. J. James, and R. Hornero, in 2007 29th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (IEEE, 2007) pp. 1953–1956.
[13] D. P. Feldman, C. S. McTeque, and J. P. Crutchfield, Chaos 18, 043106 (2008).
[14] A. Chelani, Transportation Research Part D: Transport and Environment 16, 57 (2011).
[15] F. Kaspar and H. G. Schuster, Phys. Rev. A 36, 842 (1987).
[16] E. N. Gilbert and T. T. Kadota, IEEE Trans. Inform. Theory 38 (1992).
[17] A. Baruch and N. Merhav, in 2000 IEEE International Symposium on Information Theory (Cat. No.00CH37060) (IEEE, 2000) p. 99.
[18] M. Alfonseca, M. Cebrián, and A. Ortega, Communications in Information and Systems 5, 367 (2005).
[19] M. Cebrin, M. Alfonseca, and A. Ortega, IEEE Trans. Inform. Theory 53, 1895 (2007).
[20] A. Lesne, J.L.Blanc, and L. Pezard, Phys. Rev. E 79, 046208 (2009).
[21] O. Melchert and A. K. Hartmann, Phys. Rev. E 91, 023306 (2015).
[22] R. Avinery, M. Kornreich, and R. Beck, Phys. Rev. Lett. 123, 178102 (2019), 1709.10164.
[23] P. Grassberger, arXiv (2018), arXiv:1708.03197 [physics:physics].
[24] C. Shannon, Bell Syst. Tech. J. 30, 379 (1951).
[25] C. Shannon, Bell Syst. Tech. J. 30, 50 (1951).
[26] J. Ziv, IEEE Trans. Inf. Th. IT-24, 405 (1978).
[27] H. Zurek, Phys. Rev. A 40, 4731 (1989).
[28] C. H. Bennet, P. Gacs, M. Li, P. M. B. Vitanyi, and H. Zurek, IEEE Trans. Inform. Theory 341, 119 (1998).
[29] H. Zurek, Nature 44, 1407 (1989).
[30] R. Landauer, IBM J. Res. Dev. 3, 183 (1961).
[31] J. Lin, IEEE Trans. Inf. Theory 37, 145 (1991).
[32] D. M. Endres and J. E. Schindelin, IEEE Trans. Inf. Theory 49, 1858 (2003).
[33] T. Schreiber, Phys. Rev. Lett. 85, 461 (2000).
[34] J. F. Restrepo, D. M. Mateos, and G. Schlotthauser, Physical Review E 101, 052117 (2020).
[35] A. Lempel and J. Ziv, IEEE Trans. Inform. Theory 22, 75 (1976).
[36] J. M. Amigó and M. B. Kennel, Chaos: An Interdisciplinary Journal of Nonlinear Science 16, 043102 (2006).
[37] A. Chao and T.-J. Shen, Environmental and Ecological Statistics 10, 429 (2003).
[38] S. Zozor, P. Ravier, and O. Buttelli, Physica A: Statistical Mechanics and its Applications 345, 285 (2005).
[39] E. Aragón-Pérez, A. Mesa-Rodríguez, K. García-Medina, D. Estevez-Moya, A. Mollineda-Rodríguez, and E. Estevez-Rams, lzcomplexity: Parallel Lempel-Ziv factorisation and entropic magnitudes, https://github.com/pleros-ai/lzcomplexity (2026), open-source C++/Python library, Zenodo, https://doi.org/10.5281/zenodo.23531093.
[40] I. Corporation, Intel(R) oneAPI Threading Building Blocks (oneTBB) Documentation. (2023).
[41] M. Crochemore, L. Ilie, and W. F. Smyth, in Data Compression Conference (Dcc 2008) (IEEE, 2008) pp. 482–488.
[42] M. Crochemore and L. Ilie, Information Processing Letters 106, 75 (2008).
[43] M. F. Glasser, S. N. Sotiropoulos, J. A. Wilson, T. S. Coalson, B. Fischl, J. L. Andersson, J. Xu, S. Jbabdi, M. Webster, J. R. Polimeni, D. C. Van Essen, and M. Jenkinson, NeuroImage 80, 105 (2013).
[44] T. Ito, S. L. Brincat, M. Siegel, R. D. Mill, B. J. He, E. K. Miller, H. G. Rotstein, and M. W. Cole, PLOS Computational Biology 16, e1007983 (2020).
[45] A. Mesa-Rodríguez, E. Estevez-Rams, and H. Kantz, arXiv preprint arXiv:2507.04442 (2025).
[46] A. T. Winfree, J. Theor. Biol. 16, 15 (1967).
[47] R. Adler, Proc. of the IEEE 61, 1380 (1973).
[48] Y. K. Kuramoto, in International Symposium on Mathematical Problems in Theoretical Physics, Lectures Notes in Physics No. 30, edited by H. Araki (Springer, New York, 1975) pp. 420–422.
[49] J. . Acebrón, L. L. Bonilla, C. J. P. Vicente, F. Ritort, and R. Spigler, Rev. Mod. Phys. 77, 137 (2005).
[50] L. M. Alonso, Chaos: An Interdisciplinary Journal of Nonlinear Science 27 (2017).
[51] E. Estevez-Rams, D. Estevez-Moya, and B. Aragon-Fernandez, Chaos 28, 23110 (2018).
[52] E. Estevez-Rams, D. Estevez-Moya, and K. Garcia-Medina, Chaos 29, 043105 (2019).
[53] D. Estevez-Moya, E. Estevez-Rams, and H. Kantz, Physical Review E 107, 004212 (2023).
[54] E. Estevez-Rams, K. Garcia-Medina, and B. Aragon-Fernandez, Comm. in Non. Lin. Sci. and Num. Sim. 133, 107989 (2024).
[55] N. H. Packard, in Dynamic patterns in complex systems, edited by J. A. S. Kelso, A. J. Mandell, and M. F. Shlesinger (World Scientific, Singapore, 1988) pp. 293–301.
[56] C. G. Langton, Physica D 42, 12 (1990).
[57] S. A. Kauffman and S. Johnson, in Artificial Life II, edited by C. Langton, G. Taylor, J. D. Farmer, and S. Rasmussen (Addison Wesley, Redwood City, 1992) pp. 325–368.
[58] N. Bertschinger and T. Natschlager, Neural computation 16, 1413 (2004).
[59] E. Estevez-Rams, A. Mesa-Rodríguez, and D. Estevez-Moya, PloS one 14, e0214863 (2019).
[60] A. Mesa-Rodríguez, A. Gonzalez, E. Estevez-Rams, and P. A. Valdes-Sosa, Entropy 24, 1744 (2022).
[61] R. Peña-Mendieta, A. Mesa-Rodríguez, D. Estevez-Moya, J. R. de La Horra, E. Estevez-Rams, and H. Kantz, Plos one 20, e0334694 (2025).
[62] M. Fekete, Math. Z. 17, 228 (1923).
[63] M. Ayer, H. D. Brunk, G. M. Ewing, W. T. Reid, and E. Silverman, The Annals of Mathematical Statistics 26, 641 (1955).
[64] D. Zambella and P. Grassberger, Complex Systems 2, 269 (1988).