Random Forest reaches 0.99 F1 score for IoT intrusion detection on Gotham2025 dataset
Random Forest outperforms other ML models with an F1-score of 0.99 on the Gotham2025 IoT intrusion dataset
AI/ML arXiv 30 Jun 2026 Measurement Simulation evidence
Published as “Comparative Analysis of Machine Learning based Intrusion Detection in Realistic IoT Networks”
Why it matters
Random Forest can provide near-perfect detection of IoT attacks in a centralized deployment, but the small residual error and centralization limit immediate applicability to distributed IoT environments.
Summary
Random Forest achieves perfect 100% accuracy and a macro-average F1-Score of 0.99 on the Gotham2025 IoT intrusion dataset, outperforming XGBoost, a deep neural network, logistic regression and Naive Bayes. The paper evaluates five ML models on a 7-million-sample realistic IoT dataset, showing large variation in per-class performance. Evidence is based on reported classification reports; however, the claim of perfect accuracy is qualified by a small misclassification rate (up to 0.45%). No abstract was provided, so details may be missing.
What they found 5
- Random Forest attains perfect accuracy and macro-F1 0.99
“The classification report in Table 3 indicates an overall accuracy of 100% and a macro-average F1-Score of 0.99”
- XGBoost reaches perfect accuracy but lower macro-F1 0.97
“The classification report in Table 4 indicates an overall accuracy of 100% and a macro-average F1-Score of 0.97”
- Logistic Regression obtains 99% accuracy and macro-F1 0.72
“The classification report in Table 5 shows an overall accuracy of 99% and a macro-average F1-score of 0.72”
- Naive Bayes performs poorly with 56% accuracy and macro-F1 0.43
“The report indicates an overall accuracy of 56%, a macroaverage F1-Score of 0.43”
- A simple three-layer DNN yields macro-F1 0.91
“Table 7 indicates that the deep neural network model achieved 0.91% as a Macro Average F1-Score”
Caveats 4
- Random Forest still misclassifies up to 0.45% of instances: "with at most 0.45%, which is a small percentage misclassified as other labels"
- All the settings of our experiments in which these machine learning models are tested are centralised.
- SVM was also among the machine learning models chosen, as it ranks second to Random Forest [23]. However, it struggled to handle the large dataset effectively, as shown by our experiments, where training took days without completion on both our local computing systems and Google Colab.
- Several challenges were encountered concerning interrupted experiments and device overheating during training, which impacted the experimental process.
What’s new here 4
- First comparative study using the recent Gotham2025 dataset with 78 emulated IoT devices and over 7 million records.
- Evaluates a broad set of ML models (Random Forest, XGBoost, Logistic Regression, Naive Bayes, DNN) on the same realistic IoT traffic.
- Provides per-class precision/recall/F1 for six attack categories, highlighting the impact of class imbalance.
- Discusses centralized training limitations and outlines future federated-learning directions.