This project uses supervised Machine Learning algorithms to detect DDoS (Denial of Service) attacks in Wireless Sensor Networks (WSNs). The goal is to distinguish between normal and malicious traffic using classification models.
- WSN-DS dataset
- Contains labeled data for normal and DDoS traffic
- Features include packet length, time intervals, and other network metrics
- β Random Forest
- β Logistic Regression
- β Neural Networks
Each model is trained and evaluated to compare accuracy and performance.
- Data Preprocessing
- Cleaning, feature selection, and normalization
- Model Training
- Train ML models on training data
- Evaluation
- Test accuracy, confusion matrix, and F1-score
- Prediction
- Detect whether incoming traffic is normal or an attack
β βββ data/ # WSN-DS dataset files βββ models/ # Trained models (optional) βββ src/ # Python source code β βββ preprocessing.py β βββ train.py β βββ evaluate.py β βββ predict.py βββ results/ # Accuracy reports, confusion matrices βββ README.md βββ requirements.txt # Python dependencies