Image Annotations Using Machine Learning and Features
Image Annotations Using Machine Learning and Features
45
International Journal of Computer Applications (0975 – 8887)
Volume 25– No.5, July 2011
(4) ID3 algorithm chooses the attribute with maximum Gain (A)
Step:4. Recomputed the centroids using as the root node, which means the attributes with the
The membership values as minimum
E (A).
……… (5)
Step:5. If the cluster centroids or the 6. CLASSIFICATION
assignment Matrix does not change from the To classify the feature set obtained after clustering using the
previous iteration, stop else go-to step 3. k- means algorithm, ID3 algorithm is used, the main purpose
of ID3 algorithm is to find all the possibilities in the decision
4. INDUCTION DECISION TREE (ID3) trees which enables as to classify the training set more
This is a iterative model, whose main purpose is to generate accurately and exactly. The experimentation is carried out by
all possible decision trees that correctly classify the training taking a sample animal database of size 20 with 4 different set
set and to select the simplest of them. The number of such of animals namely Mammals, Birds, Aquatic, Amphibians,
trees is finite but very large, so this approach would only be this data set is given as an input to the K Means Algorithm
feasible for small induction tasks. In order to overcome this and the individual clusters. We then train the dataset with the
disadvantage we need to construct reasonably good decision three different concepts namely color, texture, behavior.
tree without much computation. A subset of the training set
called the window is chosen at random and a decision tree The feature set can be of two types either a local feature set or
formed from it; this tree correctly classifies all objects in the a global feature set, we have designed a questioner for the
window. All other objects in the training set are then color discrimination, texture discrimination and also behavior
classified using the tree. If the tree gives the correct answer discrimination. To classify the color we have considered the
for all these objects then it is correct for the entire training set animal color into three types i.e., black, brown and yellow.
and the process terminates. If not, a selection of the The texture is considered while classifying are three types i.e.,
incorrectly classified objects is added to the window and the Plain, Stripes and Spotted, to identify the Behavior we have
process continues [4] [5] [6] [7] [8] [9]. considered the animal behaviors into two types i.e., carnivores
and herbivores.
5. MACHINE LEARNING Input
Machine learning is mainly used to recognize complex
patterns and make intelligent decisions based on data; the
Pre Feature Annotation Post
difficulty is with regard to the size of the data (training data) Processing extraction Processing
• ID3
that is used. The image is segmented into basic blocks, which • Segmentation • Colors • Machine • Converting
the feature set
classifies according to the type of content, based on color, • Dividing • Textures Learning
into image
texture and behavior. A lot of research is projected towards
image annotation based on (support vector machines) SVM Output
and Bayesian networks.
46
International Journal of Computer Applications (0975 – 8887)
Volume 25
25– No.5, July 2011
Figure-3
Retrieving the images using classification models
47
International Journal of Computer Applications (0975 – 8887)
Volume 25
25– No.5, July 2011
9. CONCLUSION
A novel algorithm for image annotation using ID3 is
presented since the input image is un supervised data K means
algorithm is used for clustering so that the classification
classi
technique is applied the feature vector in our mythology
consists of both local and global feature sets using IF-THEN
IF
loops to identify the feature set we have used three feature
sets for extraction of image accurately i.e.., using color texture
behavior
ehavior the output obtained from the mythology consists of a
image with the above feature set the performance of the
developed algorithm is evaluated by the image fidelity this go
for further extension is also presented
Wild animal ()
48
International Journal of Computer Applications (0975 – 8887)
Volume 25– No.5, July 2011
49