BEYOND ACCURACY IN AI-BASED NETWORK INTRUSION DETECTION: A CROSS-DATASET EVALUATION OF ROBUSTNESS, PROBABILITY CALIBRATION, AND EXPLANATION STABILITY
Abstract
Network intrusion detection benchmarks are complicated because the attack prevalence and traffic composition vary. This study is to compare two network flow datasets and quantify the differences in the probability scores between the two when attack prevalence from one network flow data is applied to another. Count data from both (NF-UNSW-NB15-v2, NF-ToN-IoT-v2) was used for descriptive analysis. The attack prevalence and distribution of attack categories were determined for each release of the data sets. In both settings, the Brier score was used to assess constant predictions based on the respective attack prevalence in every dataset. This calculation was an attempt to keep the effect of prevalence differences constant by letting the probability of each flow in each comparison be equal. A total of 19,330,771 flows were released in the two releases. The difference between the attack prevalence of NF-UNSW-NB15-v2 and NF-ToN-IoT-v2 is 60.02 percentage points. There were 9 attack categories for both datasets. Attacks in NF-UNSW-NB15-v2 were mostly exploits (33.19%) and NF-ToN-IoT-v2 had the greatest number of scanning attacks (34.88%). This yielded a Brier score of 0.5906 for applying the development prevalence for each external flow vs. a Brier score of 0.2304 for the external prevalence. Reverse transfer gave the score as 0.3984 but the development prevalence score was 0.0382. The value of the constant probability added to the squared prediction error was 0.3602 for both positive and negative should it have been added. These results provide a prevalence benchmark for interpreting probability scores across benchmarks. Predictions and fitted model feature attributions are required to properly evaluate detector robustness, calibration, and the stability of the explanation..
Keywords
- Network intrusion detection, cross-dataset evaluation, attack prevalence, dataset shift, netflow, Brier score
Views & Downloads Statistics (Last 12 Months)
Monthly performance and trends of article views and downloads








