Network Anomaly Detection System by Prakash Narala Network Anomaly Detection System by Prakash Narala

Network Anomaly Detection System

Portfolio project
Prakash Narala

Network Anomaly Detection System

An advanced monolithic full-stack web application for network threat detection utilizing meta-heuristic optimization and deep feature extraction.

πŸš€ Key Features

Monolithic Flask Backend: Single-point execution for web rendering and ML processing.
EO Optimization: Equilibrium Optimizer for intelligent feature selection.
Deep Learning: Stacked Autoencoders for latent feature representation.
Imbalance Handling: SMOTE integration for accurate attack classification.
MongoDB Integration: Internal persistence of performance metrics and detection history.
Modern UI: Dark-themed, glassmorphic design using TailwindCSS.

πŸ› οΈ Tech Stack

Backend: Flask, Jinja2, Scikit-learn, TensorFlow, CatBoost, PyMongo.
Frontend: TailwindCSS (CDN), Vanilla JavaScript.
Database: MongoDB.

πŸ—οΈ Architecture

The system follows a monolithic architecture where the Flask server handles both the frontend routing and the heavy ML computations.
Data Ingestion: User uploads CSV datasets through the web UI.
Preprocessing: Scaling, Encoding, and Handling Imbalance (SMOTE).
Optimized Selection: Equilibrium Optimizer selects the most relevant features.
Feature Extraction: Autoencoders compress features into a 16-dimensional latent space.
Ensemble Learning: Extra Trees and CatBoost classifiers perform final anomaly detection.
Result Persistence: Metrics are saved to MongoDB for dashboard visualization.

πŸ“₯ Installation

Clone the project
cd "Anomaly Detection project"
Install Dependencies
pip install flask pandas pymongo scikit-learn tensorflow imbalanced-learn catboost matplotlib
Database Setup Ensure MongoDB is running locally on localhost:27017.
Run the Application
python app.py

πŸ“‚ Project Structure

app.py: Main Flask application.
ml_pipeline.py: Converted ML processing logic.
templates/: Jinja2 HTML templates.
static/: CSS plots and project assets (images).
Datasets/uploads/: Storage for processed CSV files.
Files/: Project documentation PDFs.

πŸ‘¨β€πŸ’» Developed For

Final Year Project Submission & Academic Viva/Presentation.
β€œThis project takes raw network data, cleans it, converts it into a machine-readable format, passes it through multiple AI models (including deep learning), and finally decides whether the data is normal or suspicious using intelligent thresholds β€” all inside a web application.”

0 likes Β· 0 views Β· Dec 4, 2026

Built a Flask web application for network anomaly detection, combining feature optimization, deep learning, and an ensemble classifier with MongoDB-backed resul

Tags