Abstract
Various things propagate through the medium of individuals. Some individuals follow the others and take the states similar to their states a small number of time steps later. In this paper, we study the problem of estimating the state propagation order of individuals from the real-valued state sequences of all the individuals.We propose a method of constructing a state propagation graph from individuals’ time series of observed states. The propagation order estimated by our proposed method is demonstrated to be significantly more accurate than that by a baseline method (optimal constant delay model) for our synthetic datasets, and also to be consistent with visually recognizable propagation orders for the dataset of Japanese stock price time series and biological cell firing state sequences.
Similar content being viewed by others
Introduction
Sometimes, it is very important to analyze how things such as vibration, heat, cell firing, information, virus and etc, propagated. The objectives of such analyses are diverse from identification of the sources and the propagation routes to learning a propagation model for prediction. Physical propagation such as vibration and heat follows physical law. However, biological propagation such as cell firing has more ambiguous propagation rules, and propagation through the medium of human beings such as information and virus propagation is more complex.
The state propagation from one individual to another individual can be seen as a simple causal relationship between them. Granger causality1 and transfer entropy2 are well-known methods for investigating the causal relationship between time series, and their extensions and applications have been still energetically investigated3,4,5. In these methods, a parameterized stationary model is assumed and long time series are needed for its parameter estimation. Contrary to the fact that these methods can deal with various kinds of influence, the state propagation treats only the influence of taking similar states with some delay. By virtue of this simplicity, propagation relation estimation does not need such long time series.
In this study, we propose an alignment-based method of estimating state propagation relationship between a pair of individuals from their time series of observed states. There already has existed an extended Granger causality method into which a kind of alignment called dynamic time warping (DTW) is incorporated to deal with the arbitrary-time-lag influence between time series6. Different from this Granger causality extension, we estimate time delays of the propagations and use them to estimate direct and indirect propagations. Time delay estimation among signals7,8 has been studied well in the context of source localization, however, only constant time delays are dealt with there. We treat variable time delays and estimate time delay sum.
From the estimated state propagation relationships between all the pairs of individuals, we construct an estimated state propagation graph whose edges are composed of the estimated direct propagations only. As for propagations through networks, various information or influence propagations have been studied: word-of-mouth marketing9,10,11,12, epidemics13,14,15, innovation diffusion16,17 and so on. In most of these studies, networks are assumed to be given and not needed to be estimated though there are studies on propagation probability estimation through edges in a given network18,19,20,21,22. Studies on propagation through social networks are popular23,24,25, but in most social networks, relation between users are visible and not needed to be estimated. Recently, methods to reconstruct a complex network from binary time series have been developed26,27, but those methods require the sufficient length of binary time series because they use the maximum-likelihood estimation of the probabilities associated with presence or absence of links.
In our proposed method, for each pair of individuals (i, j), we calculate the time delay sum of individual j’s states from individual i’s matched states averaged over all the minimum cost alignments between their state time series. Then, propagation direction between i and j is estimated as \(i\rightarrow j\) if such averaged time delay sum is positive, and as \(j\rightarrow i\) if it is negative. From individual pairs (i, j) with non-zero average time delay sum, we construct an estimated propagation graph whose vertices are individuals and whose edges are estimated direct propagation. In the construction, in order to exclude indirect propagation edges, we greedily remove the edge (i, j) with the largest average time delay sum if there is an indirect path from i to j and the delay is at least an estimated upper bound of direct propagation \(\theta \), and remove all the edges between vertices in the same estimated layer.
According to our experiments using real-valued and binary-valued time series synthetic datasets generated by stochastic delay models, the edge sets of propagation graphs estimated by our method achieved comparable or higher F-measure and layer accuracy than those by a baseline method (optimal constant delay model), where layer accuracy is the accuracy of the estimated number of steps to be taken for propagation from the source individuals to each individual. In order to demonstrate practical usefulness of our method, we applied our method to propagation analyses of stock price and biological cell firing. For both datasets, the propagation order estimated by our proposed method is shown to be consistent with visually recognizable propagation order. The propagation delay is not stable for stock price propagation, but which stocks tended to follow which stocks in a given period is interesting information and automatic visualization may be useful to investors. Our method is considered to be useful for analyses of such unstable propagation.
Methods
Problem setting
Let I denote a set of individuals \(\{1,\dots ,N\}\). We let [n] denote \(\{1,\dots ,n\}\) for any positive integer n, so \(I=[N]\). At each time step \(t=1,\dots ,T\), each individual \(i\in I\) takes state \(s_i[t]\in Y\), where \(Y={\mathbb {R}}\) or \(\{0,1\}\). Let \({\mathbf {s}}_i\) denote the state time series of length T whose tth value is \(s_i[t]\), that is, \({\mathbf {s}}_i=s_i[1]\cdots s_i[T]\). We consider the following state propagation between individuals. Assume that there exist source individuals and the states propagate from individuals to individuals at each time. As for state propagation, we assume the following.
Assumption 1
Each individual i but the source individuals, follows some other individuals j, and the follower i takes state \(s_i[t]\) similar to state \(s_j[t-\Delta _{i,j}[t]]\) with small time step delay \(\Delta _{i,j}[t]\) at each time step t.
Note that, in real applications, \({\mathbf {s}}_i\) is composed of periodically sampled values and the number and interval of sampling are very important issues to detect the direction of propagation. In this paper, we do not argue those issues and assume that appropriate number and interval of sampling are taken to construct the state time series.
The state propagation can be represented by a state propagation graph G(V, E) with vertex set \(V=I\) and directed edge set \(E=V\times V\), in which directed edge \((i,j)\in E\) exists if and only if individual j directly follows i. The problem we try to solve in this paper is formalized as follows.
Problem 1
Given a set \(\{{\mathbf {s}}_1,\dots ,{\mathbf {s}}_N\}\) of the length-T state time series of individuals in \(I=[N]\), estimate the state propagation graph with vertex set I under Assumption 1.
Note that, considering that V is fixed to I, a solution of the above problem is estimation \({\hat{E}}\) of the directed edge set E.
Alignment-based direction estimation
Let \({\mathbf {s}}_i\) and \({\mathbf {s}}_j\) be the state time series of individuals i and j. From \({\mathbf {s}}_i\) and \({\mathbf {s}}_j\), we estimate in which direction \(i\rightarrow j\) or \(j\rightarrow i\) the states propagated. As an estimation method, we propose a method based on the sum of delay times at matched positions in the minimum cost alignments between \({\mathbf {s}}_i\) and \({\mathbf {s}}_j\). An alignment of two time series \({\mathbf {s}}_i\) and \({\mathbf {s}}_j\) is a pair of two same length sequences \({\mathbf {s}}'_i\) and \({\mathbf {s}}'_j\) which are made from \({\mathbf {s}}_i\) and \({\mathbf {s}}_j\), respectively, by inserting some values at some positions in \({\mathbf {s}}_i\) and \({\mathbf {s}}_j\) so as to take similar values at the same positions. As an inserted value, two types of values are considered: a gap \(\text{\textvisiblespace} \) in gap-based alignment and the same value as the previous-position’s value in DTW(dynamic time warping)-based alignment. For example, one of gap-based alignments between two binary-state time series \({\mathbf {s}}_i=001000100\) and \({\mathbf {s}}_j=000100010\) is
and one of DTW-based alignments between two real-state time series \({\mathbf {s}}_i=2210022310\) and \({\mathbf {s}}_j=1221022231\) is
![figure a](http://media.springernature.com/lw685/springer-static/image/art%3A10.1038%2Fs41598-022-10031-3/MediaObjects/41598_2022_10031_Figa_HTML.png)
There are various alignments between a pair of time series but only the minimum cost alignments are considered for a given cost function \(w: (Y\cup \{\textvisiblespace \})^2\rightarrow {\mathbb {R}}\), where the cost of the alignment \(({\mathbf {s}}'_i, {\mathbf {s}}'_j)\) is defined as \(\sum _{t=1}^{T'}w(s'_i[t],s'_j[t])\) for the length \(T'\) of the aligned sequences \({\mathbf {s}}'_i\) and \({\mathbf {s}}'_j\). As for a cost function, we use the absolute difference \(w(x,y)=|x-y|\) in a DTW-based alignment. In a gap-based alignment, we use a problem dependent cost function. For example, in the case that \(Y=\{0,1\}\) and each 1-state in one sequence is strongly preferred to be aligned to 1-state in the other sequence by shifting positions unless their position difference is large (\(2\times \text {(position difference)}>\alpha \)) or the number of 1-states is different, the following cost function seems to be appropriate:
For the cost function (Eq. 2) with \(\alpha =3\), the cost of the alignment (Eq. 1) is 2, which is a minimum cost alignment. There are 6 minimum cost alignments between the time series \({\mathbf {s}}_i=001000100\) and \({\mathbf {s}}_j=000100010\) for the cost function. Let \(M({\mathbf {s}}'_i,{\mathbf {s}}'_j)\) denote the set of matched position pairs in the alignment \(({\mathbf {s}}'_i,{\mathbf {s}}'_j)\). For example, \(M({\mathbf {s}}'_i,{\mathbf {s}}'_j)\) for the alignment (Eq. 1) is \(\{(1,2),(2,3),(3,4),(4,5),(5,6),(6,7),\) \((7,8),(9,9)\}\). Define the time delay of a matched position pair \((t'_i,t'_j)\) by \(t'_j-t'_i\), and consider the time delay sum of \({\mathbf {s}}'_j\) from \({\mathbf {s}}'_i\) calculated by \(\sum _{(t'_i,t'_j)\in M({\mathbf {s}}'_i,{\mathbf {s}}'_j)}(t'_j-t'_i)\). For example, the time delay sum of \({\mathbf {s}}'_j\) from \({\mathbf {s}}'_i\) for the alignment (Eq. 1) is \(1+1+1+1+1+1+1+0=7\). The time delay sums for the other 5 minimum cost alignments are 5, 6, 6, 7, 8, so the time delay sum averaged over all the 6 minimum cost alignments is 6.5.
Using the average time delay sum of the minimum cost alignments, we estimate the direction of state propagation between individuals i and j by the following rule (E).
-
(E)
The propagation direction is estimated as \(i\rightarrow j\) if the time delay sum of \({\mathbf {s}}'_j\) from \({\mathbf {s}}'_i\) averaged over the minimum cost alignments \(({\mathbf {s}}'_i,{\mathbf {s}}'_j)\) between \({\mathbf {s}}_i\) and \({\mathbf {s}}_j\) is positive, and \(j\rightarrow i\) if that is negative.
Edge set estimation
By rule (E), directions are decided for all the individual pairs but those with zero average time delay sum. If we let the estimated edge set \({\hat{E}}\) be the set of all \((i,j)\in I\times I\) with non-zero average time delay sum, the following two issues arise:
-
P1
\({\hat{E}}\) contains many edges with small average time delay sum, which connects pairs of synchronized individuals.
-
P2
\({\hat{E}}\) contains (i, j) for which individual i’s state not directly but indirectly affects individual j’s state through the medium of some other individual k.
As a countermeasure for P2, that is, in order to delete indirectly affecting edges, we define a candidate edge as an edge with average time delay sum larger than threshold \(\theta \) and sort all the candidate edges by average time delay sum in descending order and greedily delete edge (i, j) one by one for which an indirect path from i to j exists. Threshold \(\theta \) should be set to the estimated maximum average time delay sum of directly affecting edges. In the distribution over average time delay sum between all the individual pairs, average time delay sum between directly affecting pairs is considered to form the highest peak with high probability. So, we set \(\theta \) to the first valley position larger than the highest peak position in the distribution of the average time delay sum estimated by kernel density estimation.
For P1, we try to partition V into layers by classifying the synchronized individuals to the same layer, and then delete all the edges between vertices in the same layer. For a given graph G(V, E), define the 0-layer set \(V^E_0\) as the set of vertices with indegree 0. If there is no vertex with indegree 0, define \(V^E_0\) as the set of vertices for which the maximum average time delay sum among all the incoming edges is the smallest among those for all the vertices. Define the i-layer set \(V^E_i\) recursively as the set of vertices that do not belong to the j-layer set \(V^E_j\) for any \(j=0,1,\ldots ,i-1\) but have an incoming edge from some vertex in the \((i-1)\)-layer set \(V^E_{i-1}\).
Given a graph \(G(V,{\hat{E}})\) with \(V=I\) and the set \({\hat{E}}\) of directed edges e whose direction is estimated by its average time delay sum \({\text {AD}}(e)\), and threshold \(\theta \), the whole process of edge set estimation is described as follows.
-
1.
\(e_1,\ldots ,e_m\leftarrow \) sorted list of edges \(e\in {\hat{E}}\) with \({\text {AD}}(e)>\theta \) in descending order of \({\text {AD}}(e)\).
-
2.
For \(e=e_1,\dots ,e_m\), remove the edges \(e=(i,j)\in {\hat{E}}\) if there exists an indirect path from i to j.
-
3.
Set \(V_0^{{\hat{E}}}\) to the set of vertices in V whose indegree is 0.
-
4.
Set i to 1. Repeat the followings until \(V\setminus \bigcup _{j=0}^{i-1}V_j^{{\hat{E}}}=\emptyset \): set \(V_i^{{\hat{E}}}\) to the set of vertices in \(V\setminus \bigcup _{j=0}^{i-1}V_j^{{\hat{E}}}\) that has an incoming edge from a vertex in \(V_{i-1}^{{\hat{E}}}\), and then increase i by 1.
-
5.
Remove all the edges \((i,j) \in {\hat{E}}\) whose end points i, j belong to the same layer \(V_k^{{\hat{E}}}\) for some \(k\in [N]\).
Example
Figure 1 is the summary diagram of our method with a toy example. In the example, state time series \(s_1,\dots s_5\) for five individuals \(1,\dots ,5\) are assumed to be observed and the average time delay sum of every pair is calculated. (The number written on each edge indicates its average time delay sum.) Threshold \(\theta \) is set to 15.6 because it is the first valley position larger than the highest peak position around 10 in the distribution of the average time delay sum estimated from the set of the average time delay sums \(\{1,2,9,10,10,10,11,11,20,21\}\) using kernel density estimation. In this case, the average time delay sum 20 and 21 of edges (1, 3) and (1, 4), respectively, are more than \(\theta \), so in descending order of average time delay sum, first, edge (1, 3) is checked if there exists an indirect path from vertex 1 to vertex 3 and removed because there exists, then, edge (1, 4) is checked similarly and removed. Finally, the five vertices are divided into three layers by their path lengths from vertex 1, which is the vertex with indegree 0, and the estimated edge set \({\hat{E}}\) is made by removing all the edges between the same layer’s vertices. In the last procedure, edges (2, 5) and (4, 3) are removed in our example.
Numerical simulations and application to real-world datasets
In this section, we experimentally show effectiveness of our method using synthetic and real world datasets. The gap-based cost w defined by Eq. (2) with \(\alpha =3\) is used by the proposed method using gap-based cost in all the experiments for binary state propagation. Generating graphs and plots in our experiments was executed in Mathematica28.
Experiments using synthetic datasets
First, we evaluate how accurate the estimated edge set \({\hat{E}}\) by the proposed method is for the real-valued and binary state sequence dataset generated from a delay model with a given ground truth propagation graph G(V, E).
Ground truth graphs and datasets
[Real-valued State Propagation] We generate the dataset using ground truth propagation graph G(V, E) shown in Fig. 2a. The length-100 time series \(s_i[1]\cdots s_i[100]\) for each vertex (individual) \(i=1,\dots ,10\) are generated by the following steps. Note that \(\text {in}(i)\) denotes the set of vertices from which edges come to vertex i.
-
Step 1
Generate an i.i.d. sequence \(s_1[1],\dots ,s_1[100]\sim N(0,5^2)\).
-
Step 2
Generate the sequence \({\mathbf {s}}_i\) as follows in the order of \(i=4,9,10,2,3,5,6,7,8\):
-
1
\(s_i[1],s_i[2]\sim N(0,5^2)\), \(\Delta _{j,i}[2]\leftarrow \tau _1\) or \(\tau _2\) (\(\tau _1, \tau _2 \in {\mathbf {Z}}_{\ge 0}\)) randomly for \(j\in \text {in}(i)\).
-
2
For \(t=3,4,\dots ,100\) and \(j\in \text {in}(i)\), generate \(s_i[t]\) as
$$\begin{aligned} \Delta _{j,i}[t]\leftarrow&{\left\{ \begin{array}{ll}\Delta _{j,i}[t-1] &{} \text { with prob. } 3/4\\ \tau _1 + \tau _2 - \Delta _{j,i}[t-1] &{} \text { with prob. } 1/4\end{array}\right. }\\ \varepsilon \leftarrow&\text {random value generated according to } N(0,1)\\ s_i[t]\leftarrow&\left( \sum _{j\in \text {in}(i)}s_j[t-\Delta _{j,i}[t]]\right) /|\text {in}(i)|+\varepsilon . \end{aligned}$$
-
1
(a) Ground truth graph G(V, E) in the experiment of real-valued state propagation using synthetic datasets. (b) The probability density of average time delay sum estimated by kernel density estimation for one of the synthetic datasets. The black circle (\(\theta = 180.7\)) indicates a threshold value adopted by our method. (c) The estimated graph \(G(V,{\hat{E}})\) from one of the datasets by the proposed method. In \(G(V,{\hat{E}})\), black and magenta arrows are edges in E and \({\hat{E}}\setminus E\), respectively. Each vertex’s color indicates its belonging layer. (d) The number of datasets in which parameter \(\beta \) of the bandwidth achieves the minimum MLD.
We generated 100 datasets using this procedure in our experiment for each \((\tau _1,\tau _2)=(1,2),(0,1)\). Note that \(\tau _1\) and \(\tau _2\) are two possible time delays and \(\Delta _{j,i}[t]\in \{\tau _1,\tau _2\}\) holds for all \(i=2,\dots ,10\), \(j\in \text {in}(i)\) and \(t=2,\dots ,100\).
[Binary state propagation] The dataset is generated by propagation model in which individuals are located in 2-dimensional real space and state-1 of individual j is propagated from individuals i within some distance, then the ground truth graph G(V, E) is generated from the dataset and individuals’ location information. Note that the proposed method estimates E without individuals’ location information. Given a parameter \(0<p\le 1\) of the state-1 propagation probability, the length-200 time series \(s_i[1]\cdots s_i[200]\) for each vertex (individual) \(i=1,\dots ,50\) is generated as follows.
-
Step 1
For \(i=1,\dots ,50\), the location \(r_i\) of individual i is randomly selected according to uniform distribution over \([0,M]^2\).
-
Step 2
For \(t=1,\dots ,200\), set \(s_1[t]=1\) if \(t\%10 = 1\) and set \(s_1[t]=0\) otherwise, where \(\%\) is modulus operator.
-
Step 3
For \(i=2,\dots ,50\) and \(t=1,\dots ,200\), set \(s_i[t]=1\) with probability p if the following two conditions
-
1
\(\exists j\) s.t. \(\Vert r_j-r_i\Vert \le 35\), \(s_j[t-1]=1\) (there is an individual within distance 35 that takes state 1 at just one step before) and
-
2
\(s_i[t-k]=0\) for all \(k=1,2,\dots ,\min \{5,t-1\}\) (state-1 interval of each individual is at least 5),
are satisfied and set \(s_i[t]=0\) otherwise.
-
1
From the dataset \(\{{\mathbf {s}}_1,\dots ,{\mathbf {s}}_{50}\}\) generated above and location information \(\{r_1,\dots ,r_{50}\}\), edge set E of the ground truth propagation graph G(V, E) is created as follows. Let n(i, j) denote the number of individual j’s state 1 caused by individual i’s state 1, that is,
where \(|\cdot |\) denotes the number of elements in set ‘\(\cdot \)’. Then, E is defined as
A ground truth graph G(G, E) for one dataset with \(p=0.95\) is shown in Fig. 3a.
(a) The ground truth graph G(V, E) in the experiment of binary state propagation using one of the synthetic datasets with \(p=0.95\). (b) The probability density of average time delay sum estimated by kernel density estimation for the dataset. The black circle (\(\theta = 287.2\)) indicates a threshold value adopted by our method. (c) The estimated graph \(G(V,{\hat{E}})\) by the proposed method for the dataset. Each individual i is located at \(r_i\). In \(G(V,{\hat{E}})\), black arrows are edges in E and magenta arrows are edges in \({\hat{E}}\setminus E\). Note that \({\hat{E}}\) includes E (recall 1.0) for this dataset. Each individual’s color indicates its belonging layer: blue, green, yellow, orange and red individuals belong to \(V^{{\hat{E}}}_0\), \(V^{{\hat{E}}}_1\), \(V^{{\hat{E}}}_2\), \(V^{{\hat{E}}}_3\), and \(V^{{\hat{E}}}_4\), respectively. (d) The number of datasets in which parameter \(\beta \) of the bandwidth achieves the minimum MLD.
In the experiment, we generate 100 datasets and corresponding ground truth graphs for each \(p=1.00, 0.95, 0.90, 0.80, 0.70,\) 0.60, 0.50.
Evaluation measures
As a direct evaluation measure of delay estimations, we define mean absolute error of average time delay (MAEATD) as follows. For \((i,j)\in E\), define \(D_{i,j}\) as \(D_{i,j}=\sum _{t=a}^{T}\Delta _{i,j}[t]\) and let \({\hat{D}}_{i,j}\) denote its estimation, where a is the maximum possible time delay in the ground truth model. Then, MAEATD for estimations is defined as \(\text {MAEATD}=\frac{1}{|E|(T-a)}\sum _{(i,j)\in E}|{\hat{D}}_{i,j}-D_{i,j}|\).
Using directed edge set E of the ground truth propagation graph, we evaluate an estimated directed edge set \({\hat{E}}\) in terms of precision (Prec), recall (Rec) and F-measure (FM) defined as
Note that our method cannot rank the edges, so evaluation using precision-recall or ROC curve is difficult. How to balance precision and recall depending on applications is one of our future research issues.
In our setting, time series of vertices in the same layer are similar to each other even if their incoming edges are different. In that sense, it is impossible to correctly guess incoming edges, that is, from which vertices in the previous layer the states were propagated directly. Thus, we also evaluate \({\hat{E}}\) in terms of looser measures. We can also consider layer partition \(V_0^{{\hat{E}}}, V_1^{{\hat{E}}},\cdots \) for \(G(V,{\hat{E}})\) like layer partition \(V_0^E, V_1^E,\cdots \) that is defined in the section titled “Edge Set Estimation” for the ground truth propagation graph G(V, E). Then, we define layer accuracy (LA) and Mean layer difference (MLD) of \({\hat{E}}\) as
where \(\ell ^E(i)\) denote the individual i’s belonging layer in G(V, E), that is, \(\ell ^E(i)=j {\mathop {\Leftrightarrow }\limits ^{\text {def}}} i\in V^E_j\).
As a baseline method, we consider a method outputs Minimum Mean Squared Error (MMSE) constant time delay \({\hat{D}}_{i,j}\) of individual j’s states from individual i’s states29, which is defined as
where \(\%\) is modulus operator. If there are multiple candidates for \({\hat{D}}_{i,j}\), we adopt \({\hat{D}}_{i,j}\) with the smallest absolute value. Using \({\hat{D}}_{i,j}\), propagation direction is estimated as \(i\rightarrow j\) if \({\hat{D}}_{i,j}>0\) and \(j\rightarrow i\) if \({\hat{D}}_{i,j}<0\). We construct estimated edge set \({\hat{E}}\) of the baseline method by applying the procedure proposed in the section titled “Edge Set Estimation” using \({\hat{D}}_{i,j}\) instead of the average time delay sum of \(s_j\) from \(s_i\).
Parameters of kernel density estimators
In all the experiments, we use Gaussian kernel in the kernel density estimation. The results of all the simulations were almost the same for other kernels: Biweight, Cosine, Epanechnikov and Triangular. As for the bandwidth h, we use the following rule of thumb:
where \(\beta \) is a positive constant, \({\hat{\sigma }}\) is the standard deviation of the samples, \(Q_1\) and \(Q_3\) are the lower and upper quartiles, respectively, and n is the sample size. Constant \(\beta \) is set to 0.9 in Silverman’s rule of thumb30. In the experiments using synthetic datasets, \(\beta \) is set to the value with the minimum MLD that is found by a grid search in \(\{0.01, 0.02, 0.03, \dots , 1.99, 2.00 \}\).
Results
[Real-valued state propagation] Performance comparison with the baseline method by the evaluation measures is shown in Table 1.
Note that the values in the table are averaged over 100 datasets and the parenthesized values are their \(95\%\) confidence intervals. Our method significantly outperforms the baseline method in all the measures for \((\tau _1,\tau _2)=(0,1)\) and have comparable performance to it for \((\tau _1,\tau _2)=(1,2)\). The reason for performance degrade of the baseline method in the case with \((\tau _1,\tau _2)=(0,1)\) is guessed to be its coarse estimation; it can distinguish one-layer (direct) and two-layer (indirect) propagation differences for \((\tau _1,\tau _2)=(1,2)\) because their expected average delay times are 1.5 and 3 whose nearest integer sets are \(\{1,2\}\) and \(\{3\}\), respectively, so no intersection exists between them, but for \((\tau _1,\tau _2)=(0,1)\), it cannot distinguish their differences because their expected average delay times are 0.5 and 1 whose nearest integer sets are \(\{0,1\}\) and \(\{1\}\), respectively, so 1 is a common value. The estimation of our proposed method is fine enough for distinguishing such differences.
The estimated propagation graph \(G(V, {\hat{E}})\) by the proposed method for one of the synthetic datasets is shown in Fig. 2c. Parameter \(\theta \) is set to 180.7 from the estimated distribution (Fig. 2b). For this dataset, there are some falsely detected edges but all the edges in E are correctly detected and all the falsely detected edges keep the correct layer structure. (Fig. 2c). The frequencies of the best grid values \(\beta \) for the bandwidth of kernel density estimation are shown in Fig. 2d, which says that \(\beta =0.15\sim 0.30\) are appropriate for these datasets.
[Binary state propagation]
Performance comparison with the baseline method by our evaluation measures is shown in Table 2. The proposed method outperformed the baseline method in all the measures except precision and for all the p values except 0.5. Precisions of both the methods are low compared to their recalls, that is due to correct edge (directly affecting edge) definition: location information is used to define the ground truth graph edges but such information is not used in this experimental setting. Our method successfully estimates each individual’s belonging layer with high LA and low MLD when p is around 1 and keeps LA about 0.8 even for \(p=0.6\).
The estimated graph \(G(V,{\hat{E}})\) by the proposed method for one of the datasets with \(p=0.95\) is shown in Fig. 3c. For the dataset, parameter \(\theta \) is set to 287.2 from the estimated distribution (Fig. 3b). There are many falsely detected edges but all the edges in E are correctly detected and all the falsely detected edges keep the correct layer structure. The frequencies of the best grid values \(\beta \) for the bandwidth of kernel density estimation are shown in Fig. 3d, which says that \(\beta =0.2\sim 0.9\) are appropriate for these datasets.
Application to real-world datasets
For real-world datasets, there is no ground truth graph so the measures adopted for synthetic datasets cannot be used to evaluate performance. Thus, only what we can do is to visually check the consistency of the estimated propagation graphs with given datasets. As for parameters of kernel density estimation, we use Gaussian kernel and set the bandwidth-related parameter \(\beta \) to 0.25 because \(\beta =0.2\sim 0.3\) are appropriate values for both the real-valued and binary state propagations in the experiments using synthetic datasets.
Stock price analysis
We report our analysis of stock price propagation by the proposed method. Stock price fluctuates greatly and its propagation is ambiguous and the propagation direction often changes. In that sense, it does not seem to satisfy Assumption 1, but our method can be used to extract a trend such as which stock price tends to follow which stock price during the period in total. Here, we show the result of such trend analysis using opening stock price time series for one year period. We used the datasets of stock price time series of 2145 companies listed on the first section of the Tokyo Stock Exchange for the period from 4th January to 30th December in 2019. The set of the listed companies is partitioned into 17 sectors by TOPIX-17 series31. The given time series \(p_j[t]\) (\(t=0,\dots ,240\)) is the sequence of the opening stock price of company j on tth day for \(j=1,\dots ,2145\). We standardized each time series \(p_j\) to \(p'_j\) so that \(p'_j[t]\) (\(t=0,\dots ,240\)) have mean zero and standard deviation one. The time series \(s'_i[t]\) (\(t=0,\dots ,240\)) is the standardized sequence of the opening stock price on tth day averaged over companies in sector i for \(i=1,\dots ,17\). Then, \(s_i[t]\) (\(t=1,\dots ,239\), \(i=1,\dots ,17\)), which is an estimated derivative of \(s'_i\) at time t, is calculated by equation \(s_i[t] = \frac{(s'_i[t]-s'_i[t-1]) + (s'_i[t+1]-s'_i[t-1])/2}{2}\). Figure 4b shows the estimated propagation graph with the vertices of 17 sectors by the proposed method for threshold \(\theta = 26.6\), which is determined from estimated distribution of average time delay sum (Fig. 4a). Figure 4c shows the minimum cost path between the time series \(s_{9}\) and \(s_{17}\) in the dynamic programming table for calculating the minimum cost, which is composed of the optimally matched positions between the two time series. The horizontal and vertical axes are positions of \(s_{9}\) and \(s_{17}\), respectively, and the points above the diagonal line (black points) mean that \(s_{9}\) is delayed from \(s_{17}\) at those positions and the points below the diagonal line (light blue points) means that \(s_{17}\) is delayed from \(s_{9}\) at those positions. The average time delay sum of \(s_{9}\) from \(s_{17}\) is 22.0, which means that \(s_{9}\) tends to follow \(s_{17}\) in total. In fact, comparing to the diagonal line, there are more above points than the below points. Figure 4d shows the line graph of time series \(s'_{9}\) and \(s'_{17}\) with gray and light blue lines connecting their corresponding matched positions in the alignment. You can see that \(s_9\) (derivative of \(s'_9\)) follows \(s_{17}\) during two long time periods [59, 77] and [193, 208] with small time delays.
Results for stock market datasets. (a) Probability density of average time delay sum estimated by kernel density estimation for stock market datasets. We used Gaussian kernel with a bandwidth with the parameter \(\beta = 0.25\). The black circle (\(\theta = 26.6\)) indicates a threshold value adopted by our method. (b) The estimated stock price propagation graph by the proposed method. Each vertex is labeled by its representing sector number. Each vertex’s color indicates its belonging layer: blue, green, yellow and orange vertices belong to \(V^{{\hat{E}}}_0\), \(V^{{\hat{E}}}_1\), \(V^{{\hat{E}}}_2\), and \(V^{{\hat{E}}}_3\), respectively. The thickness of an edge shows the size of the average time delay; the thicker the edge is, the longer the delay is. (c) The minimum cost alignment path between \(s_{9}\) and \(s_{17}\) in the dynamic programming table for the minimum cost alignment. The diagonal positions correspond to no delay, and above and below diagonal positions correspond to the statuses of delayed \(s_9\) and \(s_{17}\), respectively. (d) Line graph of time series \(s'_{9}\) and \(s'_{17}\) with their matched positions in the minimum cost alignment. The average time delay sum of \(s_9\) from \(s_{17}\) is 22.0. The horizontal axis is time, and the vertical axis is standardized stock price. Gray and light blue lines between \(s'_{9}\) and \(s'_{17}\) indicate estimated correspondences between the stock price derivative time series \(s_{9}\) and \(s_{17}\) in the minimum cost alignment. The gray (light blue) lines indicate that the sector 9 (sector 17) follows the sector 17 (sector 9). (e) The standardized sequences of the opening price for NAGAWA (black) and KYOKUTO BOEKI KAISHA (blue). Lines between them indicate their corresponding positions. The horizontal axis is time, and the vertical axis is standardized stock price. NAGAWA looks following KYOKUTO BOEKI KAISHA with large time delay during time period between 60 and 190.
Among the set of pairs of individual stocks, stock pairs that have clearer leader-follower relationship can be found. Figure 4e shows the standardized sequences of the opening price for one of those pairs (“NAGAWA”, “KYOKUTO BOEKI KAISHA”) with the lines connecting corresponding points between them. In the figure, you can see that black stock (NAGAWA) follows blue stock (KYOKUTO BOEKI KAISHA) with large time delay during period between 60 and 190.
Cell’s firing analysis
We applied our method to estimating firing state propagation order of biological cells. The dataset is composed of 250-frame \(\{0,1\}\)-state and 2D-location sequences of 172 cells, where states 1 and 0 represent firing and not firing, respectively. Our method uses state sequences alone and location sequences are used only for result visualization.
We used the data of 144 cells except for 28 cells which could not be measured properly due to noise. From the set of 144 binary sequences with length 250, we extracted 4 datasets \(I_1, I_2, I_3\) and \(I_4\), each of which is composed of 144 length-100 consecutive subsequences starting at frame \(t=1, 51,101\) and 151, respectively, of the original length-250 sequences.
The layer partitions of the estimated graphs by the proposed method for thresholds \(\theta = 67.1(I_1), 52.9(I_2), 11.4(I_3), 10.5(I_4)\) are shown in Fig. 5a, where \(\theta \)s are determined from estimated distributions of average time delay sum (Fig. 5b). For datasets \(I_2, I_3\) and \(I_4\), the first layer’s cells look located around the lower right and the last layer’s cells look located around the upper left, and the locational direction of layer sequence \(V^{{\hat{E}}}_0, V^{{\hat{E}}}_1,\cdots \) looks from the lower right to the upper left. Figure 6a shows \(\{0,1\}\)-state sequences in dataset \(I_4\). We can see that cells with similar sequences are classified into the same layer. Appropriateness of the estimated layer order can be also confirmed by Layer-consensus state sequences shown in Fig. 6b.
Estimated layer partitions and probability densities of the average time delay sum. (a) Layer partitions of the estimated propagation graphs for \(I_1\) (cell location: \(t=50\)), \(I_2\) (cell location: \(t=100\)), \(I_3\) (cell location: \(t=150\)), \(I_4\)(cell location: \(t=200\)), respectively from left. (b) Probability density of average time delay sum estimated by kernel density estimation for each dataset; \(I_1\), \(I_2\), \(I_3\), and \(I_4\), respectively from left. We used Gaussian kernel with a bandwidth with the parameter \(\beta = 0.25\). The black circles indicate threshold values adopted by our method.
(a) \(\{0,1\}\)-cell-state sequences for period \(I_4\). Each row represents the state sequence of the corresponding cell. Colored and blank states are firing (1) and non-firing (0) states, respectively, and color indicates each cell’s belonging layer. (b) Layer-consensus \(\{0,1\}\)-cell-state sequences for period \(I_4\). The ith row represents the consensus state sequence among the ith layer cells, where the consensus state at time t means the majority state at that time.
Concluding remarks
We proposed the way of constructing a state propagation graph that visualizes the estimated state propagation order of individuals. According to our experiments using real-valued and symbolic time series synthetic datasets generated by stochastic delay models, the edge sets of propagation graphs estimated by our method achieved comparable or higher F-measure and layer accuracy than those by a baseline method (optimal constant delay model), where layer accuracy is the accuracy on the number of steps to be taken in propagation from the source individuals to each individual.
In order to demonstrate practical usefulness of our method, we applied our method to propagation analyses of stock price and biological cell firing. For both datasets, the propagation order estimated by our proposed method is shown to be consistent with visually recognizable propagation order. The propagation delay is not stable for stock price propagation, but which stocks tended to follow which stocks in a given period is interesting information and automatic visualization may be useful to investors. Our method is considered to be useful for analyses of such unstable propagation.
References
Granger, C. W. Investigating caucal relations by economics models and cross-spectral methods. Econometrica J. Econometr. Soc. 37, 424–438 (1969).
Schreiber, T. Measuring information transfer. Phys. Rev. Lett. 85, 461 (2000).
Quinn, C. J., Kiyavash, N. & Coleman, T. P. Directed information graphs. IEEE Trans. Inf. Theory 61, 6887–6909 (2015).
He, J. & Shang, P. Comparison of transfer entropy methods for financial time series. Physica A Stat. Mech. Appl. 482, 772–785 (2017).
Schwab, P., Miladinovic, D. & Karlen, W. Granger-causal attentive mixtures of experts: Learning important features with neural networks. AAAI. 33, 4846–4853 (2019).
Amornbunchornvej, C., Zheleva, E. & Berger-Wolf, T. Y. Variable-lag granger causality for time series analysis. in 2019 IEEE International Conference on Data Science and Advanced Analysis (DSAA) 21–30 (2019).
So, H. C., Chan, Y. T. & Chan, F. K. W. Closed-form formulae for time-difference-of-arrival estimation. IEEE Trans. Signal Process. 56, 2614–2620 (2008).
Quazi, A. An overview on the time delay estimate in active and passive systems for target localization. IEEE Trans. Acoust. Speech Signal Process. 29, 527–533 (1981).
Domingos, P. & Richardson, M. Mining the network value of customers. in Proceedings of the Seventh ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’01, 57–66 (2001).
Goldenberg, J., Libai, B. & Muller, E. Talk of the network: A complex systems look at the underlying process of word-of-mouth. Market. Lett. 12, 211–223 (2001).
Jiakun Wang, X. W. & Li, Y. A discrete electronic word-of-mouth propagation model and its application in online social networks. Physica A. 527 121172 (2019).
Zhang, T. et al. A discount strategy in word-of-mouth marketing. Commun. Nonlinear Sci. Number Simulat. 74, 167–179 (2019).
Hethcote, H. W. The mathematics of infectious diseases. SIAM Rev. 42, 599–653 (2000).
Clara Stegehuis, R. v. d. H. & van Leeuwaarden, J. S. H. Epidemic spreading on complex networks with community structures. Sci. Rep. 6, 1–7 (2016).
Kabir, K. A. & Tanimoto, J. Analysis of epidemic outbreaks in two-layer networks with different structures for information spreading and disease diffusion. Commun. Nonlinear Sci. Number Simulat. 72, 565–574 (2019).
Rogers, E. M. Diffusion of Innovations 5th edn. (Free Press, 2003).
Tao Wu, X. X., Leiting Chen & Guo, Y. Evolution prediction of multi-scale information diffusion dynamics. Knowl.-Based Syst. 113, 186–198 (2016).
Goyal, A., Bonchi, F. & Lakshmanan, L. V. Learning influence probabilities in social networks. in Proceedings of the Third ACM International Conference on Web Search and Data Mining, WSDM ’10, 241–250 (2010).
Saito, K., Nakano, R. & Kimura, M. Prediction of information diffusion probabilities for independent cascade model. in Proceedings of the 12th International Conference on Knowledge-Based Intelligent Information and Engineering Systems, Part III, KES ’08, 67–75 (2008).
Goyal, A., Bonchi, F. & Lakshmanan, L. V. S. A data-based approach to social influence maximization. Proc. VLDB Endow. 5, 73–84 (2011).
Mathioudakis, M., Bonchi, F., Castillo, C., Gionis, A. & Ukkonen, A. Sparsification of influence networks. in Proceedings of the 17th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’11, 529–537 (2011).
Devesh Varshney, S. K. & Gupta, V. Predicting information diffusion probabilities in social networks: A Bayesian networks based approach. Knowl.-Based Syst. 133, 66–76 (2017).
Bonchi, F. Influence propagation in social networks: A data mining perspective. in 2011 IEEE/WIC/ACM International Conferences on Web Intelligence and Intelligent Agent Technology, 1, 2–2 (2011).
Simon Bourigault, S. L. & Gallinari, P. Representation learning for information diffusion through social networks: An embedded cascade model. in Proc. of WSDM (2016).
Shahin Mahdizadehaghdam, H. K., Han Wang & Dai, L. Information diffusion of topic propagation in social media. IEEE Trans. Signal Inf. Process. Netw. 2, 569–581 (2016).
Ma, C., Chen, H.-S., Lai, Y.-C. & Zhang, H.-F. Statistical inference approach to structural reconstruction of complex networks from binary time series. Phys. Rev. E 97, 022301 (2018).
Zhang, Y., Li, H., Zhang, Z., Qian, Y. & Pandey, V. Network reconstruction from binary-state time series in presence of time delay and hidden nodes. Chin. J. Phys. 67, 203–211 (2020).
Inc., W. R. Mathematica, Version 12.1.1. Champaign, IL, 2020.
So, H. C. Time delay estimation: Applications and algorithms. https://sigport.org/documents/time-delay-estimation-applications-and-algorithms. (2015). Accessed 20 Dec 2021.
Silverman, B. W. Density Estimation for Statistics and Data Analysis (Chapman & Hall, 1986).
TOPIX Sector Indices / TOPIX-17 Series. https://www.jpx.co.jp/english/markets/indices/line-up/files/e_fac_13_sector.pdf. Accessed 16 July 2021.
Acknowledgements
We would like to thank Prof. Kazuki Horikawa of Tokushima University for giving us a motivation to study the problem treated in this paper. We would also like to thank Prof. Tamiki Komatsuzaki for helpful comments to improve this research. This work was supported by JSPS KAKENHI Grant number JP18H05413, Japan.
Author information
Authors and Affiliations
Contributions
T.H. and A.N. conceived, conducted the method, and wrote the paper. T.H. conducted numerical simulations. All authors reviewed the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Hayashi, T., Nakamura, A. Propagation graph estimation from individuals’ time series of observed states. Sci Rep 12, 6078 (2022). https://doi.org/10.1038/s41598-022-10031-3
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-022-10031-3
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.