Skip to content

This project will help us classify images into a number of classes (clothes) using a CNN model. Additionally, adversarial attacks has been implemented on the model and the effected accuracy has been calculated. This demonstrates how minute changes in the images of training data can significantly impact the model's accuracy

License

Notifications You must be signed in to change notification settings

ArshdeepSingh98/Image-Classification-and-Adversarial-Attacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

CNN Image Classification and Adversarial attacks

Duration: Jan 2023 - Feb 2023

In this project, I used PyTorch within the Python programming language to tackle the challenging task of image classification using Convolutional Neural Networks (CNNs). The primary goal was to develop a robust image classifier capable of differentiating various clothing items within the FashionMNIST dataset. Additionally, I implemented adversarial attacks, specifically the Fast Gradient Sign Method (FGSM) and Projected Gradient Descent (PGD) evasion attacks, to evaluate and enhance the model's resilience against adversarial inputs.

Project Details:

  1. CNN Implementation: Built a CNN for classifying FashionMNIST clothing images. The model has these main component including convolutional and pooling layers, along with three fully connected (fc) layers inspired by LeNet. Achieved training accuracy of 91.65%.
  2. FashionMNIST Dataset: Used FashionMNIST dataset (60,000 training, 10,000 testing images).
  3. Adversarial Attacks:
  • Fast Gradient Sign Method (FGSM): Perturbed images by adding gradient-based noise. Achieving attack accuracy of 96.07%.
  • Projected Gradient Descent (PGD): Iteratively applied FGSM for robustness testing. Achieving attack accuracy of 95.32%.
  1. Robustness Evaluation: Tested model accuracy against normal and adversarial conditions.
  2. Model Defense: Explored defense strategies like adversarial training and preprocessing.

Skills

  • Convolutional Neural Networks (CNN)
  • Data Analysis
  • Data Visualization
  • Matplotlib
  • PyTorch
  • Numpy

References

About

This project will help us classify images into a number of classes (clothes) using a CNN model. Additionally, adversarial attacks has been implemented on the model and the effected accuracy has been calculated. This demonstrates how minute changes in the images of training data can significantly impact the model's accuracy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published