arXiv:2610.02342cs.AIOct 2026

Manuscript Offprint

arXiv:2610.02342

A Multi Method Importance and Performance Efficiency Analysis of Topological Metrics for Natural Visibility Graph Based Cyber Attack Detection

Ali Melih Kanca, Ilker Turker

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Natural Visibility Graph (NVG)-based analysis enables network traffic to be characterized through multiple topological descriptors reflecting different structural properties of the resulting graphs. However, the relevance of these descriptors to cyber-attack classification may vary considerably, while extracting a large set of graph metrics can also increase computational cost. Determining which topological metrics are most informative and whether classification capability can be maintained using a reduced metric set is therefore important for improving both the interpretability and computational efficiency of NVG-based cyber-attack detection. This study systematically evaluates 21 NVG-derived topological metrics covering centrality, path length, clustering coefficient, community structure, graph diameter, and degree-based characteristics. Four complementary importance-analysis methods—SHAP, grouped Permutation Importance, Boruta, and Recursive Feature Elimination (RFE)—are employed, and their rankings are integrated through a Consensus Ranking strategy. Based on the resulting ranking, progressively reduced configurations comprising Full21, Top15, Top10, Top7, Top5, and Top3 metrics are evaluated in terms of classification performance and computational cost. Experiments on the CSE-CIC-IDS2018 dataset using a CNN classifier and stratified 5-fold cross-validation identify avg_clustering_coeff_median, avg_clustering_coeff_std, and avg_clustering_coeff_mean as the three highest-ranked metrics. Among the evaluated configurations, Top3 achieved the highest observed mean predictive performance, with 97.148% accuracy, 97.055% weighted F1-score, and an MCC of 0.9675, compared with 95.999% accuracy, 95.521% weighted F1-score, and an MCC of 0.9549 for Full21. Moreover, Top3 reduces total runtime from 14,961.39 s to 589.22 s, corresponding to a 96.06% reduction. These findings indicate that, under the evaluated experimental setting, importance-guided metric reduction can yield a compact NVG representation associated with higher observed mean predictive performance while substantially reducing computational cost.

Keywords: Cybersecurity, Intrusion Detection, Natural Visibility Graph, Topological Metrics, Feature Importance, Artificial Intelligence.

INTRODUCTION

Accurate identification of malicious network activities remains a fundamental requirement for protecting modern networked systems against diverse cyber threats. Machine learning (ML) and deep learning (DL) approaches have demonstrated strong capabilities for network intrusion detection; however, their effectiveness depends not only on the classification model but also on how network traffic is represented.

Graph-based representations provide an alternative to conventional flow-level analysis by capturing structural relationships among sequential traffic observations. In particular, Natural Visibility Graphs (NVGs) transform numerical sequences into graph structures while preserving their ordering and structural variation. These graphs can subsequently be characterized using topological descriptors such as centrality, clustering coefficient, path length, modularity, diameter, and degree statistics.

However, not all NVG-derived topological metrics necessarily contribute equally to cyber-attack classification. Moreover, extracting a large number of graph metrics can increase computational cost. Identifying the most informative metrics and determining whether compact metric subsets can preserve classification capability are therefore important for both interpretability and computational efficiency.

This study evaluates 21 NVG-derived topological metrics using four complementary approaches: SHAP, grouped Permutation Importance, Boruta, and Recursive Feature Elimination (RFE). Their rankings are integrated through a Consensus Ranking strategy. The resulting ranking is then evaluated using progressively reduced configurations—Full21, Top15, Top10, Top7, Top5, and Top3—to examine the effect of metric reduction on classification performance and computational cost.

The main contributions of this study are threefold: (i) a multi-method importance analysis of 21 NVG-derived topological metrics, (ii) a consensus-based evaluation of progressively reduced metric configurations, and (iii) a performance-efficiency analysis examining whether compact NVG representations can maintain predictive capability while reducing computational requirements.