The invention relates to the efficient representation of data items, especially image collections. It relates especially to navigating in image collections from which mathematical descriptions of the image contents can be extracted, since in such databases it is possible to use automated algorithms to analyse, organise, search and browse the data. Digital image collections are becoming increasingly common in both the professional and consumer arenas. Technological advances have made it cheaper and easier than ever to capture, store and transmit digital imagery. This has created a need for new methods to enable users to interact effectively with such collections.
Methods of querying image databases are known. For example, U.S. Pat. No. 6,240,423 discloses one such method in which the results of the query are based upon a combination of region based image matching and boundary based image matching.
For the novice user, in particular, it is difficult to find an intuitive way to relate to such large volumes of data. Most consumers, for example, are familiar with physically organising their paper photographic prints into albums, but this tangible interaction is no longer possible with a collection of digital photographs in the memory of their personal computer, camera phone or digital camera. Initially, electronic methods for navigating collections have focused on simulating this physical, tangible archiving experience.
Wang et al (U.S. Pat. No. 6,028,603) provide a means to present images in a photo-album like format, consisting of one or more pages with information defining a layout of images on that page. The order and layout may be changed by drag and drop operations by the user.
Another simple method comes from Gargi (US 2002/0140746), who presents images in an overlapped stack display. Images are revealed on mouse-over. For the user, this is similar to picking from a pile of photographs on a table.
When users organise their image collections manually, there is usually some significance to the structure. In other words, the layout of their photo-album has some “meaning” for them. This may relate to the events, people or emotions associated with the images or may, for example, tell a story. Some electronic navigation tools have tried to emulate and make use of this structure by allowing users to label or group images. Some even try to make automatic suggestions for categories or groupings.
Mojsilovic et al. (US 2003/0123737) disclose a method for browsing, searching, querying and visualising collections of digital images, based on semantic features derived from perceptual experiments. They define a measure for comparing the semantic similarity of two images based on this “complete feature set” and also a method to assign a semantic category to each image.
Rosenzweig et al. (US 2002/0075322) propose a timeline-based Graphical User Interface (GUI), for browsing and retrieval, in which groups of images are represented by icons sized proportionately to the size of the groups. Their hierarchical system operates by the user activating an icon, which triggers a further level, refining the first one. Various metadata stored in an image file, identifying, e.g. location, persons, events may also be decoded by the system to derive the (mutually exclusive) groups. Activating icons in the final level/view displays the contained images
Stavely et al. (US 2003/0086012) describe another user interface for image browsing. Using simple combinations of vertical and horizontal input controls, they permit browsing of images within groups and between groups by having a “preferred” image for each group.
Anderson (U.S. Pat. No. 6,538,698) details a system for search and browse, relying on sorting and grouping the images by various category criteria.
While a digital library denies the user the physical interaction that photographic prints allow, it also enables useful new functions, particularly concerning the automated analysis of content. “Features” can be extracted that characterise the images in a number of ways. The shapes, textures and colours (for example) present in the image may all be described by numerical features, allowing the images to be compared and indexed by these attributes.
Automatic category assignment, mentioned above, is just one example of the kind of functionality that this enables. Being able to compare images quantitatively also opens up the possibility to capture and represent the structure of the whole database. This is an attractive idea, since the user is often trying to impose structure when they set about organising their photo album. If the images in the collection have an intrinsic structure, it will probably be a useful place for the user to start. Searching and browsing can also be made more efficient, as the user can learn the structure in order to exploit or modify it.
The method of the current invention automatically discovers the structure of the image database by analysing the similarities of pairs of images. This structure can then be exploited in a number of ways, including representing it as a two-dimensional plot, which the user can navigate interactively.
A variety of methods are known from the literature, dealing with the projection of data from high-dimensional spaces into low dimensional spaces, whether purely for representation (e.g. Principal Component Analysis (PCA)) classification (e.g. Linear Discriminant Analysis (LDA)) or visualisation (e.g. Laplacian Eigenmap, MultiDimensional Scaling (MDS), Locality Preserving Projection (LPP) and Self-Organising Map (SOM)). In the current context, algorithms that take a matrix of pair-wise comparisons as input are of particular interest. With many features, the numerical data cannot be interpreted simply as points in Cartesian space—it will usually only be appropriate to make comparisons using specific distance measures. Thus algorithms that operate directly on vector data are less useful for our purpose. The similarity-based techniques include MDS, SOMs and Laplacian Eigenmaps. These all create low-dimensional projections of the data, which best reflect the respective similarity measurements (where “best” is determined by some cost function).
Rising (U.S. Pat. No. 6,721,759) describes a process for a hierarchical MDS database for images. This is based on measuring the similarity of a set of images using a feature detector, together with methods to query and update the structure. To construct the representation, MDS is performed at the top level, on a subset of the images, called control points. These points are chosen so as to approximate the convex hull of the data points—i.e., to represent fully the variations present in the images. The remaining points are initialised with positions relative to the control points and the whole set is split into multiple “nodes”, each of which represents a subset. MDS is then carried out on each node, to refine the arrangement of the images within it. The method exploits the efficiency aspects of the hierarchical tree to reduce the computational burden of calculating MDS, which is an iterative optimisation algorithm.
The method of Trepess and Thorpe (EP 1 426 882) uses a SOM to create a mapped representation of the data. A hierarchical clustering is then constructed, to facilitate navigation and display. The clusters can be distinguished by various characterising information (labels), which are automatically derived from the clustered structure. The application is primarily to text documents, but the method itself is general. In one sense it mirrors the work of Rising: that method clusters the data at each level and then performs a mapping, whereas Trepess and Thorpe compute the mapping first (globally) and then use it to construct a hierarchy.
Jain and Santini (U.S. Pat. No. 6,121,969) present a method to visualise the result of a query in a database of images. They display results in a three-dimensional space, whose axes are arbitrarily selected from a set of N dimensions. These correspond to the various measures of similarity between the query image and the database images. Visual navigation by moving through the space is proposed, giving the user a kinetic, as well as a visual, experience. This method differs from the two previous examples because instead of trying to optimally capture the similarity structure of a collection of images, it instead represents the similarity of the collection to a query image chosen by the user. The multiple dimensions arise from the multiple measures of this similarity, rather than from the multiple mutual similarities of the images.
As will be seen shortly, one of the key ideas behind the current invention is that rank structure, rather than similarity structure, is the important quality to preserve when representing and organising an image database. The use of rank to guide clustering has been mentioned fleetingly in the literature, for example by Novak et al. (J. Novak, P. Raghavan and A. Tomkins, “Anti-aliasing on the web”, Proc. International World Wide Web Conference, pages 30-39, 2004) and Fang, (F. M. Fang, “An Analytical Study on Image Databases”, Master's Thesis, MIT, June 1997). Both of these works define mutual rank of objects i and j as the sum of the rank of i, with respect to j and the rank of j, with respect to i.
The full potential of this type of measurement has, however, not been exploited. In particular, the aforementioned works only consider clustering and then only process each pair-wise mutual rank comparison in isolation, making decisions in a local, “greedy” fashion. The use of novel global rank-based measurements to guide a representation turns out to be a powerful tool to reveal structure.
Each of the prior art methods has drawbacks that are addressed by the current invention:
Simple browsing methods neither take advantage of the structure of the image collection nor represent it well.
Methods based on categorisation may partly solve this. They begin to make use of the feature-information available, but are inflexible due to the assignment of discrete, often exclusive class-labels. Reliable automatic classification is also notoriously difficult to achieve.
The more complex methods can take into account and represent similarity, but, so far, only capture absolute comparisons. The present method will capture relative relationships between images in the context of the overall collection.
Also absent from the prior art is the idea of computing and embedding in the representation a joint measure of both the temporal and visual similarity. Integrating time and appearance in this way gives advantageous properties to the visualisation, including making it easier for the user to interpret the resulting arrangement.
Aspects of the invention are set out in the claims. The invention is concerned with data items, by processing signals corresponding to data items, using an apparatus. The invention is primarily concerned with images. Further details of applications of the invention can be found in co-pending European Patent Application number 05255033.
One aspect of the invention is that relative relationships, and not absolute measures of similarity, are the important qualities to preserve when compactly representing the structure of an image collection. It therefore defines the mutual-rank matrix as the appropriate way to encode the structure of the data in a form that can be mathematically analysed. The entries in this matrix represent comparisons of pairs of images, in the context of the wider collection. The mathematical analysis can consist of grouping (clustering) images based on this information, or projecting the information into a compact representation that retains the most important aspects of the structure.
A second, related aspect is that this structure is most effectively captured when the mutual rank measurements are considered in aggregate, rather than in isolation. That is, when the processing takes a global, rather than a local (pair-wise) view of mutual rank.
A third aspect is that both temporal and visual information are equally useful in determining the context of images in the collection. This means that time is not treated as a separate or independent quantity in measuring the comparisons. The resulting clusters or visual representations are therefore formed in a space that can jointly represent visual similarity and proximity in time.
Embodiments of the invention will be described with reference to the accompanying drawings of which:
A common method, in the context of an image retrieval task, is to present a ranked list of results, ordered by their similarity (in some sense), to the query. This captures well the relationships of the images in the database to the query image. The idea is that; hopefully, the user will find images of interest near the top of the ranked list, with irrelevant images pushed to the bottom. The current invention extends this idea in an attempt to capture and visualise all the inter-relationships amongst images in the database.
One embodiment of the method is a system that analyses images, compares their features, generates a set of mutual rank matrices, combines these and computes a mapped representation by solving an eigenvalue problem. This process is illustrated in the flowchart of
Another embodiment is shown in
The first step in such a system is to extract some descriptive features from the image and any associated metadata. The features may be, for example MPEG-7 visual descriptors, describing colour, texture and structure properties or any other visual attributes of the image, as laid out in the MPEG-7 standard ISO/IEC 15938-3 “Information technology—Multimedia content description interface—Part 3: Visual”. For example, a colour descriptor of a first image might denote the position of the average colour of the image in a given colour space. The corresponding colour descriptor of a second image might then be compared with that of the first image, giving a separation distance in the given colour space, and hence a quantitative assessment of similarity between the first and second images.
In other words, for example, a first average colour value (a1, b1, c1) is compared with a second average colour value (a2, b2, c2) using a simple distance measurement, or similarly value S, where
S=[a
1
−a
2
]+[b
1
−b
2
]+[c
1
−c
2]
Time is the most important element of metadata, but other information, whether user-supplied or automatically generated can be incorporated. Examples of combining temporal with visual information in this, and other, ways can be found in Cooper et al, “Temporal event clustering for digital photo collections”, Proc. 11th ACM International conference on Multimedia, pp. 364-373, 2003.
The only restriction on the descriptive features is that they allow comparison of one image with another, to yield a similarity value. U.S. Pat. No. 6,240,423 discloses examples of calculation of similarity values between images. The MPEG-7 standard itself defines both descriptors and associated similarity measures. Preferably, however, the features also capture some humanly meaningful qualities of the image content.
The second step is to perform cross matching of images, using the descriptive features. Numerous examples of descriptive features and associated similarity measures are well known —see, for example, EP-A-1173827, EP-A-1183624, GB 2351826, GB 2352075, GB 2352076.
Similarly, there are numerous well-known techniques for deriving descriptive scalar or vector values (i.e. feature vectors) which can be compared using numerous well-known techniques to determine similarity of the scalar or vector values, such as simple distance measurements.
This yields, for each feature, F, a matrix of pair-wise similarities SF. Each entry SF(i,j) is the similarity between an image, i, and an image, j, for the feature, F, in question. The matrices are therefore typically symmetric. The matrices may not be symmetric if, for example, asymmetric measures of similarity are used. All the images may be included in the cross matching or a subset. For example, the images may be clustered beforehand and just one image from each cluster processed, to reduce complexity and redundancy. This can be achieved with any of a number of prior art algorithms, for example, k-Nearest Neighbours, agglomerative merging or others.
The third step is to convert the similarity matrix SF into a rank matrix RF. Each column is processed independently, replacing the similarity values with some rank ordinal values. In other words, for each i, the greatest similarity, SF(i,j), is replaced with, for example, N (where N is the number of images in the set), the second greatest is replaced with, N−1, the third with N−2 and so on. After this step, the matrix is no longer symmetric, since the rank of image i with respect to j is not the same as the rank of j with respect to i. A side effect of this step is that we have pre-computed the retrieval result for querying any of the images. Note that this is not the only way to preserve the rank ordinal information. In general, this step can be viewed as a data-dependent, nonlinear, monotonic transformation of the similarities. Any such transformation can be seen to be within the scope of the current invention.
Further processing of the rank matrices is advantageous, although not necessary. For example, a threshold can be applied to remove spurious information—for many features, rank values beyond some cut-off point become meaningless: the images are simply “dissimilar” and retaining decreasing rank values is pointless. Time is one feature for which this is not the case, however. Time differences and ranks are consistent over all images, so the rank matrix for this feature is typically not thresholded.
The fourth step is, for each feature, to symmetrize the rank matrix. Any linear or nonlinear, algebraic or statistical function operating on the rank matrix can be used for this purpose. In one embodiment, the rank matrix is added to its transpose, giving an embodiment of a mutual rank matrix:
M
F
=R
F
+R
F
T
In this matrix, each entry encodes the relative similarity between images i and j, given the broader context of the image collection. Note that the MF are symmetric. Another example of an appropriate symmetrization is simply choosing the maximum:
M
F(i,j)=max{RF(i,j),RF(j,i)}
The fifth step is to combine the matrices MF into a single global matrix, M, of mutual-rank scores. There are many possible methods to accomplish this. In one embodiment, the MF are weighted and summed. The system may include some means to determine the weights, or they may be fixed in the design. The same wide variety of combination methods is possible when the features are to be combined at the earlier stage in the system (discussed earlier and illustrated by
At this stage, the matrix M, which is a rich source of information about the structure of the database, can be analysed by a number of prior art algorithms for clustering and/or representation. For instance, pairs of images where there is a low mutual rank may be iteratively merged in an agglomerative clustering process.
More usefully, the matrix, M, can be analysed in a “global” fashion, so as to consider several (or potentially, all) of the mutual rank measurements concurrently. This reduces the sensitivity of the representation to noise in the individual measurements (matrix entries) and better captures the bulk properties of the data. Spectral clustering methods, known from the literature, are one example of this type of processing, but it will be clear to a skilled practitioner that any other non-local method is appropriate.
In a preferred embodiment, the mutual rank matrix is embedded in a low-dimensional space by the Laplacian Eigenmap method. The dimensionality is preferably two for visualisation purposes, but may be more or less. Alternatively, any number of dimensions may be used for clustering. Other methods are possible to perform the embedding. The Laplacian Eigenmap method seeks to embed the images as points in a space, so that the distances in the space correspond to the entries in M. That is, image pairs with large values of mutual rank are close to one another, while images with small values of mutual rank are far apart.
Achieving this leads to the following equation, which is an eigenvalue problem:
(D−M)x=λDx
where D is a diagonal matrix, formed by summing the rows of M:
The solution of the equation gives rise to N eigenvectors, x, which are the coordinates of the images in a mutual-rank similarity space. The importance of each vector (dimension) in capturing the structure of the collection is indicated by the corresponding eigenvalue. This allows selection of the few most important dimensions for visualisation, navigation and clustering.
An illustration of the mapped image of a set of data items in 2-dimensional space derived using the method described above is shown in
The arrangement of the symbols in the display (i.e. relative location and distances between symbols) reflects the similarity of the corresponding data items, based on one or more of characteristics of the data items, such as average colour.
A user can use a pointing device 130 to move a cursor 250 through the representation space 10. Depending on the location of the cursor, one or more images (thumbnails) 270 are displayed based on proximity of the respective symbol(s) 260 to the cursor. Further details of this and related methods and apparatus are described in our co-pending European Patent Application number 05255033, entitled “Method and apparatus for accessing data using a symbolic representation space”, incorporated herein by reference.
Modifications and alternatives are discussed below.
It is possible to select a subset of the images when computing the mutual rank matrix. This reduces the size of the matrix and reduces computational burden. It will then be desired to determine locations in the output space of images that were not present in the initial subset. These may be the remainder of a larger collection or new images as they are added. According to the embodiment described above, it would be necessary to add an extra row and column to the mutual rank matrix as well as modifying existing entries, because the relative ranks of images will change when new images are present. The mapping would then be fully recomputed. However, it is possible to approximate this procedure, without modifying the locations of existing images in the output space. Bengio et al. (Y. Bengio, P. Vincent, J.-F. Paiement, O. Delalleau, M. Ouimet, and N. Le Roux, “Spectral Clustering and Kernel PCA are Learning Eigenfunctions”, Technical Report 1239, Département d'Informatique et Recherche Opérationnelle, Centre de Recherches Mathématiques, Université de Montréal) give such a method for adding additional points to a Laplacian Eigenmap, projecting the new data onto the dimensions given by the original decomposition. This would facilitate the efficient implementation of a sub-sampled mutual-rank similarity space.
Secondly, the structure of the mathematical framework is such that it is easy to imagine incorporating additional information into the representation. For example, user annotation or other label information can be used to create different representations (via, e.g., LDA or Generalized Discriminant Analysis (GDA)). These would better represent the structure and relationships between and within labelled classes. They might also be used to suggest class assignments to new images as they are added to the database. The modification is only to the mathematical analysis—the mutual rank matrix construction remains the same. The output (embedding) of the modified system would contain combined information about the visual and temporal relationships between the images, as well as their class attributes.
Any collection of images or videos (trivially via key-frames, or otherwise), which a user might wish to navigate, is susceptible to the method. Equally, the database records/data items may not pertain to images and visual similarity measurement but any other domain, such as audio clips and corresponding similarity measures. For example, the MPEG-7 standard sets out descriptors for audio (ISO/IEC 15938-4 “Information technology—Multimedia content description interface—Part 4: Audio”). The audio metadata for two clips can be compared to give a quantitative similarity measure. Text documents may be processed, given appropriate measures of similarity from which to begin. Methods for measuring text document similarity are disclosed by Novak et al. (see above). There are already specialised techniques in this area, such as Latent Semantic Indexing (LSI), a method known to the art. Various techniques for extracting descriptive values for data items other than images and for comparing such descriptive values to derive similarity measures are well-known and will not be described further in detail herein.
The present invention is not limited to any specific descriptive values or similarity measures, and any suitable descriptive value(s) or similarity measure(s), such as described in the prior art or mentioned herein, can be used. Purely as an example, the descriptive features can be colour values and a corresponding similarity measure, as described, for example, in EP-A-1173827, or object outlines and corresponding similarity measured, for example, as described in GB 2351826 or GB 2352075
In this specification, the term “image” is used to describe an image unit, including after processing, such as filtering, changing resolution, upsampling, downsampling, but the term also applies to other similar terminology such as frame, field, picture, or sub-units or regions of an image, frame etc. The terms pixels and blocks or groups of pixels may be used interchangeably where appropriate. In the specification, the term image means a whole image or a region of an image, except where apparent from the context. Similarly, a region of an image can mean the whole image. An image includes a frame or a field, and relates to a still image or an image in a sequence of images such as a film or video, or in a related group of images.
Images may be grayscale or colour images, or another type of multi-spectral image, for example, IR, UV or other electromagnetic image, or an acoustic image etc.
The term “selecting means” can mean, for example, a device controlled by a user for selection, such as a controller including navigation and selection buttons, and/or the representation of the controller on a display, such as by a pointer or cursor.
The invention is preferably implemented by processing data items represented in electronic form and by processing electrical signals using a suitable apparatus. The invention can be implemented for example in a computer system, with suitable software and/or hardware modifications. For example, the invention can be implemented using a computer or similar having control or processing means such as a processor or control device, data storage means, including image storage means, such as memory, magnetic storage, CD, DVD etc, data output means such as a display or monitor or printer, data input means such as a keyboard, and image input means such as a scanner, or any combination of such components together with additional components. Aspects of the invention can be provided in software and/or hardware form, or in an application-specific apparatus or application-specific modules can be provided, such as chips. Components of a system in an apparatus according to an embodiment of the invention may be provided remotely from other components, for example, over the internet.
Number | Date | Country | Kind |
---|---|---|---|
05255032.4 | Aug 2005 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/GB2006/003037 | 8/14/2006 | WO | 00 | 10/9/2008 |