Skip to content

Shubham99530/AI-Based-Threat-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

AI-Based-Threat-Detection

πŸ“Š Exploratory Data Analysis (EDA) & Deep Learning Classification

This project combines Exploratory Data Analysis (EDA) with Neural Network-based classification to extract insights and build predictive models from a dataset. It involves feature engineering, PCA-based dimensionality reduction, and training deep learning models using TensorFlow/Keras.


πŸ“ Project Structure

project.ipynb # Main Jupyter Notebook with EDA and Deep Learning workflow README.md # Project overview and documentation

πŸ” Key Concepts Covered

πŸ§ͺ Exploratory Data Analysis

  • Skewness Analysis:
    • |Skewness| < 1: Approximately symmetric
    • |Skewness| > 1: Highly skewed
    • 1 < |Skewness| < 2: Moderately skewed
  • Statistical Summaries
  • Outlier Detection
  • Visualizations:
    • Histograms, Box Plots, Pair Plots
  • Feature Scaling using StandardScaler
  • Dimensionality Reduction using PCA

πŸ€– Deep Learning Model

  • Libraries: TensorFlow / Keras
  • Model Architecture:
    • Feedforward Neural Networks (Multilayer Perceptron)
    • Input: Scaled and PCA-reduced features
    • Output: One-hot encoded target variable
  • Training Details:
    • Loss function: Categorical Crossentropy
    • Optimizer: Adam
    • Epochs: 100
    • Early stopping & checkpoint callbacks used
  • Evaluation Metrics:
    • Accuracy Score
    • Confusion Matrix
    • Classification Report (Precision, Recall, F1)

πŸ“Š Example Results

  • Training Accuracy: βœ… (Check notebook for exact value)
  • Validation Accuracy: βœ… (Plotted using history)
  • Confusion Matrix: βœ”οΈ Reveals class-wise performance
  • PCA Explained Variance: βœ”οΈ Helps understand dimensionality contribution

πŸ› οΈ Tech Stack

  • Python 3.x
  • Jupyter Notebook
  • pandas, numpy, matplotlib, seaborn
  • scikit-learn
  • tensorflow / keras

πŸš€ How to Run

  1. Clone the Repository

    git clone https://github.com/yourusername/eda-deeplearning-project.git
    cd eda-deeplearning-project
  2. Set Up Virtual Environment

    python -m venv venv
    source venv/bin/activate  # Windows: venv\Scripts\activate
    pip install -r requirements.txt
  3. Run the Notebook

    jupyter notebook project.ipynb

βœ… Outcomes

  • Insights on data distribution and skewness
  • PCA-based dimensionality reduction
  • Trained deep learning model with high accuracy
  • Clear evaluation via confusion matrix and classification report

πŸ“Œ Notes

  • Ensure the dataset is placed correctly or loaded within the notebook.
  • You can tune the model architecture, learning rate, or add regularization for improvement.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published