CA2613936C - Image classification and search - Google Patents

Image classification and search Download PDF

Info

Publication number
CA2613936C
CA2613936C CA2613936A CA2613936A CA2613936C CA 2613936 C CA2613936 C CA 2613936C CA 2613936 A CA2613936 A CA 2613936A CA 2613936 A CA2613936 A CA 2613936A CA 2613936 C CA2613936 C CA 2613936C
Authority
CA
Canada
Prior art keywords
feature descriptors
feature
image
classifier
hypercomplex
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CA2613936A
Other languages
French (fr)
Other versions
CA2613936A1 (en
Inventor
Kris Woodbeck
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Ottawa
Original Assignee
University of Ottawa
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by University of Ottawa filed Critical University of Ottawa
Priority to CA2613936A priority Critical patent/CA2613936C/en
Publication of CA2613936A1 publication Critical patent/CA2613936A1/en
Application granted granted Critical
Publication of CA2613936C publication Critical patent/CA2613936C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • G06F18/232Non-hierarchical techniques
    • G06F18/2321Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions
    • G06F18/23211Non-hierarchical techniques using statistics or function optimisation, e.g. modelling of probability density functions with adaptive number of clusters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • G06V10/443Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components by matching or filtering
    • G06V10/449Biologically inspired filters, e.g. difference of Gaussians [DoG] or Gabor filters
    • G06V10/451Biologically inspired filters, e.g. difference of Gaussians [DoG] or Gabor filters with interaction between the filter responses, e.g. cortical complex cells
    • G06V10/454Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/94Hardware or software architectures specially adapted for image or video understanding
    • G06V10/955Hardware or software architectures specially adapted for image or video understanding using specific electronic processors

Abstract

An electronic image classification and search system and method are provided. Images are processed to determine a plurality of simple feature descriptors based upon characteristics of the image itself. The simple feature descriptors are grouped into complex features based upon the orientation of the simple feature descriptors. End-stopped complex feature descriptors and complex feature descriptors at multiple orientations are grouped into hypercomplex feature descriptors. Hypercomplex resonant feature descriptor clusters are generated by linking pairs of hypercomplex feature descriptors. Feature hierarchy classification can then be performed by adaptive resonance on feature descriptors and classifier metadata associated with the image can then be generated to facilitate indexing and searching of the image within an hierarchical image database.

Description

IMAGE CLASSIFICATION AND SEARCH
TECHNICAL FIELD
The present invention relates to image search techniques and in particular to image analysis and classification to improve searching.
BACKGROUND
The growth of the Internet and the ability to acquire and retrieve digital content has increased the need for the ability to intelligently access images.
Current image search technologies are based on either metadata such as keywords or image features such as overall image features such as RGB or brightness histograms. In addition, the search results are only as good as the keyword provided and the accuracy of the keywords in the database. Although humans can easily determine similarities between images and categorize images, computer systems to date have not provided efficient searching means to deal with large image collections. Current image search technology provide very poor search results with many of the displayed images representing unrelated content and the limited processing speed relegates relevance based image search engines to desktop applications where collections are limited in size.
Accordingly, an improved systems and methods that enable classification and searching of images in an efficient and accurate manner remains highly desirable.
SUMMARY
The disclosure provides a method and system for image classification of images based upon feature descriptors. The feature descriptors are utilized to generate classifiers which define a hierarchical classification structure within an image database. The classification enables efficient search of the image database to determine image containing similar content.
Thus, an aspect provides a method classifying an image comprising the steps of: determining a plurality of simple feature descriptors based upon characteristics of the image; grouping simple feature descriptors into complex features wherein the - 1 ¨

simple feature descriptors are grouped based upon orientation; grouping end-stopped complex feature descriptors and complex feature descriptors at multiple orientations into hypercomplex feature descriptors; generating a hypercomplex resonant feature descriptor cluster by linking pairs of hypercomplex feature descriptors; performing feature hierarchy classification by adaptive resonance on feature descriptors; and generating classifier metadata associated with the image.
A further aspect provides a system for image classification and searching comprising: a processor; a memory containing instructions for: a feature extractor module for: determining a plurality of feature descriptors based upon characteristics of the image; grouping feature descriptors into complex features wherein the feature descriptors are grouped based upon orientation; grouping end-stopped complex features and complex features at multiple orientations into hypercomplex features;
generating a hypercomplex resonant feature cluster by linking pairs of hypercomplex features; a resonant classifier module for: performing feature hierarchy classification by adaptive resonance on feature descriptors; generating a feature image classifiers based upon the adaptive resonance classifiers; an indexing module for indexing the image within the classifier hierarchy; a storage device containing an image database comprising: classifier metadata associated with images; indexing data comprising image location data.
In yet another aspect provides a system for image classification and searching comprising: a processor; a memory containing instructions comprising:
determining a plurality of simple feature descriptors based upon characteristics of the image; grouping simple feature descriptors into complex features wherein the simple feature descriptors are grouped based upon orientation; grouping end-stopped complex feature descriptors and complex feature descriptors at multiple orientations into hypercomplex feature descriptors; generating a hypercomplex resonant feature descriptor cluster by linking pairs of hypercomplex feature descriptors; performing feature hierarchy classification by adaptive resonance on feature descriptors; and generating classifier metadata associated with the image.
In still yet another aspect provides a computer readable medium containing instructions for image classification, the instructions which when executed on a
-2--processor perform the steps of: determining a plurality of simple feature descriptors based upon characteristics of the image; grouping simple feature descriptors into complex feature descriptors wherein the simple feature descriptors are grouped based upon orientation; grouping end-stopped complex feature descriptors and complex feature descriptors at multiple orientations into hypercomplex feature descriptors; generating a hypercomplex resonant feature descriptor cluster by linking pairs of hypercomplex feature descriptors; performing feature hierarchy classification by adaptive resonance on feature descriptors; and generating classifier metadata associated with the image.
Other aspects and features will become apparent to those ordinarily skilled in the art upon review of the following description of specific embodiment of the invention in conjunction with the accompanying figures.
BRIEF DESCRIPTION OF THE DRAWINGS
Further features and advantages of the present invention will become apparent from the following detailed description, taken in combination with the appended drawings, in which:
FIG. 1 shows an overview of a system for image searching;
FIG. 2 shows a schematic representation of image classification and search model;
FIG. 3 shows an illustration of interaction between feature descriptors during image classification;
FIG. 4 shows a system for image classification and search;
FIG. 5 shows a schematic representation of image analysis on SIMD and SISD processors;
FIG. 6 shows a method of image analysis and indexing;
FIG. 7 shows a method of indexing images using a branch classifier;
-3¨

IWO , FIG. 8 shows a method of indexing images using a leaf classifier;
FIG. 9 shows a method of querying the classifier hierarchy; and FIG. 10 shows a method of querying the classifier hierarchy based upon a received image.
It will be noted that throughout the appended drawings, like features are identified by like reference numerals.
DETAILED DESCRIPTION
Embodiments are described below, by way of example only, with reference to Figs. 1-10. A system and method are provided for enabling efficient image searching.
In contrast to the typical keyword or metadata based image search engine, computer vision systems have become quite adept at recognizing objects that they have already seen, but the more general task of recognizing a class from a limited number of instances has proven somewhat elusive. Existing image classification systems are generally implemented on Single Instruction Single Data (SISD) processors, but given the complexity of the problem and raw processing power required to create a visual index, a more parallel processor is clearly required to achieve high performance. The adoption of highly parallel programmable Single Instruction Multiple Data (SIMD) processor programming architectures in applications such as Graphics Processing Unit (GPU) has provided an inexpensive architecture for emulating many highly parallel processes.
Many operations in image processing are fundamentally Single Instruction Multi Data (SIMD) in nature, where local regions of an image all have identical operations performed on them. These operations can include convolution operations, or various forms of pooling mechanisms to construct higher order visual feature descriptors from more simple feature descriptors.
A crucial aspect of object recognition is that many object classes cannot be recognized using only small, isolated regions of the image. It is important to pool
-4¨

simple feature descriptors in more complex feature descriptors, which requires an effective method of grouping local feature descriptors that belong to the same object together; ideally each descriptor should be aligned with the intrinsic geometry of the object in question. By grouping descriptors and determining multiple classifiers for each image a hierarchical database can be created that enables fast and efficient image search results.
Biological systems, such as the primate visual cortex, have both high speed and remarkably robust methods for achieving high accuracy object recognition over very large collections of data. Computer based object recognition systems drastically underperform when compared to biological system, mainly in terms of speed, accuracy and database size. The system presented has a large degree of biological motivation. Each feature descriptor represents an entire class of cells present in the human visual cortex and the classifier also has a strong biological basis. SIMD processors are fundamentally similar to these biological systems and allows computationally intense operations to be performed efficiently.
FIG. 1 shows an overview of a system for image searching. Digital images 180 can be stored or acquired form a number of locations or devices. A network 150 such as for example the internet provides a medium to enable a user to generate, store and locate images. The images may be stored on a server or host 160, such as for example a website, on digital devices such as a mobile phones 152, notebook computers 154, desktop computers 156, personal digital assistants 158. In addition these devices may acquire from or include cameras that generate images 180. To facilitate access to images, either stored locally or distributed throughout the network an image processor/search engine 102 is provided. The image processor and search engine may be embodied in a single device or may be functional distributed across multiple devices in software or hardware form.
The image processor 102 receives images which are classified based upon characteristics or feature descriptors of the images, as will be discussed in more detail. Analysis is performed on the feature descriptors which enables classifications to be associated with the image. The classifier metadata can then utilized to create a hierarchical database 170 to facilitate searching. Images
-5--may also be input directly into the image processor 102 or acquired through an input device 140 such as a scanner or digital camera. Once a database and index have been created, searches can be performed through the search engine, either local or remotely through the network 150. The searches can be initially based upon keywords that are associated with each of the images or based upon analysis of a provided or selected image to determine relevant characteristics. The search engine can then retrieve location data from the database 170 and present relevant image results to the user. By providing a means of search based upon keywords in addition to determined visual characteristics of the image, a more refined and efficient image database structure is provided which can ensure faster more accurate search results.
The image classification starts with simple and complex feature descriptors, as shown in FIG. 2, which provides a schematic representation of an image classification and search model. Simple feature descriptors are created using a convolution operations with Gabor filters on a received image. Complex feature descriptors are pooled from simple feature descriptors of a given orientation.

Pooling is modeled as a MAX operator and happens over all scales and over all positions within the feature descriptors' scope, also known as a receptive field.
Simple and complex feature descriptor computation is alternated and their receptive fields gradually grow in size.
Another type of feature used, is the hypercomplex feature descriptor. This feature descriptor is built around several key structures in the system. The first of which is simple and complex feature descriptors, which are extracted in an alternating fashion. The cortical column structure is used, as shown in Fig.
2, in order to group simple feature descriptors with similar properties that vary only by orientation and is used to regulate the feature tuning process. The hypercomplex feature descriptor serves to pool complex feature descriptors into simple orientation and scale invariant feature descriptors. Another type of feature descriptor is used, which pools hypercomplex feature descriptors and links them in a hierarchical manner. A method of comparing hierarchical feature descriptors, and of isolating the pertinent feature descriptors for a class is also provided.
-6¨

Image classification is performed using a hierarchical resonant classifier.
Note that all feature data, meaning all system input and output, can be stored in texture format when a GPU is used during all stages of processing.
Fig. 2 shows illustratively the layers of the image classification and search model. An image 202 is acquired by the system. The image may be presented in any number of image formats such as .JPG, .GIF, .RAW or may be a selected from form a multimedia files such as .MPG, .AVI, .MOV, etc. Any computer definable image format may be utilized for processing by the system.
Vi Simple Features S Layer) (204) The V1S layer 204 is computed directly from the image 202 with a convolution using 2D Gabor filters over a range of orientations, for example four unique orientations. The Gabor filters have the ranges show in Table 1 and can be described by:
Cs (0, x, y) = exp( x'2 + 72y12 cos (27r + tv) 2a2 = XCOS(0)+ YSin(0) Where y, = y cos (0) ¨ y sin (0) 0 and A are related by the bandwidth parameter b from Equation (2) The system uses parameters within the ranges shown in Table 1. The initial values of the parameters are inserted in the filters but the final filter values obtained for each image are not pre-determined. A tuning operation is used to dynamically select the optimal Gabor filters for the current image. The initial values of the parameters can be for example:
= 0.0, 0 = 0.7, =
0.6, b = 1.1, but the final filter values are obtained with the use of a tuning operation which dynamically selects the optimal simple feature parameters for each image. This procedure is explained below.
-7¨

=
Parameter scale 6 bA
n 3n 7r r Value Range [5,31] 0,¨,¨,¨ ['21-] ¨ j0.2,3.0] [0.0,3.0]
[0.0,6.0]

Table 1 V1 Complex Features (VIC Layer) (206) V1 complex feature descriptors are derived with a pooling operation over a local cluster of simple features descriptors within the complex feature descriptors receptive field, OF RF = The pooling is modeled with a MAX operation. Complex feature descriptors are pooled from a cluster of simple feature descriptors of a common orientation, 6, although other forms of pooling may be utilized. Let Cs(s1,0,x,y) be the simple feature descriptor at (x,y)with orientation 6 and scale s, . The complex feature descriptor pooling operation is defined in Equation 3.
Cc(9,x,y)=maxlCs(0,x+x. ,y+y.)1V(X ,i)eo-RF}(3) Complex features descriptors can be thought of as a type of sub-sampling operation: a complex feature descriptor with a given receptive field o-RF
reduces a group of simple feature descriptors within its receptive field to a single feature descriptor. Note that any given complex feature descriptor C has a specific orientation a, that is derived from the object in the visual field; a, is closely related to the simple feature descriptor's 6 parameter. a is used to achieve rotation invariance and is explained further in the V2HC layer 208.
Columnar Tuning (207) Selecting the best simple feature descriptors with which to process a given visual field is not a simple problem to solve: there are countless combinations of parameters for simple feature descriptor extraction. Many systems use static Gabor filters for feature extraction, but the disclosed model does away with this assumption. Simple feature parameters are selected using an iterative tuning
-8¨

model. The results of this tuning process 207 are the ideal set of simple feature parameters with which to process the image and is summarized as follows:
1. The system is initialized with default simple feature values;
2. Tuning takes place over the following V1 simple feature parameters:
3. There are N tuning steps, with M simple feature settings tested at each step;
4. At each tuning step, a new series of simple feature descriptors are generated by altering the current simple feature parameter;
5. All M newly generated simple feature descriptors are extracted from the visual field;
6. The results from the M simple feature descriptors are evaluated based on the ratio of cortical columns and complex feature descriptors;
7. The parameters that create the optimal ratio of corners to edges while maximizing corners are selected as the winning parameters; and 8. The tuning process is repeated N times.
Generally, there is an increase of feature receptive field size throughout the tuning process. Due to the fact that 4NM total convolutions are performed per visual field, the tuning is only plausible if done using hardware capable of SIMD
computation, such as the GPU.
V2 Hypercomplex Features (V2HC Layer) (208) Illusory contours of objects are an important property for requiring complex shapes and textures.
Hypercomplex feature descriptors pool over multiple orientations; they pool over the orientation component of complex feature descriptors.
Hypercomplex feature descriptors pool over complex feature orientation and respond to end-stopped input (bars of a specific length).
These
-9¨

properties are accommodated by designing hypercomplex feature descriptors to be pooled from specific complex feature descriptors. The hypercomplex feature descriptors pool both end-stopped complex feature descriptors and complex feature descriptors at multiple orientations. This allows hypercomplex feature descriptors to activate for simple shapes, such as that of a corner or chevron.
These features serve as the basis for representing an object's geometry, although any single hypercomplex feature descriptor is too simple to accurately identify a given object; they must be pooled yet again to provide a reliable basis for object recognition. Equation 4 shows an orientation pooling hypercomplex feature descriptors; this features descriptor is comprised of all active complex features in its receptive field. The hypercomplex feature descriptor orientation pooling operation can be defined as follows:
CH(x,y)-= fcc(eõx,y): 0, E 2r,Cc(0õx,y) > tõ,,} (4) ta, is an activation threshold and is set to 10% of the maximum response value. A hypercomplex feature descriptor CHA is comprised of the responses of active complex feature descriptors C0. .
Hypercomplex features descriptors are normalized in a manner that gives them both orientation and scale invariance.
The activation of any complex feature qt., has an intrinsic orientation associated with it, cz1, which is related to the simple feature 6 value, a, reflects the orientation of the item in the visual field activating the underlying simple feature descriptor.
FIG. 3 shows an illustration of interaction between features during image classification. The difference in angle between any two complex features is a, --,--abs(aa-a1). A hypercomplex feature descriptor is normalized by comparing the orientation of all of its complex feature descriptors and setting the largest a, as the primary angle and q!, as the primary complex feature. The remaining complex feature descriptors are arranged in a clockwise manner from the primary for future comparison.
- 10-Each complex feature descriptor Cc has a length associated with its activation, dictated by o-iõ and s1. The lengths are also normalized according to the C r RF and s, values of each hypercomplex feature descriptors' longest complex feature descriptor. These steps give the feature descriptors complete rotation and scale invariance. Once rotation and scale normalization has taken place, CAH, comprised of C0 . . .C, has the following properties:
= ao, is the largest angle difference between any of the complex feature descriptors = qic, is the primary complex feature descriptor = C1 is the closest complex feature descriptor to Cici 0 in a clockwise manner = A normalized length is stored for each complex feature descriptor in CAH
The comparison of two complex feature descriptors is given in Equation 5, and the comparison of two hypercomplex feature descriptors is shown in Equation 6.

¨ CHJ = 2 \1EN liCa C Ci = "CCI ECHI CCJ ECHJ
(6) k=0 The comparison operator for hypercomplex feature descriptors defines a quick and effective method of comparing both the orientation and length components of the constituent complex feature descriptors within two hypercomplex feature descriptors. This raises the issue of how to separate foreground from background, since a hypercomplex feature descriptor can contain complex features descriptor from both the foreground and background. Physiologically, having two eyes aids us greatly in determining object boundaries: depth is a very obvious cue.
But in most computer vision problems two views of a given scene are not provided, so other techniques must be employed to isolate an object of interest from its background. This problem is dealt with in the V2C layer.
-11 ¨

V2 Lateral Inhibition (V2LI Layer) (210) The visual field now consists of a set of hypercomplex feature descriptors whose receptive fields overlap one another, leaving redundant features in the visual field. Lateral inhibition is a mechanism whereby a given feature descriptor inhibits neighboring feature descriptors with lower activation levels. This inhibitory mechanism makes use of the paths defined by complex feature descriptors within hypercomplex feature descriptors. As in previous models, lateral inhibition or feature sparsification has been shown to help to effectively isolate the important features within the visual field. The inhibitory mechanism utilized allows each hypercomplex feature descriptor to inhibit the response of neighboring feature descriptors within its receptive field. The inhibition occurs over the activation of simple feature descriptors and the mechanism acts as a MAX operator, similar in nature to the V1 complex feature descriptor.
V2 Hierarchy Building (V2C Layer) (212) Once lateral inhibition has taken place, the visual field consists of a collection of hypercomplex feature descriptors pooled from complex feature descriptors.
The next stage is to introduce higher order feature descriptors by pooling the hypercomplex feature descriptors one step further. Another type of feature descriptor is defined whose properties are quite similar to the feature descriptors in the lower levels: it is yet another type of pooling operation. This pooling is geared towards activation from object contours.
This feature pools the response of hypercomplex feature descriptors to form a graph of features. Let (CHA,CHK) be two hypercomplex feature descriptors that are linked together by a shared complex feature descriptor, meaning that the common complex feature descriptor is in both hypercomplex features. This link is activated if and only if they share a complex feature descriptor. In order to achieve this state, each hypercomplex feature descriptor has all of its constituent complex features' receptive fields traversed in order to determine all neighboring hypercomplex feature descriptors; the end result is the resonant feature descriptor C: , shown in Equation 7.
-12¨

CR(x,y)={(CHA,CHR)13I,J,K,Co E CHA,CQ e C HK :11C a C C-II1= 0}(7) C, is a tree graph with a depth of 1. A sample of such a resonant feature descriptors can be seen in Figure 3. This pooling operation links pairs of hypercomplex feature descriptors together in a 1st order hierarchy, allowing hypercomplex feature descriptors to become members of a common graph. The graph activates in response to illusory contours due its ability to link feature descriptors within a specific receptive field, but one problem remains: the graph contains a good deal of noise. The ideal resonant hypercomplex feature descriptor will activate to a contour whose elements have a common luminance.
FIG. 3 provides a simplified sample of a single Hierarchical Resonant image feature. Cr , comprised of 2 hypercomplex feature descriptors (C: and Chb) and 5 complex feature descriptors ( C:0. . c2 and Ccb0 . . .c,b2). Note that the grid 302 represents a field of simple feature cortical columns on top of which complex feature descriptor pooling occurs. In feature 304, contains 4 simple feature 306 each providing a different orientation. This grid is in turn mapped onto a series of textures on the GPU. The primary complex feature descriptors, 310 and 31, C:0 and Ceb0, are associated with the largest angles in their respective hypercomplex feature descriptors; all other feature descriptors are arranged in a clockwise manner in order to simplify rotation invariant matching. The complex feature lengths are also normalized for invariance during matching.
Hierarchical Resonance (HAR Layer) (214) The visual field now consists of a large number of 1st order hierarchies of hypercomplex feature descriptors; however, every feature descriptor hierarchy can consist partially or completely of background information. The HAR Layer 214 serves to set weights for the feature pairs in each hierarchy based on its ability to match other feature hierarchies of the same object class. The hierarchical resonance (HAR) layer 214 performs this resonance operation over all visual fields for a given object class, it effectively performs feature descriptor isolation prior to training the classifier. The resonance operation is done over all feature descriptors
-13¨

, in the training set for a given class; it is effectively selecting both the best feature descriptor hierarchies and the best elements of these hierarchies to recognize a specific class. The result of this layer is a set of hierarchical feature descriptors which activate in response to a specific class.
Let Cra be a resonant feature composed of hypercomplex feature descriptors Chao ...ChaA, . Let C, be a resonant feature descriptor from a separate visual field. The following code shows an algorithm for comparing two resonant feature descriptors to one another. The discardChildren function serves to discard the least similar hypercomplex child feature descriptors so that the two feature descriptors have the same child count. This helps to isolate background features.
The following code shows the comparison algorithm for comparing two hypercomplex feature descriptors, (C: ) and (Cr). In the same way as all layers in the system, it runs as pixel/fragment shader code on the GPU.
if childCount(Cra ) < childCount(C,b) then Crb 4-discardChildren(Crb) end if if childCount (C:) = childCount(cb ) then rootActi-- ¨ Chboll if rootAct > p then for k = I to childCount(Cra ) do =
weight[]+-rootAct x hak end for end if end if This matching process is run on every feature descriptor combination in two input images. For each C: , the best matching feature descriptor is selected (via the max operator) in the destination image. Following this, the p parameter, whose range is [0,11, is used to dictate the success of matches within the child weight
- 14-A .
values. The process is repeated for all images within a class for positive examples, and a set of background images for negative examples. All weights and features are extracted and stored in a database for use by the classifier.
Classification (GPU ART Layer) (216) The classifiers belong to the Adaptive Resonance Theory (ART) family of classifiers. The classifiers are two forms of adaptive resonant classifiers , which do not suffer from the train / test dichotomy that plagues most classifiers; they can switch between training and testing modes at any point. The classifiers are also not limited to binary classification, it is instead adapted to multiclass classification.
The first form of classifier is a leaf classifier, seen in FIG 8. This classifier uses a combination of an two layers linked by an associative map field in between.
The first layer receives a stream of input vectors and performs comparisons using the hypercomplex comparison algorithm and the second layer receives a stream of correct predictions. When the two layers activate in resonance, the map field pairs their activation. The map field includes a feedback control mechanism which can trigger the search for another recognition category, in a process called match tracking. The classifier has the following properties which differentiate it from a standard ART classifier:
= The classifier does not use bounded length input samples. Instead training and test samples are resonant hypercomplex feature descriptors which can have any number of children = Training is done with a resonant operation performed on the resonant feature hierarchy itself = The classifier is implemented on the GPU; all comparisons are done in a single render pass with 0(M,N) comparisons of M known features to N
input features
-15¨

= When a predetermined maximum feature descriptor threshold has been reached, a leaf node isolates the principal components of its feature descriptor collection and reorganizes itself into a branch classifier The second form of classifier is the branch classifier, seen in FIG 7. This classifier uses a collection of feature descriptors which represent the principal components of a given object class. Each principal component feature descriptor collection is linked to a child classifier, which can be either another branch classifier or a leaf classifier. An example of a branch classifier would be the "automobile"
branch classifier which contains the principal component feature descriptors representing: "sports car", "station wagon", and "pickup truck". Each of these feature descriptor collections of principal components, when activated, indicates to the branch classifier which of its children should be engaged for further classification. The branch classifier serves to answer questions such as "does this image contain a sports car, a station wagon or a pickup truck?"
FIG. 4 shows a computing environment 400 in which image classification and search may be implemented as computer software in the form of computer readable code for execution. The computing environment 400 may be any number of computing or computer based platforms such as servers, mobile devices, personal computers, notebook computers, personal digital assistants. The computer 102 comprises central processing unit (CPU) 404 and associated memory 120, and an SIMD processing unit (GPU) 402 and associated memory 410. The CPU(s) and GPU(s) may be a single processor or multiprocessor system for executing SISD
or SIMD operations. In various computing environments, memory 402 and 404 and storage 170 can reside wholly on computer environment 400, or they may be distributed between multiple computers.
Input devices such as a keyboard and mouse may be coupled to a bi-directional system bus of a computer 402. The keyboard and mouse are for introducing user input to a computer and communicating that user input to processor 404 if required. Computer 102 may also include a communication interface 414.
Communication interface 408 provides a two-way data communication coupling via a network link to a network 150 by wired or wireless connection or may provide an
- 16 ¨

interface to other host devices by a direct radio frequency connection. In any such implementation, communication interface 408 sends and receives electrical, electromagnetic or optical signals which carry digital data streams representing various types of information. GPU 402 may be coupled to a display device 430 for displaying results or data related to search results or execution of the image processing or search engine.
Communication between the communication interface unit 408 and the network 150 or host use electrical, electromagnetic or optical signals which carry digital data streams. The signals through the various networks and the signals on network link and through communication interface, carry the digital data to and from computer. The computer 402 may also be able to display the results of the search to a user in the form of output if it is performed locally.
The CPU 404 or SIMD processor (GPU) 402 or similar device may be programmed in the manner of method steps, or may be executed by an electronic system which is provided with means for executing for operation of the classification and search engine. The storage device 170 can be accessed through an input/output (I/O) interface 408 and may include both fixed and removable media, such as magnetic, optical or magnetic optical storage systems, Random Access Memory (RAM), Read Only Memory (ROM) or any other available mass storage technology. The storage device or media may be programmed to execute such method steps. As well, electronic signals representing method steps may also be transmitted via a communication network.
Memory 420 can provide code for provide high level operation of the classification and search system. An image processing module 422 provides a means of conveying images to the SIMD processor 402 for processing in addition to receiving metadata from user input or by other association means. The image is processed by the SIMD processor 402 which comprises a feature extractor module 412 for extracting and isolating feature descriptors and pooling simple features to hypercomplex feature descriptors, a resonant classifier module 416 for performing classification based upon resonant hierarchical hypercomplex feature descriptors, an indexing module 418 for indexing the image within the classifier hierarchy relative
-17¨

to the determined classifiers utilizing classifier metadata. From the processing of the image by the SIMD processor 402, classifier metadata 472 is stored in a database. As part of the classifier metadata, the parameters for extracting the feature descriptors may be included in addition it is also possible to include the actual feature descriptors. The database also provides and index 476 to the location of the image either locally or remotely on the network. In combination with image labels 474, the search engine 424 can process a query, either based upon an image or keywords to access the database for retrieval of relevant images and present the results to the user. Although the modules have been represented as being divided between SISD processor 404 and SIMD processor 402 memory 410 and 420, they may be wholly executed by either processor.
FIG. 5 shows a schematic representation of image analysis on SISD
processor 504 such as current CPU architectures or on SIMD processors 510 such as current GPU architectures. In an SISD processor each step of the execution of processing the image data 502 would be run serially. Feature descriptors 506 would be generated successively then appropriate classifiers 508 generated.
Modern programmable GPU 510 are fast becoming the ideal platform for large scale processing and provide SIMD execution, however newer CPU
technology such as Cell processors are adopting the SIMD processing architectures. The GPU is ideal for problems that are highly parallel in nature and can benefit from Single Instruction Multi Data (SIMD), Multi Instruction Single Data (MISD) or Multi Instruction Multi Data (MIMD) processing. Since the primate visual cortex operates in a retinotopic fashion, which is an inherently SIMD type of processing, therefore current GPU architectures are ideal platform for modelling the visual cortex. All processing, from feature descriptor isolation and comparison to object classification, can be implemented using OpenGL GLSL fragment shaders.
When developing algorithms for the GPU, coprocessor bandwidth can become a significant bottleneck. It is crucial to minimize data transfer between the CPU and GPU. Feature descriptors are only read from the GPU after the HAR layer has been applied. At this point, the features for a given object class have been isolated and ranked. A subset of these ranked descriptors are selected for classification.
This
-18¨

allows a uniform distribution of feature descriptors for each class. These descriptors are combined into a single texture for the classification shaders. In this example the image data 502 is provided in shared memory which can be processed in parallel by processing units 522, 524, 526 and 528 to generate feature descriptors 530 in parallel. Classifiers 532 can then be generated based upon the feature descriptors.
FIG. 6 shows a method of image analysis and indexing. The image is received by the processing computer at step 602. The image may either be sent to the computer or acquired from a remote location. Metadata can then be associated with the image either directly from user input or associated with the image by an automated process at step 604. At step 606 image is processed to determine simple feature descriptors utilizing Gabor filters. The determined image feature descriptors are grouped at step 608. The filter parameters can then be tuned based upon a predefined number of iterations or tuned until the optimal corner to edge ratio is achieved. If further parameter tuning is required, YES at step 610, the Gabor filter parameters are adjusted across the defined range and feature determination is repeated at step 606. If tuning is complete, NO at step 610, hypercomplex feature descriptors are then generated at step 614. By performing feature reduction by lateral inhibition at step 616, redundant features can be removed. It should be understood that reduction of overlapping features may occur throughout the method to improve efficient by removing redundant data. Hypercomplex feature descriptor clusters are then generated at step 618. A resonance operation is then performed at step 620 it effectively performs feature isolation prior to training the classifier.
Adaptive Resonance Theory classifier is then determined at step 622 which places the image, based upon the determined classifier, within the hierarchy of images.
The classifier metadata and image index information can then be stored with an image database at step 624.
FIG. 7 shows a method of indexing images using a branch classifier as defined during step 622 for creating the hierarchy. Data 702, associated with the processed image, includes labels 704 which identify characteristics of the image and the feature cluster 706 associated with the image. The feature cluster 704 is mapped with classifiers in an image database. The classifiers can be defined in a
-19¨

tree structure with the index's top level classifier mapping to branch classier 708.
For each branch classifier such as 708 and 710 image, labels 474 can be assigned and stored in the database to facilitate search based upon keywords. From each branch classifier additional branches may be defined, for example branch classifier 710 branches from branch classifier 708. Similarly leaf classifiers 712 and 718 may be dependent from the branch classifier as well. Each classifier is associated with clusters of features that are common to images and can be mapped together. For example, a top level branch classifier may be associated with images of vehicles, while a sub-branch define automobiles in particular, while the leafs may be associated with colors or shapes of automobiles.
FIG. 8 shows a method of indexing images using a leaf classifier. As with the branch classifier the leaf classifier is associated with a feature cluster generated from the image. The feature cluster 802 is indexed to the individual leaf classifier 804. To ensure speed and manageability of the image database the size of each leaf classifier can be limited either in terms of the number of images references or by data size. When the defined limit is reach, the classifier is deemed full, YES at step 806. The leaf classifier 804 will be redefined as a branch classifier 816. At step 814 the principle components of the leaf classifier are isolated and translated to the branch classifier. The images that are part of the classifier are then redefined by further leaf classifiers 818 providing further granularity in image resolution. The images are re-indexed to the new leaf classifier and associated with the image labels 474 in the database.
FIG. 9 shows a method of querying the classifier hierarchy. When a search is performed on the database, the keywords that are associated with the classifiers are mapped back to the query term 902. For example a high level term (such as `vehicle') can be associated with the main branch classifier 904. The additional terms that define a subqueries such as subquery 1 (such as `car') which is mapped to a branch classifier 908 and subquery 2 (such as `bus') which is mapped to a leaf classifier 910. In addition, dependent on the granularity of the branch classifier, additional terms may be mapped based upon additional subquery terms, such as subquery 3 (such as `convertible') to further direct to a leaf classifier 914.
Based
-20 ¨

upon the hierarchy the images associated with leaf classifiers the query result 916 can then be presented by the images associated with the particular leaf classifier.
FIG. 10 shows a method of querying the classifier hierarchy based upon a received image. In this method it is assumed that an image is provided as part of the search query. Search terms or keywords may also be included for accelerating the search process by further defining an initial classifier branch. The image is received by the processing computer at step 1002. The image may either be sent to the computer directly or acquired from a remote location. For example, an image may be provided by a mobile phone integrated with a camera, in which the user would like to find similar products or locations. At step 1006 image feature descriptors are determined utilizing Gabor filters. The determined image features are grouped at step 1008. The filter parameters can then be tuned based upon a predefined number of iterations or tuned until the optimal corner to edge ratio is achieved. If further parameter tuning is required, YES at step 1010, the Gabor filter parameters are adjusted across the defined range and feature determination is repeated at step 1006. If tuning is complete, NO at step 1010, hypercomplex feature descriptors are then generated at step 1014. By performing feature reduction using lateral inhibition at step 1016, redundant features can be removed.
Hypercomplex feature descriptor clusters are then generated at step 1018 by pooling hypercomplex feature descriptor. Adaptive Resonance Theory classifiers can then determined at step 1020 which places the image based upon the determined classifier within the hierarchy of indexed images. The images that are most relevant are then identified at step 1022 and then retrieved and displayed at step 1024. If the user then selects one of the retrieved images, a further search can be performed to retrieve images that are more similar based upon the classifiers associated with that image.
Application code may be embodied in any form of computer program product.
A computer program product comprises a medium configured to store or transport computer readable code, or in which computer readable code may be embedded.
Some examples of computer program products include but are not limited to
-21¨

Compact Disc and Digital Versitile Disc, memory cards, floppy disks, magnetic tapes, computer hard drives, or servers on a network.
The computer systems described above are for purposes of example only. An embodiment may be implemented in any type of computer system or programming or processing environment. It will be apparent to persons skilled in the art that a number of variations and modifications can be made without departing from the scope of the invention as defined in the claims.
The method steps may be embodied in sets of executable machine code stored in a variety of formats such as object code or source code. Such code is described generically herein as programming code, or a computer program for simplification.
Clearly, the executable machine code or portions of the code may be integrated with the code of other programs, implemented as subroutines, plug-ins, add-ons, software agents, by external program calls, in firmware or by other techniques as known in the art.
The scope of the claims should not be limited by the preferred embodiments set forth in the examples, but should be given the broadest interpretation consistent with the description as a whole.
=
- 22 -,

Claims (19)

CLAIMS:
1. A method classifying an image comprising the steps of:
determining a plurality of simple feature descriptors based upon characteristics of the image;
grouping simple feature descriptors into complex features wherein the simple feature descriptors are grouped based upon orientation;
grouping end-stopped complex feature descriptors and complex feature descriptors at multiple orientations into hypercomplex feature descriptors;
generating a hypercomplex resonant feature descriptor cluster by linking pairs of hypercomplex feature descriptors; performing feature hierarchy classification by adaptive resonance on feature descriptors; and generating classifier metadata associated with the image.
2. The method of claim 1 further comprising the steps of:
determining redundant feature descriptors which overlap; and removing the redundant feature descriptors.
3. The method of any one of claim 1 to 2 wherein the simple feature descriptors are determined by applying Gabor filters to the image.
4. The method of claim 3 wherein the step of determining the feature descriptors is repeatedly performed to determine optimal feature descriptor acquisition parameters of the Gabor filters.
5. The method of any one of claims 1 to 4 further comprising the step of:
performing hierarchical feature resonance against images already classified for a given object class, and utilizing the determined feature descriptors prior to the step of hierarchical classification.
6. The method of claim 5 further comprising the steps of:
storing classification metadata in an image database; and storing index information for identifying the location of the image.
7. The method of claim 6 further comprising the step of storing image label information in the image database wherein the image label comprises keywords associated with the content of the image.
8. The method of any one of claims 1 to 7 further comprising retrieving images from an image database having classifiers of the same classification metadata for display to a user.
9. The method of any one of claims 1 to 8 wherein the classifiers are grouped into branch classifiers and dependent leaf classifiers in an image hierarchy database.
10. The method of claim 9 wherein when a classifier exceeds a pre-defined number of referenced images, performing the steps of:
isolating multiple principal feature descriptor components of the original leaf classifier into a new branch classifier; and generating new leaf classifiers based upon the differential feature descriptors of the original leaf classifier.
11. The method of any one of claims 1 to 10 wherein each of the plurality of feature descriptors is determined independently by a processing unit operating capable of Single Instruction Multi Data (SIMD) processing.
12. A system for image classification and searching comprising:
a processor;
a memory containing instructions for:
a feature extractor module for:
determining a plurality of feature descriptors based upon characteristics of the image;

grouping feature descriptors into complex features wherein the feature descriptors are grouped based upon orientation;
grouping end-stopped complex features and complex features at multiple orientations into hypercomplex features;
generating a hypercomplex resonant feature cluster by linking pairs of hypercomplex features;
a resonant classifier module for:
performing feature hierarchy classification by adaptive resonance on feature descriptors;
generating feature image classifiers based upon the adaptive resonance classifiers;
an indexing module for indexing the image within the classifier hierarchy;
a storage device containing an image database comprising:
classifier metadata associated with images;
indexing data comprising image location data.
13. The system of claim 12 wherein the storage device further comprises image labels comprising keywords associated with content of the images.
14. The system of any one of claims 12 to 13 wherein a Single Instruction Multi Data (SIMD) processor and the feature extractor module operates by utilizing processing units for determining features in parallel.
15. The system of any one of claims 12 to 14 wherein the feature extractor module further comprises performing hierarchical feature resonance over all visual fields for a given object class.
16. The system of any one of claims 12 to 15 wherein the classifier metadata is stored in a branch/leaf hierarchy, each branch associated with images having similar principal components based upon the feature descriptors and the leaf classifiers reference images based upon differential feature descriptors relative to the branch.
17. The system of claim 16 wherein when a classifier exceeds a pre-defined number of referenced images the hierarchy is expanded by:
isolating multiple principal feature descriptor components of the original leaf classifier into a new branch classifier; and generating new leaf classifiers based upon the differential feature descriptors of the original leaf classifier.
18. A system for image classification and searching comprising:
a processor;
a memory containing instructions comprising:
determining a plurality of simple feature descriptors based upon characteristics of the image;
grouping simple feature descriptors into complex features wherein the simple feature descriptors are grouped based upon orientation;
grouping end-stopped complex feature descriptors and complex feature descriptors at multiple orientations into hypercomplex feature descriptors;
generating a hypercomplex resonant feature descriptor cluster by linking pairs of hypercomplex feature descriptors;
performing feature hierarchy classification by adaptive resonance on feature descriptors; and generating classifier metadata associated with the image.
19. A non-transitory computer readable medium containing instructions for image classification, the instructions which when executed on a processor perform the steps of:
determining a plurality of simple feature descriptors based upon characteristics of the image;

grouping simple feature descriptors into complex feature descriptors wherein the simple feature descriptors are grouped based upon orientation;
grouping end-stopped complex feature descriptors and complex feature descriptors at multiple orientations into hypercomplex feature descriptors;
generating a hypercomplex resonant feature descriptor cluster by linking pairs of hypercomplex feature descriptors;
performing feature hierarchy classification by adaptive resonance on feature descriptors; and generating classifier metadata associated with the image.
CA2613936A 2007-12-07 2007-12-07 Image classification and search Active CA2613936C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CA2613936A CA2613936C (en) 2007-12-07 2007-12-07 Image classification and search

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CA2613936A CA2613936C (en) 2007-12-07 2007-12-07 Image classification and search

Publications (2)

Publication Number Publication Date
CA2613936A1 CA2613936A1 (en) 2009-06-07
CA2613936C true CA2613936C (en) 2014-03-25

Family

ID=40751130

Family Applications (1)

Application Number Title Priority Date Filing Date
CA2613936A Active CA2613936C (en) 2007-12-07 2007-12-07 Image classification and search

Country Status (1)

Country Link
CA (1) CA2613936C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114821128B (en) * 2022-06-24 2022-09-09 北京科技大学 Scale-adaptive template matching method

Also Published As

Publication number Publication date
CA2613936A1 (en) 2009-06-07

Similar Documents

Publication Publication Date Title
US8200025B2 (en) Image classification and search
Demner-Fushman et al. Design and development of a multimodal biomedical information retrieval system
Afifi et al. Image retrieval based on content using color feature
Ahmad et al. Medical image retrieval with compact binary codes generated in frequency domain using highly reactive convolutional features
Kolenda et al. Independent component analysis for understanding multimedia content
Putzu et al. Convolutional neural networks for relevance feedback in content based image retrieval: A Content based image retrieval system that exploits convolutional neural networks both for feature extraction and for relevance feedback
CN107209860A (en) Optimize multiclass image classification using blocking characteristic
Yang et al. An improved Bag-of-Words framework for remote sensing image retrieval in large-scale image databases
Jian et al. Content-based image retrieval via a hierarchical-local-feature extraction scheme
Tunga et al. A comparative study of content based image retrieval trends and approaches
Mai et al. Content-based image retrieval system for an image gallery search application
Abdel-Nabi et al. Content based image retrieval approach using deep learning
Dandotiya et al. Image retrieval using edge detection, RLBP, color moment method for YCbCr and HSV color space
Chiang et al. Region-based image retrieval using color-size features of watershed regions
KR101435010B1 (en) Method for learning of sequential binary code using features and apparatus for the same
Singh et al. Design & performance analysis of content based image retrieval system based on image classification usingvarious feature sets
Banda et al. Imagefarmer: introducing a data mining framework for the creation of large-scale content-based image retrieval systems
CA2613936C (en) Image classification and search
Mane et al. An effective technique for the content based image retrieval to reduce the semantic gap based on an optimal classifier technique
Naaz et al. Enhanced content based image retrieval using machine learning techniques
Haldurai et al. Parallel indexing on color and texture feature extraction using r-tree for content based image retrieval
Barbu et al. Content-based iris indexing and retrieval model using spatial acces methods
Shambharkar et al. A comparative study on retrieved images by content based image retrieval system based on binary tree, color, texture and canny edge detection approach
Padamata et al. Tomato Crop Disease Classification Using Semantic Segmentation Algorithm in Deep Learning.
Marée et al. Content-based image retrieval by indexing random subwindows with randomized trees

Legal Events

Date Code Title Description
EEER Examination request