Downloads · 30 days
0
Sakni-Tasnim/network-threat-detector
network-threat-detector is a tabular classification model from Sakni-Tasnim. Use it for the tabular classification task on the model card, and read the license before you ship it in a product. It is set up for sklearn. The card lists the license as mit.
Pre-trained models for the AI Network Threat Detector project a full-stack Intrusion Detection System (IDS) trained on the UNSW-NB15 network traffic dataset.
Downloads · 30 days
0
Access
Public
Updated May 28, 2026
Repo size
433 MB
Likes
0
Public
Click a slice to open those files.
.pkl433 MB · 100%
From the Hugging Face model README
Pre-trained models for the AI Network Threat Detector project a full-stack Intrusion Detection System (IDS) trained on the UNSW-NB15 network traffic dataset.
model1_binary.pkl)Detects whether network traffic is normal or malicious.
| Metric | Score |
|---|---|
| Accuracy | 90% |
| F1 (weighted) | 0.90 |
| Training samples | 175,341 |
model2_multiclass.pkl)Identifies the attack type across 9 categories.
| Metric | Score |
|---|---|
| Accuracy | 76% |
| F1 (weighted) | 0.77 |
| Classes | DoS, Exploits, Fuzzers, Generic, Reconnaissance, Backdoor, Analysis, Shellcode, Worms |
| File | Description |
|---|---|
model1_binary.pkl | Random Forest binary classifier |
model2_multiclass.pkl | Random Forest multi-class classifier |
encoders.pkl | Feature encoders |
le_attack.pkl | Label encoder for attack types |
scaler.pkl | StandardScaler for feature normalization |
UNSW-NB15 University of New South Wales network traffic dataset 175,341 samples | 9 attack categories | Real network flows
import joblib
import pandas as pd
# Load models
binary_model = joblib.load('model1_binary.pkl')
multiclass_model = joblib.load('model2_multiclass.pkl')
scaler = joblib.load('scaler.pkl')
encoders = joblib.load('encoders.pkl')
# Scale features
X_scaled = scaler.transform(your_features)
# Step 1 : detect if malicious
is_malware = binary_model.predict(X_scaled)
# Step 2 : classify attack type
attack_type = multiclass_model.predict(X_scaled)
For the complete source code, frontend, and API: 👉 github.com/Sakni-Tasnim/ai-network-threat-detector
Sakni Tasnim Telecommunications & Computer Engineering Student
🔗 GitHub • LinkedIn