This project is a part of the Habib University's CS 351 Artificial Intelligence coursework. The goal of this project is to build a convolutional neural network (CNN) that can classify images of animals. The dataset used for this project is the Animals-10 dataset from Kaggle. The dataset contains 10 classes of animals with 1300 images per class. The classes are as follows:
- dog
- cat
- wild bird
- chicken
- sheep
- cow
- elephant
- bear
- spider
- squirrel
The methodology used for this project is as follows:
- Data Preprocessing
- Model Building
- Model Training
- Model Evaluation
The data preprocessing step involves the following steps:
- Loading the dataset
- Splitting the dataset into training and testing sets
- Resizing the images to 224x224
- Normalizing the images
- One-hot encoding the labels
The model building step involves the following steps:
- Loading the VGG16 model
- Removing the last layer of the VGG16 model
- Adding a new layer to the VGG16 model
- Freezing the weights of the VGG16 model
- Compiling the model
The model training step involves the following steps:
- Training the model
- Saving the model
The model evaluation step involves the following steps:
- Loading the model
- Evaluating the model
The model achieved an accuracy of 92.5% on the testing set.
- Ali Asghar Chakera
- Abbas Haider
- Umema Zehra