Image Classification Using Pre-Trained Convolutional Neural Network in COLAB
Image Classification Using Pre-Trained Convolutional Neural Network in COLAB
ISSN- 2455-5703
Abstract
The object detection recognition is the heart today’s research world. The main goal of this field is to train machines to understand
the content of an image just like humans do. The various Machine learning models like Histogram of oriented Gradients, Support
Vector Machine, Bag of features model, Viola-Jones algorithms were earlier used for object recognition. The system is trained to
detect and identify new object in the field of object recognition. Using Deep learning technique, the system is trained enough so
that it could detect and recognize when a new object is fed to the system. Using deep learning it is possible to train the system to
classify all types of data. It could be text, images, video or sound. It is implemented using neural network architecture. In deep
learning, network may consist of hundreds of layers for complex systems. In this work, system is trained with Alex-net a pre-
trained neural network; classify the various input images such as animals and birds. Various types of animals and birds are used
to train the system and finally a new object is given it can able to classify object as lion, bell pepper etc. The system is
implemented in Google Colab a virtual VM, in which there is no need to install software’s and very much useful for the research
community provided by Google for the research community. The system is implemented using python code using Colab. GPU
is a graphics processing unit (GPU) is a specialized system provided by Google for free to rapidly manipulate and alter memory
to accelerate the creation of images in a frame buffer intended for output to a display device.
Keywords- Machine Learning, Colab, Deep Learning, Object Detection, Image Classification
I. INTRODUCTION
The input could be loaded, usually in the form of a multidimensional vector to the input layer of which will distribute it
to the hidden layers. The hidden layers will then make decisions from the previous layer and weigh up how a stochastic change
within itself detriments or improves the final output, and this is referred to as the process of learning.
difference between CNNs and traditional ANNs is that CNNs are primarily used in the field of pattern recognition within images.
This allows us to encode image-specific features into the architecture, making the network more suited for image-focused tasks -
whereas further reducing the parameters required setting up the model.
The pretrained model requires the image size to be the same as the input size of the network. Determine the input size of the
network using the InputSize property of the first layer of the network.
sz = net.Layers(1).InputSize
sz = 227 227 3
Crop the image to the input size of the network. Alternatively, resize the image using imresize (Image Processing Toolbox™).
I = I(1:sz(1),1:sz(2),1:sz(3));
figure;
imshow(I);
C. Modules Design
Colaboratory is a Google research project created to help machine learning education and research become more accessible and
easy for everyone. It's a Jupyter notebook environment that requires Zero setup to use and runs entirely in the Google cloud.
C. Implementation Details
The following steps are required to load and run the program:
– Open the web browser (Google Chrome)
– Log in with the Google Account
– Open the Colab in the browser
– Open the existing notebook (Final Project.ipynb)
– Press Ctrl+F9 (Runtime – Run All) to execute the program
V. CONCLUSION
As shown in the implementation details, system is trained with more input images in the training phase and the testing phase also
we tested with new input image and system can able to detect recognize it successfully with more accuracy. The outputs shown
in the implementation section clearly shows the system correctly detects classify as objects. In future we could train with more
types of input data to train and testing with new data type more clearly.
VI. REFERENCES
[1] Deepika Jaswal, Sowmya.V, K.P.Soman, Image Classification Using Convolutional Neural Networks, International Journal of Advancements in Research
& Technology, Volume 3, Issue 6, June-2014.
[2] Wang L, Sng D. Deep learning algorithms with applications to video analytics for a smart city: A survey. ArXiv Prepr ArXiv151203131; 2015.
[3] M. Badea, I. Felea, C. Vertan, L. Florea, The Use of Deep Learning in Image Segmentation Classification and Detection, Computer Vision and Pattern
Recognition 62(5)2016, pp. 187–198
[4] Guillermo de Jesús Hoyos-Rivera, CoLab: A Flexible Collaborative Web Browsing Tool, Proceedings of the 19th International Conference on Advanced
Information Networking and Applications.
[5] Treebupachatsakul, Treesukon and Suvit Poomrittigul. “Bacteria Classification using Image Processing and Deep learning.” 2019 34th International
Technical Conference on Circuits/Systems, Computers and Communications (ITC-CSCC) (2019): 1-3.
[6] A. Romero, C. Gatta and G. Camps-Valls, "Unsupervised Deep Feature Extraction for Remote Sensing Image Classification," in IEEE Transactions on
Geoscience and Remote Sensing, vol. 54, no. 3, pp. 1349-1362, March 2016.
[7] E. TaSci and A. Ugur, "Image classification using ensemble algorithms with deep learning and hand-crafted features," 2018 26th Signal Processing and
Communications Applications Conference (SIU), Izmir, 2018, pp. 1-4.
[8] Krizhevsky, A., Sutskever, I., & Hinton, G. E. (2012). Imagenet classification with deep convolutional neural networks. In Advances in neural information
processing systems (pp. 1097-1105).
[9] LeCun, Y., Bengio, Y. and Hinton, G. (2015) Deep Learning. Nature, 521, 436-444.http://dx.doi.org/10.1038/nature14539
[10] Ribeiro, S. S., & Yao, J. (2019, December). Toward a Three-Way Image Classification Model: A Case Study on Corn Grain Images. In 2019 IEEE
International Symposium on Multimedia (ISM) (pp. 177-1776). IEEE.