Optimized random forest framework for big data-driven network intrusion detection with SparkML

The rapid growth in scale and complexity of modern network traffic has significantly challenged traditional network intrusion detection systems (NIDS). Traditional NIDS struggle to process high-volume, high-velocity data streams while sustaining high detection accuracy, creating critical security gaps in large-scale environments. To address this limitation, this study proposes a scalable, big data-driven NIDS on Apache Spark’s SparkML library. The system was evaluated on the BigFlow-NIDS dataset, contains 66.9 million network flow records with 55 features with 32 attack categories. Six machine learning models; decision tree (DT), logistic regression (LR), random forest (RF), Naive Bayes (NB), linear support vector machine (LSVM), and gradient boosting tree (GBT) were systematically benchmarked for binary (attack versus benign) classification. Feature engineering reduced the features from 51 to the top 20 features. A threshold-optimized RF framework was then proposed to maximize attack F1-score under a strict attack-recall floor of 0.99. Experimental results show that the optimized RF model improved accuracy from 95.99% to 97.31% with a ROC-AUC of 0.9940. At the optimal threshold of 0.07, it achieved a 99.38% attack detection rate, sustained a throughput of 108,465 flows/second, and recorded a false-positive rate of 17.86%, demonstrating its effectiveness as a high-sensitivity first-stage filter.

Authors

Institutions

Publication Details

Journal
Bulletin of Electrical Engineering and Informatics
Published
2026-12-01
DOI
https://doi.org/10.11591/eei.v15i6.13925
Primary Topic
Network Security and Intrusion Detection
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Optimized random forest framework for big data-driven network intrusion detection with SparkML

Mohammad Shamsul Arefin, Jannatul Ferdaus, Mohammed Borhan Uddin, Zaid Rehman
1 links
Bulletin of Electrical Engineering and Informatics
Network Security and Intrusion Detection
article

Optimized random forest framework for big data-driven network intrusion detection with SparkML

Mohammad Shamsul Arefin, Jannatul Ferdaus, Mohammed Borhan Uddin, Zaid Rehman
article en

Abstract

The rapid growth in scale and complexity of modern network traffic has significantly challenged traditional network intrusion detection systems (NIDS). Traditional NIDS struggle to process high-volume, high-velocity data streams while sustaining high detection accuracy, creating critical security gaps in large-scale environments. To address this limitation, this study proposes a scalable, big data-driven NIDS on Apache Spark’s SparkML library. The system was evaluated on the BigFlow-NIDS dataset, contains 66.9 million network flow records with 55 features with 32 attack categories. Six machine learning models; decision tree (DT), logistic regression (LR), random forest (RF), Naive Bayes (NB), linear support vector machine (LSVM), and gradient boosting tree (GBT) were systematically benchmarked for binary (attack versus benign) classification. Feature engineering reduced the features from 51 to the top 20 features. A threshold-optimized RF framework was then proposed to maximize attack F1-score under a strict attack-recall floor of 0.99. Experimental results show that the optimized RF model improved accuracy from 95.99% to 97.31% with a ROC-AUC of 0.9940. At the optimal threshold of 0.07, it achieved a 99.38% attack detection rate, sustained a throughput of 108,465 flows/second, and recorded a false-positive rate of 17.86%, demonstrating its effectiveness as a high-sensitivity first-stage filter.

Bulletin of Electrical Engineering and InformaticsVol. 15(6)
Chittagong University of Engineering & Technology (BD)
University of Engineering and Technology, Lahore
Network Security and Intrusion Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon