Experiments and Results Evaluation


New Data Prediction

Enter features (16 features separated by comma) OR Autogenerate




Features

destination_port,
flow_duration,
total_fwd_packets,
total_backward_packets,
total_length_of_fwd_packets,
total_length_of_bwd_packets,
fwd_packet_length_max,
fwd_packet_length_min,
fwd_packet_length_mean,
fwd_packet_length_std,
min_packet_length,
max_packet_length,
SYN_flag_count,
RST_flag_count,
PSH_flag_count,
ACK_flag_count

Examples:
55153.0, 4.0, 2.0, 0.0, 37.0, 0.0, 31.0, 6.0, 18.5, 17.67766953, 6.0, 31.0, 1.0, 0.0, 0.0, 1.0

Model Comparison

1. Random Forest
Accuracy: 99.98006600367671
Total Correct Prediction  45140.0
Classification Report:
               precision    recall  f1-score   support

      BENIGN       1.00      1.00      1.00     19405
        DDoS       1.00      1.00      1.00     25744

    accuracy                           1.00     45149
   macro avg       1.00      1.00      1.00     45149
weighted avg       1.00      1.00      1.00     45149

2. Neural Network L-BFGS
(Limited-memory Broyden-Fletcher-Goldfarb-Shanno)
Accuracy: 99.93355334558905
Total Correct Prediction  45119.0
Classification Report:
		precision	recall		f1-score	support
BENIGN		1.00      	1.00      	1.00     	19405
DDoS       	1.00      	1.00      	1.00     	25744
accuracy       					1.00     	45149
macro avg       1.00      	1.00      	1.00     	45149
weighted avg    1.00      	1.00      	1.00     	45149

3. XGBoost (eXtreme Gradient Boosting)
Accuracy: 99.59246051961284
Total Correct Prediction  44965.0
Classification Report:
	
precision    recall  f1-score   support	
BENIGN       	1.00      0.99      1.00     19405
DDoS       	0.99      1.00      1.00     25744
	
accuracy                            1.00     45149
macro avg       1.00      1.00      1.00     45149
weighted avg    1.00      1.00      1.00     45149

4. Logistic Regression
Accuracy: 98.62676914217369
Total Correct Prediction  44529.0
Classification Report:
	
		precision    recall  f1-score   support
	
BENIGN		1.00      0.97      0.98     19405
DDoS		0.98      1.00      0.99     25744
	
accuracy			    0.99     45149
macro avg	0.99      0.98      0.99     45149
weighted avg	0.99      0.99      0.99     45149

5. Bernoulli Naive Bayes
Accuracy: 93.59675740326474
Total Correct Prediction  42258.0
Classification Report:
	
		precision	recall		f1-score	support
BENIGN    	1.00      	0.85      	0.92     	19405
DDoS      	0.90      	1.00      	0.95     	25744	
accuracy                           		0.94     	45149
macro avg       0.95      	0.93      	0.93     	45149
weighted avg    0.94		0.94      	0.94     	45149