Natural Visibility Graph Analysis
- Natural Visibility Graph is a method that converts ordered time series or spatial profiles into undirected graphs based on a visibility criterion, capturing both geometric and temporal features.
- NVG construction employs efficient algorithms like divide-and-conquer, BST encoding, and online LOT methods to balance computational cost, scalability, and accuracy.
- Applications span time-series analysis, spatial profile characterization, and medical data interpretation, while open challenges drive research into robust algorithmic and theoretical advancements.
A Natural Visibility Graph (NVG) is an undirected, unweighted graph derived from an ordered sequence of real-valued observations, typically a time series or a discretized profile (terrain). In NVG construction, each datum is associated to a graph node, and an edge is drawn between two nodes if, and only if, all intermediate points are strictly below the straight line joining their corresponding data values. NVGs encode the geometric and temporal structure of the sequence in a graphical framework, enabling the application of complex network theory to time series analysis, spatial profile characterization, and related pattern recognition tasks (Iacobello et al., 2017, Lacasa et al., 2015, Froese et al., 2019).
1. Algorithmic Construction and Mathematical Foundations
Given a univariate real-valued series or an ordered spatial profile (terrain), the Natural Visibility Graph is defined as follows. Nodes and () are connected by an edge if, for every intermediate index with ,
This criterion can be interpreted geometrically: the line segment from to is not occluded by any in between; all intermediate points lie strictly below the joining line (Iacobello et al., 2017, Huang et al., 2023, Lacasa et al., 2015, Froese et al., 2019).
For spatial terrains, this extends by considering nodes as vertices of the terrain, ordered in 0, and applying the visibility criterion in the 1-plane. NVGs generalize to scalar fields of higher dimension by projecting along multiple directions and applying the visibility rule to 1D slices (Lacasa et al., 2017, Froese et al., 2019). The resulting NVG is always connected, contains a natural Hamiltonian path, and is invariant under affine rescaling of amplitude and abscissa (Lacasa et al., 2015).
2. Graph-Theoretic and Structural Properties
NVGs possess distinct combinatorial and structural features:
- Hamiltonian Path: The sequence order always induces a path 2 (Froese et al., 2019).
- Forbidden Subgraphs: NVGs are persistent graphs, i.e., graphs on an ordered set satisfying the X-property and bar-property:
- X-property: For any 3, if 4, then 5.
- Bar-property: For any non-consecutive 6, there exists 7 with 8 such that 9 is adjacent to both 0 and 1 (Froese et al., 2019).
- Cycles and Antiholes: NVGs may contain holes (induced cycles 2), but with strict order constraints. No NVG contains an induced antihole of size 3 (Froese et al., 2019).
- Degree-Sequence Non-uniqueness: NVGs are not characterized by ordered degree-sequence; non-isomorphic terrains can possess identical degree sequences.
- Planarity: While always connected, NVGs may be non-outerplanar, in contrast to HVGs which are always outerplanar (Lacasa et al., 2015).
- Non-closure under Monotonic Transformation: Unlike HVG, the NVG mapping is not invariant under general monotonic (non-affine) transformations of data values (Lacasa et al., 2015, Lacasa et al., 2017).
3. Computational Algorithms and Complexity
The naive NVG construction is 4, involving pairwise comparison for all node pairs and checking all intermediate points (Lacasa et al., 2015, Iacobello et al., 2017, Huang et al., 2023). Multiple algorithmic advancements have been proposed:
- Divide-and-Conquer: Reduces average-case complexity to 5 (Lacasa et al., 2015, Yela et al., 2019).
- Online BST Encoder/Decoder: By maintaining a max-oriented binary search tree indexed by amplitude, NVG construction supports efficient batch updates in 6 amortized and average-case 7 for full construction. Worst-case for degenerate series is 8 (Yela et al., 2019).
- Linear-Time Online LOT-NVG: For streaming and sliding-window scenarios, a backward-scan with "min-slope" statistics enables strict 9 per-update construction, suitable for high-frequency, latency-sensitive applications. Memory requirements are minimal, storing only the adjacency dictionary of neighbor sets (Huang et al., 2023).
A summary comparison is shown below:
| Algorithm | Average Complexity | Memory Usage | Notes |
|---|---|---|---|
| Naive | 0 | 1 | All pairs tested |
| Divide-Conquer | 2 | 3 | Rebuilds per window |
| BST Encoder | 4 | 5 | Online/batch update |
| LOT (Online) | 6 per step | 7 | Sliding window, streaming |
The choice depends on data size, latency constraints, and update frequency.
4. Metrics and Feature Extraction
NVGs enable extraction of a variety of network-theoretic metrics:
- Degree Centrality: 8; network average 9. Encodes global visibility structure; 0 scales logarithmically for random series (Iacobello et al., 2017, Lacasa et al., 2015, Lacasa et al., 2017).
- Transitivity (Clustering Coefficient): 1, with 2 triangles, 3 connected triples. Measures inter-visibility of neighborhoods (Iacobello et al., 2017).
- Mean Link-Length: 4 where 5. Quantifies mean temporal separation among visible node pairs; lower values indicate more frequent extreme events (Iacobello et al., 2017).
- Motif Profiles: The frequency of small induced subgraphs (e.g., 4-node sequential motifs) can be computed exactly or numerically. For instance, the 4-motif profile 6 can distinguish dynamical classes such as i.i.d. noise, chaotic maps, or AR(1) red noise (Iacovacci et al., 2016).
- Degree Distributions: For i.i.d. random series, the NVG degree distribution is 7, independent of the marginal (Lacasa et al., 2017).
- Irreversibility (Kullback Divergence of In/Out Degree): Assessing time reversibility by comparing in- and out-degree distributions of the directed NVG. 8; 9 indicates reversibility (Lacasa et al., 2015, Iacovacci et al., 2016).
These features provide discriminative signatures for distinguishing stochastic from deterministic dynamics, detecting irreversibility, and extracting global and local timescale statistics (Iacobello et al., 2017, Lacasa et al., 2015, Iacovacci et al., 2016).
5. Applications and Methodological Extensions
NVGs have been employed in multiple domains:
- Time-Series Analysis: Characterization of deterministic vs. stochastic signals, regime detection in turbulence (using degree, clustering, mean link-length), motif-based randomness tests, and extraction of multiscale features (Iacobello et al., 2017, Iacovacci et al., 2016, Lacasa et al., 2015).
- Spatial Profiles and Terrains: Analysis of elevation graphs, terrain navigation, and geometric profile extraction by interpreting spatial series as terrains and constructing their NVGs (Froese et al., 2019).
- Medical Data: Feature extraction from ECG and EEG for classification via NVG-based clustering coefficients, centrality, or motif rates (Froese et al., 2019).
- Streaming and Online Analytics: Real-time monitoring of financial data, anomaly detection in sensor streams, rapid computation of evolving NVG features for online forecasting and classification (Huang et al., 2023, Yela et al., 2019).
- Multidimensional Scalar Fields: Generalization of NVG to arbitrary 0-dimensional fields (e.g., image or spatial data), with applications in image processing, material science, and cancer progression analysis (Lacasa et al., 2017).
The parametric NVG (PNVG) further introduces a continuous "view angle" 1, filtering edges by their slope to reveal hierarchical or percolation-like features and yielding percolation transitions and clustering phenomena not accessible in the static NVG (Bezsudnov et al., 2012).
6. Comparative Analysis: NVG versus HVG and Robustness
The Horizontal Visibility Graph (HVG) is a subgraph of the NVG, defined by the stricter criterion 2 for all 3 between 4 and 5 (Lacasa et al., 2015, Lacasa et al., 2017). HVG is invariant under monotonic transformations and always outerplanar, admitting linear-time construction in many cases. NVG, by virtue of encoding amplitude and convexity information, is more sensitive to marginal distributions and cannot be mapped bijectively by monotonic transforms (except for affine) (Lacasa et al., 2015, Iacovacci et al., 2016).
Motif frequencies and irreversibility statistics exhibit different robustness properties: HVG-based measures are more robust to colored noise, whereas NVG motif profiles are more robust to white noise contamination (Iacovacci et al., 2016).
For benchmark processes:
- White noise yields reversible NVG and HVG.
- Chaotic or memory-containing processes yield finite irreversibility.
- Random walks remain reversible for NVG even with drift due to linear-trend invariance.
The choice between NVG and HVG depends on the type of invariance or sensitivity (amplitude, order, nonlinearity) desired for the application.
7. Limitations and Open Research Problems
NVGs possess several methodological and theoretical limitations:
- Computational Cost: Quadratic time complexity for naive algorithms restricts applicability to large datasets, despite progress in online and divide-and-conquer acceleration (Yela et al., 2019, Huang et al., 2023).
- Uniqueness and Recognition: No complete graph-theoretic characterization is known. While persistence (X- and bar-property) is necessary, it is not sufficient; not all unit-interval graphs are NVGs, and there exist non-isomorphic terrains with identical degree profiles (Froese et al., 2019).
- Affine but not General Monotonic Invariance: NVG construction is not robust to arbitrary nonlinear value transformations (Lacasa et al., 2015).
- Physical Interpretation of Metrics: Degree centrality conflates peaks and irregularities; clustering may be dominated by scale, requiring context-specific interpretation (Iacobello et al., 2017).
- Univariate and Undirected Restriction: Standard NVG mapping does not encode multivariate coupling or directionality beyond basic time orientation; extensions to multivariate or weighted variants remain challenging (Iacobello et al., 2017).
- Streaming/Windowing Limitations: Linear-time online algorithms for fixed windows may lose long-range correlations, necessitating multi-window analysis or multitree data structures for full multiscale coverage (Huang et al., 2023).
Key open questions include: the existence of a full graph-theoretic specification, polynomial-time recognition, tractability of classic graph problems on general NVGs, and development of efficient algorithms for higher-dimensional and multivariate extensions (Froese et al., 2019). Research continues on connecting NVG structural features to physical or biological mechanisms in time series and spatial fields.