Introduction and background

Cerebral blood flow together with cerebrospinal fluid dynamics (CSF) determine the value of the Intracranial Pressure (ICP) (Czosnyka and Pickard 2004), that is the pressure happening inside the brain tissue and the CSF. ICP can be affected and altered due to traumatic brain injury (TBI) and other neurocritical conditions of the central system, that can affect dramatically its behaviour (Czosnyka and Pickard 2004). The ICP monitoring requires the application of an intracranial pressure transducer, and can be continuosly checked in patients affected by severe brain injuries or similar life threatening conditions (Czosnyka and Pickard 2004; Hu et al. 2009). The information contained in the ICP signal is of vital importance to predict critical medical situations such as intracranial hypertension, i.e. ICP peaks. Increase of the ICP can in fact lead in the worst cases to the death of the patient, and the analysis of elements that could possibly signal the presence of such condition, is of vital importance. To the best of our knowledge only a few works concentrate on the identification of a model describing the intracranial system behaviour. For example in (Hu et al. 2007) a hidden state estimation algorithm is used for the estimation of unobserved measurements, such as ICP and cerebral blood flow velocity (CBFV). This is a two steps model, in which parameters of a modified nonlinear intracranial mathematical model are first identified in an offline stage. Subsequently a nonlinear Kalman filter estimator is applied to evaluate unobserved variables, given some measurements such as ICP and cerebral blood flow velocity (CBFV). The relationship of ICP with respect to other monitored parameters is in fact a key aspect to study. An example of this is (Hu et al. 2008). Here the authors present ApEN, an algorithm based on the adaptive calculation of approximate entropy, integrated with a causal coherence analysis that is able to exploit the potential interaction between ICP and R wave intervals (Hu et al. 2008). On the other hand, in (Hu et al. 2007) the authors extract indices of causal coherence and generalized synchronization, considering beat to beat mean intracranial pressure measurements and intervals between consecutive normal sinus heartbeat (ICP and RR intervals). Starting from own visual observations in the dataset described in the following section, we noticed the presence of cross-talks interaction events happening between the HR and ICP time series. We decided therefore to model the phenomenon, via complex event processing methods. Complex network models have been widely applied in many fields, due to the capability of capturing interesting properties of very different type of systems (Albert and Barabási 2002; Newman 2010). Networks analysis in fact can capture irregular systems structures, together with their complex and dynamic evolution, and can be suitable for the analysis of large heterogenous types of systems (Boccaletti et al. 2006). Quite recently the science of complex networks has been applied to time series analysis. An example of construction of complex networks from pseudoperiodic time series is (Zhang and Small 2006). In this paper the authors show how noisy time series correspond to random networks, while chaotic time series exhibit small world and scale free properties (Zhang and Small 2006). An interesting application of such approach was made in terms of comparison between healthy and coronary care patients (Zhang and Small 2006). Therefore the underlying nature of the two time series could be detected by looking at their network representation. Another interesting approach has been proposed by (Marwan et al. 2009). In the paper the authors compute the recurrence matrix of the time series, and use it as the adjacency matrix of the complex network. Then they analyse such network, using standard network metrics. A further important methodology that links time series and complex networks is the, so called, visibility graph approach (Lacasa et al. 2014). In particular visibility graphs are a family of methods that were used extensively in literature in recent years (Lacasa et al. 2008). Applications are in different areas from climate dynamics (Donges et al. 2009), to the analysis of the gold price time series (Long 2013), to the detection of sequential motifs in visibility graphs (Iacovacci and Lacasa 2016). An extensive review of the applications of such methodology is done in (Nuñez et al. 2012). More recently this approach has been extended to the case of multivariate time series, as proposed in (Lacasa et al. 2014). This allows to map a multivariate time series into a multi-layer network (Bianconi 2013; Kivelä et al. 2014) in the so called multiplex visibility graph (Lacasa et al. 2014) (see Methods for details). From such model, using the metrics of complex network theory, interesting insights and new information on the behaviour of the multivariate time series can in fact be detected. Therefore, starting from the visual observation that HR and ICP present peaks at similar points in time, we first performed an explorative statistical analysis on the correlation between HR and ICP time series. We then implemented a naive sliding window approach to the two time series, to detect cross talks events between the two parameters. The two time series were then modelled as a multiplex visibility graph network. Multilayer graph metrics were then obtained to investigate and analyse the behaviour of HR-ICP relationship during cross talks events.

Dataset

Data were collected prospectively from 27 pediatric TBI patients admitted to Addenbrooke’s Hospital, Cambridge, Pediatric Intensive Care Unit (PICU), between August 2012 and December 2014. TBI patients with a clinical need for ICP monitoring were included for analysis. The insertion of an intracranial monitoring device is a standard in clinical practice and as such did not require ethical approval. Data are routinely collected for clinical purposes and guide the management of patients. The analysis of data within this study for the purposes of service evaluation, was approved by the Cambridge University Hospital NHS Trust, Audit and Service Evaluation Department (Ref:2143) and did not require ethical approval or patient consent. Several different parameters were collected such as ABP mean arterial pressure (mmHg), HR heart (Hz) an ICP intracranial pressure (mmHg). The data sampling rate was 200 Hz.

Methods

We first performed an exploratorive analysis based on standard time series techniques. For an early intuition on the dynamics of the system, we decided to use the recurrence plots (RP) (Eckmann et al. 1987; Marwan et al. 2007) to identify the possibility of similar behaviour happening between the HR and the ICP of each patient. RP is a statistical technique used for non linear data. Data are visualized through a graph in a square matrix (columns and rows represent a pair of time points), and the elements are representation of the times at which a state of the dynamical system recurred (Recurrence Plots 2017).

A sliding window approach for cross-talks detection

We implemented a naive sliding window approach for the detection of cross talks events in the time series (Dimitri et al. 2017). The goal was to identify the presence of episodes, where both ICP and HR increased by 20% with respect to the minimum value in a given window of the time series. The algorithm implemented works as follows:

  1. 1

    Consider two time series X=x 1,x 2,x 3,...,x N and Y=y 1,y 2,...y N

  2. 2

    Consider a window W of length L that slides across the whole length of the time series simultaneously

  3. 3

    If in both time series the maximum value in the ith time window considered is at least a 20% higher than the minimum value in this time window, and if after the maximum value there is a decrease of at least 20% then a cross talk event is detected.

Such approach gave us the possibility to identify the presence of a number of crosstalks events happening in the two time series as we summarize in Table 1. The number of such events found per patient has a high interval of variation ranging from 184 to 0. This can depend on many different factors such as the seriousness of the patient condition. The threshold of 20%, as well as the length of 10 minutes for the time window, were selected according to clinical and medical observations, but different windows length for observation can be studied according to clinical reasons. In particular 10 minutes is a reasonable length for the possibility of a timely intervention by the clinician. The code written, in R and available upon requests from the authors, allows to try and evaluate differente thresholds and different windows lengths.

Table 1 Number of cross talks events for each patient detected by the naive sliding window approach

Multilayer networks

The area of multilayer networks has seen an increasing interest and applicability in many different fields in recent years. A multilayer network can be defined as M=(G,C) where G is a set of graphs and C is the interconnection between them (Boccaletti et al. 2014). Several important metrics and descriptors of single layer networks have been generalized to the case of multilayers. For example in (De Domenico et al. 2013) the authors present a tensorial framework to study multi-layer networks and present many different topological metrics, generalized for the case of a multilayer approach. Other important works concentrate on the generalization of concepts, such as community detection, to the multilayer case. An example is (Mucha et al. 2010). Here the authors focus on the extension of the community detection approach to a multilayer network in a time dependent and multiscale environment. In (Cozzo et al. 2015) for example they generalize the concept of clustering coefficient for multilayer networks, showing drawbacks and difficulties of the generalization procedure from single layer to multi layer networks. In (De Domenico et al. 2016) the authors provide a deep and extended description of processes on multilayer networks, highlighting some of the physical phenomena that are related to spreading processes. A specific example of a multilayer network is the multiplex network in which each layer has the same nodes. Therefore the interlayer connection happen between each node and the correspondent one in the other layers. Structural measures for multiplex networks have been formalized as (Battiston et al. 2014) shows.

The multiplex horizontal visibility graph

To map the time series into a graph, we adopted the Visibility Graph approach (Lacasa et al. 2014; Lacasa et al. 2012). Two variants of the visibility graph mapping exist: the Natural Visibility Graph (NVG) and the Horizontal Visibility Graph (HVG). The former is based on the following criterium: each node in the graph corresponds to a time stamp and two nodes share an edge if the two time stamps can see each other (Lacasa et al. 2008). This means that given a time series of N data points and given two points z and t, with their corresponding values y z and y t , these two will be connected by an edge, if for a given value y l between y z and y t the following holds (Lacasa et al. 2008):

$$ y_{l}<y_{t}+(y_{z}-y_{t})\frac{t-l}{t-z} $$
(1)

The second criterium, the so called Horizontal Visibility Criterion, works as follows: two nodes t and z share an edge connection in the horizontal visibility graph if given any other time values x l the following holds:

$$ x_{l}<inf(x_{t},x_{z}), \forall l:t<l<z $$
(2)

The latter version of the visibility graph is computationally more tractable and presents interesting outplanar properties that makes it easier to interact and deal with. Complexity of both algorithms is low, with a O(NlogN) for both NVG and HVG. We decided to use the HVG in our experiments. This is due to the fact that HVG have been shown to work well with short correlation and short-scale visibility correlation, as they typically present an exponentially decaying degree distribution (Sannino et al. 2017). Since we were interested in analysisng the behaviour of the multivariate time series system formed by ICP and HR, we adopted the multiplex visibility graph approach of (Lacasa et al. 2014). Suppose in fact to have M time series. Then following the visibility graph approach, each time series can be mapped as a layer in the multilayer representation, and since every graph in each layer presents the same set of nodes (the temporal time stamp t), this is the so called multiplex graph (Battiston et al. 2014; Boccaletti et al. 2014). In our modelling we proceeded as follows:

  1. 1

    We used the naive sliding window approach to obtain significant non overlapping windows, in which a cross talk event was detected based on the definition previously stated.

  2. 2

    We mapped each time series window in which a cross talk was detected into a graph following the HVG approach

  3. 3

    We performed graphs and network statistics as described in the results section

For the complete reference on the mathematical model please refer to: (Lacasa et al. 2008; Lacasa et al. 2012; Luque et al. 2009). We used two metrics for the evaluation of the multilayer graph. The first indicator is the average edge overlap. Such metric is defined in (Battiston et al. 2014; Bianconi 2013; De Domenico et al. 2013) as:

$$ \langle O \rangle=\frac{1}{k}\sum\limits_{i,j}o_{ij} $$
(3)

where \(o_{ij}=\frac {1}{M}\sum \limits _{\alpha }\alpha _{ij}^{[\alpha ]}\). The average edge overlap is a way to quantify the coherence of the overall graph and the higher it is, the higher the coherence of the graph layers. The second metric is the interlayer mutual information: this is defined as (Lacasa et al. 2014):

$$ I_{\alpha,\beta}=\sum\limits_{k^{[\alpha]}k^{[\beta]}}P(k^{[\alpha]},k^{[\beta]})log\frac{P(k^{[\alpha]},k^{[\beta]})}{P(k^{\alpha})P(k^{\beta})} $$
(4)

and in this case P(k [α],k [β]) is the joint probability of having a node with degree k [α] at layer α and of degree k[β] at layer β. Such measure is in part limited to the fact that only the degree distribution of the network is considered. More sophisticated and complete measures exist, as shown in (De Domenico et al. 2015).

Results and discussion

We present here the results of our analysis. In Figs. 1 and 2 we show two recurrence plots, respectively, for the HR and ICP time series of the patients. In this figure the black dots represent recurrent points in the system and the lines parallel to the diagonal, show the determinism of the two time series considered. Moreover the similarity in the recurrence plots suggests the presence of an interaction between the two time series (Dimitri et al. 2017).

Fig. 1
figure 1

Recurrence Plots. The figure shows the recurrence plots of the ICP for a patient.The parameters used for the recurrence plots were (d=2 and m=3, where m is the embedding dimension and d is the delay)

Fig. 2
figure 2

Recurrence Plots. The figure shows the recurrence plots of the HR time series for a patient.The parameters used for the recurrence plots were (d=2 and m=3, where m is the embedding dimension and d is the delay)

Consequently we applied a naive sliding window approach to detect windows in which cross talks events were taking place. This led to the identification of various candidate windows. We observed a high variability in terms of the number of events detected per patients and this can be due to many different reasons, starting from the severity of the trauma and other biological meanings. The time window considered for detecting the presence of a cross talk event is 10 minutes of observations. The number of cross talks events detected for each patient is summarized in Table 1. Figure 3 shows a window in which a cross talk event is identified for one of the patients. Once obtained the window, we proceeded to the transformation of that time series window into a HVG. As an example in Fig. 4 and in Fig. 5 we show the horizontal visibility graphs obtained from the cross-talk event from Fig. 3 and in Fig. 6 we show the multiplex structure of the two graphs obtained for the time window considered. In such graph we obtain the following results for the average edge overlap and the mutual interaction information parameters of the multiplex network: ω=0.7920, Interlayer Mutual Information =0.7285. As an example in Fig. 7 and in Fig. 8 we show the graphs of the ICP and HR where no cross talks events were detected. In this case we obtain: ω=0.6029, Interlayer Mutual Information =0.7035. For a summary measure regarding the ω and the Interlayer Mutual Information we proceeded as follows: for each patient we considered 10 windows in which a cross talk was detected and 10 windows in which no cross-talk was present. Then we computed the average value of the ω average edge overlap, the mutual information for the 10 windows with cross talks and the 10 windows without cross talks. The results of such analysis are shown in Table 2. We chose 10 because it seemed a reasonable number to take, given the high variability of cross talks events across patients. For this reason we discarded only a few patients. Considering the table, we can see how there seems to be a trend in the way the ω and the Mutual Interaction behaves with respect to Cross Talks and non Cross Talks events. In particular there seems like the ω value is more stable between the two cases. On the other hand, the Mutual Interaction, has a more clear trend of increasing on average when a cross talk event is detected as compared to when there is no cross talk. This is in fact shown in the last row of the Table 2 where the average values of each column are presented. This would suggest that when a cross talk event takes place, the two time series are more similar than when no cross talks events are detected. Such preliminary findings suggest therefore how the network topology metrics considered so far, could be of extreme importance for a further analysis of the system. In fact there could be the possibility of using a network modelling in order to extract topological features that could be used for the prediction of crosstalks events happening in the case of brain traumatic patients.

Fig. 3
figure 3

Cross Talk Event Event Plot. The figure shows the plot of HR and ICP time series, in a time window where a cross talk event is detected

Fig. 4
figure 4

HR graph with cross talk. The figure shows the HR horizontal visibility graph corresponding to the time window in which a cross talk is detected and shown in Fig. 3

Fig. 5
figure 5

ICP graph with cross talk. The figure shows the ICP horizontal visibility graph corresponding to the time window in which a cross talk is detected and shown in Fig. 3

Fig. 6
figure 6

Visualization of the multiplex visibility graph for the ICP and HR with a cross talk event: Multiplex Visibility graph of ICP and HR in the time window with a cross talk event detected (Mikko 2017)

Fig. 7
figure 7

ICP graph with no cross talk. The figure shows the ICP horizontal visibility graph corresponding to the time window in which no cross talks events are detected

Fig. 8
figure 8

HR graph with no cross talk. The figure shows the HR horizontal visibility graph corresponding to the time window in which no cross talks events are detected

Table 2 Average value of the average edge overlat and mutual interaction for cross talks and non cross talks events windows

Conclusion and future directions

We present here a multiplex network model for the analysis of multivariate time series. In particular we analysed the behaviour of the intracranial pressure (ICP) and the heart rate (HR) in a cohort of 27 pediatric brain traumatic patients. We first applied some basic statistical techniques, such as recurrence plot, to study the behaviour of the two time series. Afterwards we applied a naive sliding window approach to detect the presence of cross-talks and non cross-talks events. We then modelled our system using the multivariate time series horizontal visibility graph approach as described in (Lacasa et al. 2014). In particular we analysed the behaviour of the multivariate system considering two multilayer network metrics: the average edge overlap and the interlayer mutual correlation. We decided to use these two measures as classical indicators adopted in the literature for a first endeveour to analyse the system. We evaluated the average trend of these two metrics on 10 cross-talks and non cross-talks events for each patient. Findings suggest that while the average edge overlap seems to have a more stable behaviour between the two situations, the mutual interaction on the other hand shows a more clear trend. In particular the average value increases when cross talks events are detected, meaning that the two time series behaves more similarly in this case. Future directions of research includes the integration of further parameters that are monitored in this cohort of patients, and that could help in the analysis and understanding of the cross talks behaviour. We therefore plan to extend our multiplex model, also considering further multiplex network properties and measures in the analysis and integrating the biological knowledge regarding the system into its network representation.