5
Colour Image Annotation using Hybrid Intelligent Techniques for Image Retrieval Siddhivinayak Kulkarni School of Science, Information Technology and Engineering, University of Ballarat Ballarat, Australia e-mail: [email protected] Pradnya Kulkarni School of Science, Information Technology and Engineering, University of Ballarat Ballarat, Australia e-mail: [email protected] Abstract— This paper presents a novel technique for colour image annotation based on neural networks and fuzzy logic. Neural network is proposed for classifying the images based on their contents and fuzzy logic is proposed for interpreting the content of an image in terms of natural language. One of the main aspects of this research is to avoid re-training of the neural networks by training the content of the image. Neural network is not trained on database of images; therefore image can be added or deleted from image database without affecting the training. The proposed hybrid technique is tested on real world colour image dataset and promising results are obtained. Keywords-image annotation; image retrieval; neural networks; fuzzy logic; intelligent techniques I. INTRODUCTION Developments in the technology and the Internet have led to increase in the number of digital images and videos. Thousands of images are added to World Wide Web (WWW) every day. As a result, the necessity of retrieving images has emerged to be important to various professional areas. The size of the digital image collection is increasing very rapidly due to the advancement in technological devices. These images are stored digitally and transmitted over the Internet at a very high speed. To retrieve the images based on their content effectively and efficiently is essential for further processing of the images. But how to retrieve the images based on their content? One of the important challenges of Content-based Image Retrieval (CBIR) is minimize the semantic gap between low level features (colour, texture, shape) and high level semantic concepts (car, tree, building) described in an image [1]. Some of the techniques used for reducing the semantic gap have been developed and presented in various research papers [2][3]. To reduce the semantic gap, images can be labled based on their visual contents. These labels are assigned according to the visual characteristics of an image and can be done manually or automatically. Some researchers also used semi-annotation techniques. While semi annotation is very efficient compared to manual annotation and more accurate than automatic annotation based on experiment evaluation [4]. Automatic image annotation is the best in terms of efficiency but accuracy is moderate. Problem with annotating an image manually is that it is very time consuming and labour intensive task [5] [6]. To minimize the time for it, some search engines assign file name as the name of the image which shows the prominent content of the image. But retrieval results may be inappropriate as image may not be described with single content. Given an input image, the goal of automatic image annotation is to assign a few relevant text keywords to the image that reflects its visual content. Utilizing image content to assign a richer, more relevant set of keywords would allow one to further exploit the fast indexing and retrieval. Therefore to minimize the semantic gap, this paper proposes a hybrid technique to annotate the images in terms of fuzzy terms. The rest of the paper is organised as follows: Section 2 details the literature review of image annotation techniques, Section 3 describes research methodology based on fuzzy neural networks, experimental results along with analysis are summarized in Section 4, and the paper is concluded in Section 5. II. LITERATURE REVIEW As discussed in the previous section Introduction, image annotation is broadly divided in three types such as manual, semi-automatic and automatic. The problem of automatic image annotation is closely related to that of CBIR. Many techniques have been developed for automatic extracting of image features and indexing them for image retrieval [7]. Images are annotated to allow more effective searches of images based on their content. If the images are described by textual information, then text search technique can be used to perform images searches [8]. However, there is a need to improve generation of automated metadata for images called automatic image annotation. This technique allows image retrieval to be more effective. Many researchers have proposed various techniques in attempting to bridge the well known semantic gap. Many of them realize another problem which is dependency on the training dataset to learn the models [9]. In Duygulu et al. [10], the problem of annotation is treated as a translation from a set of image segments to a set of words, in a way analogous to linguistic translation. In this work, the authors developed new optimization and estimation techniques to address two fundamental problems in machine learning [11]. 115 978-1-4673-5116-4/12/$31.00 c 2012 IEEE

[IEEE 2012 12th International Conference on Hybrid Intelligent Systems (HIS) - Pune, India (2012.12.4-2012.12.7)] 2012 12th International Conference on Hybrid Intelligent Systems (HIS)

  • Upload
    pradnya

  • View
    215

  • Download
    3

Embed Size (px)

Citation preview

Page 1: [IEEE 2012 12th International Conference on Hybrid Intelligent Systems (HIS) - Pune, India (2012.12.4-2012.12.7)] 2012 12th International Conference on Hybrid Intelligent Systems (HIS)

Colour Image Annotation using Hybrid Intelligent Techniques for Image Retrieval

Siddhivinayak Kulkarni School of Science, Information Technology and

Engineering, University of Ballarat Ballarat, Australia

e-mail: [email protected]

Pradnya Kulkarni School of Science, Information Technology and

Engineering, University of Ballarat Ballarat, Australia

e-mail: [email protected]

Abstract— This paper presents a novel technique for colour image annotation based on neural networks and fuzzy logic. Neural network is proposed for classifying the images based on their contents and fuzzy logic is proposed for interpreting the content of an image in terms of natural language. One of the main aspects of this research is to avoid re-training of the neural networks by training the content of the image. Neural network is not trained on database of images; therefore image can be added or deleted from image database without affecting the training. The proposed hybrid technique is tested on real world colour image dataset and promising results are obtained.

Keywords-image annotation; image retrieval; neural

networks; fuzzy logic; intelligent techniques

I. INTRODUCTION

Developments in the technology and the Internet have led to increase in the number of digital images and videos. Thousands of images are added to World Wide Web (WWW) every day. As a result, the necessity of retrieving images has emerged to be important to various professional areas. The size of the digital image collection is increasing very rapidly due to the advancement in technological devices. These images are stored digitally and transmitted over the Internet at a very high speed. To retrieve the images based on their content effectively and efficiently is essential for further processing of the images. But how to retrieve the images based on their content? One of the important challenges of Content-based Image Retrieval (CBIR) is minimize the semantic gap between low level features (colour, texture, shape) and high level semantic concepts (car, tree, building) described in an image [1]. Some of the techniques used for reducing the semantic gap have been developed and presented in various research papers [2][3].

To reduce the semantic gap, images can be labled based on their visual contents. These labels are assigned according to the visual characteristics of an image and can be done manually or automatically. Some researchers also used semi-annotation techniques. While semi annotation is very efficient compared to manual annotation and more accurate than automatic annotation based on experiment evaluation [4]. Automatic image annotation is the best in terms of

efficiency but accuracy is moderate. Problem with annotating an image manually is that it is very time consuming and labour intensive task [5] [6]. To minimize the time for it, some search engines assign file name as the name of the image which shows the prominent content of the image. But retrieval results may be inappropriate as image may not be described with single content. Given an input image, the goal of automatic image annotation is to assign a few relevant text keywords to the image that reflects its visual content. Utilizing image content to assign a richer, more relevant set of keywords would allow one to further exploit the fast indexing and retrieval. Therefore to minimize the semantic gap, this paper proposes a hybrid technique to annotate the images in terms of fuzzy terms. The rest of the paper is organised as follows: Section 2 details the literature review of image annotation techniques, Section 3 describes research methodology based on fuzzy neural networks, experimental results along with analysis are summarized in Section 4, and the paper is concluded in Section 5.

II. LITERATURE REVIEW

As discussed in the previous section Introduction, image annotation is broadly divided in three types such as manual, semi-automatic and automatic. The problem of automatic image annotation is closely related to that of CBIR. Many techniques have been developed for automatic extracting of image features and indexing them for image retrieval [7].

Images are annotated to allow more effective searches of images based on their content. If the images are described by textual information, then text search technique can be used to perform images searches [8]. However, there is a need to improve generation of automated metadata for images called automatic image annotation. This technique allows image retrieval to be more effective. Many researchers have proposed various techniques in attempting to bridge the well known semantic gap. Many of them realize another problem which is dependency on the training dataset to learn the models [9]. In Duygulu et al. [10], the problem of annotation is treated as a translation from a set of image segments to a set of words, in a way analogous to linguistic translation. In this work, the authors developed new optimization and estimation techniques to address two fundamental problems in machine learning [11].

115978-1-4673-5116-4/12/$31.00 c©2012 IEEE

Page 2: [IEEE 2012 12th International Conference on Hybrid Intelligent Systems (HIS) - Pune, India (2012.12.4-2012.12.7)] 2012 12th International Conference on Hybrid Intelligent Systems (HIS)

A. Neuro-fuzzy techniques Fuzzy logic offers a good quality solution for analysing a

query in terms of natural language based on the various features of an image [12]. Fuzzy logic has been extensively used at various stages of image retrieval such as a feature extraction technique, fuzzy image segmentation, recognition of fuzzy objects, fuzzy similarity measure etc. Fuzzy logic is proposed for the computation of fuzzy colour histogram as well as posing the queries in CBIR. Han and Ma [13] propose a fuzzy colour histogram that permits to consider colour similarity across different bins and the colour dissimilarity between the different bins. Colour naming system proposed by Sugano [14] describes a technique to convert colour into set of words such as dark red by using fuzzy membership function to define saturation and lightness for a given hue. The problem of image indexing and retrieval of colour images is demonstrated in [15].

Various image annotation techniuqes are reviewed in Tsai and Hung [16] based on machine learning techniques via mapping low level features to high level concepts or semantics. Many image retrieval systems and automatic image annotation techniques are surveyed in [3] along with critical challenges involved in deploying current image retrieval techniques for real world applications.

III. RESEARCH METHODOLOGY

This section describes in detail the novel technique that is proposed in this paper. There are some pre-processing stages such as creating image database, colour feature extraction and creating feature database. Annotation stages are mainly divided into two stages- creating fuzzy-neural network and fuzzy interpretation of output. The following block diagram, (Figure 1) shows components of the proposed technique.

A. Image Database

Image dataset is consists of one thousand images. The images are drawn from different categories such as images of babies, beaches, birds, boats, cars, dogs, fireworks, flowers, landmarks, nature, planes, planets, sunsets, waterfalls and weddings. The majority of these images are in jpg format. All these images are stored in a file called image database.

B. Colour Feature Extraction

Colour feature extraction is one of the important stages for colour image annotation. The distribution of colours is a useful feature for image representation. Colour distribution, which is best represented as a histogram of intensity values as a global property which does not require knowledge of how an image is composed of different objects. So this technique works extremely well to extract global colours components from the images. The colours histogram for an image is constructed by counting the number of pixels of each colour. The colours of any pixel may be represented in terms of the components of red, green and blue values. After

colour extraction, each component of RGB pixel is used to form a colour histogram. These ranges represent different levels of intensity for each RGB component.

Figure 1. Block diagram of proposed fuzzy-neural annotation.

This is extended for colours images to capture the joint probabilities of the intensities of the three-colours channels. More formally, the colours histogram is defined by

{ }bBgGrRprobNh bgr ===⋅= ,, , where R, G,

B represent the three-colours channels and N is the number of pixels in an image. These RGB values are converted into Hue [0, 360], Saturation [0, 1] and Value [0, 1]. These values in each bin are normalized by dividing the total number of pixels in the image. An image histogram refers to the probability mass function of the image intensities.

C. Feature Database

The colour features are extracted from each image and stored in a feature database. These are the ratios for each colour extracted from an image to the total number of pixels. The number of the pixels that belong to the value are recorded and denoted by NF where f ∈ Fu. NF is the number of pixels for any specific colour and Fu is the total number of pixels in an image. Due to the size of the image collection, it is necessary to use a database for managing the image content information. Figure 2 shows an example of extracting and storing colour features in database.

D. Fuzzy Neural Network and Interpretation of Outputs

Fuzzy neural network is proposed to learn the meaning of colour contents. The number of training pairs depends on

116 2012 12th International Conference on Hybrid Intelligent Systems (HIS)

Page 3: [IEEE 2012 12th International Conference on Hybrid Intelligent Systems (HIS) - Pune, India (2012.12.4-2012.12.7)] 2012 12th International Conference on Hybrid Intelligent Systems (HIS)

the number of colours and content types. The input for mostly starts from 0.9 for red colours and input for the rest of the colours is set to 0.1. The increment is 0.01 for each training pair. It continues until it becomes the maximum value, which is 1. This process is repeated for the other content types such as many and few. The training pairs for many start from 0.4 and continue until it reaches 0.5 with increments of 0.01. Similarly few contents start at 0.1 and continue until it becomes 0.2. These training pairs are used an as input to the neural network and expected outputs are also supplied to the neural network. mostly= 0.9 + , final value = 1, = 0.01 many= 0.4 + , final value = 0.5, = 0.01 few = 0.1 + , final value = 0.2, = 0.01

Various neural network algorithms can be categorized by the learning method and architecture of the network. The supervised learning neural network is efficient to learn the colours and content types. The error back propagation neural network is proposed to learn the meaning of those contents. This approach overcomes the problem of re-training of neural networks in real world on-line applications where databases get larger everyday, e.g. databases on the Internet. A relationship is defined to express the distribution of the truth of the variable. Theoretically, a fuzzy set F is the universe of discourse X = {x} is the number in the range [0,α], indicating the extent to which x has the attribute F. Thus, if x is the amount of content of the image, “few” may be considered as a particular value of the fuzzy variable “content” and each x is assigned a number in the range 0 to

α, ( ) [ ]αμ ,0:xcontent , that indicates the extent to which x

is considered to be content: ( ) [ ]αμ ,0:xcontent is called

the membership function. When the membership function is

normalized (i.e. α=1), then[ ]1,0:)( →Xxcontentμ

.

IV. EXPERIMENTAL RESULTS AND ANALYSIS

This section details all the relevant experiments conducted on proposed fuzzy neural network for image annotation. Before annotating the images based on their contents, images were preprocessed. This preprocessing includes, downloading real world images from the WWW to form the image database. This image database contains a wide variety of images, like the images of flowers, scenery, animals, mountains etc. Most of the images are in jpg format. The colour features were extracted from all the images and stored into a feature database.

A. Neural Network Architecture

The neural network was designed by considering nine inputs as colours and twenty-seven outputs as content types. Table I indicates all the parameters that were used to train the neural network and the RMS error obtained after training. The experiments were conducted by varying the

number of hidden units and iterations. The optimum results were obtained with 10 hidden units and 1000 iterations. The training pairs were formed for each colours and content type. Considering the various permutations/combinations of contents in an image, the total training pairs obtained were 3113. Learning rate and momentum are indicated by η and α respectively.

TABLE I. NEURAL NETWORK PARAMETERS

Inputs-Hidden-Outputs

ηηηη αααα Iterations RMS error

9-6-27 0.7 0.2 100 0.01546 9-8-27 0.7 0.2 1000 0.00356

9-10-27 0.8 0.3 1000 0.00102 9-12-27 0.9 0.3 1200 0.00530

To test the effectiveness of the proposed system,

experiments were conducted on a set of 1000 images. During testing phase, the weights of the trained neural network were used. Feature database containing features for 1000 images was used for testing. Nine colour features for test images were applied as the inputs to the trained fuzzy neural network. All the images from image database were accurately annotated using proposed technique. Some of the examples are demonstrated in this paper.

Figure 2. Prominent single colour annotation

Figure 2 indicated the images obtained with prominent single colour and content annotation. If the value of the colour feature is less than 0.1 after normalization, the value is considered as very low and ignored during the experiments. Figure 3 indicates two prominent colours with two contents. Based on fuzzy interpretation, there will not be two mostly contents in an image. But there is possibility of two many contents in an image, and some of the results are demonstrated in Figure 3. These contents are the combinations are many-many and mostly-few.

2012 12th International Conference on Hybrid Intelligent Systems (HIS) 117

Page 4: [IEEE 2012 12th International Conference on Hybrid Intelligent Systems (HIS) - Pune, India (2012.12.4-2012.12.7)] 2012 12th International Conference on Hybrid Intelligent Systems (HIS)

Figure 3. Prominent two colours/contents annotation

Results for three colours and contents are shown in Figure 4. Many content indicates almost similar content of two colours while few indicates less content in an image. These results illustrate the contents in terms of many-many-few.

Figure 4. Prominent three colours/contents annotation

Results for all images were analysed manually for correct annotation. Table II indicates prominent annotation along with number of images for each annotation. 57 images contains more than three contents of few colour and were not taken into consideration.

TABLE II. PROMINENT IMAGE ANNOTATION-NUMBER OF IMAGES

Prominent Annotation Number of Images Mostly 223

Many-Many 68 Mostly-Few 44 Many-Few 212

Many-Many-Few 72 Many-Few-Few 155 Few-Few-Few 169

V. CONCLUSION

Colour image annotation is one of the challenging areas

to minimize the semantic gap between low level features and high level semantics. In this paper, global colour features were extracted using modified colour histogram technique and stored in feature database. These features were used as an input to the trained neural network and combinations of content types were used as an output. Neural network is trained on colour contents and not on image database; therefore images can be added or deleted from image database. This avoids re-training of the neural network. Fuzzy interpretation was proposed for specifying the contents of the images in terms of natural language. Experiments were conducted on significant number of images and almost all the images in database were annotated correctly. Results obtained were promising. Future research will incorporate automatic annotation for texture and shape features for posing a query in terms of natural language for efficient retrieval.

REFERENCES

[1] A. Smeulders, W. Worring, S. Santini, A. Gupta, and R. Jain,

"Content-Based Image Retrieval at the End of the Early Years," IEEE Transactions on, Pattern Analysis and Machine Intelligence, vol. 22, 2000, pp. 1349-1380.

[2] J. Z. Wang, J. Li, and G. Wiederhold, "SIMPLIcity: semantics-sensitive integrated matching for picture libraries," Pattern Analysis and Machine Intelligence, IEEE Transactions on, vol. 23, 2001, pp. 947-963.

[3] R. Datta, D. Joshi, J. Li, and J. Z. Wang, "Image Retrieval: Ideas, Influences, and Trends of the New Age," ACM Computing Survey, vol. 40, pp. 5:1-60, 2008.

[4] L. Wenyin, S. Dumais, Y. Sun, H. J. Zhang, M. Czerwinski and B.Field, “Semi Automatic Image Annotation, ” in 8th IFIP T.C 13Conference on Human-Computer Interaction 2002, p. 326-333.

[5] C. H. Wiener, N. Simou and Tzouvaras. (2006) Image Annotation on the Semantic Web. [Online].Available: http://www.w3.org/TR/2006/WD-swbp-image-annotation-20060322.

[6] K. Barnard and N. V. Shirahatti, “Method for Comparing Content Based Image Retrieval Methods,” in Proceedings of the SPIE 2003, p.1-8.

[7] Jia Li and James Z. Wang, ``Real-time Computerized Annotation of Pictures,'' Proceedings of the ACM Multimedia Conference, ACM, Santa Barbara, CA, October 2006, pp. 911-920.

[8] A. Han bury, “A Survey of Methods for Image Annotation,” J. Vis.Lang. Computer, vol. 19, Oct. 2008, pp. 617-627.

[9] J. Liu, B. Wang, M. Li, Z. Li, W. Y. Ma, H. Lu and S. Ma, “Dual Cross- Media Relevance Model for Image Annotation,” in Proceedings of the 15th International Conference on Multimedia 2007, p. 605 – 614.

[10] P. Duygulu, K. Barnard, De Freitas, and D. Forsyth, “Object recognition as machine translation: Learning a lexicon for a fixed image vocabulary” In Proceedings of the European Conference on Computer Vision (ECCV), 2002, pp. 97-112.

[11] J. Li and J. Wang. “Real-time Computerized Annotation of Pictures,” PAMI, vol. 30, number 6, pp. 985– 1002.

118 2012 12th International Conference on Hybrid Intelligent Systems (HIS)

Page 5: [IEEE 2012 12th International Conference on Hybrid Intelligent Systems (HIS) - Pune, India (2012.12.4-2012.12.7)] 2012 12th International Conference on Hybrid Intelligent Systems (HIS)

[12] B. Verma and S. Kulkarni, “Fuzzy Logic Based Interpretation and Fusion of Colour Queries,” Journal of Fuzzy Sets and Systems, Volume 147, Number 1, 2004, pp. 99-118.

[13] J. Han and K. Ma, “Fuzzy Colour Histogram and its Use in Colour Image Retrieval,” IEEE Transactions on Image Processing, Volume 11, Number 8, 2002, pp. 944-952.

[14] N. Sugano, Colour Naming System using Fuzzy Set Theoretical Approach, Proceedings of 10th IEEE International Conference on Fuzzy Systems, Volume 1, 2001, pp. 81-84.

[15] A. Younes, I. Truck. H. Akdag, Image Retrieval using Fuzzy Representation of Colours, Journal of Soft Computing, Volume 11, 2007, pp. 287-298.

[16] C. F. Tsai and C. Hung, “Automatically Annotating Images with Keywords: A Review of Image Annotation Systems,” Recent Patents on Computer Science, vol 1, January 2008, pp 55-68.

2012 12th International Conference on Hybrid Intelligent Systems (HIS) 119