Ranah Research : Journal of Multidisciplinary Research and Development
Vol. 8 No. 2 (2026): Ranah Research : Journal Of Multidisciplinary Research and Development

Combining Random Forest with Firefly Algorithm to Improve Darknet Traffic Detection

Timothy Lim, Vincent (Unknown)
Roestam, Rusdianto (Unknown)



Article Info

Publish Date
29 Mar 2026

Abstract

Darknet traffic detection system, a cyber-crime activity detection system that detects the use of Tor and VPNs, is one way to reduce the occurrence of darknet cyber-crimes. Current existing detection tools such as machine learning models have shown its capability in detecting darknet network traffics. However, it still faces some limitations in its performance due to suboptimal hyperparameters. One of the existing classification models used for darknet traffic detection, such as Random Forest demonstrated great performance in detecting darknet activities. This research utilizes the Firefly Algorithm (FA), a prominent swarm intelligence method, to fine-tune hyperparameters and enhance the detection capabilities of the Random Forest (RF) model. The proposed RF-FA (Random Forest – Firefly Algorithm) approach is evaluated against the standard Random Forest model. Tests performed on the CIC-Darknet2020 dataset reveal that the Firefly Algorithm improves the RF model's performance in all key metrics. The optimized RF-FA model attains an accuracy, precision, recall, and F1-score of 98.73%, surpassing the baseline RF model, which achieves 98.62% in accuracy, precision, and recall, along with an F1-score of 98.61%.

Copyrights © 2026






Journal Info

Abbrev

R2J

Publisher

Subject

Chemical Engineering, Chemistry & Bioengineering Civil Engineering, Building, Construction & Architecture Economics, Econometrics & Finance Law, Crime, Criminology & Criminal Justice Public Health Social Sciences Transportation Other

Description

Ranah Research : Journal of Multidisciplinary Research and Development adalah jurnal multidisiplin ilmiah yang diterbitkan oleh inasti Research di bawah naungan Yayasan Dharma Indonesia Tercinta (DINASTI). Perbitan jurnal ini 4 kali dalam setahun yaitu November, Februari, Mei, dan Agustus. Ruang ...