How vicky60629/network-intrusion-detection-system works
This repository is a Flask-based network intrusion detection application backed by a serialized classifier. The principal workflow accepts traffic features, expands categorical inputs, predicts a class, and returns a rendered result or JSON. The README also documents the NSL-KDD analysis and model-training workflow, including EDA outputs and binary/multiclass detection. The notebook and UI assets are present in the tree but were not sampled; their internal behavior and connections are represented only where the README supports them.
Main entry points: app.py Flask routes · model.pkl Traffic classifier · NSL_Dataset NSL-KDD data · Network Intrusion Detection System.ipynb EDA and features
Components 11
Analysis and training
- NSL-KDD data
NSL_Dataset - EDA and features
Network Intrusion Detection System.ipynb - EDA summaries
corrm.csv - Model training
Network Intrusion Detection System.ipynb
Inference
- Traffic classifier
model.pkl - Flask routes
app.py - Feature encoding
app.py - Class mapping
app.py
Presentation
- Result view
templates/index.html
Other components
- App user
- JSON client
Connections 13
- NSL-KDD data → EDA and features: analyzes
README.md - EDA and features → EDA summaries: produces summaries
README.md - NSL-KDD data → Model training: trains on
README.md - Model training → Traffic classifier: serializes model
README.md - App user → Flask routes: submits features
README.md - Flask routes → Feature encoding: encodes input
app.py - Feature encoding → Traffic classifier: predicts with
app.py - Traffic classifier → Flask routes: returns prediction
app.py - Flask routes → Class mapping: maps classes
app.py - Flask routes → Result view: renders result
app.py - JSON client → Flask routes: posts JSON
app.py - Flask routes → Traffic classifier: predicts from JSON
app.py - Flask routes → Class mapping: maps API result
app.py