- Course: M. Grum β Advanced AI-based Application Systems - Data Science and Business Analytics
- Instructor: Prof. Dr. Marcus Grum
- Chair: Junior Chair for Business Information Science, especially AI-based Application Systems
- Authors: Gowtham Ramakrishna, Vaishnavi Vijaya
- Institution: University of Potsdam, Germany
This project presents an AI-based Cyber Attack Detection System developed as part of the coursework for Advanced AI-based Application Systems (AIBAS) at the University of Potsdam.
The system applies Artificial Neural Networks (ANN) as a non-linear classifier and Ordinary Least Squares (OLS) as a linear baseline to detect malicious network traffic. The project emphasizes reproducibility, data integrity, structured experimentation, and deployable system design.
The work demonstrates the complete AI lifecycle:
- Dataset acquisition and validation
- Data preprocessing and feature engineering
- Model training and evaluation
- Integrity and leakage validation
- Containerized deployment and inference
- Interpretable prediction outputs
- Build an AI-based intrusion detection system
- Compare ANN and OLS models under identical conditions
- Ensure experimental reproducibility and integrity
- Enable containerized inference via Docker Compose
- Provide auditable and interpretable predictions
This project is based on the NSL-KDD dataset, a refined benchmark dataset for network intrusion detection research.
- Original Provider:
University of New Brunswick (UNB), Canadian Institute for Cybersecurity - Reference Page:
https://www.unb.ca/cic/datasets/nsl.html
At the time of development, the dataset was not directly downloadable from the original source in a machine-accessible format.
Therefore, a publicly available Kaggle mirror was used to obtain the dataset in a reproducible manner.
- Kaggle Dataset Source:
https://www.kaggle.com/datasets/hassan06/nslkdd
The dataset is synthetic, GDPR-compliant, and widely used for academic and educational research.
- Feed-forward neural network implemented using TensorFlow/Keras
- Binary classification (Normal vs Attack)
- Dropout-based regularization
- Optimized for strong generalization performance
- Linear baseline classifier
- Provides a transparent and computationally efficient reference
- Highlights trade-offs between complexity and performance
Both models share the same preprocessing pipeline and feature space to ensure fair comparison.
The system is composed of four Docker-based components:
- learningBase β training and testing datasets
- activationBase β activation (inference) dataset
- knowledgeBase β trained models and preprocessing artifacts
- codeBase β inference logic and prediction pipeline
All components are orchestrated using Docker Compose to enable end-to-end execution.
git clone https://github.com/Gowtham-R-19/AI-CPS.git
cd AI-CPSpython -m venv venv
source venv/bin/activate # Linux / macOS
venv\Scripts\activate # WindowsInstall required Python packages:
pip install -r requirements.txtThis step is required only if you want to run training, evaluation, or analysis locally.
Ensure Docker and Docker Compose are installed.
Verify installation:
docker --version
docker compose versionA shared Docker volume is used for communication between containers.
docker volume create ai_systemcd scenarios/apply_annSolution_cyberAttackDetection
docker compose upThis will:
- Load the trained ANN model
- Apply preprocessing
- Run inference on activation data
- Display predictions and confidence levels in the terminal
cd scenarios/apply_olsSolution_cyberAttackDetection
docker compose upThis executes the same pipeline using the OLS baseline model.
Inference results are printed directly in the terminal and include:
- Prediction (Normal / Attack)
- Confidence score
- Risk-level interpretation
- End-to-end inference status
Each pipeline exits cleanly after completion.
TensorFlow / Keras β https://www.tensorflow.org
Docker β https://www.docker.com
NSL-KDD (UNB) β https://www.unb.ca/cic/datasets/nsl.html
NSL-KDD (Kaggle Mirror) β https://www.kaggle.com/datasets/hassan06/nslkdd
University of Potsdam β https://www.uni-potsdam.de
Licensed under the AGPL-3.0 license.
- Developed strictly for academic and educational purposes
- Part of the Advanced AI-based Application Systems (AIBAS) coursework
- Not intended for production deployment
- University of Potsdam Β· AIBAS Coursework