This repository contains the implementation of Artificial Neural Networks (ANN) and Convolutional Neural Networks (CNN) for image analysis tasks using the CIFAR-10 dataset.
- Dataset Overview
- Artificial Neural Network (ANN) Implementation
- Convolutional Neural Network (CNN) Implementation
- Model Evaluations
- Conclusion
The CIFAR-10 dataset consists of 60,000 32x32 color images across 10 classes: 'Plane', 'Car', 'Bird', 'Cat', 'Deer', 'Dog', 'Frog', 'Horse', 'Ship', and 'Truck'. Each class contains 6,000 images distributed between training and testing sets.
The ANN implementation involves a model with 4 fully connected layers, ReLU activation functions, and Stochastic Gradient Descent (SGD) optimizer. The model is trained over 10 epochs, achieving an accuracy of 51% on the test images.
The CNN architecture comprises two convolutional layers followed by three fully connected layers. ReLU activation functions are applied after each layer, with a MaxPooling layer for downsampling. The model is trained for 10 epochs, achieving an accuracy of 63% on the test images.
Both models were evaluated based on loss curves, accuracy per class, and overall accuracy on the test set. The CNN outperformed the ANN with an overall accuracy of 63% compared to 51%.
In conclusion, the CNN model demonstrated superior performance for image classification tasks on the CIFAR-10 dataset compared to the ANN model. Further exploration could involve experimenting with different optimization functions, image preprocessing techniques, or model architectures.