Ship Classification Using An Image Dataset: Okan Atalar (Okan@stanford - Edu), Burak Bartan (Bbartan@stanford - Edu)
Ship Classification Using An Image Dataset: Okan Atalar (Okan@stanford - Edu), Burak Bartan (Bbartan@stanford - Edu)
Abstract—In this project, we developed three different sets of cruise ships, fire-fighting vessels, and fishing vessels. The rea-
classification algorithms to classify different ship types based on son being that the accuracy we obtained with preprocesssing
color (RGB) images of ships. An image of a ship is the input to followed by SVM was comparable to the other two methods:
our classification algorithms, which are mainly bag of features,
convolutional neural networks (CNNs), and SVM along with some bag of features method using 10 classes and convolutional
preprocessing. The best-performing of these is CNN, and is able neural networks using 10 classes. On average we used 1000
to classify a given ship into its corresponding category with an images from each class for training and 200 for testing for
accuracy probability of 0.8822 when using 10 different classes of bag of features method. Convolutional neural networks used
ships. on average 1680 images for training and 360 for testing.
I. I NTRODUCTION
The increased presence of autonomous systems requires re-
liable classification algorithms to understand their surrounding
environment. These autonomous systems have the potential to
find widespread use in sea and ocean waters, necessitating a
reliable classification of their surrounding. Since ships are the
most popular means of transportation and warfare in seas and
oceans, they need to be classified by autonomous systems.
We are therefore interested in applying machine learning,
and computer vision techniques to the problem of reliably
Fig. 1. 4 examples from each of the first 5 image categories: Aircraft carriers,
classifying ships into different classes using captured ship bulkers, cruise ships, fire-fighting vessels, fishing vessels (from left to right).
images in different lighting conditions, image quality, and
distance to the ships.
The set of algorithms we use for ship classification take ship A. Preprocessing of Images
images in red, green and blue (RGB) color format as input
The dataset consists of ship images taken at different
and outputs the most likely ship category that the input image
orientations, distances, and with varying background. Since the
represents. For the ship classification setting, we applied three
background of the ship contains limited information regarding
different classification algorithms: Preprocessing of images
the ship category and introduces significant noise to the image,
followed by SVM with a set of features that we choose, bag of
we aim to remove this randomness by cropping a part of the
features method, and a convolutional neural network trained
image which contains only the ship. The objective in this
by AlexNet.
step is to crop the ship image, without throwing away pixels
II. R ELATED W ORK related to the ship. We first perform edge detection on the
initial image, since the ship has well defined borders. The
The work [2] uses the same images from the same website flow diagram for image cropping based on edge detection is
we are using. They consider 140, 000 ship images from 26 dif- demonstrated in Fig. 2.
ferent ship categories for classification. Their baseline method,
which uses Crammer and Singer multi-class SVM with feature
vectors extracted from a VGG-F network, achieves an accuracy
of 0.54. Their CNN, which utilizes AlexNet, achieves an
accuracy of 0.73. They do not however, consider using bag
of features or SVM method with preprocessing.